Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-27-2004, 05:45 PM   #1
karmakat
Registered User
 
Join Date: Mar 2004
Posts: 19
Default Insert PNG into SWF / PNG to SWF Conversion serverside

Hi all....

I want to hear peoples opinions and experience with Inserting a PNG into SWF or PNG conversion to SWF

There seems to be some major disparities on what people think about the methodology and even possibility of this on a unix system, serverside.

I have put many many hours googling this, and have found much conflicting info... I am still not convinced this is impossible....

Ming somehow requires you to convert pngs to the dbl format before it can do a server side conversion...
Except.... there are no server side functions to do this!!

Flash can't dynamically load pngs... what a stupid omission...

I have seen this (png inserted into swf) being done, however...

on http://charas-project.net

after you create your character, you can view a flash preview...

this is where they do it... i think... i have asked them on their forums.. but no answer as of yet...
great site btw...


Look forward to hearing your guys responses!

- Aleks AKA KarmaKat
karmakat is offline   Reply With Quote
Old 08-27-2004, 05:48 PM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,008
Default

Howdy and Welcome...

[COPY]
What about using a tool like this to convert the PNG files to SWF files???

http://www.quiss.org/swftools/png2swf.html
http://www.active-web.cc/html/png2swf/
[/PASTE]
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 08-27-2004, 07:45 PM   #3
petefs
Fried Onions
 
petefs's Avatar
 
Join Date: Apr 2004
Location: Chicago, IL
Posts: 1,328
Send a message via AIM to petefs Send a message via MSN to petefs Send a message via Yahoo to petefs
Default

the tool on active-web.cc will only work in windows, but the quiss.org swftools run on linux -- good call, Cyan : )

I know I've seen a linux png2dbl util somewhere if you want to use ming to pull the dbl in. The CVS source can be found here, but I'm sure there are compiled versions somewhere http://cvs.sourceforge.net/viewcvs.p...util/png2dbl.c
petefs is offline   Reply With Quote
Old 08-30-2004, 06:50 PM   #4
karmakat
Registered User
 
Join Date: Mar 2004
Posts: 19
Default

ok...
so the quiss one is for linux/unix

how in the hell do i use this?

documentation for png2swf is not clear at all...

thanks guys!

-aleks
karmakat is offline   Reply With Quote
Old 08-31-2004, 07:35 PM   #5
petefs
Fried Onions
 
petefs's Avatar
 
Join Date: Apr 2004
Location: Chicago, IL
Posts: 1,328
Send a message via AIM to petefs Send a message via MSN to petefs Send a message via Yahoo to petefs
Default

the documentation is rather clear, I think : )

for example, if you want to convert a single png into a swf without altering width or height

ActionScript Code:
png2swf image.png
should output image.swf (haven't tried it :b)

if you want specify the filename

ActionScript Code:
png2swf -o flash_file.swf image.png

etc. if you want to import a sequence just use the -r switch to set framerate and list all the pngs in order with spaces between them

ActionScript Code:
png2swf -o png_sequence.swf -r 30 image1.png image2.png image3.png image4.png etc...

which will do a movie at 30 fps.
petefs is offline   Reply With Quote
Old 09-01-2004, 12:39 PM   #6
JerryScript
Registered User
 
Join Date: Aug 2002
Location: Las Vegas
Posts: 156
Default

The latest CVS version of Ming0.3 will do the conversion from png2dbl automatically and then can be used as a bitmap fill in a shape which is wrapped in the SWF movie.

You may have to edit the configuration/make files when building to suit your systems paths.
JerryScript is offline   Reply With Quote
Old 09-01-2004, 03:10 PM   #7
Cota
Super Moderator
 
Cota's Avatar
 
Join Date: Jul 2001
Location: NYC
Posts: 10,107
Default

What, no one likes img2swf anymore? Probably the easiest to use, since its a drag and drop component. www.img2swf.com
__________________
Color Wars™ | (kul′ər wôrs) n. - Open conflict between factions. www.theColorWars.com

cota - www.chadworkman.com | http://shavedplatypus.com
occupation: designer | flash developer | server-side developer (php, asp, mssql, mysql)

Last edited by CyanBlue; 09-01-2004 at 04:28 PM. Reason: Edited the typo...
Cota is offline   Reply With Quote
Old 09-02-2004, 02:16 PM   #8
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,008
Default

This one I've found that converts JPEG file to SWF file... (Just for the record...)
http://sourceforge.net/projects/jpg2swf-thumb
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 10-11-2004, 02:24 AM   #9
karmakat
Registered User
 
Join Date: Mar 2004
Posts: 19
Default Resolution

The latest version of MING does allow for pngs to inserted into a swf serverside using only php. Yay! another point for php against the smelly .net
If you are interested in the script, drop me a line..
Good luck
-karmakat aka aleksandr berland
karmakat is offline   Reply With Quote
Old 10-12-2004, 09:47 AM   #10
d3ntaku
Registered User
 
Join Date: Oct 2004
Posts: 1
Default Ming / Sqf

I have only been able to get Ming 0.3a working with its own DBL files... just built it yesterday. Can you post any examples w/ the incoming PNGs?

In my experience ming exits when these funcs aer called:
$myfill=$shapetobitmapfill->addFill($img, SWFFILL_CLIPPED_BITMAP);
d3ntaku is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:53 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2010 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.