We Recommend

Essential ActionScript 3.0 Essential ActionScript 3.0
The book focuses on the core language and object-oriented programming, but also adds a deep look at the centerpiece of Flash Player's new API: display programming. Enjoy hundreds of brand new pages covering exciting new language features, such as the DOM-based event architecture, E4X, and namespaces--all brimming with real-world sample code.


Ballyhoo


Posted By

chrisaiv on 04/07/08


Tagged


Versions (?)


Basic Framework for writing JavaScript injections


Published in: ActionScript 3 


URL: http://www.actionscript.org/resources/articles/745/6/JavaScript-and-VBScript-Injection-in-ActionScript-3/Page6.html

Some pretty cool stuff. You can write JavaScript injections from ActionScript including local & global variables and functions.


  1. import flash.external.ExternalInterface;
  2. var script_js :XML =
  3. <script>
  4. <![CDATA[
  5. function(){
  6. // Your Code Here: Dont forget to indent with SPACES
  7. }
  8. ]]>
  9. </script>
  10. ExternalInterface.call(script_js);

Report this snippet 

You need to login to post a comment.