dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Please Help!

  1. #1
    Member
    Join Date
    Jun 2007
    Posts
    47

    Angry Please Help!

    I need help translating this into actionscript 3.0.
    I mainly need an alternative to _root.
    I am trying to get back to the main stage.

    This is what I need translated:

    on (release) {
    _root.gotoAndStop(10);
    }

    This is what I have but it doesn't take me back to the main stage:

    btn.addEventListener(MouseEvent.CLICK,clickHandler 2);
    function clickHandler2(event:MouseEvent):void{
    gotoAndStop(430);}

    PLEASE HELP!
    Thanks Tony

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    Member
    Join Date
    Jun 2007
    Posts
    47
    doesn't work

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    I don't know where your main stage is. You are coding it to go to frame 430. Also this

    clickHandler 2

    has to be

    clickHandler2
    - 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