| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Mar 2009
Posts: 12
|
Show hidden html div when movie ends
I have a flash movie and what I want to do is when the movie reaches the final frame it will tell the html page to show a hidden div on the page, this is what I got but doesn't seem to work: actionscript 2 (on the last frame of the movie): import flash.external.ExternalInterface; ExternalInterface.call("unhide","main-content"); javascript: <script type="text/javascript"> function unhide(divID) { var item = document.getElementById(divID); if (item) { item.className=(item.className=='hidden')?'unhidde n':'hidden'; } } </script> css: .hidden { visibility:hidden; } .unhidden{ visibility:visible; } html: <div id="main-content" class="hidden"> text inside this div </div> any idea anyone? Last edited by Joxmat : 20-05-2009 at 17:25. |
|
|
|
![]() |
|