Apologies if this is my error, but it's been baffling me all day.

I'm loading a 3DS file and adding it to an array of meshes using the following code:

                        headArray = new Array();
var headMat1:BitmapFileMaterial = new BitmapFileMaterial("Assets/ B_head.png"); head1 = Max3DS.load("Assets/ben_low_head.3DS", {material:headMat1,rotationX:90});
                        head1.scale(headSize);
                        headArray.push(head1);

All good, if I add it to the stage straight away then it displays fine. If I put the addChild into a function though, so that it doesn't happen immediately, for some reason it wont display. When I debug, my variable head1 reads cubeLoader(@1015b5c1) but presumably this just references the geometry preloader. No exceptions are thrown, which made me think it is added to the stage but invisible. My first, (and second, and third...) thought was that an alpha value or coordinate was being altered somewhere else in the mean-time which made it impossible to see, but I've checked everything I can think of. Is there something I don't know about with the Max3DS loader?



Ben

Reply via email to