I have two files where I use: var file:FileReference(); var jpgSource:BitmapData = new BitmapData(x,y); jpgSource.draw(sprite);
var jpgEncoder:JPGEncoder = new JPGENcoder(85); var jpgStream:ByteArray = jpgEncoder.encode(jpgSource); file.save(jpgStream, 'fileName.jpg'); it works fine in one file, but in another (both in the same directory) I get: 1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference Why would it work in one but not the other? _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders