Re: [Flashcoders] objects can't delete themselves right?

2007-05-25 Thread Steven Sacks

Thank you for your addition to the thread, Mark.  It was quite helpful!

:)


Mark Winterhalder wrote:

On 5/26/07, Steven Sacks <[EMAIL PROTECTED]> wrote:

Correct me if I'm wrong, but I thought objects could not delete
themselves, and if you delete an object with a function and store a
reference to that function before you delete it, that function is
orphaned and will never be cleaned up by the GC.  Am I wrong?


Well, you can't (directly) delete objects of any kind (and that
includes functions) /at all/. Only the GC can delete objects. All you
can do is to delete references to that object so that the GC will
(eventually) pick it up.
'foo' is not an object. It's merely a reference. So, when you 'delete
foo', it doesn't do anything to the object, it just removes one of
possibly many references to that object, and if foo happens to be the
last one, the GC will take care of it. When you delete that reference
from within a function it makes no difference whether that function is
referenced by one of the properties of the object foo is a reference
to -- the object and the function exist independently from each other.

I'm sure you know the "copy by reference" thing, I just want to
emphasize for correctness sake that, while it's OK to casually speak
of 'foo' being a certain object, it's still important to keep in mind
that the object has no name (actually, I think MovieClips /do/ have a
string reference in the old VM, but I'm not entirely sure), and that
'foo' is only one of possible many references. Also, one should
remember that functions are some weird kind of object and that the
same function can be called in any scope that pleases you, by using
Function.call() or Function.apply(), or by creating a reference to it
as a property of some object and then calling that reference on the
object.

Anyway, in the case you describe later in this thread, all this makes
no difference, Delegate or not. Removing B's reference to the Delegate
(the event handler) shouldn't even be necessary -- when there is no
more reference to the instance of B, then its reference to the
Delegate gets removed along with the instance, and since it's the last
(only) reference to the Delegate that gets removed, too.

I guess all this was a verbose way of saying you're right, your
objects will be cleaned up, no need to worry.

Mark
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] objects can't delete themselves right?

2007-05-25 Thread Mark Winterhalder

On 5/26/07, Steven Sacks <[EMAIL PROTECTED]> wrote:

Correct me if I'm wrong, but I thought objects could not delete
themselves, and if you delete an object with a function and store a
reference to that function before you delete it, that function is
orphaned and will never be cleaned up by the GC.  Am I wrong?


Well, you can't (directly) delete objects of any kind (and that
includes functions) /at all/. Only the GC can delete objects. All you
can do is to delete references to that object so that the GC will
(eventually) pick it up.
'foo' is not an object. It's merely a reference. So, when you 'delete
foo', it doesn't do anything to the object, it just removes one of
possibly many references to that object, and if foo happens to be the
last one, the GC will take care of it. When you delete that reference
from within a function it makes no difference whether that function is
referenced by one of the properties of the object foo is a reference
to -- the object and the function exist independently from each other.

I'm sure you know the "copy by reference" thing, I just want to
emphasize for correctness sake that, while it's OK to casually speak
of 'foo' being a certain object, it's still important to keep in mind
that the object has no name (actually, I think MovieClips /do/ have a
string reference in the old VM, but I'm not entirely sure), and that
'foo' is only one of possible many references. Also, one should
remember that functions are some weird kind of object and that the
same function can be called in any scope that pleases you, by using
Function.call() or Function.apply(), or by creating a reference to it
as a property of some object and then calling that reference on the
object.

Anyway, in the case you describe later in this thread, all this makes
no difference, Delegate or not. Removing B's reference to the Delegate
(the event handler) shouldn't even be necessary -- when there is no
more reference to the instance of B, then its reference to the
Delegate gets removed along with the instance, and since it's the last
(only) reference to the Delegate that gets removed, too.

I guess all this was a verbose way of saying you're right, your
objects will be cleaned up, no need to worry.

Mark
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] objects can't delete themselves right?

2007-05-25 Thread Steven Sacks

Ok I get it now.

By removing all references to the functions of class B, even though 
class B is telling class A to delete class B, after the delete fires and 
the thread is done, arguments falls out of scope, all references to 
class B are gone so the GC will pick it up on the next sweep.


This is a good thing for what I need.  :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] objects can't delete themselves right?

2007-05-25 Thread Steven Sacks

Well here's my concern.

I've got multiple class B that are instantiated by class A.

Class A assigns a delegate of a method in class A as a listener to each 
class B's complete event using EventDispatcher.


When class A receives the complete event from a class B, it needs to 
check to see if class B is supposed to be deleted when it is complete 
(some are, some are not).  If it is, it removes its delegate as a 
listener to the class B complete event and then deletes class B.


The problem is that the scope of the function starts in class B calling 
a function in class A which deletes class B.  That means class B is 
attempting to delete itself.  I thought this was not allowed.


Am I wrong?



Jonathan Fung wrote:

Actually, the output makes perfect sense.
The object foo was only storing a reference to the unnamed function that
traces "I still exist".
When you called delete on foo, you only deleted the reference and not the
unnamed function. It is NOT orphaned because you previously assigned bar to
the same unnamed function. Even so, why bother? flash's GC is capable of
sweeping orphaned unnamed functions. (every time you call
some_movieclip_mc.onEnterFrame = undefined; for example)

I'm not sure if the delete operator works on function objects, but by all
means try delete _root.foo.hello instead...

and for more about flash's GC see
http://www.kaourantin.net/2005/09/garbage-collection-in-flash-player-8.html

Jonathan

On 5/25/07, Steven Sacks <[EMAIL PROTECTED]> wrote:


Correct me if I'm wrong, but I thought objects could not delete
themselves, and if you delete an object with a function and store a
reference to that function before you delete it, that function is
orphaned and will never be cleaned up by the GC.  Am I wrong?

I have a trivial test to demonstrate what I'm seeing.  I create an
object (foo) and have a method of foo delete foo.  Before it does,
though, I create a reference (bar) to another method of foo (hello).
After I call foo.bar, it says the object and its functions are
undefined, but the reference to the function still works.


foo = {};
foo.del = function()
{
delete _root.foo;
};
foo.hello = function()
{
trace("i still exist");
};
bar = foo.hello;
trace("foo = " + foo);
trace("foo.bar = " + foo.del);
trace("foo.hello = " + foo.hello);
foo.del();
trace("foo = " + foo);
trace("foo.bar = " + foo.del);
trace("foo.hello = " + foo.hello);
bar();


Outputs --

foo = [object Object]
foo.del = [type Function]
foo.hello = [type Function]
foo = undefined
foo.del = undefined
foo.hello = undefined
i still exist


I'm not understanding what's going on here.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] objects can't delete themselves right?

2007-05-25 Thread Jonathan Fung

Actually, the output makes perfect sense.
The object foo was only storing a reference to the unnamed function that
traces "I still exist".
When you called delete on foo, you only deleted the reference and not the
unnamed function. It is NOT orphaned because you previously assigned bar to
the same unnamed function. Even so, why bother? flash's GC is capable of
sweeping orphaned unnamed functions. (every time you call
some_movieclip_mc.onEnterFrame = undefined; for example)

