A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: going to a frame in a different file

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    2
    Hi there i am fairly new to flash and have come across a problem i can't figure out.

    i have a flash file called "main" it is a still page with two animated buttons (button1 and button2). i want the first button to link to frame 1 of a seperate flash file called "movie" and button 2 has to link to frame 5 of the "movie" file.

    i can make "button1" goto frame 1 of the movie but i cannot get the second button to goto frame 5, it always loads the movie from frame 1.

    so i need a way of loading the movie into frame 5.

    hope this make sense.

    Adam

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Posts
    118
    post your button scripts please....

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    102
    The movie will always load at frame 1 of your first scene
    but u can tell the movie to go into a specific frame once its loaded.


    action for button 2.

    on (press) {
    click = "1";
    loadMovieNum("movie.swf", 1);
    }

    now got an scene in your "movie.swf" that ask in the first frame " if _level0.click == 1; " gotoAndPlay("scene2", 5);

    note that the click must be a dimamicTextField in the same movie that u got your buttons.

    hope it helps.

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