This content has been marked as final.
Show 5 replies
-
1. Re: Variables inside movie clips?? in Flash CS4 (AS3)
Ned Murphy Mar 2, 2010 11:11 AM (in response to Me2LoveIt2)Yes, you can store them inside manually when you create the movieclip or you can assign a variable to a movieclip during run time without having created the variable previously.
myMovieclip.newVariable = some value;
-
2. Re: Variables inside movie clips?? in Flash CS4 (AS3)
Me2LoveIt2 Mar 2, 2010 11:26 AM (in response to Ned Murphy)Thank you for the quick answer!
This is easy than i hoped.
-
3. Re: Variables inside movie clips?? in Flash CS4 (AS3)
Ned Murphy Mar 2, 2010 11:49 AM (in response to Me2LoveIt2)You're welcome
-
4. Re: Variables inside movie clips?? in Flash CS4 (AS3)
Rothrock Mar 2, 2010 12:16 PM (in response to Me2LoveIt2)That is because the MovieClip class is a dynamic class to which you can just add properties (variables) in that manner.
But other classes, such as the Sprite class do not allow for that. If you are using such a class you would need to make your own version that extends the original class to add properties. So just be aware.
-
5. Re: Variables inside movie clips?? in Flash CS4 (AS3)
Me2LoveIt2 Mar 2, 2010 12:26 PM (in response to Rothrock)ok!
Thank you.



