RE: [Flashcoders] Publish transparent .gif file in AS3

2009-12-14 Thread David Hunter

option 3 is easy. i don't know any php but have written little scripts that 
handle that sort of thing. check the php online documentation. in fact example 
#2 for imagegif function is exactly what juan suggests:
http://uk3.php.net/manual/en/function.imagegif.php

> Date: Mon, 14 Dec 2009 23:39:10 -0300
> Subject: Re: [Flashcoders] Publish transparent .gif file in AS3
> From: califa010.flashcod...@gmail.com
> To: flashcoders@chattyfig.figleaf.com
> 
> I'm not aware of any GIF encoders written in Actionscript.
> 
> If you absolutely need to use GIF (and nobody has yet written an encoder in
> AS), I only see 3 options:
> 
> 1) Get the GIF spec and write the encoder from scratch.
> 2) Find some open source encoder in other language (like Java) and port it
> to Actionscript.
> 3) As it was already suggested, use the PNGEncoder in as3corelib, send the
> encoded image to the server and have the server re-encode it to GIF. In php,
> using the GD library, re-encoding should be only a couple of lines.
> 
> 1) is the hardest, and it's probably not worth the hassle. 2) is close to 1)
> in many ways. 3) is the most reasonable option, I think. Unless you
> absolutely need to do everything client side.
> 
> Cheers
> Juan Pablo Califano
> 
> 2009/12/11 Sumeet Kumar 
> 
> > Thanks for your replies.
> > I got lot of links using which i can publish jpeg and png images, but
> > nothing for gifCan you please send me some link in reference to this.
> >
> > Thanks again.
> > Sumeet Kumar
> > - Original Message ----- From: "David Hunter" <
> > davehunte...@hotmail.com>
> >
> > To: 
> > Sent: Thursday, December 10, 2009 10:18 PM
> > Subject: RE: [Flashcoders] Publish transparent .gif file in AS3
> >
> >
> >
> >
> > thanks. all the more reason to upgrade!
> >
> >  Date: Thu, 10 Dec 2009 17:35:08 +0100
> >> From: he...@henke37.cjb.net
> >> To: flashcoders@chattyfig.figleaf.com
> >> Subject: Re: [Flashcoders] Publish transparent .gif file in AS3
> >>
> >> David Hunter wrote:
> >> >
> >> > hi Hendrik, are you on CS4? i'm still on CS3. the >
> >> FileReference.download() method allows for URLRequests not bytearrays. > in
> >> CS4 there is a save() method which allows you to pass bytearrays. is > that
> >> what you mean or am i missing a trick with download() and > URLRequest? it
> >> states that i can't use a bytearray datatype for > URLRequest.data with
> >> download().
> >> > thanks.
> >> >
> >>
> >> Good catch, of course I meant the save method.
> >> ___
> >> Flashcoders mailing list
> >> Flashcoders@chattyfig.figleaf.com
> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >
> > _
> > Use Hotmail to send and receive mail from your different email accounts
> >
> > http://clk.atdmt.com/UKM/go/186394592/direct/01/___
> > 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
  
_
View your other email accounts from your Hotmail inbox. Add them now.
http://clk.atdmt.com/UKM/go/186394592/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Publish transparent .gif file in AS3

2009-12-14 Thread Juan Pablo Califano
I'm not aware of any GIF encoders written in Actionscript.

If you absolutely need to use GIF (and nobody has yet written an encoder in
AS), I only see 3 options:

1) Get the GIF spec and write the encoder from scratch.
2) Find some open source encoder in other language (like Java) and port it
to Actionscript.
3) As it was already suggested, use the PNGEncoder in as3corelib, send the
encoded image to the server and have the server re-encode it to GIF. In php,
using the GD library, re-encoding should be only a couple of lines.

1) is the hardest, and it's probably not worth the hassle. 2) is close to 1)
in many ways. 3) is the most reasonable option, I think. Unless you
absolutely need to do everything client side.

Cheers
Juan Pablo Califano

2009/12/11 Sumeet Kumar 

> Thanks for your replies.
> I got lot of links using which i can publish jpeg and png images, but
> nothing for gifCan you please send me some link in reference to this.
>
> Thanks again.
> Sumeet Kumar
> - Original Message - From: "David Hunter" <
> davehunte...@hotmail.com>
>
> To: 
> Sent: Thursday, December 10, 2009 10:18 PM
> Subject: RE: [Flashcoders] Publish transparent .gif file in AS3
>
>
>
>
> thanks. all the more reason to upgrade!
>
>  Date: Thu, 10 Dec 2009 17:35:08 +0100
>> From: he...@henke37.cjb.net
>> To: flashcoders@chattyfig.figleaf.com
>> Subject: Re: [Flashcoders] Publish transparent .gif file in AS3
>>
>> David Hunter wrote:
>> >
>> > hi Hendrik, are you on CS4? i'm still on CS3. the >
>> FileReference.download() method allows for URLRequests not bytearrays. > in
>> CS4 there is a save() method which allows you to pass bytearrays. is > that
>> what you mean or am i missing a trick with download() and > URLRequest? it
>> states that i can't use a bytearray datatype for > URLRequest.data with
>> download().
>> > thanks.
>> >
>>
>> Good catch, of course I meant the save method.
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
> _
> Use Hotmail to send and receive mail from your different email accounts
>
> http://clk.atdmt.com/UKM/go/186394592/direct/01/___
> 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] Publish transparent .gif file in AS3

2009-12-10 Thread Sumeet Kumar

Thanks for your replies.
I got lot of links using which i can publish jpeg and png images, but 
nothing for gifCan you please send me some link in reference to this.


Thanks again.
Sumeet Kumar
- Original Message - 
From: "David Hunter" 

To: 
Sent: Thursday, December 10, 2009 10:18 PM
Subject: RE: [Flashcoders] Publish transparent .gif file in AS3



thanks. all the more reason to upgrade!


Date: Thu, 10 Dec 2009 17:35:08 +0100
From: he...@henke37.cjb.net
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Publish transparent .gif file in AS3

David Hunter wrote:
>
> hi Hendrik, are you on CS4? i'm still on CS3. the 
> FileReference.download() method allows for URLRequests not bytearrays. 
> in CS4 there is a save() method which allows you to pass bytearrays. is 
> that what you mean or am i missing a trick with download() and 
> URLRequest? it states that i can't use a bytearray datatype for 
> URLRequest.data with download().

> thanks.
>

Good catch, of course I meant the save method.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/___
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] Publish transparent .gif file in AS3

2009-12-10 Thread David Hunter

thanks. all the more reason to upgrade!

> Date: Thu, 10 Dec 2009 17:35:08 +0100
> From: he...@henke37.cjb.net
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Publish transparent .gif file in AS3
> 
> David Hunter wrote:
> >
> > hi Hendrik, are you on CS4? i'm still on CS3. the FileReference.download() 
> > method allows for URLRequests not bytearrays. in CS4 there is a save() 
> > method which allows you to pass bytearrays. is that what you mean or am i 
> > missing a trick with download() and URLRequest? it states that i can't use 
> > a bytearray datatype for URLRequest.data with download().
> > thanks.
> >
> 
> Good catch, of course I meant the save method.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Publish transparent .gif file in AS3

2009-12-10 Thread David Hunter

hi Hendrik, are you on CS4? i'm still on CS3. the FileReference.download() 
method allows for URLRequests not bytearrays. in CS4 there is a save() method 
which allows you to pass bytearrays. is that what you mean or am i missing a 
trick with download() and URLRequest? it states that i can't use a bytearray 
datatype for URLRequest.data with download().
thanks.

> Date: Thu, 10 Dec 2009 12:10:37 +0100
> From: he...@henke37.cjb.net
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Publish transparent .gif file in AS3
> 
> David Hunter wrote:
> >
> > Henrik, good shout mentioning that library. i've used it before but does it 
> > produce an _actual_ image or just a byte array that then requires some 
> > other script to write that as a file to a server or for download etc? 
> > forgive me, i've only played with the library once.
> > thanks
> >
> 
> It gives you a bytearray that you can do anything with, pass it to 
> FileRefference.download, Loader.loadBytes or just send it in a http 
> request. It is up to you what you want to do with it.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy
http://clk.atdmt.com/UKM/go/186394592/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Publish transparent .gif file in AS3

2009-12-10 Thread Henrik Andersson

David Hunter wrote:


hi Hendrik, are you on CS4? i'm still on CS3. the FileReference.download() 
method allows for URLRequests not bytearrays. in CS4 there is a save() method 
which allows you to pass bytearrays. is that what you mean or am i missing a 
trick with download() and URLRequest? it states that i can't use a bytearray 
datatype for URLRequest.data with download().
thanks.



Good catch, of course I meant the save method.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Publish transparent .gif file in AS3

2009-12-10 Thread David Hunter

thanks Henrik, i'm going to do some experiments.

> Date: Thu, 10 Dec 2009 12:10:37 +0100
> From: he...@henke37.cjb.net
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Publish transparent .gif file in AS3
> 
> David Hunter wrote:
> >
> > Henrik, good shout mentioning that library. i've used it before but does it 
> > produce an _actual_ image or just a byte array that then requires some 
> > other script to write that as a file to a server or for download etc? 
> > forgive me, i've only played with the library once.
> > thanks
> >
> 
> It gives you a bytearray that you can do anything with, pass it to 
> FileRefference.download, Loader.loadBytes or just send it in a http 
> request. It is up to you what you want to do with it.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Publish transparent .gif file in AS3

2009-12-10 Thread Henrik Andersson

David Hunter wrote:


Henrik, good shout mentioning that library. i've used it before but does it 
produce an _actual_ image or just a byte array that then requires some other 
script to write that as a file to a server or for download etc? forgive me, 
i've only played with the library once.
thanks



It gives you a bytearray that you can do anything with, pass it to 
FileRefference.download, Loader.loadBytes or just send it in a http 
request. It is up to you what you want to do with it.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Publish transparent .gif file in AS3

2009-12-10 Thread David Hunter

Henrik, good shout mentioning that library. i've used it before but does it 
produce an _actual_ image or just a byte array that then requires some other 
script to write that as a file to a server or for download etc? forgive me, 
i've only played with the library once.
thanks

> Date: Thu, 10 Dec 2009 11:40:48 +0100
> From: he...@henke37.cjb.net
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Publish transparent .gif file in AS3
> 
> Sumeet Kumar wrote:
> > Hi All,
> >
> > Is there any way by which i can publish the image in as3?
> 
> Check out the as3corelib library, it is from Adobe, open source and has 
> some imageformat encoders. It has jpeg encoding and png encoding among 
> other formats. I am not sure about gif, but png is better anyway.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy
http://clk.atdmt.com/UKM/go/186394592/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Publish transparent .gif file in AS3

2009-12-10 Thread Henrik Andersson

Sumeet Kumar wrote:

Hi All,

Is there any way by which i can publish the image in as3?


Check out the as3corelib library, it is from Adobe, open source and has 
some imageformat encoders. It has jpeg encoding and png encoding among 
other formats. I am not sure about gif, but png is better anyway.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Publish transparent .gif file in AS3

2009-12-10 Thread David Hunter

i think you'll need a server-side script like php to do that. google it, there 
should be plenty of examples.
best, david.

> From: sume...@sebiz.net
> To: flashcoders@chattyfig.figleaf.com
> Date: Thu, 10 Dec 2009 11:48:10 +0530
> Subject: [Flashcoders] Publish transparent .gif file in AS3
> 
> Hi All,
> 
> In one of my project, i need to output a transparent .gif image from my flash 
> application. I am using flash player 9. Is there any way by which i can 
> publish the image in as3?
> Any suggestion or help in this regard would be a great help
> 
> Thanks in Advance.
> 
> Regards
> Sumeet Kumar
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Publish transparent .gif file in AS3

2009-12-09 Thread Sumeet Kumar
Hi All,

In one of my project, i need to output a transparent .gif image from my flash 
application. I am using flash player 9. Is there any way by which i can publish 
the image in as3?
Any suggestion or help in this regard would be a great help

Thanks in Advance.

Regards
Sumeet Kumar

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders