[swfmill] Jing like application
ralf-fuest at gmx.de
Tue Aug 14 02:39:53 PDT 2007
when you insert all pngs inside a library tag you'll need to use AS or
haXe to play them. I think it might better to do this inside the swf
file using different frames for your png files. Something like this
<clip id="foo0" import="library/foo0.png"/>
<place id="foo0" depth="1"/>
<clip id="foo1" import="library/foo1.png"/>
<place id="foo1" depth="2"/>
This way the flashplayer does all the work necessary to playback your
png files. You can also load this swf file with loadMovie or the
MovieClipLoader and use the normal commands, like gotoAndPlay, to
control the playback.
I don't think it's easy to get the code, necessary to write such a swf
file, out of the swfmill source. But it shouldn't be too hard to write a
swf writer with the features you need for your project.
There also is a library called ming, that can create swf files. I
haven't used it or looked at it, but it might work for your project.
> I'm developing an application that needs to do something similar to
> Jing (http://jingproject.com/). Basically, the application
> records/captures a window and generates an SWF file that's posted on a
> web site. The resulting SWF files actually has small rectangular
> segments, rather than the entire frame, but you could think of it as
> embedding hundreds of png images to the SWF file.
> This is something I think swfmill could handle. If I understand it
> right, I could create the image library with something like:
> <clip id="foo0" import="library/foo0.png"/>
> <clip id="foo1" import="library/foo1.png"/>
> <clip id="foo2" import="library/foo2.png"/>
> <clip id="foo3" import="library/foo3.png"/>
> <clip id="foo4" import="library/foo4.png"/>
> and then create my movie player application that uses this swf image
> library to play the video.
> Am I right in what I'm thinking here?
> I assume I'd be able to load this image library into flash application
> using loadMovie or the MovieClipLoader class to then access the
> resources. Ideally, I'd write the player once and have it dynamically
> load the image sequence swf file to play.
> It'd also be nice to integrate this functionality with my own
> application. Rather than writing out hundreds of intermediate png
> files, I'd like to write it to the swf file directly. I've started to
> look at the source code for swfmill a bit. I would think it'd be easy
> to factor out this limited section of the library.
> Any thoughts on what I'm trying to do? Am I heading in the right
> Thank you
More information about the swfmill