1

I have a page which has some flash buttons that I need to locate. The typical way of locating these objects through Firebug (Firepath addon) does not help because they are meant to locate only HTML DOM objects.

What I know after a lot of internet surfing is that the flash objects on a page have some Actionscripts which if exposed, can be handled by javascript. My doubt: How to expose these actionscripts? Is there a way to SEE these actionscripts?

I am using OS: Ubuntu 12.10, Browser: Firefox

1

1 Answer 1

0

What you have searched is partially true. You can actually launch ActionScript methods from JavaScript, but that requires ability to adapt ActionScript core for that purpose.

In ActionScript code you write:

ExternalInterface.addCallback("myFunction", callMe);

function callMe(name:String):String 
{ 
  return "busy signal"; 
} 

In HTML container that embedds SWF you write:

<script language="JavaScript"> 
    // callResult gets the value "busy signal" 
    var callResult = flashObject.myFunction("my name"); 
</script> 
... 
<object id="flashObject"...> 
    ... 
    <embed name="flashObject".../> 
</object>

Note that is also possible to launch JavaScript code from ActionScript.

References:

http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cb2.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.