I've been doing some research and thats basically what the situation is. The solution is to add javascript that changes the Z-axis and call it with the flash onRollOver and onRollOff.
However, I havn't found a good description as to how to do this. I am not a profficient javascript or actionscript programmer (as of yet) and could really use some help with this one.
Here is the site that has the best example: http://chattyfig.figleaf.com/piperma...st/147263.html
I understand the concept of the functions, etc... but im not sure of some of the variables and the actionscript required to call the javascript in that page/layer without loading a new page... etc.
In the following code, i understand that the turn_on and turn_off functions are those that I need to call with my flash using getURL("javascript :turn_on()); and "crNav" is my CSS layer and that styleDiv.height is going to be the z-axis that it is switching it to... but what exactly is "styleDiv" and are there any other non-universal variables in there that would be particular to my files?
Code:
<script language="JavaScript" type="text/JavaScript">
<!--
function turn_on() {
if (document.getElementById) {
var styleDiv = document.getElementById('crNav').style;
styleDiv.height = "300";
}
}
function turn_off() {
if (document.getElementById) {
var styleDiv = document.getElementById('crNav').style;
styleDiv.height = "125"; // height of just the main navigation
}
}
//-->
</script>
Also, how exactly would I do the call with the actionscript in flash?
Any help would be greatly appreciated.
__________________
-- Jason <aka jeansond, Chastagi>
|