I'm not sure if the delete operator works on function objects, but by all
means try delete _root.foo.hello instead...

and for more about flash's GC see
http://www.kaourantin.net/2005/09/garbage-collection-in-flash-player-8.html

Jonathan

On 5/25/07, Steven Sacks <[EMAIL PROTECTED]> wrote:


Correct me if I'm wrong, but I thought objects could not delete
themselves, and if you delete an object with a function and store a
reference to that function before you delete it, that function is
orphaned and will never be cleaned up by the GC.  Am I wrong?

I have a trivial test to demonstrate what I'm seeing.  I create an
object (foo) and have a method of foo delete foo.  Before it does,
though, I create a reference (bar) to another method of foo (hello).
After I call foo.bar, it says the object and its functions are
undefined, but the reference to the function still works.


foo = {};
foo.del = function()
{
delete _root.foo;
};
foo.hello = function()
{
trace("i still exist");
};
bar = foo.hello;
trace("foo = " + foo);
trace("foo.bar = " + foo.del);
trace("foo.hello = " + foo.hello);
foo.del();
trace("foo = " + foo);
trace("foo.bar = " + foo.del);
trace("foo.hello = " + foo.hello);
bar();


Outputs --

foo = [object Object]
foo.del = [type Function]
foo.hello = [type Function]
foo = undefined
foo.del = undefined
foo.hello = undefined
i still exist


I'm not understanding what's going on here.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] objects can't delete themselves right?

2007-05-25 Thread Steven Sacks
Correct me if I'm wrong, but I thought objects could not delete 
themselves, and if you delete an object with a function and store a 
reference to that function before you delete it, that function is 
orphaned and will never be cleaned up by the GC.  Am I wrong?


I have a trivial test to demonstrate what I'm seeing.  I create an 
object (foo) and have a method of foo delete foo.  Before it does, 
though, I create a reference (bar) to another method of foo (hello). 
After I call foo.bar, it says the object and its functions are 
undefined, but the reference to the function still works.



foo = {};
foo.del = function()
{
delete _root.foo;
};
foo.hello = function()
{
trace("i still exist");
};
bar = foo.hello;
trace("foo = " + foo);
trace("foo.bar = " + foo.del);
trace("foo.hello = " + foo.hello);
foo.del();
trace("foo = " + foo);
trace("foo.bar = " + foo.del);
trace("foo.hello = " + foo.hello);
bar();


Outputs --

foo = [object Object]
foo.del = [type Function]
foo.hello = [type Function]
foo = undefined
foo.del = undefined
foo.hello = undefined
i still exist


I'm not understanding what's going on here.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Adobe Checkbox RunTime error 1009

2007-05-25 Thread Smith, Philip
Yes, the instance is properly initialized. Upon further testing, this
error is no longer thrown when the CheckBox is embedded in the host,
although that is an inconvenient workaround. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Friday, May 25, 2007 3:13 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Adobe Checkbox RunTime error 1009

Make sure the CheckBox has initialized before using it.

- Original Message -
From: "Smith, Philip" <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 25, 2007 10:55 PM
Subject: [Flashcoders] Adobe Checkbox RunTime error 1009


Hi there,

An AS3 Adobe CheckBox run time error 1009 is being thrown:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at fl.controls::CheckBox/fl.controls:CheckBox::drawLayout()
at fl.controls::LabelButton/fl.controls:LabelButton::draw()
at fl.core::UIComponent/::callLaterDispatcher()

This happens when the .swf is loaded into a host .swf. Embedding the
CheckBox in the host .fla/.swf solves the problem when running from the
Flash IDE, but the runtime error is occuring when testing in a web
browser.

How can this be fixed?

Thanks,

Philip


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Adobe Checkbox RunTime error 1009

2007-05-25 Thread Muzak
Make sure the CheckBox has initialized before using it.

- Original Message - 
From: "Smith, Philip" <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 25, 2007 10:55 PM
Subject: [Flashcoders] Adobe Checkbox RunTime error 1009


Hi there,

An AS3 Adobe CheckBox run time error 1009 is being thrown:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at fl.controls::CheckBox/fl.controls:CheckBox::drawLayout()
at fl.controls::LabelButton/fl.controls:LabelButton::draw()
at fl.core::UIComponent/::callLaterDispatcher()

This happens when the .swf is loaded into a host .swf. Embedding the
CheckBox in the host .fla/.swf solves the problem when running from the
Flash IDE, but the runtime error is occuring when testing in a web
browser.

How can this be fixed?

Thanks,

Philip


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] combobox class object not showing starting value

2007-05-25 Thread Muzak

- Original Message - 
From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 25, 2007 8:36 PM
Subject: Re: [Flashcoders] combobox class object not showing starting value


> crikey - i've posted this in 4 places and i've not had a single response
>

Maybe that should tell you something about cross-posting ;-) 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] stage resize question

2007-05-25 Thread Bob Wohl

np, glad to be of help =)


On 5/25/07, Ing. Mario Falomir <[EMAIL PROTECTED]> wrote:


perfect, thanks a lot Bob.

On 5/25/07, Bob Wohl <[EMAIL PROTECTED]> wrote:
>
> use the Stage object and listeners. Set the embed and object's height &
> width to 100%, reposition via a stage listener.
>
> hth.
> B.
>
> On 5/25/07, Ing. Mario Falomir <[EMAIL PROTECTED]> wrote:
> >
> > Hi all, i need some orientation :) Does any body know any
documentation
> > around the internet or anywhere else, or can put me on track on how to
> > resize the stage of a movie (and rearreange the objects ) according to
> the
> > user screen resolution ? Im trying to hide the browser scroll bars all
> the
> > time so I can use my own within my swf movie, but obviously when I
> change
> > my
> > screen resolution ( from w 1024 to w 800  ) all gets messed up.
> Something
> > like www.pierinc.com.
> >
> > Thanks in advanced!
> >
> > Cheers
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] problem loading dynamically created menus

2007-05-25 Thread John Trentini

Thanks Allandt,
that is what I managed but I resolved it by using a mc_holder as the 
parent and then just removing that, much easier and cleaner as suggested 
by Sebastian.

Cheers
JohnT


Allandt Bik-Elliott (Receptacle) wrote:

i would guess you need to pass the current iteration (i) to the  
button so that it can access it


otherwise you'll iterate through your entire loop and only pass the  
final number to all of the buttons


before you set your onRelease function, try passing a copy of the  
names variable to the button


buttons.names = names

and then refer to the variable in the buttons locally like this

_root.photomenus.loadMovie(this.names+"/"+this.names 
+"photogallery.swf");


i think that should work

a

On 25 May 2007, at 17:39, Gustavo Duenas wrote:

Hi coders. I have created some buttons based on an array ( for you  
this might sound easy but I'm crushing my head right now)
the array has some names and with a for loop, I have my buttons  with 
the names of the arrays attached to them  
(this.mc.somethingelse.text=arraynames)
at this point everything is ok, then I create some folders based on  
that names(array). Then the problems happened when I try to order  
the buttons to load the folders
based on the array names and the .swf file inside them. At this  
point it only loads one, what happened with the others??? i don't  know.

I'm clueless, I'd appreciate any help.

this is the code:


var menus = new Array ();
menus = [ "commercial", "children","portraits","models", "weddings"];
trace(menus.length);

for (i=0; i var buttons = this.attachMovie("screenCards",newButtons,  
this.getNextHighestDepth());

 trace(buttons);
 buttons._x=0;

 buttons._x=-30*i*6

var names=  buttons.titleCard.text= newButtons;
buttons.screenInside.loadMovie("botones/"+newButtons+".jpg");
//so far this point everything is ok
buttons.onRelease = function (){
_root.photomenus.loadMovie(names+"/"+names+"photogallery.swf");
//here it loads just one folder and share it with all the  
buttons...why??
   
   
   
}

}





Regards


Gustavo Duenas

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] problem loading dynamically created menus

2007-05-25 Thread John Trentini

Thanks Attila,

I solved it by embedding the buttons into a dynamic mc_holder and then 
remve the parent.


JohnT

Rákos Attila wrote:


GD> buttons.onRelease = function (){
GD>   _root.photomenus.loadMovie(names+"/"+names+"photogallery.swf");

What do you think, what is the value of names when you click on a
button and the script inside the onRelease handler is executed?

 Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

 



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] reporting problem installing the try-out of flash cs3

2007-05-25 Thread Gustavo Duenas
Hi recently we bought flex2 and in the computer I was working with  
(intel macbook pro), I have installed the try-out of flash cs3 too ,  
but when I installed the flex2, suddenly the flash cs3 quits  
unexplained and all the time that
I was trying to start it, it sent me an message that said that my  
registration code for the try out end up(I was only in the first  
week) and in order to  work  with I need to reinstall the try-out, I  
did it and the same...I'm reporting this because I don't know whether  
this
was only with me or is an issue with the flash cs3, the true I'd like  
to try again the flash cs3 but I don't know what is happening. I've  
also downloaded again the installer...and bang! the same error window.


Regards


Gustavo Duenas


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Adobe Checkbox RunTime error 1009

2007-05-25 Thread Smith, Philip
Hi there,

An AS3 Adobe CheckBox run time error 1009 is being thrown:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at fl.controls::CheckBox/fl.controls:CheckBox::drawLayout()
at fl.controls::LabelButton/fl.controls:LabelButton::draw()
at fl.core::UIComponent/::callLaterDispatcher()

This happens when the .swf is loaded into a host .swf. Embedding the
CheckBox in the host .fla/.swf solves the problem when running from the
Flash IDE, but the runtime error is occuring when testing in a web
browser.

How can this be fixed?

Thanks,

Philip
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] stage resize question

2007-05-25 Thread Ing. Mario Falomir

perfect, thanks a lot Bob.

On 5/25/07, Bob Wohl <[EMAIL PROTECTED]> wrote:


use the Stage object and listeners. Set the embed and object's height &
width to 100%, reposition via a stage listener.

hth.
B.

On 5/25/07, Ing. Mario Falomir <[EMAIL PROTECTED]> wrote:
>
> Hi all, i need some orientation :) Does any body know any documentation
> around the internet or anywhere else, or can put me on track on how to
> resize the stage of a movie (and rearreange the objects ) according to
the
> user screen resolution ? Im trying to hide the browser scroll bars all
the
> time so I can use my own within my swf movie, but obviously when I
change
> my
> screen resolution ( from w 1024 to w 800  ) all gets messed up.
Something
> like www.pierinc.com.
>
> Thanks in advanced!
>
> Cheers
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] stage resize question

2007-05-25 Thread Bob Wohl

use the Stage object and listeners. Set the embed and object's height &
width to 100%, reposition via a stage listener.

hth.
B.

On 5/25/07, Ing. Mario Falomir <[EMAIL PROTECTED]> wrote:


Hi all, i need some orientation :) Does any body know any documentation
around the internet or anywhere else, or can put me on track on how to
resize the stage of a movie (and rearreange the objects ) according to the
user screen resolution ? Im trying to hide the browser scroll bars all the
time so I can use my own within my swf movie, but obviously when I change
my
screen resolution ( from w 1024 to w 800  ) all gets messed up. Something
like www.pierinc.com.

Thanks in advanced!

Cheers
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] stage resize question

2007-05-25 Thread Ing. Mario Falomir

Hi all, i need some orientation :) Does any body know any documentation
around the internet or anywhere else, or can put me on track on how to
resize the stage of a movie (and rearreange the objects ) according to the
user screen resolution ? Im trying to hide the browser scroll bars all the
time so I can use my own within my swf movie, but obviously when I change my
screen resolution ( from w 1024 to w 800  ) all gets messed up. Something
like www.pierinc.com.

Thanks in advanced!

Cheers
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] combobox class object not showing starting value

2007-05-25 Thread Allandt Bik-Elliott (Receptacle)

i have also tried

	var combo:ComboBox = createClassObject(ComboBox, "variationCombo",  
5004);

combo.addItem("Size");
for (var i:Number = 0; i < productArray[product].sizes.length; i++) {
combo.addItem(productArray[product].sizes[i]);
}
combo._y = 445;
combo._x = 530;

with the same result


On 25 May 2007, at 19:36, Allandt Bik-Elliott (Receptacle) wrote:

crikey - i've posted this in 4 places and i've not had a single  
response





On 25 May 2007, at 18:19, Allandt Bik-Elliott (Receptacle) wrote:


i've also tried

	var combo:ComboBox = createClassObject(ComboBox,  
"variationCombo", 5004);

combo._y = 450;
combo._x = 500;
combo.labelField = "thisSize";
combo.dataProvider = sizes;



On 25 May 2007, at 17:30, Allandt Bik-Elliott (Receptacle) wrote:


thanks for all your help today guys

last question (for today :D  )

i've loaded an array (including a starting value) into a combo  
box that was made using createClassObject in actionscript and it  
works fine (drop down has the full list of values, including the  
starting one) except that nothing ever appears in the 'up' state.


var comboInit:Object = new Object();
var sizes:Array = [{thisSize: "choose one"}];
for (var i:Number = 0; i < productArray[product].sizes.length; i+ 
+) {

sizes.push ({thisSize:productArray[product].sizes[i]});
}
comboInit._y = 450;
comboInit._x = 500;
comboInit.dataProvider = sizes;
comboInit.labelField = "thisSize";
createClassObject(ComboBox, "variationCombo", 5004, comboInit);

did i not do something correctly?

hope you can help
a
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Problem moving MC using arrow keys with AS2

2007-05-25 Thread R�kos Attila

AS2 is case-sensitive (you can turn it back to case-insensitive by
selecting ActionScript 1.0 in the Publish settings), so "key" is not
the same as "Key" (which is actually the name of the built-in keyboard
handling object, while there is no built-in identifier called "key" in
AS).

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] combobox class object not showing starting value

2007-05-25 Thread Allandt Bik-Elliott (Receptacle)

crikey - i've posted this in 4 places and i've not had a single response




On 25 May 2007, at 18:19, Allandt Bik-Elliott (Receptacle) wrote:


i've also tried

	var combo:ComboBox = createClassObject(ComboBox, "variationCombo",  
5004);

combo._y = 450;
combo._x = 500;
combo.labelField = "thisSize";
combo.dataProvider = sizes;



On 25 May 2007, at 17:30, Allandt Bik-Elliott (Receptacle) wrote:


thanks for all your help today guys

last question (for today :D  )

i've loaded an array (including a starting value) into a combo box  
that was made using createClassObject in actionscript and it works  
fine (drop down has the full list of values, including the  
starting one) except that nothing ever appears in the 'up' state.


var comboInit:Object = new Object();
var sizes:Array = [{thisSize: "choose one"}];
for (var i:Number = 0; i < productArray[product].sizes.length; i++) {
sizes.push ({thisSize:productArray[product].sizes[i]});
}
comboInit._y = 450;
comboInit._x = 500;
comboInit.dataProvider = sizes;
comboInit.labelField = "thisSize";
createClassObject(ComboBox, "variationCombo", 5004, comboInit);

did i not do something correctly?

hope you can help
a
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Problem moving MC using arrow keys with AS2

2007-05-25 Thread Pedro Kostelec

Hi Flash coders!

I'm doing a maze game and I have a problem with moving a movie clip with the
arrow keys

My AS2 code:
map = new Array();
generateMap();
drawIt(map);
_root.attachMovie("item", "sprite", 1);
sprite._y = 10;
sprite._x = 10;
sprite.px = 2;
sprite.py = 1;
sprite.onEnterFrame = function() {
   if (key.isDown(key.LEFT) && (map[this.py][this.px-1] != 1)) {
   this.px--;
   this._x -= 20;
   }
   if (key.isDown(key.RIGHT) && (map[this.py][this.px+1] != 1)) {
   this.px++;
   this._x += 20;
   }
   if (key.isDown(key.UP) && (map[this.py-1][this.px] != 1)) {
   this.px--;
   this._y -= 20;
   }
   if (key.isDown(key.DOWN) && (map[this.py+1][this.px] != 1)) {
   this.px++;
   this._y += 20;
   }
};
//_
function drawIt(theMap) {
   var pos = 0;
   for (var y = 0; y<20; y++) {
   for (var x = 0; x<20; x++) {
   pos = x+(y*20);
   if (theMap[y][x] == 1) {
   _root.attachMovie("myTile", "tile_"+pos, pos);
   _root["tile_"+pos]._x = x*10.5;
   _root["tile_"+pos]._y = y*10.5;
   }
   }
   }
}
//
function generateMap() {
   map[0] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1);
   map[1] = new Array(1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1,
0, 1);
   map[2] = new Array(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0,
0, 1);
   map[3] = new Array(1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1,
0, 1);
   map[4] = new Array(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0,
0, 1);
   map[5] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1);
   map[6] = new Array(1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
0, 1);
   map[7] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1);
   map[8] = new Array(1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1,
1, 1);
   map[9] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1);
   map[10] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1,
1, 0, 1);
   map[11] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1);
   map[12] = new Array(1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1);
   map[13] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1);
   map[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1,
1, 0, 1);
   map[15] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1);
   map[16] = new Array(1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1,
1, 1, 1);
   map[17] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1);
   map[18] = new Array(1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,
0, 1, 1);
   map[19] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1);
   map[20] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1);
   map[21] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1);
}

--
What is wrong? I think it should work.
But actually the arrow key doesn't work in any file. Is that a Flash program
problem or I'm wrong with the script?
If anyone could help me...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] problem loading dynamically created menus[solved]

2007-05-25 Thread Gustavo Duenas

Man, that was right!! It works!!

Thanks


Gustavo

On May 25, 2007, at 1:28 PM, Allandt Bik-Elliott (Receptacle) wrote:

i would guess you need to pass the current iteration (i) to the  
button so that it can access it


otherwise you'll iterate through your entire loop and only pass the  
final number to all of the buttons


before you set your onRelease function, try passing a copy of the  
names variable to the button


buttons.names = names

and then refer to the variable in the buttons locally like this

_root.photomenus.loadMovie(this.names+"/"+this.names 
+"photogallery.swf");


i think that should work

a

On 25 May 2007, at 17:39, Gustavo Duenas wrote:

Hi coders. I have created some buttons based on an array ( for you  
this might sound easy but I'm crushing my head right now)
the array has some names and with a for loop, I have my buttons  
with the names of the arrays attached to them  
(this.mc.somethingelse.text=arraynames)
at this point everything is ok, then I create some folders based  
on that names(array). Then the problems happened when I try to  
order the buttons to load the folders
based on the array names and the .swf file inside them. At this  
point it only loads one, what happened with the others??? i don't  
know.

I'm clueless, I'd appreciate any help.

this is the code:


var menus = new Array ();
menus = [ "commercial", "children","portraits","models", "weddings"];
trace(menus.length);

for (i=0; i	 var buttons = this.attachMovie("screenCards",newButtons,  
this.getNextHighestDepth());

 trace(buttons);
 buttons._x=0;

 buttons._x=-30*i*6
var names=  buttons.titleCard.text= newButtons;
buttons.screenInside.loadMovie("botones/"+newButtons+".jpg");
//so far this point everything is ok
buttons.onRelease = function (){
_root.photomenus.loadMovie(names+"/"+names+"photogallery.swf");
		//here it loads just one folder and share it with all the  
buttons...why??




}

}




Regards


Gustavo Duenas

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 W. Beaver St. Suite 119
Jacksonville, Fl.  32204
904 . 2650330
www.leftandrightsolutions.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] problem loading dynamically created menus

2007-05-25 Thread Gustavo Duenas

Hi Attila, I think the values should be the one inside the the array:
 weddings, models, portrait and so on
I don't know why the handler of every button point to only one  
(weddings)


Regards


Gustavo


On May 25, 2007, at 1:22 PM, Rákos Attila wrote:



GD> buttons.onRelease = function (){
GD>   _root.photomenus.loadMovie(names+"/"+names+"photogallery.swf");

What do you think, what is the value of names when you click on a
button and the script inside the onRelease handler is executed?

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 W. Beaver St. Suite 119
Jacksonville, Fl.  32204
904 . 2650330
www.leftandrightsolutions.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] problem loading dynamically created menus

2007-05-25 Thread Allandt Bik-Elliott (Receptacle)
i would guess you need to pass the current iteration (i) to the  
button so that it can access it


otherwise you'll iterate through your entire loop and only pass the  
final number to all of the buttons


before you set your onRelease function, try passing a copy of the  
names variable to the button


buttons.names = names

and then refer to the variable in the buttons locally like this

_root.photomenus.loadMovie(this.names+"/"+this.names 
+"photogallery.swf");


i think that should work

a

On 25 May 2007, at 17:39, Gustavo Duenas wrote:

Hi coders. I have created some buttons based on an array ( for you  
this might sound easy but I'm crushing my head right now)
the array has some names and with a for loop, I have my buttons  
with the names of the arrays attached to them  
(this.mc.somethingelse.text=arraynames)
at this point everything is ok, then I create some folders based on  
that names(array). Then the problems happened when I try to order  
the buttons to load the folders
based on the array names and the .swf file inside them. At this  
point it only loads one, what happened with the others??? i don't  
know.

I'm clueless, I'd appreciate any help.

this is the code:


var menus = new Array ();
menus = [ "commercial", "children","portraits","models", "weddings"];
trace(menus.length);

for (i=0; i	 var buttons = this.attachMovie("screenCards",newButtons,  
this.getNextHighestDepth());

 trace(buttons);
 buttons._x=0;

 buttons._x=-30*i*6
var names=  buttons.titleCard.text= newButtons;
buttons.screenInside.loadMovie("botones/"+newButtons+".jpg");
//so far this point everything is ok
buttons.onRelease = function (){
_root.photomenus.loadMovie(names+"/"+names+"photogallery.swf");
		//here it loads just one folder and share it with all the  
buttons...why??




}

}




Regards


Gustavo Duenas

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] problem loading dynamically created menus

2007-05-25 Thread R�kos Attila

GD> buttons.onRelease = function (){
GD>   _root.photomenus.loadMovie(names+"/"+names+"photogallery.swf");

What do you think, what is the value of names when you click on a
button and the script inside the onRelease handler is executed?

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] functions for other classes within a class

2007-05-25 Thread Muzak
Have the portfolio dispatch an "init" event, just like it dispatches the 
"onClick" event (which you probably should just call 
"click").
And use the Delegate proxy class as well while you're at it.

import mx.utils.Delegate;

class com.tequila.canon.PosterArtist.Controller {

private var portfolio:MovieClip;

public function Controller() {
trace("Controller constructor: " + this.portfolio);

this.portfolio.addEventListener("click", Delegate.create(this, 
this.portfolioClickHandler));
this.portfolio.addEventListener("init", Delegate.create(this, 
this.portfolioInitHandler));
}

private function portfolioClickHandler():Void{
trace("portfolioClickHandler: " + this);
}

private function portfolioInitHandler():Void{
trace("portfolioInitHandler: " + this);
this.portfolio.flipCorner("bottom_right");
}

}

regards,
Muzak

- Original Message - 
From: "Giles Roadnight" <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 25, 2007 5:13 PM
Subject: [Flashcoders] functions for other classes within a class


> Hi All
>
> I have this code within a class:
>
> class com.tequila.canon.PosterArtist.Controller {
>
>private var portfolio:MovieClip;
>
>public function Controller()
>{
>trace("Controller constructor: " + this.portfolio);
>
>this.portfolio.addEventListener("onClick",this);
>
>this.portfolio.onInit = this.portfolioOnInit;
>}
>
>private function portfolioOnInit():Void
>{
>trace("onInit: " + this);
>this.flipCorner("bottom_right");
>}
>
> }
>
> But I get a compile error saying that flipCorner does not exist. It doesn't
> exist in COntroller but it does exist in portfolio.
>
> How do I get around this?
>
> Many Thanks
>
> Giles.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] combobox class object not showing starting value

2007-05-25 Thread Allandt Bik-Elliott (Receptacle)

i've also tried

	var combo:ComboBox = createClassObject(ComboBox, "variationCombo",  
5004);

combo._y = 450;
combo._x = 500;
combo.labelField = "thisSize";
combo.dataProvider = sizes;



On 25 May 2007, at 17:30, Allandt Bik-Elliott (Receptacle) wrote:


thanks for all your help today guys

last question (for today :D  )

i've loaded an array (including a starting value) into a combo box  
that was made using createClassObject in actionscript and it works  
fine (drop down has the full list of values, including the starting  
one) except that nothing ever appears in the 'up' state.


var comboInit:Object = new Object();
var sizes:Array = [{thisSize: "choose one"}];
for (var i:Number = 0; i < productArray[product].sizes.length; i++) {
sizes.push ({thisSize:productArray[product].sizes[i]});
}
comboInit._y = 450;
comboInit._x = 500;
comboInit.dataProvider = sizes;
comboInit.labelField = "thisSize";
createClassObject(ComboBox, "variationCombo", 5004, comboInit);

did i not do something correctly?

hope you can help
a
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] problem loading dynamically created menus

2007-05-25 Thread Gustavo Duenas
Hi coders. I have created some buttons based on an array ( for you  
this might sound easy but I'm crushing my head right now)
the array has some names and with a for loop, I have my buttons with  
the names of the arrays attached to them  
(this.mc.somethingelse.text=arraynames)
at this point everything is ok, then I create some folders based on  
that names(array). Then the problems happened when I try to order the  
buttons to load the folders
based on the array names and the .swf file inside them. At this point  
it only loads one, what happened with the others??? i don't know.

I'm clueless, I'd appreciate any help.

this is the code:


var menus = new Array ();
menus = [ "commercial", "children","portraits","models", "weddings"];
trace(menus.length);

for (i=0; i	 var buttons = this.attachMovie("screenCards",newButtons,  
this.getNextHighestDepth());

 trace(buttons);
 buttons._x=0;

 buttons._x=-30*i*6
var names=  buttons.titleCard.text= newButtons;
buttons.screenInside.loadMovie("botones/"+newButtons+".jpg");
//so far this point everything is ok
buttons.onRelease = function (){
_root.photomenus.loadMovie(names+"/"+names+"photogallery.swf");
		//here it loads just one folder and share it with all the  
buttons...why??




}

}




Regards


Gustavo Duenas

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] combobox class object not showing starting value

2007-05-25 Thread Allandt Bik-Elliott (Receptacle)

thanks for all your help today guys

last question (for today :D  )

i've loaded an array (including a starting value) into a combo box  
that was made using createClassObject in actionscript and it works  
fine (drop down has the full list of values, including the starting  
one) except that nothing ever appears in the 'up' state.


var comboInit:Object = new Object();
var sizes:Array = [{thisSize: "choose one"}];
for (var i:Number = 0; i < productArray[product].sizes.length; i++) {
sizes.push ({thisSize:productArray[product].sizes[i]});
}
comboInit._y = 450;
comboInit._x = 500;
comboInit.dataProvider = sizes;
comboInit.labelField = "thisSize";
createClassObject(ComboBox, "variationCombo", 5004, comboInit);

did i not do something correctly?

hope you can help
a
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Where can I find the list component assets?

2007-05-25 Thread Allandt Bik-Elliott (Receptacle)

all single day holidays are called bank holidays in the uk

so a bank holiday could be mayday, boxing day, easter monday/good  
friday etc


On 25 May 2007, at 16:29, eric e. dolecki wrote:


Here in the United States, this coming Monday (last Monday in May) we
celebrate Memorial Day :)

Look into the RectBorder class. The list uses it and it can be  
styled, etc.


-- eric

On 5/25/07, Alistair Colling <[EMAIL PROTECTED]> wrote:


Hi Eric, thanks for your response.

1. I don't understand if you are unfamiliar with the concept of a
Bank Holiday or maybe you just aren't having one on Monday, I hope
you are. If you are unfamiliar with Bank Holidays; it is usually a
Monday in the summer which essentially means that there are more
barbecues and getting drunk than on a normal weekend, oh, and the
banks close as well.

