A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Bizzare button question

  1. #1

    Bizzare button question

    i have a button with the following code on it

    Code:
    on(release){
    	_root.uniformssections.gotoAndPlay(2);
    }
    i'm trying to modify the on release action but when i modify the line inside the action call the button just disappears and i have no idea why

    any suggestions?

  2. #2
    Senior Member Genesis F5's Avatar
    Join Date
    Jan 2002
    Location
    Unallocated memory
    Posts
    1,845
    The button appears on frame 1. You have to have it on all the frames to appear subsequently. When you go to frame 2, the contents of frame 2 will be there but will not remember frame 1's. I suggest creating a single layer and labeling it something like "controls" and then put all buttons and what not in that layer and copy the 1st frame and paste it at the end of the timeline at your last frame.

    hope this helps...



    -genesis f5 (genesis mx)

  3. #3
    i should first clarify that the button is really a movie clip that i'm loading an image into and then applying the on(release) action to.

    the on(release) code for the movie clip exists when you click on the movie clip no on the time line itself. The functionality works fine as long as no modifications are made to it, i just tried to comment out the action for the on(release) and the movie clip just flashes and the then disappears. any ideas?

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