Hi;
I have the following code:
var paramObj:Object = LoaderInfo(root.loaderInfo).parameters;
var myFlashVar:String = new String();
public function DeltaMain()
{
for (varName in paramObj)
{
myFlashVar = String(paramObj[varName]);
}
other stuff...
function MyTextBlock()
{
myText.htmlText = pageDetails;
myText.htmlText += myFlashVar;
myText.setTextFormat(format);
addChild(myText);
I have this in my html:
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='1008'
height='548' id='deltaMain' name='deltaMain'>
<param name='movie' value='DeltaMain.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name="FlashVars" value="pg_name=index" />
<embed id='deltaMain'
name='deltaMain'
src='DeltaMain.swf'
width='1008'
height='548'
allowscriptaccess='always'
allowfullscreen='true'
/>
</object>
Everything works fine, except that it doesn't print out myFlashVar and I don't
know how else to test it. My eventual goal, of course, is to change the text
that shows up in the swf based on the value of that var. Please advise.
TIA,
John
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders