I just started digging into the new app_template_mvc. I want to use
your code for my next project. But I just got the error below. It is
complaining when you removeChild on the progress bar. Strange. But the
progress bar is sitting on the stage...
[Model] changed "config" to [object Config]
[HTTPRequest] (http://api.flickr.com/services/feeds/photoset.gne?
&lang=en-us&format=rss_200&nsid=49856977@N00&set=72157594379477350)
Complete
ArgumentError: Error #2025: The supplied DisplayObject must be a child
of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at com.bumpslide.preloader::PreloaderApp/doHidePreloaderAndContinue()
at com.bumpslide.preloader::PreloaderApp/continueToMainSwf()
at com.bumpslide.preloader::PreloaderApp/handleStartupComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at myapp::AppRoot/handleStartupComplete()
at Function/http://adobe.com/AS3/2006/builtin::call()
at com.bumpslide.command::CommandEvent/result()
at com.bumpslide.command::CommandQueue/finish()
at com.bumpslide.command::CommandQueue/handleCommandComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.bumpslide.command::Command/notifyComplete()
at com.bumpslide.command::ServiceCall/result()
at myapp.commands::LoadFlickrSet/result()
at com.bumpslide.net::AbstractRequest/finishCompletedRequest()
at com.bumpslide.net::HTTPRequest/handleCompleteEvent()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
[Model] changed "titleHtml" to <a...
[Model] changed "images" to Array(18) : [FlickrImage] ,[FlickrImage] ,
[FlickrImage]...
/ben
/ben
protected function doHidePreloaderAndContinue( e:Event=null) :
void {
// kill the progress bar
progressbar_mc.reset();
progressbar_mc.hide();
if (contains(progressbar_mc)) removeChild( progressbar_mc );
if(!contains(loader.content)) addChild( loader.content );
stage.removeEventListener(Event.RESIZE, onStageResize);
--
--
Bumpslide Mailing List
http://groups.google.com/group/bumpslide
To post to this group, send email to bump...@googlegroups.com
To unsubscribe from this group, send email to
bumpslide+...@googlegroups.com