View Full Version : javascript into actionscript

11-27-2005, 05:33 PM
Hi all,

I read some threads about how to insert a javascript into actionscript
and I can't realy find a solution.

anybody could be so kind to show me how to insert the script below into a .SWF actionscript

<script language="javascript" src="scripts/player.js"></script>

<a href="javascript:player('player.php',500,560,'menubar=no,scrollbars=no,statusbar=no')">
<img src="player.gif" width="299" height="184" border="0"></a>

thanks for your help.

12-06-2005, 09:29 PM
maybe have it render it as html (i think is like "textHTML" something or other like that), then put your code in the render as html part of the actionscript

btw you should put the forum's code status around code like that so it doesnt turn stuff into smileys