B. I want to change the outline for the whole list

Thanks :)
Ali

On 25 May 2007, at 15:50, eric e. dolecki wrote:

> 1. Bank holiday ?!?
> 2. Do you mean the outline around the whole list or do you wish to
> make an
> outline for items?
>
> - eric
>
> On 5/25/07, Alistair Colling <[EMAIL PROTECTED]> wrote:
>>
>> Hey there, I'm customizing the v2 list component but can't find  
the

>> assets in the sampletheme.fla library. I have customized the
>> scrollbar but I also want to change the outline of the list and I
>> can't find this.
>> Could someone point me  in the right direction please?
>> Thanks guys , have a good bank holiday  :)
>> Ali
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] functions for other classes within a class

2007-05-25 Thread Giles Roadnight

Aha - it works!!! Thanks :)

On 5/25/07, Jobe Makar <[EMAIL PROTECTED]> wrote:


Hi,

Replace this:
this.flipCorner("bottom_right");

With this:
portfolio.flipCorner("bottom_right");

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message -
From: "Giles Roadnight" <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 25, 2007 11:13 AM
Subject: [Flashcoders] functions for other classes within a class


> Hi All
>
> I have this code within a class:
>
> class com.tequila.canon.PosterArtist.Controller {
>
>private var portfolio:MovieClip;
>
>public function Controller()
>{
>trace("Controller constructor: " + this.portfolio);
>
>this.portfolio.addEventListener("onClick",this);
>
>this.portfolio.onInit = this.portfolioOnInit;
>}
>
>private function portfolioOnInit():Void
>{
>trace("onInit: " + this);
>this.flipCorner("bottom_right");
>}
>
> }
>
> But I get a compile error saying that flipCorner does not exist. It
> doesn't
> exist in COntroller but it does exist in portfolio.
>
> How do I get around this?
>
> Many Thanks
>
> Giles.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] functions for other classes within a class

2007-05-25 Thread Giles Roadnight

Thanks for the reply but with this code (and variations including the code
you sent):

import mx.utils.Delegate;

class com.tequila.canon.PosterArtist.Controller {

   private var portfolio:MovieClip;

   public function Controller()
   {
   trace("Controller constructor: " + this.portfolio);

   this.portfolio.addEventListener("onClick",this);

   //this.portfolio.onInit = this.portfolioOnInit;
   this.portfolio.onInit = Delegate.create(this.portfolio,
this.portfolioOnInit);
   }

   private function portfolioOnInit():Void
   {
   trace("onInit: " + this);
   this.flipCorner("bottom_right");
   }

}

I still get this error:

**Error** C:\Documents and Settings\giles roadnight\workspace\Poster
Artist\com\tequila\canon\PosterArtist\Controller.as: Line 22: There is no
method with the name 'flipCorner'.
this.flipCorner("bottom_right");

Total ActionScript Errors: 1  Reported Errors: 1

Thanks

On 5/25/07, Johannes Nel <[EMAIL PROTECTED]> wrote:


use mx.utils.Delegate to assign the function
   this.portfolio.onInit = Delegate.create(this,portfolioOnInit);

On 5/25/07, Giles Roadnight <[EMAIL PROTECTED]> wrote:
>
> Hi All
>
> I have this code within a class:
>
> class com.tequila.canon.PosterArtist.Controller {
>
> private var portfolio:MovieClip;
>
> public function Controller()
> {
> trace("Controller constructor: " + this.portfolio);
>
> this.portfolio.addEventListener("onClick",this);
>
> this.portfolio.onInit = this.portfolioOnInit;
> }
>
> private function portfolioOnInit():Void
> {
> trace("onInit: " + this);
> this.flipCorner("bottom_right");
> }
>
> }
>
> But I get a compile error saying that flipCorner does not exist. It
> doesn't
> exist in COntroller but it does exist in portfolio.
>
> How do I get around this?
>
> Many Thanks
>
> Giles.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] functions for other classes within a class

2007-05-25 Thread T. Michael Keesey

On 5/25/07, Giles Roadnight <[EMAIL PROTECTED]> wrote:

Hi All

I have this code within a class:

class com.tequila.canon.PosterArtist.Controller {

private var portfolio:MovieClip;

public function Controller()
{
trace("Controller constructor: " + this.portfolio);

this.portfolio.addEventListener("onClick",this);

this.portfolio.onInit = this.portfolioOnInit;
}

private function portfolioOnInit():Void
{
trace("onInit: " + this);
this.flipCorner("bottom_right");
}

}

But I get a compile error saying that flipCorner does not exist. It doesn't
exist in COntroller but it does exist in portfolio.

How do I get around this?

Many Thanks

Giles.


The best solution would be to create a Portfolio class and make an
onInit() function there (or just override onLoad()). Is there any
reason why you can't do that?

If you really, really, really need to get around it, you can do this:
   this["flipCorner"]("bottom_right");
... but that's a hack for sure.

A few other points:


class com.tequila.canon.PosterArtist.Controller {


Common convention is for packages to be in lower case, or camel-humped
(e.g. posterArtist--please ignore AS2's TextField.StyleSheet). (Maybe
you have a good reason for doing this, though, I dunno.)


this.portfolio.addEventListener("onClick",this);


Since portfolio is of type "MovieClip", there is no guarantee that it
even has the function addEventListener(). This is another reason for
making an actual Portfolio class.

Also, while you can add an object as a listener with AS2's
EventDispatcher class: 1)  it has to be a function in AS3, and 2)
Controller would have to have either an "onClick" method or a
"handleEvent" method for this to work. Finally, common convention in
AS3 is for event types not to start with "on" (although listeners to
those events often start with "on").

--
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Where can I find the list component assets?

2007-05-25 Thread eric e. dolecki

Here in the United States, this coming Monday (last Monday in May) we
celebrate Memorial Day :)

Look into the RectBorder class. The list uses it and it can be styled, etc.

-- eric

On 5/25/07, Alistair Colling <[EMAIL PROTECTED]> wrote:


Hi Eric, thanks for your response.

1. I don't understand if you are unfamiliar with the concept of a
Bank Holiday or maybe you just aren't having one on Monday, I hope
you are. If you are unfamiliar with Bank Holidays; it is usually a
Monday in the summer which essentially means that there are more
barbecues and getting drunk than on a normal weekend, oh, and the
banks close as well.

B. I want to change the outline for the whole list

Thanks :)
Ali

On 25 May 2007, at 15:50, eric e. dolecki wrote:

> 1. Bank holiday ?!?
> 2. Do you mean the outline around the whole list or do you wish to
> make an
> outline for items?
>
> - eric
>
> On 5/25/07, Alistair Colling <[EMAIL PROTECTED]> wrote:
>>
>> Hey there, I'm customizing the v2 list component but can't find the
>> assets in the sampletheme.fla library. I have customized the
>> scrollbar but I also want to change the outline of the list and I
>> can't find this.
>> Could someone point me  in the right direction please?
>> Thanks guys , have a good bank holiday  :)
>> Ali
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] functions for other classes within a class

2007-05-25 Thread Andy Herrman

