Jump to content


using timeline controls in as2

Recommended Posts

ok so I'm trying to create a button that will restart my movie, but I'm stuck using as2 as it is for a banner.


Is there an AS2 version of this?


function overHandler(event:MouseEvent):void {


I'm using this


replay.onPress = function() { 


and I'm getting a trace, but not a restart. Am I doing something wrong?


thanks. I love the tweening platform. I'm a total newb, but tweenlite actually makes it fun to make flash stuff. :)

Link to comment
Share on other sites

I'm not sure where you're defining your myTimeline variable, but remember that AS2 has scope problems. AS3 maintains scope whereas AS2 doesn't. Try to trace(myTimeline) in your onPress and see if it's undefined.

Link to comment
Share on other sites

ah I see. I'm only just learning AS and mostly only AS3, so this AS2 business is a bit frustrating.


the trace returns [object Object] so it seems like it's got the right object. it's just not listening to it.


thanks for the help. :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.