;

PDA

Click to See Complete Forum and Search --> : Passing variable using new Flash CS3 AC_RunActiveContent.js


metabold
11-24-2007, 06:11 PM
In the past I could use the url to pass a variable using ?pageNum=2 at he end of the url: www.name.com.com/file.swf?pageNum=2

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="790" HEIGHT="190" ALIGN="">
<PARAM NAME=movie VALUE="rsc/flash/float_navigation.swf?pageNum=2">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="rsc/flash/float_navigation?pageNum=2" quality=high bgcolor=#FFFFFF WIDTH="790" HEIGHT="190" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

How is it done the new javascript coding below I tried the Flashvars with no success below:

<script language="javascript" type="text/javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '900',
'height', '73',
'src', 'rsc/flash/float_navigation',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'navigation',
'bgcolor', '#fff9f8',
'name', 'rsc/flash/float_navigation.swf',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'salign', '',
'flashvars', '?pageNum=2'
); //end AC code
}
</script>

Any help would be appreciated.

pesoliv
12-07-2007, 02:52 PM
you don't need the "?"

3trac
12-10-2007, 09:39 AM
Thanks pesoliv - I have been looking everywhere for this :thumbsup:

I use flash banners on several sites with clickable buttons to jump to the other pages in the site. The flash had to be the same on each page except the button highlighted to show the current page

Wanted to use the AC_RunActiveContent.js to solve the IE problem but could not make it work - always worked before with the ?:

<param name="movie" value="linden.swf?button=2" />

Now working fine again:

<param name="movie" value="linden.swf button=2" />

Thanks