-
Start Movie on Frame 2?
I'm new to Flash and was wondering how you properly start a movie on a frame other than frame1. The simplest answer is to enter gotoAndPlay(2) in the actions panel of frame 1, however when I do that and embed it into a website, the movie starts on a randomly-selected frame every time I strike the refresh button in a browser.
I'm using Flash CS4 and obviously ActionScript 2. I'm embedding the SWF into an HTML document using Dreamweaver CS4. Standard code -- no modifications to whatever Dreamweaver throws in there to embed flash, other than I have the wmode set to Transparent and am Publishing the SWF accordingly. Could this be interfering somehow?
Is there a way via HTML I can have the movie start at a specific frame rather than upload another instance of the same SWF? I have multiple pages that all need the same flash but playing at different frames per page, and I'd rather not upload multiple instances of the SWF to achieve this. Then again, if it's the only way, I'll have at it.
Any help would be greatly appreciated, and thanks in advance.
-
Sorry, I know it's not proper board etiquette to post twice, but I don't see an "edit" button anywhere. I wanted to point out that when I publish the movie and run it in standalone player with gotoAndPlay("scene",framenumber); on the first frame, it works like a charm. Only when it's embedded in an HTML document does it start at random frames.
-
can you try using _root.gotoAndPlay();
or try using a frame label (no scene) instead of a frame number?