# Flash CS5 AS2 - External SWF's not opening on server

**URL:** <https://forum.kirupa.com/t/flash-cs5-as2-external-swfs-not-opening-on-server/328852>\
**Category:** Uncategorized\
**Created:** [June 24, 2012, 8:16pm UTC](https://forum.kirupa.com/t/flash-cs5-as2-external-swfs-not-opening-on-server/328852 "2012-06-24T20:16:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karan\_karan128](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@karan\_karan128](https://forum.kirupa.com/u/karan_karan128)\
**Post date:** [June 24, 2012, 8:16pm UTC](https://forum.kirupa.com/t/flash-cs5-as2-external-swfs-not-opening-on-server/328852/1 "2012-06-24T20:16:41Z")

</div>

I developed a website based on this Kirupa tutorial (Flash CS5 Actionscript 2.0)  
[http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.linkedin.com/redirect?url=http%3A%2F%2Fwww%2Ekirupa%2Ecom%2Fdeveloper%2Fmx2004%2Ftransitions%2Ehtm&urlhash=EyUQ&_t=tracking_anet)

Now, when I publish the file from flash it opens the main index file but not the subsequent external swf files…what do i need to change in my code to make the external swf’s work?

(Here’s the link to the page:[http://amrittesting.co.nf/](http://www.linkedin.com/redirect?url=http%3A%2F%2Famrittesting%2Eco%2Enf%2F&urlhash=bsRk&_t=tracking_anet))

//CODE to play the home.swf when the file is opened…  
\_root.currMovie = “home”;  
container.loadMovie(\_root.currMovie+".swf");

//This is the code on each button…

on (release) {

if (\_root.currMovie == undefined) {

\_root.currMovie = “the school”;  
container.loadMovie(“the school.swf”);  
} else if (\_root.currMovie != “the school”) {  
if (container.\_currentframe \>= container.midframe) {

\_root.currMovie = “the school”;  
container.play();

}

}

}

I’ve been trying non-stop for days now…would really appreciate any help…
