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

Adobe Air + Box2D.swc = TypeError: Error #1009 // New way to handle .swc files in Flash for iOS Apps?

Contributor ,
Oct 23, 2014 Oct 23, 2014

Copy link to clipboard

Copied

Hi,

I need your help please - I have to update one of my iOS Apps. In this App I use Box2d for a simple maze game (it's an app for kids). When I publish & test this game on my Mac it works fine. I can drag my Hero (fish) through this Maze and all collision detections, gravity etc. work perfect.

maze.jpg

When I test it on my iPad it doesn't work. The device debugger shows this error message:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

  at global$init()

  at global$init()

  at Box2DAS.Common::b2Base$/initialize()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/Box2DAS/Common/b2Base.as:31]

  at wck::WCK/create()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/wck/WCK.as:26]

  at misc::Entity/ensureCreated()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/misc/Entity.as:50]

  at misc::Entity/handleAddedToStage()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/misc/Entity.as:100]

  at misc::Entity/handleAddedToStage()

Line 31: loader = new CLibInit();

Bildschirmfoto 2014-10-23 um 21.06.03.png

I guess "CLibInit" should come from the .swc file.

The thing is:

I didn't change anything in this maze game - it seems this has to do something with the new Flash and/or Adobe Air version. Box2D.swc file is included:

Bildschirmfoto 2014-10-23 um 21.01.26.png

It always worked like this - and it works when testing it on my Mac - but it is no longer working on my current system.

So I started my Mac from an older system (10.9.5 on an external HD) and published the App from Flash CS6 and Adobe Air 13.0 - then it suddenly worked on my iPad as before. I was able to tap an the fish and drag it arround.

The same project / app published from my current OS X 10.10 + Flash CC 2014 + Adobe Air 15.0.0.302 is not working. I always receive this Error Message - I can not drag the fish - nothing happens. And I have no idea why this happens and what else I could do. I searched the whole day for a solution but didn't find anything.

So did anything change by the way Flash and/or Air handles .swc files? Is there an other way to include: import cmodule.Box2D.* / CLibInit ?

Please - if anyone has a clue - please let me know!!

Best regards

Jan

TOPICS
Development

Views

789

Translate

Translate

Report

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

Contributor , Oct 24, 2014 Oct 24, 2014

SOLVED!!!

I uncheck "Schnelleres Verpacken aktivieren (Beta)" and now it works again!! Hurray!!

@ Adobe: Please take a look at this!

Bildschirmfoto 2014-10-24 um 11.16.24.png

Votes

Translate

Translate
Contributor ,
Oct 23, 2014 Oct 23, 2014

Copy link to clipboard

Copied

Update:

There is also an Android Version of this App. I just published and tested a new version of it on my kindle fire & Samsung Galaxy Tab 2. On both Tablets the maze works perfect. I'm able to drag the fish around etc.

Then I published this Android Version for iOS and tested it on my iPad. Again I'm getting the Error message:

TypeError: Error #1009: Cannot access a property or method of a null object reference. 
 
at global$init() 
 
at global$init() 
 
at Box2DAS.Common::b2Base$/initialize()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_ Retina/src/com/Box2DAS/Common/b2Base.as:31
 
at wck::WCK/create()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/wck/ WCK.as:26
 
at misc::Entity/ensureCreated()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/s rc/com/misc/Entity.as:50
 
at misc::Entity/handleAddedToStage()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Ret ina/src/com/misc/Entity.as:100
 
at misc::Entity/handleAddedToStage

() 

...and the fish is stuck - I can't drag it - nothing happens. So this error only occurs when I publish the App for iOS - as an .ipa. Did anything change in the way Air handles .swc files?

I'm totally confused

If anybody has an idea what I could try - PLEASE LET ME KNOW!!

Votes

Translate

Translate

Report

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
Contributor ,
Oct 24, 2014 Oct 24, 2014

Copy link to clipboard

Copied

LATEST

SOLVED!!!

I uncheck "Schnelleres Verpacken aktivieren (Beta)" and now it works again!! Hurray!!

@ Adobe: Please take a look at this!

Bildschirmfoto 2014-10-24 um 11.16.24.png

Votes

Translate

Translate

Report

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