PDA

View Full Version : New Command img2mc - batch convert images in library to movieclips


splict
02-19-2004, 11:42 PM
Hopefully this won't get ignored like most posts in this section. ;) In response to this thread (http://www.actionscript.org/forums/showthread.php3?s=&threadid=41906) I decided it would be useful to be able to make movieclips or graphics out of the jpg/gif/png's in the library without having to pull them each on the stage and F8 them and click to export, etc. This does that for you.

Just select some images in the library and execute the command to bring up the options box. If you don't select any, it will process all of the bitmaps/pngs/gifs in the library (after a warning and a chance to cancel out). If you want to move the original images to a backup folder you may specify one. Make sure that it is an absolute path in the library. It can be a folder that does or does not exist just make sure it is not the name of a movieclip, etc.

I've got quite a few features on my list to add, as well as quite a bit of error checking to include, but I haven't had any issues through regular use and I threw this together pretty quick because I wanted to see if it was worth developing. I will wait for any suggestions and comments before I tell you my ideas but please give me some thoughts - I think this could be a timesaver in some projects. Read the comments in the installation package for recommended usage and, of course, use at your own risk :D

-splict

splict
02-19-2004, 11:48 PM
here's the component - remember its pre alpha - just a few lines of code

oh yeah, and its 2004

Billy T
02-21-2004, 01:27 AM
hmm crashed extension manager when i ran the mxp

max os x

splict
02-21-2004, 01:29 AM
lol wow. sorry about that - don't have a mac. i didn't realize there were differences. I will look into that now. Big thanks for checking it out though. :)

splict
02-21-2004, 02:24 AM
well, heres an offsite link to a slightly changed version of it. Mostly the same though, so I doubt it will make a difference but its worth a try. If anybody has suggestions about mac/win discrepencies I would appreciate it though. [removed - wasn't any better]
The only issue I could find is about trying to load extensions into multiple progs on macs: http://www.macromedia.com/support/flash/ts/documents/mx_04_emerging_issues.htm (second issue down).

What I would really like to know is if people would find something like this (though more devoloped) useful. Or is everyone dynamically loading everything these days??? Thanks for your time.

-splict

Billy T
02-21-2004, 03:17 AM
nah that didnt work either

I tend to load everything in at run ime anyway so I can't see it being something I would use

cheers

splict
02-21-2004, 11:16 AM
Cheers, Billy! Thats exactly the kind of input I was looking for! :D I figure it would only be useful in certain situations (I load most of my stuff dynamically, too). However, I wanted something to do so I could start learning this javascript/extenstion stuff.

Anyways I plan on adding exporting to individual swfs along with the ability to use incremental filenames - that should help people who want to dynamically load png's and gif's but can't because of flash's limitations. Still would like to figure out why it doesn't work on a mac though. :( Thanks again!

Billy T
02-21-2004, 11:30 AM
Originally posted by splict
I wanted something to do so I could start learning this javascript/extenstion stuff.


always a good way to learn

I look forward to seeing what you come up with - keep us posted!