cabou
asked on
change flash param from javascript
Hi,
I need to change params values of a flash object with javascript.
How can I do it.
Erez
I need to change params values of a flash object with javascript.
How can I do it.
Erez
should be: fluidText is the name of the dynamic object in my flash movie
ASKER
I'm not sure we talk about the same thing. I need to change the param in the following code:
<OBJECT id="myswf" codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
height="240" width="320" classid="clsid:d27cdb6e-ae 6d-11cf-96 b8-4445535 40000" name="myswf" VIEWASTEXT>
<PARAM NAME="_cx" VALUE="8467">
<PARAM NAME="_cy" VALUE="6350">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="portals/0/360/flash vr.swf">
<PARAM NAME="Src" VALUE="portals/0/360/flash vr.swf">
<PARAM NAME="WMode" VALUE="Window">
<PARAM NAME="Play" VALUE="-1">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="Medium">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="-1">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="sameDomain">
<PARAM NAME="Scale" VALUE="ShowAll">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="FFFFFF">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData" VALUE="">
<PARAM NAME="SeamlessTabbing" VALUE="1">
<embed src="flashvr.swf" flashvars="q=3&f=108.11907 339576&s=. portals/0/ 360/Goodwo od_1-flash .swf&a=1.0 "
quality="MEDIUM" bgcolor="#ffffff" width="320" height="240" allowScriptAccess="sameDom ain"
type="application/x-shockw ave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</OBJECT>
<OBJECT id="myswf" codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
height="240" width="320" classid="clsid:d27cdb6e-ae
<PARAM NAME="_cx" VALUE="8467">
<PARAM NAME="_cy" VALUE="6350">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="portals/0/360/flash
<PARAM NAME="Src" VALUE="portals/0/360/flash
<PARAM NAME="WMode" VALUE="Window">
<PARAM NAME="Play" VALUE="-1">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="Medium">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="-1">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="sameDomain">
<PARAM NAME="Scale" VALUE="ShowAll">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="FFFFFF">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData" VALUE="">
<PARAM NAME="SeamlessTabbing" VALUE="1">
<embed src="flashvr.swf" flashvars="q=3&f=108.11907
quality="MEDIUM" bgcolor="#ffffff" width="320" height="240" allowScriptAccess="sameDom
type="application/x-shockw
</embed>
</OBJECT>
Here how you change the size:
<script>
var fObj=document.getElementBy Id("myswf" );
fObj.style.height=600;
fObj.style.width=800;
</script>
And what params do you want to change in your example?
<script>
var fObj=document.getElementBy
fObj.style.height=600;
fObj.style.width=800;
</script>
And what params do you want to change in your example?
Here some Flash methods:
http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html
http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html
ASKER
Thanks but I looking for a way to change <PARAM> informations.
Give me an example. What param value to what param value?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
window.document.FlashTest.
Where
FlashTest is the name of my flash movie
fluidText is the name of the dynamic object in my flash title
pageTitle is the value that I want to set the object to.