> I have a swf that takes 2 parameters: a and b. > To open it in a browser: > my.swf?a=1&b=text > > How can I embed this swf only once and reuse it in the flex app with > different parameters in different places? > I mean that I would like to show it in one place > my.swf?a=1&b=text1 > And then in another place > my.swf?a=2&b=text2
You can't. Embed is a compile-time action that involves reaching into the SWF and brutally mashing its symbols into your application, and if you embed the entire SWF, trying to pretend that it can be treated as a simple MovieClip, which is generally only true for very simple SWFs. If there is any nontrivial code in there, you're already asking for trouble, because SWFs don't keep track of dependencies between symbols, and there is no guarantee that post-Embed the original SWF would have any definitions in the same order. It sounds to me like you need to be loading your SWF at runtime, and not embedding it. Or, change the code of your embedded SWF to provide an API, and export a SWC instead of a SWF. -Roger Roger Gonzalez mailto:[EMAIL PROTECTED] ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hu3n6hh/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124230863/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font> --------------------------------------------------------------------~-> -- 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/ <*> 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/