Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Ignore warning message: StageOrientationEvent "deprecated as of AIR 2.5"

Hey developers,

 

Just wanted to share that if you ever encounter the following warning message when compiling an application using the BlackBerry WebWorks SDK for PlayBook, it can be ignored.

 

 

[exec] [INFO]             Compiling WebWorks application
[exec] C:\Documents and Settings\User\Local Settings\Temp\widgetGen.1151896931300490461923.tmp\blackberry\applicationEvents\ApplicationEvent.as(61): col: 60 Warning: Deprecated as of AIR 2.5
[exec] 
[exec] webView.stage.removeEventListener(StageOrientationEvent.ORIENTATION_CHANGING, preventOrientationChanging );
[exec]                                   ^

 

The StageOrientationEvent class was deprecated for AIR 2.5, however it is being re-included in AIR v2.6.  You likely see this warning message if you have v2.6 installed.

 

 

Cheers,

Adam

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.