Posted by: grega on: July 2, 2007
Flex generates a nice html page in which it inserts it’s swf file. If you add some additional javascript functions to the html and then want to call them from Flex, you can use URLRequest and navigateToURL. The small trick is to reference the call to “_self”, otherwise a new window opens and then the javascript is executed with a “function not found” error
public var u:URLRequest =
new URLRequest(”javascript:myFunction(’strPar’)”);
navigateToURL(u,”_self“);
1 | mrcrl
i prefer last posts… i could not understand anything!!! i’m against Grega6.1=computermachine…..hahaha