[swfmill] Put swf in library that does not appear automatically
Darren Cook
darren at dcook.org
Thu Dec 21 22:30:15 EST 2006
First, I've just installed swfmill 0.2.11.20, and it is working well -
it no longer complains about unknown tags when dealing with Flash 8 files.
What I'm trying to do is preload a swf (e.g. "06.swf" into "main.swf")
but not have it start until I am ready. I've tried doing stop() just
after 06.swf loads, then gotoAndPlay(1) when I'm ready to show it. But
though that works for the main timeline there are other movieclips on
the stage (of 06.swf) that have their own timeline, and I cannot stop,
or restart them. [I could experiment more here, but ideally want a
solution that doesn't alter the way the designer works.]
So, I came up with the idea of putting 06.swf in the library of another
swf, then use attachMovie() when I'm ready for it to play.
[1], [2] and [3] are my swfmill attempts so far. What I expect is to see
nothing happen because I'm not explicitly doing the attachMovie yet. But
what I see, in all cases, is 06.swf start playing immediately.
What is confusing is that this page
http://swfmill.org/doc/using-swfmill.html#library
says "to get it onto the stage you can use MovieClip.attachMovie()"
And then further down, under Basic timeline use: "It's important to
understand that importing or creating a movieclip doesn't make it appear
on the stage. This has to be done explicitly, ..."
But I'm getting the opposite behaviour :-(.
Is there a way to do this? Thanks in advance for any suggestions,
Darren
[1]:
<?xml version="1.0" encoding="iso-8859-1" ?>
<movie width="800" height="600" framerate="12">
<frame>
<library>
<clip id="c06" import="06.swf" />
</library>
</frame>
</movie>
[2]:
<?xml version="1.0" encoding="iso-8859-1" ?>
<movie width="800" height="600" framerate="12">
<library>
<clip id="c06" import="06.swf" />
</library>
<frame />
</movie>
[3]:
<?xml version="1.0" encoding="iso-8859-1" ?>
<movie width="800" height="600" framerate="12">
<clip id="c06" import="06.swf" />
<frame />
</movie>
More information about the swfmill
mailing list