Thanks, this work well.
However my 3d scene is directly in a swf and not coded in a class..so
the addedtoStage doesn't work if  i launch the 3dscene alone....
I really must code in class...hard way for a no-coder...
thanks

On 5 août, 22:04, Fabrice3D <[email protected]> wrote:
> add an addedtoStage listener to your swf classes before init.
>
> Fabrice
> On Aug 5, 2009, at 4:41 PM, Colir wrote:
>
>
>
> > Hello,
> > i experiement some probleme with loading swf which contain away3d
> > scene
>
> > i have 2 swf > "index.swf" which is the loader
> > "anim.swf"> wich is my away3d scene
>
> > anim.swf work alone, and i would keep this feature
>
> > my loading code is:
>
> > var loader:Loader = new Loader();
> > var request:URLRequest = new URLRequest("anim.swf");
> > loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
> > onCompleteHandler);
> > loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
> > onProgressHandler);
> > loader.load(request);
>
> > function onProgressHandler(evt:ProgressEvent):void {
> >    var charger:Number = evt.bytesLoaded / evt.bytesTotal;
> >    var pourcent:int = charger* 100;
> >    mcLoader.txtLoader.text = "CHARGEMENT : " + pourcent+ "%";
> > }
> > function onCompleteHandler(evt:Event):void{
> >    loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,
> > onProgressHandler);
> >    addChild(evt.target.content)
> > }
>
> > but this retunr me a TypeError: Error #1009: object null on camera3D
> > and view3D..
>
> > please help !
>
> > thanks

Reply via email to