A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: "frame control" different in flash 5?

  1. #1
    Junior Member
    Join Date
    Mar 2001
    Posts
    3
    I've run into a bit of a problem. This might be different in flash 5, but i have a movie clip nested within a movie clip. Now in the parent clip, there are about 38 frames. In the child clip, there are about 43 frames. At the end of the 38th frame on the parent clip, i have a button, and have this action:
    on (rollOver) {
    tellTarget ("cube") {
    }
    gotoAndStop ("40");
    }
    on (rollOut) {
    tellTarget ("cube") {
    gotoAndPlay (1);
    }
    }
    What i was trying to acomplish here, is when you mouseover the button, the child movie clip starts playing at its 40th frame, and then stop (with a stop action on the 43rd frame). When you mouseoff the button, the child clip needs to start at the very beginning again. What happens right now is the parent movie clips starts playing from the beginning. Is there a way to specify what frame in what movie clip? I did it this way in flash 4 and it seemed to work well. Any ideas?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    hi Wavelength,
    i don't know where your movie "cube" is, but let's assume it's on the main timeline. Then your code should read:
    Code:
    on (rollOver) {
    	_root.cube.gotoAndPlay(40);
    }
    on (rollOut) {
    	_root.cube.gotoAndPlay(1); }
    hope this helps
    gparis

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