Since that function is a class function the compiler assumes it will
only be called with that class as the context.  Since Controller
doesn't have the function then it won't compile.

What I would do is this:

import mx.utils.Delegate;
class com.tequila.canon.PosterArtist.Controller {

  private var portfolio:MovieClip;

  public function Controller()
  {
  trace("Controller constructor: " + this.portfolio);

  this.portfolio.addEventListener("onClick",this);

  this.portfolio.onInit = Delegate.create(this, this.portfolioOnInit);
  }

  private function portfolioOnInit():Void
  {
  trace("onInit: " + this);
  this.portfolio.flipCorner("bottom_right");
  }

}

That way your class function is always called with the right context
(this value).

 -andy

On 5/25/07, Giles Roadnight <[EMAIL PROTECTED]> wrote:

Hi All

I have this code within a class:

class com.tequila.canon.PosterArtist.Controller {

private var portfolio:MovieClip;

public function Controller()
{
trace("Controller constructor: " + this.portfolio);

this.portfolio.addEventListener("onClick",this);

this.portfolio.onInit = this.portfolioOnInit;
}

private function portfolioOnInit():Void
{
trace("onInit: " + this);
this.flipCorner("bottom_right");
}

}

But I get a compile error saying that flipCorner does not exist. It doesn't
exist in COntroller but it does exist in portfolio.

How do I get around this?

Many Thanks

Giles.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Where can I find the list component assets?

2007-05-25 Thread eric e. dolecki

1. Bank holiday ?!?
2. Do you mean the outline around the whole list or do you wish to make an
outline for items?

- eric

On 5/25/07, Alistair Colling <[EMAIL PROTECTED]> wrote:


Hey there, I'm customizing the v2 list component but can't find the
assets in the sampletheme.fla library. I have customized the
scrollbar but I also want to change the outline of the list and I
can't find this.
Could someone point me  in the right direction please?
Thanks guys , have a good bank holiday  :)
Ali

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] functions for other classes within a class

2007-05-25 Thread Jobe Makar

Hi,

Replace this:
this.flipCorner("bottom_right");

With this:
portfolio.flipCorner("bottom_right");

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Giles Roadnight" <[EMAIL PROTECTED]>

To: 
Sent: Friday, May 25, 2007 11:13 AM
Subject: [Flashcoders] functions for other classes within a class



Hi All

I have this code within a class:

class com.tequila.canon.PosterArtist.Controller {

   private var portfolio:MovieClip;

   public function Controller()
   {
   trace("Controller constructor: " + this.portfolio);

   this.portfolio.addEventListener("onClick",this);

   this.portfolio.onInit = this.portfolioOnInit;
   }

   private function portfolioOnInit():Void
   {
   trace("onInit: " + this);
   this.flipCorner("bottom_right");
   }

}

But I get a compile error saying that flipCorner does not exist. It 
doesn't

exist in COntroller but it does exist in portfolio.

How do I get around this?

Many Thanks

Giles.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] functions for other classes within a class

2007-05-25 Thread Johannes Nel

use mx.utils.Delegate to assign the function
  this.portfolio.onInit = Delegate.create(this,portfolioOnInit);

On 5/25/07, Giles Roadnight <[EMAIL PROTECTED]> wrote:


Hi All

I have this code within a class:

class com.tequila.canon.PosterArtist.Controller {

private var portfolio:MovieClip;

public function Controller()
{
trace("Controller constructor: " + this.portfolio);

this.portfolio.addEventListener("onClick",this);

this.portfolio.onInit = this.portfolioOnInit;
}

private function portfolioOnInit():Void
{
trace("onInit: " + this);
this.flipCorner("bottom_right");
}

}

But I get a compile error saying that flipCorner does not exist. It
doesn't
exist in COntroller but it does exist in portfolio.

How do I get around this?

Many Thanks

Giles.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Where can I find the list component assets?

2007-05-25 Thread David Ngo
If you're from the US, it's also known as Memorial Day, a day where we
commemorate fallen US soldiers.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alistair
Colling
Sent: Friday, May 25, 2007 11:04 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Where can I find the list component assets?

Hi Eric, thanks for your response.

1. I don't understand if you are unfamiliar with the concept of a  
Bank Holiday or maybe you just aren't having one on Monday, I hope  
you are. If you are unfamiliar with Bank Holidays; it is usually a  
Monday in the summer which essentially means that there are more  
barbecues and getting drunk than on a normal weekend, oh, and the  
banks close as well.

B. I want to change the outline for the whole list

Thanks :)
Ali

On 25 May 2007, at 15:50, eric e. dolecki wrote:

> 1. Bank holiday ?!?
> 2. Do you mean the outline around the whole list or do you wish to  
> make an
> outline for items?
>
> - eric
>
> On 5/25/07, Alistair Colling <[EMAIL PROTECTED]> wrote:
>>
>> Hey there, I'm customizing the v2 list component but can't find the
>> assets in the sampletheme.fla library. I have customized the
>> scrollbar but I also want to change the outline of the list and I
>> can't find this.
>> Could someone point me  in the right direction please?
>> Thanks guys , have a good bank holiday  :)
>> Ali
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] functions for other classes within a class

2007-05-25 Thread Giles Roadnight

Hi All

I have this code within a class:

class com.tequila.canon.PosterArtist.Controller {

   private var portfolio:MovieClip;

   public function Controller()
   {
   trace("Controller constructor: " + this.portfolio);

   this.portfolio.addEventListener("onClick",this);

   this.portfolio.onInit = this.portfolioOnInit;
   }

   private function portfolioOnInit():Void
   {
   trace("onInit: " + this);
   this.flipCorner("bottom_right");
   }

}

But I get a compile error saying that flipCorner does not exist. It doesn't
exist in COntroller but it does exist in portfolio.

How do I get around this?

Many Thanks

Giles.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Where can I find the list component assets?

2007-05-25 Thread Alistair Colling

Hi Eric, thanks for your response.

1. I don't understand if you are unfamiliar with the concept of a  
Bank Holiday or maybe you just aren't having one on Monday, I hope  
you are. If you are unfamiliar with Bank Holidays; it is usually a  
Monday in the summer which essentially means that there are more  
barbecues and getting drunk than on a normal weekend, oh, and the  
banks close as well.


B. I want to change the outline for the whole list

Thanks :)
Ali

On 25 May 2007, at 15:50, eric e. dolecki wrote:


1. Bank holiday ?!?
2. Do you mean the outline around the whole list or do you wish to  
make an

outline for items?

- eric

On 5/25/07, Alistair Colling <[EMAIL PROTECTED]> wrote:


Hey there, I'm customizing the v2 list component but can't find the
assets in the sampletheme.fla library. I have customized the
scrollbar but I also want to change the outline of the list and I
can't find this.
Could someone point me  in the right direction please?
Thanks guys , have a good bank holiday  :)
Ali

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] [solved] please ignore my disappearing variable

2007-05-25 Thread Allandt Bik-Elliott (Receptacle)
bah - don't worry, i see it - i hadn't said which element of the  
productArray i wanted to see the variations from


so i'd actually traced like this

trace (productArray.variations.length);

