Re: [Flashcoders] (no subject)
John Goodman skriver: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders I agree. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] (no subject)
i'm on the fence On 21 October 2010 09:41, Henrik Andersson he...@henke37.cjb.net wrote: John Goodman skriver: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders I agree. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] FileReference
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
Re: [Flashcoders] FileReference
don't, but given your example I /think/ that's logical: var file:FileReference(); - this is not instanciation var file:FileReference = new FileReference() should be better and by doing such you shoudn't see the error message 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FileReference
sorry - error in transmition - I do have it correctly in my file... just wrote it wrong in the email... From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cédric Muller [flashco...@benga.li] Sent: Thursday, October 21, 2010 8:55 AM To: Flash Coders List Subject: Re: [Flashcoders] FileReference don't, but given your example I /think/ that's logical: var file:FileReference(); - this is not instanciation var file:FileReference = new FileReference() should be better and by doing such you shoudn't see the error message 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] (no subject)
Wow, I had no idea such hot-button political topics would be discussed on this list! .m On Thu, Oct 21, 2010 at 4:59 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: i'm on the fence On 21 October 2010 09:41, Henrik Andersson he...@henke37.cjb.net wrote: John Goodman skriver: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders I agree. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FileReference
Lehr, Theodore skriver: 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? Because only one of them targets FP 10 where the method was added. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FileReference
Yes! A publish setting indeed! Thanks! From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson [he...@henke37.cjb.net] Sent: Thursday, October 21, 2010 10:40 AM To: Flash Coders List Subject: Re: [Flashcoders] FileReference Lehr, Theodore skriver: 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? Because only one of them targets FP 10 where the method was added. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders