yes the lockW and H are placeholders, originally builded in, to avoid the nasty 1 frame delay into Flex, they are not ment to be updated. because when you set them, they actually redo the canvas, which is updated next frame, explaining why if you tween, you keep having blank screen until
tween is over.
I would use the material cliprect for this, and just do the rescale into the source.

or if its just an animation, you could consider the lightweight animatedBitmapMaterial...

Fabrice
On May 12, 2009, at 7:53 PM, EricB wrote:


-- When using a masked movieclip that animates as a MovieMaterial, I
am running into trouble smoothly resizing a Plane shape and the
texture. Using lockW and lockH worked perfectly to keep the texture
scaled correctly. On user interaction, I was looking for the movieclip
to play (which enlarges a mask) while simultaneously scaling the
Plane, for example:

function onMouseDownHandler(e:MouseEvent3D):void {
        // both the Plane and the viewable masked area of the MovieMaterial
start at 600x300
   var planeObj = e.object;
   TweenMax.to(planeObj.material, 1, {lockW:900,lockH:
450,frameLabel:"end"});
   TweenMax.to(planeObj, 1, {width:900,height:450});
}

Trying to tween lockH and lockW makes the object disappear until the
tween is over. No matter how I modified the source code I couldn't get
it to animate. Am I going about this approach all wrong, or are these
2 parameters just not meant to tween because they each are updating
the _bitmap and _renderBitmap?


-- Another effect I was toying with was the SphericalLens (awesome
addition btw). It didn't seem like the lense functions could take any
arguments, but I was wondering how to modify parameters of the lense
to change the effect. I was trying to have it pinch in instead of
bloat out. I tried modifying the lense code but I just couldn't get it
right.

If anyone has some suggestions I'd appreciate it.

Reply via email to