Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 93817

Re: Is it possible to embed JavaScript functions into a Flash file (AS 3.0) and call within flash itself, without using the external .js file

$
0
0

yes,

 

function testF(s:String):XML{

    var js:XML = <script>

    <![CDATA[

    ]]>

    </script>

   

    js.appendChild(XML(s));

    return js;

}

 

ExternalInterface.call(testF(your_tf.text));


Viewing all articles
Browse latest Browse all 93817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>