Copy link to clipboard
Copied
Hi,
I need a swf out of my flash builder mobile project.
If I release build the app, rename the apk/air in .zip and then extract the swf, I get some errors:
VerifyError: Error #1053: z in mx.core.BitmapAsset.
VerifyError: Error #1014: Class mx.core::BitmapAsset not found.
ReferenceError: Error #1065: Variable _project_mx_managers_SystemManager__embed_mxml_assets_splashscreen_png_2125818226 is not defined.
ReferenceError: Error #1065: Variable _project_mx_managers_SystemManager__embed_mxml_assets_splashscreen_png_2125818226 is not defiend
at _project_mx_managers_SystemManager$cinit()
at global$init()[_project_mx_managers_SystemManager.as:24]
Why isn't it working?
The apk and air file work great...
SWF is not entirely standalone - it is dependent on functions and classes in the runtime and also in the environment it is being loaded into.
For example, if you compile a stylesheet SWF in Flex and try to load it on its own, you will also see a VerifyError because the SWF was compiled without the Flex classes that it needs but knows will be available in any Flex application it is loaded into. Similarly, if you load a Flex app built with an incompatible SDK into another Flex app, the definitions
...Copy link to clipboard
Copied
Hmm I've never done that before and don't see the reason why but my best guess would be that the apk file relies on the the Android devices having Air installed where the libraries are located
Are you taking someone elses APK and reverse engineering the swf? Lookin to decompile it?
Copy link to clipboard
Copied
No I want to wrap the swf for my own and create the apk file.
I have to do it that way because I have to add special content with a wrapper of the swf.
I said that I can build an air and apk file that work fine, so I also have the project ![]()
Can I exclude the air libraries?
Which libraries exactly?
Is it possible to convert the whole project in a web project?
Best regards
Copy link to clipboard
Copied
No ideas?
Copy link to clipboard
Copied
SWF is not entirely standalone - it is dependent on functions and classes in the runtime and also in the environment it is being loaded into.
For example, if you compile a stylesheet SWF in Flex and try to load it on its own, you will also see a VerifyError because the SWF was compiled without the Flex classes that it needs but knows will be available in any Flex application it is loaded into. Similarly, if you load a Flex app built with an incompatible SDK into another Flex app, the definitions may collide and there may also be a VerifyError.
In addition to these classes, there are also supported methods and functions of the runtime. AIR runtime is not the same as web runtime, for example, and AIR runtime has a wide array of functions, classes, properties and constants that simply do not exist on the web.
If you want to wrap the SWF using something other than the AIR runtime and so on, you need to build it that way with the correct runtimes, classes, sdks, definitions etc.
G
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/VerifyError.html
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more