just to add more information, here :) each game is embedded in a separate swf file as well.
so basically, i have my homepage that holds all the game which alternately loads the each game whenever it called upon. when a player finishes with one game, the homepage will deallocated and unloads the swf file from the memory (so what i've thought anyway : ( ) and loads another game to the homepage, once the load is completed i called the alloc method which ultimately just initiating the usual prefab's BSP loading process. On Oct 5, 2:25 pm, bebensiganteng <bebensigant...@gmail.com> wrote: > oh i'm sooo happy you've replied Fabrice :) > > please find my classes below > > http://dl.dropbox.com/u/604317/Away3DViews_Games.zip > > each class represents the individual game, basically i used what > prefab had generated and tweaked a bit > > On Oct 5, 12:53 pm, Fabrice3D <fabric...@gmail.com> wrote: > > > Can you show your loading code? > > > Fabrice > > > On Oct 5, 2010, at 1:30 AM, bebensiganteng wrote: > > > > hi team, > > > > i desperately need help here :( > > > > i have a game that needs to load different BSP environment > > > > for example: > > > > - first level it will load first BSP environment > > > - second level will play a 2D game > > > - third level it will load another BSP environment again > > > > now the first load always a success but the second load it always > > > shows this error: > > > > TypeError: Error #1034: Type Coercion failed: cannot convert > > > away3d.graphs.bsp::bspn...@3b362471 to away3d.graphs.bsp.BSPNode. > > > at Vector$object/http://adobe.com/AS3/2006/builtin::push() > > > at away3d.loaders::AWData/buildBSPLeaf() > > > at away3d.loaders::AWData/prepareData() > > > at away3d.loaders::AbstractParser/parseGeometry() > > > at away3d.loaders::Loader3D/loadTextures() > > > at away3d.loaders::Loader3D$/parse() > > > at away3d.loaders::AWData$/parse() > > > at com.persia.flyingcarpet.views::Away3DViews/initAway3D() > > > at com.persia.flyingcarpet.views::Away3DViews/init3D() > > > at com.persia.flyingcarpet.views::MainViews/transitionInComplete() > > > at Function/http://adobe.com/AS3/2006/builtin::apply() > > > at com.greensock.core::TweenCore/complete() > > > at com.greensock::TweenLite/renderTime() > > > at com.greensock.core::SimpleTimeline/renderTime() > > > at com.greensock::TweenLite$/updateAll() > > > TypeError: Error #1009: Cannot access a property or method of a null > > > object reference. > > > at away3d.loaders::Loader3D/notifySuccess() > > > at away3d.loaders::Loader3D/notifyMaterialLibrary() > > > at away3d.loaders::Loader3D/onParserComplete() > > > at flash.events::EventDispatcher/dispatchEventFunction() > > > at flash.events::EventDispatcher/dispatchEvent() > > > at away3d.loaders::AbstractParser/notifySuccess() > > > at away3d.loaders::AbstractParser/parseNext() > > > at away3d.loaders::AbstractParser/update() > > > > i don't know how to properly unload a BSP environment so if one is > > > finish i just removed the EnterFrame event and KeyboarEvent and that's > > > it x( > > > > can somebody help me pleaseeeeeee...