Tuesday, October 9, 2012

External interface and javascript. Two way event handling

I believe the following links will help you to develop a very good flex application with external interface.

As you know the javascript will be handled in flex using ExternalInterface class. But in flex we have different ways to handle events between two. 


If you don't want a separate javascript file for flex, you can write the javascript file as .as file. I will give you the code snippet.
you can write the javascript as xml datatype like this

private var javascript:XML = <javascript><![CDATA[
        function ()
        {

            //Todo
        }

    ]]></javascript>;

And call the javascript using   ExternalInterface.call(this.javascript); 





Still have doubts? contact info@rhobase.com. We are doing all type of Adobe Flex projects in Rhobase.







No comments:

Post a Comment