You can play around with the External Interface. Although I don't think you can define it in one call and then call it later.
If you're serving a remote swf you may run into security sandbox issues. I'm not sure what situation would make this 'more ideal' than changing the HTML, though. vijay95052 wrote: > > > Hello > > Is there any way i can make the actionscript/flex code in a swf to > insert a javascript function in the wrapper HTML? > > we have a need to provide a javascript function in the wrapper HTML - > instead of having to write a custom HTML that includes the javascript > function and the swf, i was wondering if i can leverage the existing > wrapper HTML support in FB2 and have the javascript embedded rt into > it... > > thanks > vijay -- Jeffry Houser Adobe Community Expert AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: <http://www.dot-com-it.com> My Podcast: <http://www.theflexshow.com> My Blog: <http://www.jeffryhouser.com>

