« Papervision3D: Gett... Flash Player 9 upda... »

PV3D Previewer v1.1 (now works on MacOS too)

Jun 13th, 2007

While on holidays I woke up inspired one morning and having my ibook with me I decided to find the bug that made the pv3d previewer stop working on macOS. After a bit of testings here and there I found out that under macOS, the type parameter of a fileReference returns always undefined (while in Windows returns '.ASE', or '.DAE'...)

So in a couple of minutes I had a quick workaround for that:

function getFileType(file:String)
{
    _file = file.split('.');
    return '.'+_file[_file.length-1];
}

As simple as that... so now, with some minor amends, I've updated the little page and the 1.1 is out.



http://mrdoob.com/tools/pv3d_previewer/

#permalink

Share:
Digg! ~ del.icio.us ~ Stumble ~ Furl ~ Reddit
Webs / Print / Logos... everything I do will be listed here.



If you're looking for my Actionscript experiments, here you have: