[swfmill] Accessing frames in AS3 / Flex

Jan Viehweger forum at jan-viehweger.de
Wed Apr 16 14:29:45 PDT 2008


hi list, hi Joel Poloney

i know that this topic was allready discussed some month ago by Joel 
Poloney.
http://osflash.org/pipermail/swfmill_osflash.org/2007-November/001581.html

i now run into a similar problem but coud'nt get it fixed the way it was 
explained in the thread above.

the problem:

in a flex builder 3 / air project i'm loading swmill generated swf's by 
a <mx:SWFLoader /> component. that works so far.
but as im trying to get access to the loaded swf's main-timeline i get 
the following runtime error:

// -->
ReferenceError: Error #1069: Eigenschaft nextFrame für 
flash.display.AVM1Movie nicht gefunden und es ist kein Standardwert 
vorhanden
<-- //

sorry, thats german - this mean's that the 'nextFrame' property (which 
i'm trying to access via a button)  was'nt found for 
flash.display.AVM1Movie.

whith flash cs3 pro generated swf's everything works well ... but i'd 
like to use swmill cause i have to generate a lot of swf's via batch 
process.

heres my foo.xml which i compile with the swfmill 0.2.12 binary on 
windows xp sp2:

<?xml version="1.0" encoding="iso-8859-1" ?>
<movie version="9" frames="2" width="640" height="480" framerate="1">
  <FileAttributes hasMetaData="0" useNetwork="0"/>
  <background color="#FFFFFF"/>
  <frame>
    <library>
      <clip id="img01" import="01.jpg"/>
    </library>
    <place id="img01" depth="1"/>
  </frame>
  <frame>
    <library>
      <clip id="img02" import="02.jpg"/>
    </library>
    <place id="img02" depth="1"/>
  </frame>
</movie>

i don't know where and how to put the the <FileAttributes> tag to make 
the whole thing work.

if someone ore maybe Joel Poloney could send his working foo.xml would 
be a great help for me!

best regards
jan






More information about the swfmill mailing list