A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: PLEASE HELP - complex scripting question

  1. #1
    Junior Member
    Join Date
    Apr 2000
    Posts
    3

    Cool

    I have a movie clip containing 15 buttons that when any one is clicked, I want the movie to reference a single set of exit frames and ocntinue on into the next scene. Once it reaches the next scene, I want the same "click" to reference two more labels inside another movie clip.

    I am pretty sure that I can accomplish referenceing the movie clip in the second scene via tell target, but I do not want to have to repeat the exit frames 15 times with a single action at the end of each exit.

    Is it possible to write a script that will make all buttons play the same exit frames, and then reference the appropriate labels in the movie clip on the next scene?

  2. #2
    Hack
    Join Date
    Mar 2000
    Location
    Madison, WI
    Posts
    1,753

    Post

    You can reference frame labels with variables. So if you have each button set a variable to the name of the particular destination's label, you can put a go to statement at the end of the exit frames and use the variable as the target. You just need to put it in the expression field.

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