• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling javascript function from ActionScript Method

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am calling javascript function "isReady()" from ActionScript as shown using ExternalInterface call method

code inside Test.html


code inside MXML File :



I am calling this javascript function "isReady()" from ActionScript as shown .

Please tell me is

1. ExternalInterface.call("isReady"); // I am calling this on a button click of MXML , Is this correct parameter inside the call ??
2. Please tell me what other configuration do i need to do to access the HTML ??


Thanks .


 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. ExternalInterface.call("isReady"); // I am calling this on a button click of MXML , Is this correct parameter inside the call ??

If this is the name of your function then yes.


2. Please tell me what other configuration do i need to do to access the HTML ??

Just what comes out the box.
 
jp roberts
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it also possible to call an function within a swf file (mxml application) from javascript embedded in a html page?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. ExternalInterface will do this too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic