Why not use a FlashVars tag?

On Jan 23, 2007, at 10:48 PM, Bjorn Schultheiss wrote:


LocalConnection is the go.

I would love to be able to use the query string to be able to set my LocalConnection.connection string at runtime. At the moment where using a IFrame hack to pass the connection variable to the swf via External Interface to set the connection string at runtime


regards,

Bjorn


On 24/01/2007, at 2:37 PM, greg h wrote:

Hi mazarflex,

Two general scenarios:
1) swf-to-swf communication.
2) swf-to-outside world communication.

My sense from your question is that you are looking for solutions regarding swf-to-swf communication. The following post by super Jesse gives you a good big picture on swf-to-swf communication options. If Jesse's post addresses your request, you can research in the Flex 2 documentation the topics that he raises. Here is the link to Jesse's post:
http://www.jessewarden.com/archives/2006/12/integrating_a_f.html

Since you also asked "or any other way??" ... If you are interested in options regarding swf-to-outside world communication, the following link highlights options: http://adobe.com/cfusion/webforums/forum/messageview.cfm? forumid=60&catid=585&threadid=1233665

Please post back as you have further questions :-)

hth,

g



On 1/23/07, mazarflex <[EMAIL PROTECTED]> wrote:
can anyone tell me how to pass a parameter in flex to a swf in a swfloader--or any other way?? say on my swf there is a label ("Label1")

should it be something like this or am i was off...

<mx:SWFLoader id="Swf1" source="CompLabel.swf?this.Label1.text='H/ W!'" width="668" height="357" x="22" y="10" autoLoad="true"/>

OR maybe call a function...

flash code...
function traceMe(yourMessage:String):Void {
    trace(yourMessage);
}

flex...<mx:SWFLoader id="Swf1" source="CompLabel.swf? traceMe ("Hello World!");
" width="668" height="357" x="22" y="10" autoLoad="true"/>

thanks so much i am new to flex but you guys are helping me learn super fast. thanks a bunch!!







Reply via email to