dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: button goto frame does not work

  1. #1
    Tech Designs CEO CNL83's Avatar
    Join Date
    Jun 2000
    Posts
    997

    button goto frame does not work

    CS5 actionscript 2.0
    I have a simple button on the main stage, and a frame named "main".

    Why does this code not work?

    on (release) {
    gotoAndPlay("main");

    }
    UPS' official RIPP-OFF
    See full complaint here > www.actionfx.net/complaint.htm

  2. #2
    Moderator whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    I dont have CS5

    nor do I ever use object code..


    but seems like a scope issue..

    try:

    on (release) {
    _parent.gotoAndPlay("main");
    }

    or

    on (release) {
    _root.gotoAndPlay("main");
    }

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