[swfmill] Can't access assets created with swfmill with flash CS3
Marco BEregr
spamnemesis at hotmail.com
Wed May 28 08:52:29 PDT 2008
Hi, I don't even
know if it's the right place to write, I've been looking for the mailist list
archive for 2 days and looking where to post a question and I'm not sure if it's
a forum or only all the questions asked by email hehe.
Anyway, here's my xml for swfmill, I'm only importing a JPG and a MovieClip containing the JPG and try to access it via AS3 and it's not working:
<?xml version="1.0" encoding="iso-8859-1"?>
<movie version='9' frames='1' width='100' height='100' as3="1">
<FileAttributes hasMetaData='0' allowABC='1' suppressCrossDomainCaching='0' swfRelativeURLs='0' useNetwork='0'/>
<background color="#ffffff"/>
<frame>
<library>
<clip id="Crab" import="../images/crab1.jpg" class="Crab"/>
<clip id="MCCrab" class="MCCrab">
<frame>
<place id="Crab" name="crab" x="10" y="10" depth="1" />
</frame>
</clip>
</library>
<place id="Crab" name="myCrab" x="10" y="10" depth="1"/>
</frame>
</movie>
And in Flash, I use the getDefinition() method like this in main.swf:
var Crab1:Class = loadEvent.target.applicationDomain.getDefinition("Crab") as Class;
var Crab2:Class = loadEvent.target.applicationDomain.getDefinition("MCCrab") as Class;
and both send me this error message:
"ReferenceError: Error #1065: La variable MCCrab n'est pas définie."
wich means that the variable MCCrab is not defined"
While roaming the mailing list archive, I found a couple of things and tried:
-Using the as3="1" in the movie tag
-Using useNetwork="0" and useNetwork="1" tags
-Removing the frames, moving the <library /> tags
-Tried using allowABC="1" suppressCrossDomainCaching="0"
-I tried looking for how to use the DoABC and DoABCDefine tags but found no example
-I tried using the latest Windows version (0.2.14)
-I downloaded the latest source (revision 250) with SVN but can't find on the internet how to build it on Windows
-Finally, I did these steps:
swfmill simple crab.xml crab.swf
swfmill swf2xml crab.swf crabOutput.xml
Adding the FileAttributes tag with the allowABC="1" and all the stuff that disappeared during compilation in crabOutput.xml
swfmill xml2swf crabOutput.xml crab.swf
So nothing worked, only when I create a swf in authoring mode and put the assets in the libraries myself and export a swf, then the main.swf displays the movieClip.
That's it, I'm out of ideas
Marco
_________________________________________________________________
Find hidden words, unscramble celebrity names, or try the ultimate crossword puzzle with Live Search Games. Play now!
http://g.msn.ca/ca55/212
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swfmill_osflash.org/attachments/20080528/429b2b1c/attachment.html
More information about the swfmill
mailing list