I\'m trying to edit some flash to make an external javascript function call, but with no success. Here\'s my actionscript 2.0 code:
//testing external .js ca
As others said in the comments to the post of Johan, you should first check, if the External Interface is available by checking ExternalInterface.available.
Other than that... how do you launch the Flex Application? First it must be included in a wrapper that contains this JavaScript of course. That's trivial. However in case you launch it as file from the local filesystem (browser URL starts with file://) then you must also make sure that the SWF file has the required permissions to run a JavaScript function.
You must trust the SWF file to make it able to access local resources like files, or JS on local files. To do that create a file like myapp.cfg and add the path to your file as a single line to this line. Place this file in the FlashPLayerTrust folder. On Linux systems this is ~/.macromedia/Flash_Player/#Security/FlashPlayerTrust/.