I thought you found the trick by using 'progress' instead of 'load' or 'creationComplete' but that doesn't work for me.
 
I have a flex file that is loading swfVar.swf and assigns a value to the property 't' like this:
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Loader contentPath="swfVar.swf" progress="event.target.content.t ='Hello World'">
</mx:Loader>
</mx:Application>
 
The swf contains one TextField called 'my_txt', its text is populated with a variable 't' that should have been assigned a value by the mxml file as you suggest:
 
swfVar.swf
-------------
var t:String;
my_txt.text = t;
 
But the textfield always shows 'undefined'
 
Maybe I didn't understand what you were blogging about, do not hesitate to correct me.
 
Cheers,
 
Philippe Maegerman

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of kaibabsowats
Sent: mardi 30 août 2005 20:15
To: [email protected]
Subject: [flexcoders] Re: Embedding a slideshow swf that calls image files

I blogged some more info on the SWF FlashVar, view it at:

http://renaun.com/blog/?p=4




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------

Reply via email to