0

I have a flash-based tutorial screen that pops up as an overlay to HTML. The overlay is being implemented through standard javascript. My question is how can I simply pass a variable from As3 so that Javascript can use it.

I basically have 3 screens within the tutorial, and on the final screen I want to pass a variable to the javascript so it can activate an additional set of commands. Any assistance would be most appreciated.

Thanks,

D

4

1 Answer 1

1

Define a function in JS (say myFunc). Call it from AS3 & pass the variable (say myVar) like this:

ExternalInterface.call("myFunc", myVar);
Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for the asssistance :)
please close question by checking the green tick, if this answer solved your probem.

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.