Did you render() after that, or are rendering only when you click W also? -Pete
On Tue, Jun 9, 2009 at 6:04 PM, FelipeSQ <[email protected]> wrote: > > Hi, > > I've just my movieMaterial autoUpdate = false, so I can save the > processor when the Application is Iddle. The thing is, as soon as I > load my MovieMaterial, I set a its movie as a Sprite full of other > Sprites apllyed to it. > > Code: > > var textureContainer:Sprite = new Sprite(); > this.movieMat = new MovieMaterial(textureContainer, > {transparent:true}); > > this.movieMat.clipRect = new Rectangle(0, 0, textureContainer.width, > textureContainer.height); > > textureContainer.addChild(this.bitmapAlvo); > textureContainer.addChild(this.bitmapAlvoLat); > textureContainer.addChild(this.bitmapAlvoLong); > > textureContainer.addChild(this.bitmapLatitude); > textureContainer.addChild(this.bitmapLongitude); > > this.movieMat.update(); > > this.globo = new Sphere({material:this.movieMat, radius:raio, > segmentsW:30, segmentsH:15}); > > As soon as I finish this, I update my movieMaterial and set it as my > Sphere material. > The thing is, my Sphere isn't shown on my first frame. But, I added an > Keyboard Listener and when I press 'w' it call the movieMaterial.update > () method again and the Sphere is shown. > > I presume my problem is because the MovieMaterial isn't ready yet when > I call the update(0 method for the first time. And I was wondering how > could I add a Listener to wait for that to happen?! > > Could someone try ang give me a hand with that?! :D > > Tranks, > Felipe -- ___________________ Actionscript 3.0 Flash 3D Graphics Engine HTTP://AWAY3D.COM
