Reply Thread Tools Search this Thread
Old 20-05-2009, 16:44   #1 (permalink)
Joxmat
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.
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
Web Hosting by Heart Internet, vBulletin © 2000-2009 Jelsoft Enterprises Limited.
Search Engine Optimization by vBSEO 3.0.0 RC8
Web Hosting by Heart Internet