Link to home
Start Free TrialLog in
Avatar of cabou
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
Avatar of jrram
jrram
Flag of United States of America image

I use Flash to put page titles on my website.  I dynamically change the name on each page like:

window.document.FlashTest.SetVariable("fluidText", pageTitle);

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.
should be: fluidText is the name of the dynamic object in my flash movie
Avatar of cabou
cabou

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-ae6d-11cf-96b8-444553540000" name="myswf" VIEWASTEXT>
<PARAM NAME="_cx" VALUE="8467">
<PARAM NAME="_cy" VALUE="6350">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="portals/0/360/flashvr.swf">
<PARAM NAME="Src" VALUE="portals/0/360/flashvr.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.11907339576&s=.portals/0/360/Goodwood_1-flash.swf&a=1.0"
quality="MEDIUM" bgcolor="#ffffff" width="320" height="240" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</OBJECT>

Avatar of Zvonko
Here how you change the size:
<script>
var fObj=document.getElementById("myswf");
fObj.style.height=600;
fObj.style.width=800;
</script>

And what params do you want to change in your example?
Avatar of cabou

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
Avatar of Kings-Sky
Kings-Sky

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial