A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: tell target

  1. #1
    Junior Member
    Join Date
    May 2000
    Posts
    8
    tell target question???
    imagine 2 buttons
    each targeting a different movie instance 1 & 2
    playing into the same space
    the problem
    button1 is clicked and movie 1 starts
    the user decideds to click
    button2 before 1 is completed
    clip2 starts its on a highr layer/level
    so lays on top of clip1 no problem
    but then one is chosen again as its below
    clip2 and not visisble until2 has finished
    the question
    how can i inform clip1 to play and stop clip2 in a single click of the mouse
    so the selected movie is allways on top




  2. #2
    Senior Moderator
    Defender of the Faith
    Pope de Flash's Avatar
    Join Date
    Feb 2000
    Posts
    3,429
    You will need to use the "if" statement and the getproperty command. You will need to check the current frame of clip two and if its higher than frame 1 have it goto 1. Here is what the code for button 1 should look like:


    On (Press)
    If (GetProperty ( "/level2", _currentframe ) > 1 )
    Begin Tell Target ("/level2")
    Go to and Stop (1)
    End Tell Target
    End If
    Begin Tell Target ("level1")
    Go to and Play (2)
    End Tell Target
    End On


    Regards, Bill

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