Skip to main content
Known Participant
February 6, 2014
Question

An object won't disappear.

  • February 6, 2014
  • 1 reply
  • 443 views

I have a gallery with a button that plays you through to some animation from one image to the next.  When you get to the last image I wanted to make the button no longer functional.  So I changed it on the final from to a singleframe graphic which usual works for such a thing but it was still functioning.  I then put a movieclip with a 0% opacity overtop of it to block the mouse from being able to click it, a cheap trick I learned a long time ago.  The button was still functioning.  I then DELETED the button from the final frame all together and it STILL is there and is functional when I render.

Does anybody know what might be causing this?  It feels like a bug but I can't get around it.  I had something similar happen a long time ago in animated scene that didn't use action script but I can't remember if and how I solved it then.

Anybody know what I should do here?

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
February 6, 2014

My guess is you are not attacking the correct object if you remove something and it still works.  Try removing the event listener for the button and it should no longer work.

Known Participant
February 13, 2014

i don't think that's it.  Like I said this happened once before when I wasn't even using action script.  There's no event listener calling it at the frame where the object appears.  I also tried solving it another way by making a movie clip that matches the colour of the background and putting it on the layer above it at that frame to hide the object.  Thinking that even if the problem persists it will at least be hidden.  But even that didn't work.  The button still appears there everytime.