Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Extract swf out of apk

Explorer ,
Aug 15, 2012 Aug 15, 2012

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...

TOPICS
Development
3.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Nov 08, 2012 Nov 08, 2012

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

...
Translate
Participant ,
Aug 15, 2012 Aug 15, 2012

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 16, 2012 Aug 16, 2012

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 08, 2012 Nov 08, 2012

No ideas?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 08, 2012 Nov 08, 2012
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines