Button disappearing
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Button disappearing

  1. #1
    Join Date
    Dec 2004

    Button disappearing


    I am having quite a curious problem. I have a button on frame four that takes you to frame 5. When I return to frame four, said button has disappeared. Plus I receive all the output errors that come with having an addEventListener without the object when I return to frame four (errors that were not there the first time). It's not even a complicated button, I'm still in Alpha stage, just a box with static text.

    No ChildIndex, no removeChild code, just a straight gotoAndStop frame to frame script.

    I solved the problem by nesting the button inside a movie clip, which worked perfectly the first time. Although the issue has been 'fixed', I find it odd placing the button in an movie clip actually changed anything.

    I'm just scratching my head as to why this had happened. I would appreciate any insight as to why this occurred.

    I'm using CS6, Windows 7.

  2. #2
    Senior Member
    Join Date
    Nov 2001
    I think you should solve this issue by restructuring things. If you build your flash better, your issues with paths, objects and frames will be far easier to deal with.

    You should have one scene with one frame. Put all your graphics, animations, buttons, whatever, in clips. You can put those clips in as many layers as you want, just all in the first frame. Put all your actionscript should be on the first frame in its own layer (or use a class which you'll do later).

    Make clips visible = true or false to show/hide graphics as needed.

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