Calling js(try{}catch{}) throws an error

  • Hi,

    When calling try/catch in from js function, an error is thrown:


    SyntaxError: syntax error
    try { __flash__toXML(try{


    Here is a code sample :


    Code
    js(
    	try{
    		myfunction(get(linkedscene));
    	}
    	catch(err)
    	{
    		// ... do something...
    	}
    );

    if the try/catch statement is removed, this works fine :

    Code
    js(
    	myfunction(get(linkedscene));
    );

    but "myfunction" is in a javascript file that may not be included in some web pages.

    Any help would be appreciate.

    Thanks by advance.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!