Highlighted

Errors when updating AIR SDK in Flash Pro CS6

New Here ,
Dec 10, 2015

Copy link to clipboard

Copied

So I've been developing an app in AIR 3.4 (I know... so old right?) for quite some time now and still cant update to even 20 because of this. I've downloaded the latest SDK and linked it with the CS6 menu: Help>Manage AIR SDK. Of course then I select the "publish target" to AIR v20. Then when I compile, I get a whole bunch of runtime errors from my code referring the stage (ie: stage.stageHeight)... This is killing me!!

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

at Main()

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

  at Main/startOrientationChange()

Line 255 in Main.as: stage.autoOrients = true;

Line 1991 in Main.as: stage.addEventListener(Event.RESIZE, orientationChanged);

And a blank app with what looks like the default Preloader SWF...

Any help is appreciated!

-Nick

TOPICS
Installation

Views

364

Likes

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

Errors when updating AIR SDK in Flash Pro CS6

New Here ,
Dec 10, 2015

Copy link to clipboard

Copied

So I've been developing an app in AIR 3.4 (I know... so old right?) for quite some time now and still cant update to even 20 because of this. I've downloaded the latest SDK and linked it with the CS6 menu: Help>Manage AIR SDK. Of course then I select the "publish target" to AIR v20. Then when I compile, I get a whole bunch of runtime errors from my code referring the stage (ie: stage.stageHeight)... This is killing me!!

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

at Main()

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

  at Main/startOrientationChange()

Line 255 in Main.as: stage.autoOrients = true;

Line 1991 in Main.as: stage.addEventListener(Event.RESIZE, orientationChanged);

And a blank app with what looks like the default Preloader SWF...

Any help is appreciated!

-Nick

TOPICS
Installation

Views

365

Likes

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
Dec 10, 2015 0
New Here ,
Dec 14, 2015

Copy link to clipboard

Copied

Anybody?....

Likes

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
Reply
Loading...
Dec 14, 2015 0
New Here ,
Dec 16, 2015

Copy link to clipboard

Copied

So nobody knows what's wrong?... i find that hard to believe.

Likes

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
Reply
Loading...
Dec 16, 2015 0