A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Start Movie on Frame 2?

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    2

    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.

  2. #2
    Junior Member
    Join Date
    Sep 2010
    Posts
    2
    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.

  3. #3
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    can you try using _root.gotoAndPlay();

    or try using a frame label (no scene) instead of a frame number?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center