A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Controlling a Movie

  1. #1
    Junior Member
    Join Date
    Sep 2000
    Posts
    13

    Controlling a Movie

    I'm trying to create a picture gallery. I have a movie with my main 16 pictures, 1 frame each and 16 thumbnails. First I want to be able to stop the movie when the project is launched. I tried swf1.stop() on the keyframe, but it doesn't seem to work.

    Also on each thumnail I perform the following

    on (release)
    {
    swf1.gotoandstop(6);
    }

    Where the number is the frame I want displayed in the movie. However it always goes back to frame 1 and then all the thumbnails have no effect.

    I'm sure there is a simple thing I am missing, but I can't see it. Help!

    Many thanks

    Colin

  2. #2
    Junior Member
    Join Date
    Jun 2004
    Posts
    7
    I'm new to koolmoves colin but ill give this a try.

    for the first problem where the movie loads and dont stop make a copy of the first frame so that 1st and 2nd frames are the same and then add a stop action in your score/timeline on the 2nd frame

    for the second problem open your properties for the picture and add an action go to keyframe(3) and stop on release

    for the next picture do the same only make it go to keyframe(4) and stop on release

    so on and so forth

    hope it fixes ya up

  3. #3
    Senior Member Fingermonkey's Avatar
    Join Date
    Jun 2002
    Location
    Michigan
    Posts
    222

    Try this....

    The Go to and Stop action does not work on the first frame of a movie. Place your 16 thumbnails on frame 1 then add two more identical frames (frames 2 and 3). Next, place your 16 images on frames 4 thru 19. Now open up the Actions and Sounds Overview, select frame 2 and add the following action: Go to Frame 3 and Stop (You can do this with KM, you don't need to write in any actionscript). Now go to frame 3 and place Go to Frame and Stop actions for each of the thumbnails so each links to it's corresponding picture (frame). Now, make sure you add some type of back button (with a Go to Frame 1 and Play action) on each of the frames (4-19) so the viewer can navigate back to the thumbnails frame.

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