View Full Version : timeline Var
boomshanka
09-18-2008, 05:08 AM
Hiya
is it possible to increment a variable on the timeline from a Class ?
i can do it the other way round ...
:D
wvxvw
09-18-2008, 09:06 AM
Yes, it is possible, but is a bad planing also. You have to either pass your class reference to the timeline, or, if the class extends DisplayObject and you have added it to the stage, than it can get reference to the timeline through it's root property. However, the variables on the main timeline are internal to it, this means, that if you haven't used your custom document class the only way to get the value / reference to the variable would be to add timeline script which will tell your class where the variable is / what is it's value.
christian_s
09-18-2008, 09:12 AM
Boomshanka, are you familiar with the method 'addFrameScript'?
If not, this is for you.
http://www.kirupa.com/forum/showthread.php?p=2098268
boomshanka
09-18-2008, 09:58 AM
bad planning ... hmmm ... ok, thanks for that, i kinda thought that may be the case . still getting the hang of classes :1
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.