0

I'm new to Flash. I have created a flv player that can play videos dynamically based on a user selection in a list component. I would rather not develop the user interface in Flash. Meaning, I'd like to bag the list component. Mostly because I am not very savvy yet. Is it possible to have javascript call actionscript? I would like to invoke an actionscript function that would accept a url as a string. Is this even possible?

I am developing this using ActionScript 3 BTW.

Thanks,

Nick

2 Answers 2

5

Look into ExternalInterface
http://www.adobe.ca/livedocs/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html

Examples:
Bi-Directional Actionscript/Javascript Communication in AS3

Good luck.

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

Comments

4

Yes. Actionscript publishes available functions via the ExternalInterface class.

Take a look at this tutorial, or any other discussing ExternalInterface usage.

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.