Skip to main content
Participating Frequently
October 16, 2007
Question

hide buttons when movie loads and then show

  • October 16, 2007
  • 2 replies
  • 372 views
I have a movie that loads another video. When it goes to video by hitting button
I can hide buttons underneath.
When I unload the movie, I need the buttons to show up again and clickable.

I added the onEnterFrame, but makes no difference.

Can someone help as to how I can bring the buttons back when movie that was loaded is unloaded?



Thank you in advance.
This topic has been closed for replies.

2 replies

October 17, 2007
If setting _visible = true does not work, I would only be guessing to tell you what's wrong. Perhaps your scope (reference path) from the unload script is not correct, or the buttons don't exist at all on the timeline. You can verify both using a simple trace command: trace(VideoBtn) -- if it returns undefined, you have something wrong.
October 16, 2007
> onEnterFrame(_root.VideoBtn.enabled._visible = true);
Where did you find that syntax? It's incorrect, check the docs..

However, I don't why you would do that, all that will do is make sure it's never invisible.

To make the visible again, you do the same thing you did to make them invisible -- you set the _visible property to true, wherever you are unloading the movie.
iamalexAuthor
Participating Frequently
October 16, 2007
got it from a search on web at another site, so thought I'd try it.

The problem is, originally, when I pull the swf movie in, I set the buttons to _visible = false.

When I unload the movie, I set it to _visible = true, BUT the buttons do not show up. This is on the main timeline in the middle, not on frame one.

Any suggestions?