I am trying to call a actionscript method from javascript, but it says flashObj.method() is not a function. I have declared this method inside a submodule of my flash object. So how to call methods of sub modules
Here is a running sample with source code.
http://www.redcodelabs.com/2012/04/calling-actionscript-method-from-javascript/
You need to have a look into the ExternalInterface class. All you need is there. Also you need to be careful with error handling on both sides (AS3 or JS)