Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash button broken after being hidden

Status
Not open for further replies.

Ferlasher

Programmer
Oct 7, 2003
2
GB
I want to dynamically hide and show flash buttons. The buttons have dynamic text and talk to my C++ application using FSCommand.

I hide the button by changing the visibility of the DIV layer it is in.

When a button has been hidden (or was created on a hidden layer) and is shown again (by making the layer visible), the text is not displayed and it no longer fires an event when it is pressed.

Any ideas what I can do?
 
I have found a solution!

I use JavaScript to hide and show the element:
document.getElementById('PageUpButton').style.visibility = "hidden";

This JavaScript is executed by my C++ application (using a call to IHTMLWindow2::execScript)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top