I am trying to figure out how to control the playing of an animation that
was created using SWFMill.
Right now, its just a series of 3 pictures of an arm in 3 positions so it
looks like its waving and there are a total
of 6 pictures (3 for the left arm and 3 for the right arm).

The actionscript I am using checks to see which arm needs to be waved and
does so by
calling up the "frame name" tag from the swfml file, such as:
armwave.gotoAndPlay("wave_left_1");

or if the right arm needs to be the one that gets waved:
armwave.gotoAndPlay("wave_right_1");

I want to be able to detect whether the left arm or the right arm is
finished waving before other
animations get played.

Are there any suggestions on how to do that? Should I use child clips or are
there ways to check?
I tried using things like _framesloaded or trying to access individual
frames from the swfml file but
I get things like "undefined" or that there is only 1 frame...

Thanks for any and all suggestions / help... here is the SWFML:

<?xml version="1.0" encoding="iso-8859-1" ?>
<movie width="500" height="500" framerate="12">
  <frame>
    <clip id="Pic_left_1" import="pic_left_1.png"/>
    <clip id="Pic_left_2" import="pic_left_2.png"/>
    <clip id="Pic_left_3" import="pic_left_3.png"/>
    <clip id="Pic_right_1" import="pic_right_1.png"/>
    <clip id="Pic_right_2" import="pic_right_2.png"/>
    <clip id="Pic_right_3" import="pic_right_3.png"/>

    <library>
      <clip id="armwave">

        <frame name="wave_left_1">
          <place id="Pic_left_1" depth="1"/>
        </frame>
        <frame name="wave_left_2">
          <place id="Pic_left_2" depth="1"/>
        </frame>
        <frame name="wave_left_3">
          <place id="Pic_left_3" depth="1"/>
          <stop />
        </frame>

        <frame name="wave_right_1">
          <place id="Pic_right_1" depth="1"/>
        </frame>
        <frame name="wave_right_2">
          <place id="Pic_right_2" depth="1"/>
        </frame>
        <frame name="wave_right_3">
          <place id="Pic_right_3" depth="1"/>
          <stop />
        </frame>
      </clip>

      <!-- other clips with other frame and place tags for other animations
are here -->

    </library>
  </frame>
</movie>
_______________________________________________
swfmill mailing list
[email protected]
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to