Hi there,

I meet a problem with my Away3D scene...

I have a gallery with 3D Thumbs, which have a bitmapFileMaterial (low
jpg). For the moment, i have only 2 different JPG, a green one fore
directories, and a red/pink for images.
When i click one, the camera zoom on it and I change the material into
a MovieMaterial...
For the moment, my MovieClip is simple : an animated ring, and has
background, i put my low image, darked by a black transparent shape...
When i click in the exterior of my zoomed thumbs, the camera return
back, and I re-apply my low material...

My problem ? When I click on a thumbs, return back, re-click, return
back etc..., there is a decreasing of performance... I don't
understand what is wrong...
Do this test in my third level of my gallery (click the 1st thumbs in
first level, and the fourth in the 2nd level)

=> http://urfman.free.fr/fhw/ilotAbais/test_23fev2010.html

My simplified code of my thumbs3D Class ( extends Plane ) :

______________________________________________________________
public class thumbs3D extends Plane
{
        private var mapLow:BitmapFileMaterial;
        private var mapInteractive:MovieMaterial;
        private var interactiveMC:vignetteSprite;

        public function thumbs3D(_lowUrl:String, init:Object = null)
        {
                        super(init);
                        mapLow = new BitmapFileMaterial(_lowUrl);
                        this.material = mapLow;
        }

        public function activeHdMap():void
        {
                interactiveMC = new vignetteSprite();
                interactiveMC.buildMap(mapLow.bitmap,null,null);
                mapInteractive = new MovieMaterial(interactiveMC);
                mapInteractive.interactive = true;
                this.material = mapInteractive;
        }

        public function desactiveHdMap():void
         {
                this.material = mapLow;
                interactiveMC = null;
                mapInteractive = null;
        }
}
______________________________________________________________

Does the " = null" is not enough ?
Any Idea ?

Thank you.

Alexandre.

Reply via email to