Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 11-11-2004, 10:54 AM   #1
bjory
Registered User
 
Join Date: Sep 2004
Posts: 29
Default Playing and Stopping Movie in Server

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\\test.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\\test.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?

Last edited by bjory; 11-11-2004 at 11:02 AM.
bjory is offline   Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:44 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.