flash + png
- Started
- Last post
- 12 Responses
- connerd
i know you can't load png's in dynamically the way you can with jpg's and swf's (using loadMovie())
but has anyone found a suitable workaround for this? i'd love to be able to load in a bunch of png's in at runtime.
thanks
- stewart0
i thought only non progressive jpg's can be loaded dynamicly in flash
- connerd0
yeah apparently.
just wondering if anyone knows any good workarounds for this..
the main issue is transparency.
- unformatted0
export as swf instead of png might be a way to go.
- connerd0
yeah i'm thinking about that.
i suppose i could just make libraries of graphics and export them as swf's to be loaded in.
its just nice to have all your gfx listed in an xml file and then read it and load them all in.
- unfittoprint0
'img2swf is a server application that converts a range of image formats to swf at runtime making it possible to dynamically load them into Flash via loadMovie.'
http://www.img2swf.com/about.htm…and I know there's a [free] PHP script out there that will put an 'swf coat' around a png/gif image to allow it to be loaded dynamically...
- unfittoprint0
I wanted to try this a while ago, I kne I had the link somewhere. So here it is:
MING - SWF output library and PHP module
http://ming.sourceforge.net/
- enobrev0
ming is pretty cool.. i remember playing with it a whiiiile ago. do you know if you can output swf's with actionscript in them with it?
- unfittoprint0
Before the possibility of dynamically loading jpeg's through Flash I came across Ming altough I never done anything more than a few tests...
I don't think you're able to insert complex code within the SWF. Latest version compiles Flash 5 actionscript:
http://ming.sourceforge.net/docs…
- enobrev0
had it bookmarked, was just a bit too lazy to find it. If I could place all my AS into an swf dynamically, I wouldn't need the flash ide anymore.
- taragee0
unfitt is no joke
- enobrev0
i recall reading somewhere that you can now use the img tag in html text fields... you wouldn't be able to call a png that way would you?
mx 04 ain't startign for me til i reboot so i couldn't test it out.
- enobrev0
just to follow up, i tried the img tag and it only works with jpgs.
I tried with jpg, gif, swf, png and bmp.