Hi,
On Thu, Mar 27, 2008 at 2:18 AM, doug_flex <[EMAIL PROTECTED]> wrote:
>
> When I clicked on the button in HTML, it does invoked the function
> callingActionScript () in JavaScript file. However, the code to
> get flexApp throwed an exception with err "undefine".
>
> why FABridge["b_ JSASTest" ].root() fail in function
> callingActionScript () but does not fail in the method JSASTestReady( )?
>
I can see a lot of extra spaces between words in your mail, so am not
sure if the actual code has them or not.
If your code looks like the snippet below, there shouldn't be any
problems (Also, I hope actionScriptMethod is public):
function callingActionScript()
{
alert("js:callingActionScript()");
var flexApp;
try
{
flexApp = FABridge["b_JSASTest"].root();
}
catch (err)
{
alert("Failed getting root: " + err.description) ;
}
flexApp.actionScriptMethod();
}
Cheers,
--
Anirudh Sasikumar
http://anirudhs.chaosnet.org/