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.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!