Anyone know how to get the menu effect on Fully Illustrated - The Portfolio of Michael Heald where the flash menu relates to the html (or php) page it's on?
I was looking at the source code and its a mixture of actionscript and javascript. I found this:
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("_include/swf/navbar.swf", "soNav", "769", "52", "8", "#000000");
so.addVariable("currentSectionName", "ethos");
so.write("masterhead");
//flash banner
//var banner01 = new SWFObject("_include/swf/banner.swf", "banner", "769", "490", "8", "#000000");
//banner01.write("flashBanner");
// ]]>
</script>
I'm sure its just a simple function in actionscript but I have no idea what it is haha.
I've never done it before cause i never knew you could, but it looks like the JS is passing a new variable to the swf file called "currentSectionName" and the actionscript goes to the appropriate part of the animation (or loads the appropriate movie clip) depending on what that variable is set to.
Very nice site.
Last edited by LeadMagnet; 22-10-2007 at 02:37 PM.
Subtlety is my middle name... and first and last in case you didn't get the point.
http://www.eoingriffin.com
Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.
Bookmarks