PDA

View Full Version : adding javascript into flash!!


newbie1
09-25-2008, 04:21 PM
I't may be a dumb question but how exactly do you put javascript into flash (that's if you can)

here's my script:

<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=4047091;
var sc_invisible=0;
var sc_partition=47;
var sc_click_stat=1;
var sc_security="add56e53";
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><div class="statcounter"><a title="site stats" href="http://www.statcounter.com/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/4047091/0/add56e53/0/" alt="site stats" ></a></div></noscript>
<!-- End of StatCounter Code -->


thanks,
phil

atomic
09-25-2008, 04:34 PM
Usually, you would use ExternalInterface to call the js in your .html...

http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002200.html

http://blog.deconcept.com/2005/08/16/external-interface/