Ooops, Sry Beatrix..
I meant @Ben.
(hit reply to the wrong post)
But to make the point, you can load a png with your image cut out like
with photoshop.
Then take a blank png the size you need the dimensions at, combine the
two with PHP imagecreatealpha
then insert that in your game dynamically. No embedding necessary for
this approach.
I have a script I made that does just this. Thats why I made the
suggestion.
I was making a shopping cart for a flash site and had a lot of images
that were PNGs of product shots
but they were all different sizes. So i created this script to load
the image, then load the blank png
then size it to the size I needed then send it on to flash. While
keeping the original transparency.
Sry if this is not what you needed and I miss understood.
Best,
Karl
On Feb 12, 2012, at 8:01 AM, Beatrix Krümmer-Frau wrote:
Thanks Karl (-:
thats another great idea - but it wasn't my problem (-: Only a
suggestion.
Am 12.02.2012 13:03, schrieb Karl DeSaulniers:
Hi Beatrix,
Can you call a php page while creating your images?
You could try creating the transparent PNGs with php.
Then load them in your game.
I believe it will create a small enough file for you.
Just a thought.
Best,
Karl
On Feb 11, 2012, at 6:09 PM, Beatrix Krümmer-Frau wrote:
But that doesn't work when you need great images for games - like
walkcicles - and load them, instead of embedding them into flash!!
Beatrix
Am 12.02.2012 01:00, schrieb Kevin Newman:
If you have access to Flash Pro, you can import a PNG-32 into the
library, and use the Flash to apply the JPEG compression. Flash
will retain the alpha mask.
There may be other programs that can output a jpeg with an alpha
channel in a swf format like that, but I can't think of any off
the top of my head.
Kevin N.
On 2/11/2012 12:43 AM, Ben Sand wrote:
This blog shows how to combine a jpeg with a png alpha mask to
get file
sizes down, but it is for HTML5, although they were able to use
a flash
converter successfully:
http://blog.jackadam.net/2010/alpha-jpegs/
_______________________________________________
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
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
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
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders