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 (?)


Opening a Thick Box iFrame from Flash


Published in: ActionScript 3 


URL: http://designfission.com/blog/2007/10/14/opening-a-thickbox-iframe-from-flash/

Found this script on DesignFission's website and found it to be pretty handy.


  1. import flash.external.ExternalInterface;
  2.  
  3. button_btn.addEventListener(MouseEvent.MOUSE_CLICK, popThickBox());
  4.  
  5. function popThickBox(){
  6. ExternalInterface.call(”tb_show” , null, ”page.html?KeepThis=true&TB_iframe=true&height=150&width=150″ , false);
  7. }

Report this snippet 

You need to login to post a comment.