|
-
I am having a problem passing the values of functions and variables into flash.
I got this no problem
<PARAM NAME="MOVIE" VALUE="flash_home.swf?docWidth=test">
<EMBED NAME="testcommand" SRC="flash_home.swf?docWidth=test">
But I need to do something like this.
<PARAM NAME="MOVIE" VALUE="flash_home.swf?docWidth="+getDocWidth()>
Does this make sense? This is one of my first tries with passing values to flash.
-
Senior Member
well... instead of:
<PARAM NAME="MOVIE" VALUE="flash_home.swf?docWidth="+getDocWidth()>
write:
<PARAM NAME="MOVIE" VALUE="flash_home.swf?docWidth=
<script language="JavaScript">
document.write(getDocWidth());
</script>
>
hope it helps...
-
couldn't get it!!
sxdesign, Thanks for the help that all makes sense but it isn't passing anything. The function returns a number and I am trying to get it into Flash.
<OBJECT
ID="MySWF">
<PARAM NAME="MOVIE" VALUE="flash_home.swf?docWidth="+<script language="JavaScript">
document.write(getDocWidth());
</script>>
<EMBED
NAME="MySWF"
SRC="flash_home.swf?docWidth="+<script language="JavaScript">document.write(getDocWidth() ); </script>
swLiveConnect="true"
</EMBED>
</OBJECT>
-
The Supreme Shaman and Keeper of Polar Lights
Hi !
For that case it is better to use document.write for whole object and embed code. Or at least start writing from JS before printing <</object>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|