Ultrashock Forums > Flash > Flash Newbie
flvplayback load error
Member Blogs
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
flvplayback load error
Old 2008-07-08 Last edited by circa__1983 : 2008-07-08 at 15:04.

Hi sorry am still quite new to all of this.
I am using an instance of the FLVplayback component with the instance name of movPlayer, the movie it is set to play is quite large and I only want to load it once it is needed (I have also set the movie to download entirely before it can be played). To do this I have created a function called loadTrigger:

Here is my code:

Code:
function loadTrigger():void {
	movPlayer.autoPlay = false;
	movPlayer.source = "media/movie1.mov.flv";
	movPlayer.load(movPlayer.source);
	movPreview.movPreLoader.visible = true;
	movPreview.movPreLoader.alpha = 1;
	movPreview.movPreLoader.loaderAnim.play();

	//MOVIE PLAYBACK
	movPreview.movPlayBtn.addEventListener(MouseEvent.CLICK, playMovie);
	movPlayer.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, hideMovPreview);
	movPlayer.addEventListener(VideoEvent.COMPLETE, showMovPreview);

	//MOVIE LOAD
	movPlayer.addEventListener(ProgressEvent.PROGRESS, progressHandler);
	movPlayer.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
	
	trace("movie1 Load Trigger OK!");
}
This generates the following error:

VideoError: 1000: Unable to make connection to server or to find FLV on server
This is the section of code I am having trouble with:

movPlayer.source = "media/movie1.mov.flv";
movPlayer.load(movPlayer.source);
I know the movie file is definitely there, if I set the FLVplayback component to autoload, then everything works fine. But as I said I only want to load the movie when and if it is required due to it's size.

Any help with this code would be great, thank you for your time.
postbit arrow 1 comment | 259 views postbit arrow Reply: with Quote   
circa__1983
Registered User
circa__1983 is offline
seperator
Posts: 21
2008-04-16
circa__1983 lives in United Kingdom
seperator

Ultrashock Member Comments:
taniss taniss is offline taniss lives in Argentina 3 Hours Ago #2 Old  
extension
Are you sure it has nothing to do with the ".mov.flv" extension for the file ?
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: