# Playing and Stopping Movie in Server

**URL:** <https://forum.kirupa.com/t/playing-and-stopping-movie-in-server/70187>\
**Category:** flash\
**Created:** [November 11, 2004, 11:56am UTC](https://forum.kirupa.com/t/playing-and-stopping-movie-in-server/70187 "2004-11-11T11:56:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjory](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bjory](https://forum.kirupa.com/u/bjory)\
**Post date:** [November 11, 2004, 11:56am UTC](https://forum.kirupa.com/t/playing-and-stopping-movie-in-server/70187/1 "2004-11-11T11:56:48Z")

</div>

Hi, I had a server machine running some Flash files.

One of the files (PlayMovie.swf) actually plays another swf file from the local computer. Meaning I need to have this file (test.swf) in my local drive and what the PlayMovie.swf does is to loadMovie(“C:\Video\ est.swf”)

On PlayMovie.swf, I have 2 buttons to control the playback. stopBtn and playBtn.

As I want to control the size of the video size in PlayMovie.swf, I used createEmptyMovieClip to create an empty movieclip and load the swf into the movieclip.

Heres the codes:

\_root.createEmptyMovieClip(“videoHolder1”, 10);  
\_root.videoHolder1.loadMovie(“C:\Video\ est.swf”);  
\_root.videoHolder1.\_x = 22.7;  
\_root.videoHolder1.\_y = 65;  
\_root.onEnterFrame = function()  
{  
if(\_root.videoHolder1.\_width \> 1)  
{  
\_root.videoHolder1.\_width = 300;  
\_root.videoHolder1.\_height = 200;  
delete \_root.onEnterFrame;  
}

}  
stopBtn.onRelease = function(){  
\_root.videoHolder1.stop();  
}

playBtn.onRelease = function(){  
\_root.videoHolder1.play();  
}

What happens is when I run the swf (double click on the file) on the server, the play and stop does work.

But when I open up my browser and surf to my server IP address (say [http://myserver//PlayMovie.swf](http://myserver//PlayMovie.swf)), the play and stop doesn’t work! It has no effect on the test.swf playing.

Why is this so?
