[flexcoders] Passing parameter to swf

2009-03-02 Thread chandruflex
Hi, I have a requirement where I have to send a String value as a parameter to a swf (created from Flash). If this is possible, can anybody let me know how this can be done? Example Usage: I want an animated button like thing in Flex. I would be given an swf file created in Flash, which looks

RE: [flexcoders] Passing parameter to swf

2009-03-02 Thread Kenneth Sutherland
Of chandruflex Sent: 02 March 2009 11:13 To: flexcoders@yahoogroups.com Subject: [flexcoders] Passing parameter to swf Hi, I have a requirement where I have to send a String value as a parameter to a swf (created from Flash). If this is possible, can anybody let me know how this can be done

Re: [flexcoders] Passing parameter to swf

2009-03-02 Thread Adrian Williams
Hi Chandru, This is actually pretty easy...one the swfLoader.source, simply add the traditional ? and tabs to the source with the values you want to pass...then in your called swf, you access the passed values via the document.parameters.valueName i.e. Main App: var swf:SWFLoader =