bside
7-1-03, 05:14 PM
hello all,
i have a site that i've been building. for one reason or other, i have some text that is going to be in a DIV tag layer above a flash movie (worked out this problem already with "param name="wmode" value="transparent").
But i want to be able to turn the visiblity of these layers that rest above the movie from within the movie by clicking on buttons and within some dynamic text.
I am pretty sure this is possible, but i need to know the javascript and how to implement it in flash.
let me know if i'm making any sense.
in the page that holds the site i have this script:
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
function myMovieLevel1_DoFSCommand(command, args) {
if (command == "MM_showHideLayers") {
MM_showHideLayers();
}
}
and the actionscript is:
onClipEvent (enterFrame) {
fscommand(MM_showHideLayers, "'myLayer','','show'");
}
This doesn't seem to be working (and i bet your laughing at me)
The actionscript takes place in a swf that is loaded into level(1) of movie that is embeded in the html.
please help me! i think my head's about to implode.
thanks,
b
i have a site that i've been building. for one reason or other, i have some text that is going to be in a DIV tag layer above a flash movie (worked out this problem already with "param name="wmode" value="transparent").
But i want to be able to turn the visiblity of these layers that rest above the movie from within the movie by clicking on buttons and within some dynamic text.
I am pretty sure this is possible, but i need to know the javascript and how to implement it in flash.
let me know if i'm making any sense.
in the page that holds the site i have this script:
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
function myMovieLevel1_DoFSCommand(command, args) {
if (command == "MM_showHideLayers") {
MM_showHideLayers();
}
}
and the actionscript is:
onClipEvent (enterFrame) {
fscommand(MM_showHideLayers, "'myLayer','','show'");
}
This doesn't seem to be working (and i bet your laughing at me)
The actionscript takes place in a swf that is loaded into level(1) of movie that is embeded in the html.
please help me! i think my head's about to implode.
thanks,
b