Igor, Thanks for the reply. loadContent does not seem to be a supported method of SWFLoader, but load() is.
This is the code that works for me private var prodID:String; private var distID:String; private function doApp():void { myLoader.load(); } <mx:SWFLoader id="myLoader" autoLoad="false" source="productPrices.swf?productID={prodID}&distributorID={distID}" /> <mx:Button label="View Prices" click="doApp()"/> I pass in 2 parameters, and you have to use & to seperate the 2 params otherwise you get a compile error. Hope this is useful for somebody else. Andrew --- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote: > > Just add the event in the button > > mouseDown="loadOther();" > > public function loadOther():void > { > // id of swfloader > idSWF.loadContent("aa.swf"); > } > > Regards -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/