Embed javascript commands in flash

SchMoke
SchMoke used Ask the Experts™
on
Is there a way to embed this into a flash document?

<script language="javascript" type="text/javascript" src="http://cast1.serverroom.us/system/streaminfo.js"></script>
<script language="javascript" type="text/javascript" src="http://cast1.serverroom.us/js.php/olaolaola/streaminfo/rnd0"></script>
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Nope...  That's not possible...

CyanBlue
Top Expert 2009
Commented:
Just a question. Why would you want to do this?

Author

Commented:
I have a function that needs this in itin order to work
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Commented:
No, you cannot include another JS file from the function that you run from Flash...  You basically need to have something that's standalone...

CyanBlue

Author

Commented:
Ok thanks.  i will try to figure this out
Top Expert 2009

Commented:
If the function is some Math or something, you might want to try converting it to Actionscript. Otherwise, there is really no reason to incldue JS in Actionscript.

If you are trying to something in Javascript that's not available in Actionscript, then it's not possible. Just embed the page with javascript together with the flash file, use ExternalInterface to then communicate with the browser so you can use Javascript.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial