My code
CODE
var skin:Skin;
_root.createEmptyMovieClip("imageholder", _root.getNextHighestDepth());
loadMovie("texture.jpg", "imageholder");
// Set transparent to hide the imageholder on the Stage
_root.imageholder._alpha = 0;
var texture:BitmapData = new BitmapData( _root.imageholder._width, _root.imageholder._height);
texture.draw( _root.imageholder );
skin = new TextureSkin( texture );
//skin = new MixedSkin( 0x00FF00, 100, 0, 100, 1 ); // With this the model displays fine
skin.setLightingEnable( true );
_o.setSkin( skin );
_o.enableBackFaceCulling = true;
If I don't set imageholder's alpha to 0 I can see the image in the movieclip, so it loads fine. This is a modification of the Asetest code by the way, but I want to load an external texture. What am I doing wrong?
Thanks in advance