[swfmill] Jing like application

John Aughey jha at aughey.com
Tue Aug 14 05:30:33 PDT 2007


I gave this a try and it looks like it's going to work great.

If I have hundreds of frames and clips in a swf file, should I take care to
remove clips when they are no longer visible?  Or does it just not matter.
I would think if there are hundreds or thousands of clips placed that the
flash player would start to bog down.

John

On 8/14/07, Ralf Fuest <ralf-fuest at gmx.de> wrote:
>
> Hello John,
> 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
> should work:
> <frame>
>         <clip id="foo0" import="library/foo0.png"/>
>         <place id="foo0" depth="1"/>
> </frame>
> <frame>
>         <clip id="foo1" import="library/foo1.png"/>
>         <place id="foo1" depth="2"/>
> </frame>
> 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.
>
> Ralf
>
> > 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:
> >
> > <frame>
> >   <library>
> >     <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"/>
> >   </library>
> > </frame>
> > 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
> > direction?
> >
> > Thank you
> > John
>
>
> _______________________________________________
> swfmill mailing list
> swfmill at osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swfmill_osflash.org/attachments/20070814/30fbd787/attachment.html 


More information about the swfmill mailing list