Ac Runactivecontent Js Download For Mac

ActionScript

Download of ACRunActiveContent.js (ACRunActiveContent.js (external link: SF.net): 8,321 bytes) will begin shortly.If not so, click link on the left. Ac Run Active Content Js Freeware - Free Software Listing. Active@ Partition Manager is Windows partition software that allows users manage storage devices and the logical drives or partitions that they contain. Hard drive eraser software.

FlashVars, SWFObject, and AC_RunActiveContent in ActionScript3

Background

FlashVars is a mechanism to pass variables to a Flash SWF file. It is similar to a query-string and you can read more about it on this tutorial. FlashVars is useful to pass custom data and to customize the content of a SWF file.

For overview of the FlashVars, look here.

In the old days, FlashVars is normally added into object and embed tags within the html page that contains the movie. However, nowadays, most Flash SWF files are embedded by using some JavaScript mechanism of sort. The was due to the EOLAS (Embeded Objects Linked Across Systems) patent which Microsoft chose to no license in Internet Explorer, thus causing many Flash SWF files to require user to click on the browser before the SWF becomes active. That started happening in 2003, and workarounds have been made to not require user to click on the Flash SWF file, by essentially having Javascript write the “embed” code. It’s lost on me how much different this is from embedding in the html page; but anyhow, as time passed, various scripts are used as workaround to embed Flash SWF files. Two of the most popular ones are SWFObject and AC_RunActiveContent.

FlashVars In AC_RunActiveContent

AC_RunActiveContent.js is/was the official Adobe solution. It is included in Flash CS3 and it is automatically deployed to your publish folder when publishing for Flash.

The html page usually looks like this:

To add FlashVars, just add it anywhere like below:

Above I added two variables into the FlashVar, name=Jim and score=10.

FlashVars In SWFObject

SWFObject is created by Geoff Stearns and is becoming the standard for including SWF content in html page. It is hosted at http://osflash.org/swfobject. FlashCS4 suposedly uses SWFObject, replacing RunActiveContent.

Adding FlashVars in SWFObject is as simple as calling addVariable(variableName, variableValue). Example:

Above I added two variables into the FlashVar, name=Jim and score=10.

More SWFObject examples at: http://blog.deconcept.com/swfobject/#examples

For the benefit of anyone as baffled as I was half an hour ago: if you try to pass a variable to a SWF via the Querystring (or FlashVars) and it just doesn’t work, try this. For some inexplicable reason it seems to be not covered fully in the Flash documentation.

When you publish in Flash CS3, the HTML that is created looks like this (in this case the FLA is called ‘passtest’):

<script language=”javascript”>

Ac Runactivecontent Js Download For Mac

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=9,0,0,0’,

‘width’, ‘550’,

‘height’, ‘400’,

‘src’, ‘passtest’,

‘quality’, ‘high’,

‘pluginspage’, ‘http://www.macromedia.com/go/getflashplayer’,

‘align’, ‘middle’,

‘play’, ‘true’,

‘loop’, ‘true’,

‘scale’, ‘showall’,

‘wmode’, ‘window’,

‘devicefont’, ‘false’,

‘id’, ‘passtest’,

‘bgcolor’, ‘#ffffff’,

‘name’, ‘passtest’,

‘menu’, ‘true’,

‘allowFullScreen’, ‘false’,

‘allowScriptAccess’,’sameDomain’,

‘movie’, ‘passtest’,

‘salign’, ”

); //end AC code

}

</script>

<noscript>

<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0″ width=”550″ height=”400″ id=”passtest” align=”middle”>

<param name=”allowScriptAccess” value=”sameDomain” />

<param name=”allowFullScreen” value=”false” />

<param name=”movie” value=”passtest.swf” /><param name=”quality” value=”high” /><param name=”bgcolor” value=”#ffffff” /> <embed src=”passtest.swf” quality=”high” bgcolor=”#ffffff” width=”550″ height=”400″ name=”passtest” align=”middle” allowScriptAccess=”sameDomain” allowFullScreen=”false” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />

</object>

</noscript>

Assuming you want to pass the variable kittens=wonderful, because they are, this needs to be changed to (note changes in bold text):

<script language=”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=9,0,0,0’,

‘width’, ‘550’,

‘height’, ‘400’,

‘src’, ‘passtest’,

‘quality’, ‘high’,

‘pluginspage’, ‘http://www.macromedia.com/go/getflashplayer’,

‘align’, ‘middle’,

‘play’, ‘true’,

‘loop’, ‘true’,

‘scale’, ‘showall’,

‘wmode’, ‘window’,

‘devicefont’, ‘false’,

‘id’, ‘passtest’,

‘bgcolor’, ‘#ffffff’,

‘name’, ‘passtest’,

‘menu’, ‘true’,

‘allowFullScreen’, ‘false’,

‘allowScriptAccess’,’sameDomain’,

‘movie’, ‘passtest?kittens=wonderful‘,

‘salign’, ”

); //end AC code

}

</script>

<noscript>

<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0″ width=”550″ height=”400″ id=”passtest” align=”middle”>

Ac Runactivecontent Js Internet Explorer

<param name=”allowScriptAccess” value=”sameDomain” />

Just Cause 2 Download Pc

<param name=”allowFullScreen” value=”false” />

<param name=”movie” value=”passtest.swf?kittens=wonderful” /><param name=”quality” value=”high” /><param name=”bgcolor” value=”#ffffff” /> <embed src=”passtest.swf?kittens=wonderful” quality=”high” bgcolor=”#ffffff” width=”550″ height=”400″ name=”passtest” align=”middle” allowScriptAccess=”sameDomain” allowFullScreen=”false” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />

</object>

</noscript>

Run Active Content Js

The key bit not mentioned in the documentation is the first change in the first script block. The querystring needs to be appended to the movie (not SRC) parameter, and without the .swf in the filename.

Full Version Software Download Sites

Once this is done the variable kittens will now be available as _root.kittens. You can append several variables as you would in HTML (?thisvar=that&theother=somethingelse), and all must be URL encoded.

Freeware Software Download Full Version

And that’s it. Normal cats photos / train company problem posts will resume immediately.