Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-29-2005, 04:44 PM   #1
tsniff
Registered User
 
Join Date: Sep 2005
Posts: 12
Default capturing errors on contentpath?

I have a MediaPlayback in my swf. It loads several flv files sequentially. I've noticed that for some reason it might not load one of the movies and move onto the next.

I assume it is just not connecting to the flv file on the server. Is there anyway to check for error after I call contentpath to see if there is an error loading the video? if so, I can tell it to try again.
tsniff is offline   Reply With Quote
Old 12-29-2005, 06:12 PM   #2
Navarone
Don
 
Navarone's Avatar
 
Join Date: Feb 2003
Location: Akron, Ohio USA
Posts: 2,077
Default

hmm... there is a listner object you could use, something like this:
ActionScript Code:
_root.stop(); _root.display.stop(); _root.display.autoPlay = true; _root.display.activePlayControl = true; _root.display.controllerPolicy = 'on'; _root.display.setMedia("videos/video1.flv", "FLV"); _root.display.play(0); _root.myController.volume = 100; ////////////////////////////////////// var myListener = new Object(); myListener.complete = function(eventObject) {     trace("one - media is Finished");     _root.myController.enabled = false;     _root.gotoAndPlay(2); }; _root.display.addEventListener("complete", myListener);

or you might try setting the media to nothing:

ActionScript Code:
_root.display.setMedia("", "");
__________________
Damn the torpedoes! Full speed ahead.
Navarone is offline   Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
lots of errors with DataSet, didn't modify the code at all... mmm..pi..3.14.. ActionScript 2.0 2 12-15-2005 07:08 PM
AS errors in Flash 8 Pro, works in Flash MX 2004 kweewa ActionScript 2.0 1 11-09-2005 05:05 PM
Syntax Errors for PreLoader Bar? mskittykat ActionScript 1.0 (and below) 7 05-06-2005 03:11 AM
problems with contentPath proto Components 0 02-06-2005 07:53 PM
Newsreader AS Function() errors - making me ill HotWings ActionScript 1.0 (and below) 8 08-13-2004 09:01 PM


All times are GMT. The time now is 07:52 AM.

///
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.