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), the play and stop doesn’t work! It has no effect on the test.swf playing.
Why is this so?