martinheidegger / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

bytecode Vectro issue #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use this code for load swf file:
var loader: UrlLoader = new UrlLoader();
...

// parse swf file
m_SwfFileData = e.target.data as ByteArray;
var io:SWFFileIO = new SWFFileIO();
var swfFile:SWFFile = io.read(m_SwfFileData);

// save again to bytearray
var cache:ByteArray = new ByteArray();
io.write(cache, swfFile);

// save to file
var f: FileReference = new FileReference();
f.save(cache, "test.swf");

What is the expected output? What do you see instead?
Runtime error: Error #1034:  Coercion: 
org.as3commons.bytecode.abc::QualifiedName in to 
org.as3commons.bytecode.abc.MultinameG.

(ConstantPool.as->line 299)

            if (multiname is MultinameG) {
                var mg:MultinameG = MultinameG(multiname);
                addMultiname(mg.qualifiedName);
                for each (var qn: MultinameG in mg.parameters) {
                    addMultiname(qn);
                }
            }

debug trace:   mg.qualifiedName.fullName == "__AS3__.vec.Vector"

What version of the product are you using? On what operating system?
Windows 7. Flex sdk. Latest library update.

Please provide any additional information below.
Attached swf file, which I was tried to load.

Original issue reported on code.google.com by devi...@gmail.com on 7 Feb 2012 at 3:02

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ihatelivelyids on 22 Mar 2012 at 10:58

GoogleCodeExporter commented 9 years ago
Hi there,

I haven't gotten round to testing your use-case yet, but we just released 
version 1.1 with quite a few bug fixes. Could you give this new release a 
testdrive to see whether your particular bug still persists or not?

thanks!

Roland

Original comment by ihatelivelyids on 29 Mar 2012 at 9:11

GoogleCodeExporter commented 9 years ago
Ok, so this was indeed not fixed yet in v1.1. But as I reported in this issue:

https://code.google.com/p/as3-commons/issues/detail?id=108

I did find a bug in the serialization code, and I think I have it working 
correctly now. Changes are avilable in the trunk.

cheers,

Roland

Original comment by ihatelivelyids on 31 Mar 2012 at 6:10

GoogleCodeExporter commented 9 years ago

Original comment by ihatelivelyids on 31 Mar 2012 at 6:10