A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Passing variable using new Flash CS3 AC_RunActiveContent.js

  1. #1
    Junior Member
    Join Date
    Nov 2007
    Posts
    1

    Passing variable using new Flash CS3 AC_RunActiveContent.js

    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="clsid27CDB6E-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.

  2. #2
    Junior Member
    Join Date
    Dec 2007
    Posts
    1
    you don't need the "?"

  3. #3
    Junior Member
    Join Date
    Dec 2007
    Location
    Torquay
    Posts
    1

    Thanks

    Thanks pesoliv - I have been looking everywhere for this

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center