William, I tried the code that you outlined but I stil cant get it to work.
My eclipse project is here: http://medlem.spray.se/robertsjodahl/SWFImportTest.zip
I would be nice if someone took a look at it and told me what newbie misstake I'm
making.
regards
Robert Sjodahl
On 6/11/06, William Strapazzon
<[EMAIL PROTECTED]> wrote:
Hi,
for example in your xml file you set:
<movie width="320" height="240" framerate="30">
<background color="#000000"/>
<clip import="build/classes.swf" />
<frame>
<library>
<clip id="Cross" import="lib/ctross.swf"/>
<clip id="app" class="YourClass" />
</library>
<place id="app" depth="1" />
</frame>
</movie>
And in your build/classes.swf you call with actionscript using attachMovie:
class YourClass extends MovieClip {
public function onLoad() {
_root.attachMovie("Cross", "instanceNameYouWant",
this.getNextHighestDepth(), {_x:15, _y:15});
}
}
Robert Sjödahl wrote:
> Hey
>
> Is it possible to use movie clips/symbols created in Macromedia:s
> Flash 8 professional with swfmill?
>
> I have made a siple animated movie clip in th Flash IDE and now I try
> to import it and place it on the scene using:
>
> <movie width="320" height="240" framerate="30">
> <background color="#ffffff"/>
> <clip import="build/classes.swf" />
>
>
> <frame>
> <library>
> <clip id="Cross" import="lib/ctross.swf"/>
> </library>
>
> <place id="Cross" name="ctross" x="15" y="15" depth="1000" />
> </frame>
>
> </movie>
>
> The symbol is called Cross that is in the ctross.swf and set it's
> linkage to "Export to actionscript" and "Export in first frame".
>
> I'm using Eclipse, mtasc, as2ant, and swfmill.
>
> Robert
_______________________________________________
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org
_______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org