sorry
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Where can I find the list component assets?

2007-05-25 Thread Alistair Colling
Hey there, I'm customizing the v2 list component but can't find the  
assets in the sampletheme.fla library. I have customized the  
scrollbar but I also want to change the outline of the list and I  
can't find this.

Could someone point me  in the right direction please?
Thanks guys , have a good bank holiday  :)
Ali

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] variable dissappears from one function to another

2007-05-25 Thread Allandt Bik-Elliott (Receptacle)

on another note (so grateful for your help)

i seem to be losing part of my array from one function to another

var productArray:Array = [];  //<--contains 8 items, each of which  
has a variations parameter with 4 items in


function createVariationColumn(product:Number) {
var productVariations:String;

	for (var i:Number = 0; i < productArray[product].variations.length; i 
++) {
		productVariations = "href='asfunction:_parent.itemOverlay,"+product+","+i+"'>I'd like to  
view this";


//traces 8
trace (productArray.length);

//traces 4
trace (productArray[product].variations.length);
}
}

function itemOverlay() {
//thanks Muzak :D
var args:Array = arguments[0].split(",");
var product:Number = args[0];
var variation:Number = args[1];

//traces 8
trace (productArray.length);

//traces undefined
trace (productArray[product].variations.length);
}

so from one function call to the next function call, my variations  
parameter of productArray has disappeared (although productArray is  
still there)


Xo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Hi List!

2007-05-25 Thread Arul Prasad M L

If stripping off all html from an input textfield is what you are looking
for,
You will be able to do this in a simple process: I'll put in a lil function
in here:

function stripHTML(input:String):String
{
var util_txt:TextField = _root.createTextField("util_txt",
_root.getNextHighestDepth(), -100,-100,100,100);
util_txt._visible = false;
util_txt.html = true;
util_txt.htmlText = input_txt.text ;
var output:String = util_txt.text;
util_txt.removeTextField();
return output;
}

// Now to use it, assuming the input textfield's instance name is input_txt,


var  strippedText:String = stripHTML(input_txt.text);

the strippedText variable will have the valid text, stripped off from the
html that the user typed in.

What the function does is, provide the text in ur input textfield into a
html textfield, and then retrieve the plain text from the html textfield.

This will make sure that the text does not have any html tags in it. (
please note - the code above isn't tested)

Hope that helps,
Arul Prasad
http://arulprasad.blogspot.com


On 5/25/07, Andy Andersson <[EMAIL PROTECTED]> wrote:


I have a scenario that I try to figure out, don't know if it is possible
yet, but maybe someone here on the list knows if it is?

Scenario are:
I have a couple of dynamic text fields and input text fields where people
write comments, send messages, display messages/blogs etc...
And it goes to the server and returns back to the flash app (everything
works fine) but, I don't want people to paste or write HTML tags in the
messages etc.. But if they do I want flash to filter/block those tags out
to
display in the flash app. So when the text gets back into the flash app,
it
should only contain real text, no HTML tags at all!

Is that possible?

Thanks
A




--
Arul Prasad
http://arulprasad.blogspot.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] asfunction passing a Number as x,x ??

2007-05-25 Thread Allandt Bik-Elliott (Receptacle)

oh wow - thankyou very much


On 25 May 2007, at 14:27, Muzak wrote:

asfunction only allows one parameter to be passed to the invoked  
function.

You can split the argument using the delimiter (comma in your case).

simplified version for readability

'asfunction:itemOverlay,value1,value2,value3,value4'

itemOverlay() {
var args:Array = arguments[0].split(",");
var len:Number = args.length;
for(var i=0; iTo make a clear destinction between the function and arguments, you  
could use a different delimiter, as in:


'asfunction:itemOverlay,value1|value2|value3|value4'

And use arguments[0].split("|") to get the values.

regards,
Muzak


- Original Message -
From: "Allandt Bik-Elliott (Receptacle)"  
<[EMAIL PROTECTED]>

To: "flashcoders" 
Sent: Friday, May 25, 2007 3:01 PM
Subject: [Flashcoders] asfunction passing a Number as x,x ??



this is a strange one for asfunction

i'm constructing my  function call like this

productVariations += "href='asfunction:_parent.itemOverlay,"+product+","+i+"'>I'd like  
to  view this";


to pass 2 dynamic variables - product and i - to the itemOverlay   
function but if i run


function itemOverlay(product:Number, variation:Number) {
trace ("product: "+product+"   variation: "+variation);
}

i get a trace of

product: 0,0   variation: undefined

so the asfunction call is passing 0,0 to the first (Number)  
variable  leaving no more arguements for the second one


what did i do wrong?

hope you can help
obie



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] asfunction passing a Number as x,x ??

2007-05-25 Thread Muzak
asfunction only allows one parameter to be passed to the invoked function.
You can split the argument using the delimiter (comma in your case).

simplified version for readability

'asfunction:itemOverlay,value1,value2,value3,value4'

itemOverlay() {
var args:Array = arguments[0].split(",");
var len:Number = args.length;
for(var i=0; i
To: "flashcoders" 
Sent: Friday, May 25, 2007 3:01 PM
Subject: [Flashcoders] asfunction passing a Number as x,x ??


> this is a strange one for asfunction
>
> i'm constructing my  function call like this
>
> productVariations += " href='asfunction:_parent.itemOverlay,"+product+","+i+"'>I'd like to  view 
> this";
>
> to pass 2 dynamic variables - product and i - to the itemOverlay  function 
> but if i run
>
> function itemOverlay(product:Number, variation:Number) {
> trace ("product: "+product+"   variation: "+variation);
> }
>
> i get a trace of
>
> product: 0,0   variation: undefined
>
> so the asfunction call is passing 0,0 to the first (Number) variable  leaving 
> no more arguements for the second one
>
> what did i do wrong?
>
> hope you can help
> obie


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] asfunction passing a Number as x,x ??

2007-05-25 Thread Allandt Bik-Elliott (Receptacle)

this is a strange one for asfunction

i'm constructing my  function call like this

productVariations += "href='asfunction:_parent.itemOverlay,"+product+","+i+"'>I'd like to  
view this";


to pass 2 dynamic variables - product and i - to the itemOverlay  
function but if i run


function itemOverlay(product:Number, variation:Number) {
trace ("product: "+product+"   variation: "+variation);
}

i get a trace of

product: 0,0   variation: undefined

so the asfunction call is passing 0,0 to the first (Number) variable  
leaving no more arguements for the second one


what did i do wrong?

hope you can help
obie
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] SWX and security

2007-05-25 Thread Jiri Heitlager | dadata.org

I have been reading up on  SWX by Aral Balkan and have a question that
maybe the list can answer. Dealing with sending data to a server from
flash there is always the question of security. Making games in flash
and sending data to a server is always a hassle when the sended data
needs to be obscured.
I wonder if SWX has the potential to make sending data over the wire
'saver', that is when the swf is created on the server side, maybe it
can be encrypted.
But still the URL to the gateway on the server can be read with
different tool, so that makes me wonder if it is possible at all.

Some thoughts on the matter by the more genious among the list would be
nice ;)

Jiri

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com