I’m new to AS3 and have been trying to figure this out all day with no luck. I have an HTML file with the following code in it:
<script type=“text/javascript”>
AC_FL_RunContent( ‘codebase’,‘http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0’,‘width’,‘498’,‘height’,‘250’,‘title’,‘News’,‘src’,‘NewsBulletinAS3’,‘quality’,‘high’,‘pluginspage’,‘http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash’,‘FlashVars’,‘page=xml/KBulletinAS3.xml’,‘movie’,'NewsBulletinAS3’ ); //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,28,0” width=“498” height=“250” title=“News”>
<param name=“movie” value=“NewsBulletinAS3.swf” />
<param name=“quality” value=“high” />
<param name=“FlashVars” value=“page=xml/KBulletinAS3.xml”>
<embed src=“NewsBulletinAS3.swf” quality=“high” pluginspage=“http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash” type=“application/x-shockwave-flash” width=“498” height=“250” FlashVars=“page=xml/KBulletinAS3.xml”></embed>
</object></noscript>
The problem is that I need to get the contents of the XML file I’m referencing to be called up in Flash. Rather than show you the junk I came up with that doesn’t work, can someone tell me correct code to call up this page without using the exact file name and assign it to another variable in Flash? I think I’m overcomplicating it.