emptypixels Posted September 28, 2009 Share Posted September 28, 2009 I stumbled on this site, so I'm not quite sure what I've gotten myself into here, but is this plugin going to work for reversing the main timeline in flash? Or will this only work in a mc? Any guidance on this is greatly appreciated. Thank you for your patience. Link to comment Share on other sites More sharing options...
GreenSock Posted September 28, 2009 Share Posted September 28, 2009 Sure, you can use the "frame" plugin to have TweenLite or TweenMax tween the playhead of ANY MovieClip's timeline. TweenMax.to(this, 2, {frame:1}); //assumes "this" is the main timeline. It'll tween to frame 1 over the course of 2 seconds. Link to comment Share on other sites More sharing options...
deeait Posted September 29, 2009 Share Posted September 29, 2009 This has nothing to do with the above, but still it´s a noob question, so i´ll post it here I work on a project with several classes, in all of which i use TweenLite. Since all of the classes get compiled into one swf, do i have to import TweenLite in every single class, and will this increase filesize? I don´t know if i make myself clear... What i mean is, would it be enough to import TweenLite only once in the document class? Link to comment Share on other sites More sharing options...
GreenSock Posted September 29, 2009 Share Posted September 29, 2009 You'd be surprised how many people wonder the same thing. The answer is: 1) Yes, you must import it in every class where it's referenced 2) NO, importing it multiple times (in various classes or on various frames) does NOT increase the file size exponentially. Flash is smart enough to only embed the code ONCE. The import statements are like "pointers" that tell Flash which class you're talking about when you type "TweenLite". Import it as many times as you want - it will only embed it once. Link to comment Share on other sites More sharing options...
deeait Posted September 30, 2009 Share Posted September 30, 2009 Alright, good to hear that! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now