Action Script 3 - Problem with a Button
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Action Script 3 - Problem with a Button

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    1

    Action Script 3 - Problem with a Button

    I've just started working with AS3 , here I have a problem ,

    I have made a button which should take me to a mentioned frame : for example it should take me to frame71 ,

    this button is repeating in 10 frames , but only works on the first frame which has the script on ! I had to create 10 keyframes and write script for each of them !

    what should I do to make it sense , it's not logical there should be a way to avoid this redoing , in AS2 I remember when we put an script for a symbol it would repeat in any frame that the symbol was in , but in AS3 it's kinda different ...

    would anyone please help me and let me know what I'm doing wrong ?

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,435
    You need to have the button in one frame block. To not have it appearing in other frames you need to make it invisible.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

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

Poll by Flashkit.com