Vijay

Friday, 10 June 2011

Invoke javascript from flash

To invoke a Javascript function from Flash use ExternalInterface.call()
http://www.adobe.com/devnet/flash/articles/external_interface.html#articlecontentAdobe_numberedheader_2 
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html#call%28%29

To call the ActionScript method from Javascript use ExternalInterface.addCallback()
http://www.adobe.com/devnet/flash/articles/external_interface.html#articlecontentAdobe_numberedheader_3
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html#addCallback%28%29

Example : http://jared.simplistika.com/as3-javascript-communication/
Posted by Vijay at 15:59
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Flash, Javascript

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Vijay
View my complete profile

Total Pageviews

Translate

Search This Blog

Labels

Javascript (15) Apache (8) PHP (8) Drupal (5) General (5) Tour (5) Firefox (4) Jquery (4) MySQL (4) AngularJS (3) Iframe (3) CSS (2) Clipboard (2) Cookies (2) Flash (2) Eclipse (1) Linux (1) Omniture (1) SSI (1) SVN (1) Selenium (1) Shell script (1)

Popular Posts

  • Document write disadvantages
  • Lightbox for ajax loaded content Drupal
  • Apache redirect,alias and SSL
  • Granting Javascript access to clipboard
  • Excerpts from Robin Sharma's books

Blog Archive

  • ►  2016 (5)
    • ►  February (5)
  • ►  2015 (4)
    • ►  October (1)
    • ►  August (3)
  • ►  2013 (8)
    • ►  December (4)
    • ►  June (4)
  • ►  2012 (16)
    • ►  August (3)
    • ►  July (6)
    • ►  June (3)
    • ►  May (1)
    • ►  March (3)
  • ▼  2011 (43)
    • ►  December (10)
    • ►  November (1)
    • ►  October (2)
    • ▼  June (30)
      • Selenium
      • Granting Javascript access to clipboard
      • Eclipse is running in a jre, but a jdk is required
      • Drawing Garph in PHP
      • Capturing the IP address using SSI and Javascript
      • Copy to Clipboard using Flash and Javascript
      • Aborting a Shell script
      • CSS: position and float
      • Invoke javascript from flash
      • CSS : display and visibility
      • IE blocking Iframe Cookies
      • NJ-NY-WDC
      • MySQL Query log
      • Document.close in an iframe
      • prototype js breaks javascript for in loops
      • Tools for Javascript
      • Cookies and localhost
      • Iframe and allowtransparency
      • Detecting undefined object property - Javascript
      • CName Omniture
      • Assigning PHP array to Javascript array
      • Create TinyURL with PHP
      • PHP : cURL to access secured sites
      • Mysore - tourist destinations
      • Must see places in Bangalore
      • Sightseeing - Hyderabad
      • US tours and vacation
      • Document write disadvantages
      • Detect firebug using Javascript
      • Detect java plugin version

Films

  • Stuck on you
  • The Japanese wife
  • Hachiko a dog's story
  • The Terminal
  • Cast Away
  • A Beautiful Mind
  • The Blind Side
  • Cinema Paradiso
  • Schindler's List
  • The Boy in the Striped Pyjamas
  • The Pianist (2002 film)

Books

  • Three mistakes of my life
  • One minute manager
  • Connect the Dots
  • Dork
  • WHO WILL CRY WHEN YOU DIE?
  • Five Point Someone
  • Right Fit Wrong Shoe

Engage To

Posts
Atom
Posts
Comments
Atom
Comments
Picture Window theme. Theme images by konradlew. Powered by Blogger.