View Single Post
Old 17-04-2009, 18:12   #4 (permalink)
smearf man
616/7 = 88
 
smearf man's Avatar
 
Join Date: Apr 2009
Posts: 62
You can put JavaScript right inside of the AS3 as follows:
Code:
import flash.external.*; var JStodo:XML = <script> <![CDATA[ function (marg) { function dothis(forarg) { alert(forarg); }; dothis(marg); //the function in dothis can be any function defined in the wrapper } ]]> </script>; //calling the script if (ExternalInterface.available) {ExternalInterface.call(JStodo);}


hope this helps
  Reply With Quote