A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Movie clip inside a Movie clip with a Button Problem

  1. #1
    Junior Member
    Join Date
    Nov 2000
    Posts
    9
    Ok.. hard to explain but I am sure you guys have abetter Idea than me..

    I have a movie clip, inside that is another movie clip, then inside that movie clip there is a button. On pressing of that button I would like to go from the current scene I am in the scene 2, but when I open the Actions and select

    On Release

    go to and play

    it only allows me to stay in the current scene..

    is there something I can use to make it jump to scene 2 from scene one?

    (there are movie clips inside movie clips because I am using the tsunami effect)

  2. #2
    Stupid Little Dreamer
    Join Date
    Aug 2000
    Location
    Toronto
    Posts
    583
    you have to use TellTarget:

    on (release)
    TellTarget ("/")
    <GoTo whereever in the main movie>

    The slash / by itself means the root movie. Alternatively, you could use "_level0" as the target instead of "/". Same thing.

  3. #3
    Member
    Join Date
    Aug 2000
    Location
    India
    Posts
    90
    Dear Hawk77,

    Use this script in your button (wherever it is)
    On (Release)
    Begin Tell Target ("_level0")
    Go to and Play ("scn2")
    End Tell Target
    End On

    Remember to give a label say "scn2" to the first frame of scene 2. so that in the above script Go to and Play would play this label.

    Hope u got it.


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