A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help Tell Target

  1. #1
    Junior Member
    Join Date
    Jun 2000
    Posts
    16
    hello, i need help the problem is like this
    i use tell target movie, i have 2 button to call the movie, if i click the first button the movie comes up and if i click again, the movie will gone and its okay, what i want is if i click the first button and then i click the second button i wanna the movie from second button comes up, but i can't, what i did the movie in button 1 gone, just like i click button 1 twice

    the script like this (for button 1 and 2), i just change the ("btn1") into ("btn2"
    Code:
    On (Press)
          If (/:pressed="1")
                Set Property ("/themovie", Visibility) = "0"
                Set Variable: "/:pressed" = "0"
          Else
                Set Property ("/themovie", Visibility) = "1"
                Begin Tell Target ("/themovie")
                      Go to and Play ("btn1")
                End Tell Target
                Set Variable: "/:pressed" = 1
          End If
    End On
    thanks...

    [Edited by Triadis on 08-13-2000 at 06:23 AM]

  2. #2
    Senior Member Leo Lima's Avatar
    Join Date
    Jul 2000
    Location
    São Paulo, Brazil
    Posts
    745
    Well, if this the code for BOTH buttons, no matter who you click second, it will make the movie vanish, because /:pressed will be =1,If (/:pressed="1") Set Property ("/themovie", Visibility) = "0" and that will vanish the movie.

    Try making, for each button, a diferent pressed var, like pressedone and pressedtwo...
    Think that would be nice.

    Regards,
    Leo Lima

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