Trouble with onLoadError

This is a discussion on "Trouble with onLoadError" within the Flash & Multimedia Forum section. This forum, and the thread "Trouble with onLoadError are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 2nd, 2007, 14:39
New Member
Join Date: Apr 2007
Location: New Brunswick
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Trouble with onLoadError

I'm using onLoadError, pretty much right from the Help example. I want to do nothing when a URL is not available. Instead I still get "Error opening URL ..." in the Output window. I am loading about 60 images from Web cameras. When one can't be loaded I want to ignore it. Here is the code.

HTML: Select all
var loadListener:Object = new Object();
loadListener.onLoadError = function(target_mc:MovieClip, errorCode:String, httpStatus:Number) {
//trace(">> loadListener.onLoadError()");
    //trace(">> ==========================");
    //trace(">> errorCode: " + errorCode);
    //trace(">> httpStatus: " + httpStatus);
}
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
var mc5_4:MovieClip = this.createEmptyMovieClip("mc5_4", this.getNextHighestDepth());
mcLoader.loadClip("http://213.243.80.55:8383/", mc5_4);
I think I got the code pasted in correctly. Thanks,


Darren
Reply With Quote

Reply

Tags
moviecliploader, onloaderror

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login trouble ziggi PHP Forum 2 Dec 18th, 2007 02:38
PHP Form Trouble. Pádraig PHP Forum 5 Jul 8th, 2007 09:23
Having Trouble with Formmail.php fireboat PHP Forum 2 Mar 18th, 2007 07:42
Having trouble with PHP voodoo465 PHP Forum 5 Feb 20th, 2007 21:47
CGI Trouble Maverick25r Other Programming Languages 0 Jul 31st, 2006 18:24


All times are GMT. The time now is 19:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43