suuhas / as3-commons

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

Problem using swc: ICloneable, IEquals and INamespaceOwner not Found #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the latest version of the swc (as3commons-bytecode-1.0-RC3.swc)
2. Try to compile my air project (Flash Builder 4.5)

What is the expected output? What do you see instead?
Can't compile

What version of the product are you using? On what operating system?
- as3commons-bytecode-1.0-RC3.swc
- Flash Builder 4.5
- Mac OS X Snow Leopard

Please provide any additional information below.

Original issue reported on code.google.com by bruno.ca...@gmail.com on 21 Jul 2011 at 3:48

GoogleCodeExporter commented 9 years ago
Hi,

as3commons-bytecode depends on these other as3commons libraries:
as3commons-lang
as3commons-reflect

download the swc's, add them to your project and you're good to go.

cheers,

Roland

Original comment by ihatelivelyids on 21 Jul 2011 at 4:00

GoogleCodeExporter commented 9 years ago
Thanks for your quick answer.
The problems persist although. I can compile now but I'm getting runtime errors 
when using the library:

                                for (var info:* in systemManager.preloadedRSLs) {
                    trace("RSL: "+(info as LoaderInfo).url);
                    ByteCodeType.fromLoader(info);
                    trace("Definitions: "+ByteCodeType.definitionNamesFromLoader(info));
                    trace("Definitions: "+ByteCodeType. definitionNamesFromLoader(info));

                }
                var b:Object = ByteCodeType.interfaceLookup;

As you recommended, I have included the lang and reflection swc's in my project 
-> so I can Compile. I've tried many versions of both libraries to try to make 
it work. With this three libraries I get the following error:
- as3commons-bytecode-1.0-RC3.swc
- as3commons-lang-1.0-SNAPSHOT.swc
- as3commons-reflect-1.3.4.swc

VerifyError: Error #1014: Class org.as3commons.lang::HashArray could not be 
found.

    at WIMMRunner/init()[/Users/bruno.capdevila/Documents/Adobe Flash Builder 4.5/WimmRunner/src/WIMMRunner.mxml:66]
    at WIMMRunner/___WIMMRunner_WindowedApplication1_applicationComplete()[/Users/bruno.capdevila/Documents/Adobe Flash Builder 4.5/WimmRunner/src/WIMMRunner.mxml:7]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
    at mx.managers::SystemManager/preloader_preloaderDoneHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2682]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/displayClassCompleteHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\preloaders\Preloader.as:582]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::SparkDownloadProgressBar/initCompleteHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\preloaders\SparkDownloadProgressBar.as:1087]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/dispatchAppEndEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\preloaders\Preloader.as:380]
    at mx.preloaders::Preloader/appCreationCompleteHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\preloaders\Preloader.as:590]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
    at mx.core::UIComponent/set initialized()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:1818]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:842]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

I have tried another versions of lang and reflections and despite of being able 
to compile I also get runtime errors when using the ByteCodeType class. But not 
the same ones.

Thank you for your help

Bruno

Original comment by bruno.ca...@gmail.com on 22 Jul 2011 at 3:02