Error in app_template_mvc

1 view
Skip to first unread message

Ben McMaster

unread,
Feb 18, 2010, 6:34:57 PM2/18/10
to bumpslide
Hey David,

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 McMaster

unread,
Feb 18, 2010, 6:58:44 PM2/18/10
to bumpslide
It seems that continueToMainSwf is called twice from handleSwfInit and
handleStartupComplete... Not sure why... But I just duct taped it with
an if(contains(progressbar_mc)).

/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);

David Knape

unread,
Feb 19, 2010, 5:24:19 PM2/19/10
to bump...@googlegroups.com
Strange.  I don't see this in the trunk version.  I guess it's time to rebuild my zips.  

Thanks.

-dk

--
David Knape
Programmer / Consultant


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

Ben McMaster

unread,
Feb 19, 2010, 7:00:19 PM2/19/10
to bump...@googlegroups.com
That code came via subclipse from your trunkk

Ben McMaster
Reply all
Reply to author
Forward
0 new messages