You're welcome :)
I think the problem in your case is that it fails because you have 1 frame delay. I think your mc is there one frame too late.
Its not inherent to your code, but the way the system works.
So the lock prevent this by reserving a "parking place" for your mc. And allows to have fixed size as well.

Btw, thx for the indepth help on your past mail.
That's what I call a usergroup!!

Fabrice
On Sep 1, 2008, at 10:16 AM, Jensa wrote:


Ohh! Thanks Fabrice! This just sooo saved me!
I kept getting this error when using a MovieClip as texture:

ArgumentError: Error #2015: Invalid BitmapData.
        at flash.display::BitmapData()
        at away3d.materials::MovieMaterial()[/Users/jensa/Documents/Flex
Builder 3/Away3D_src/away3d/materials/MovieMaterial.as:128]
        at Fredrikstadnett()[/Users/jensa/Documents/Flex Builder 3/
Fredrikstadnett/Fredrikstadnett.as:57]

This will fail:
var metro:MovieMaterial = new MovieMaterial(new metroMC(),
{smooth:true});

This will work as it should:
var metro:MovieMaterial = new MovieMaterial(new metroMC(),
{smooth:true, lockW:1024, lockH:768});

Briliant!

J

Reply via email to