3 Replies - 1143 Views - Last Post: 11 February 2009 - 07:12 AM

Need help loading a page after a movie clip has played

Posted 10 February 2009 - 11:04 PM

I need some help with this code - I feel like a total muppet trying to figure it out.

I have a splash page with 2 buttons: French (button_french) & English (button_english). When either of these buttons are clicked, a movie clip (mc_redshape) plays. All of this I got to work fine, but the problem: I want the page to load the french or english site after the movie clip plays, obviously depending on which button was clicked.

I've tried it with an event dispatch & listener, but I'm not sure if I am doing it right as even a trace() is not working.

Re: Need help loading a page after a movie clip has played

Posted 11 February 2009 - 12:30 AM

Fixed my syntax issues, but it's still not running the function.

Also using the syntax that was posted, I was getting this error Statement must appear within on handler, so I changed the syntax so that the function is with in the curly braces of the on statement (which fixed the issue).

Not sure if the fact that I am using ActionScript2.0 has anything to do with it? Also my movie clip is in a separate layer from the buttons.

Re: Need help loading a page after a movie clip has played

Posted 11 February 2009 - 07:12 AM

bunnyguts, on 11 Feb, 2009 - 08:30 AM, said:

Also using the syntax that was posted, I was getting this error Statement must appear within on handler, so I changed the syntax so that the function is with in the curly braces of the on statement (which fixed the issue).

Forget what I said! Actually, I'm not familiar with AS2. I may need to do some research later today.