A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Play the movieclip

  1. #1
    Senior Member
    Join Date
    May 2004
    Posts
    627

    Play the movieclip

    I havent used AS2 for long time. TOday I try a simple code like below code that but it stop in frame s rather than play in the movieclip. It looks like the function "gotoAndStop" but I type gotoAndPlay. so I wonder whether I miss any setting for it?


    In the movie clip
    onClipEvent (enterFrame) {
    this.gotoAndPlay("s");
    }

    Inside MC, I add "stop" in frame 1 and set frame name "s" in frame 2.
    Last edited by multioscar; 10-16-2009 at 12:05 AM.

  2. #2
    shavingcream incarnate gukinator's Avatar
    Join Date
    Jul 2008
    Location
    Santa Cruz
    Posts
    147
    i dont really know what your asking but i can see that you have your gotoAndPlay script in an onEnterFrame function, meaning that the program will loop that gotoAndPlay, making it act like a gotoAndStop. if you want to fix that use onClipEvent(load){ or put the code in the main timeline, mc_name.gotoAndPlay("s");

  3. #3
    Senior Member
    Join Date
    May 2004
    Posts
    627
    it still look the same. Can anyone who can give me some hints?

    I have the attached files(CS3)
    Attached Files Attached Files

  4. #4
    shavingcream incarnate gukinator's Avatar
    Join Date
    Jul 2008
    Location
    Santa Cruz
    Posts
    147
    yeah it seems that for some reason it keeps looping the gotoAndPlay. to fix it, replace the code on the frame with
    PHP Code:
    onLoad = function(){
        
    t1.gotoAndPlay("s");


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