# Call javascript from multiple swf layers

**URL:** https://forum.kirupa.com/t/call-javascript-from-multiple-swf-layers/116569
**Category:** Uncategorized
**Created:** [July 19, 2004, 4:56pm UTC](https://forum.kirupa.com/t/call-javascript-from-multiple-swf-layers/116569 "2004-07-19T16:56:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![razorboy](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@razorboy](https://forum.kirupa.com/u/razorboy)
#### Post date: [July 19, 2004, 4:56pm UTC](https://forum.kirupa.com/t/call-javascript-from-multiple-swf-layers/116569/1 "2004-07-19T16:56:19Z")

</div>

I’m spent…  
Anyone have any suggestions on linking to a javascript file from various swf files which get loaded individualy into a layer (flash 5.)

I can call the javascript into the initial layer and it works fine but once I call the animation into the second layer the javascript link does’nt work.

[http://www.michael-thomas.com/tech/flash/examples/ex\_flashcalljs.html](http://www.michael-thomas.com/tech/flash/examples/ex_flashcalljs.html)
