02-05-2013 12:04 PM - edited 02-05-2013 02:02 PM
Hi. After upgrading to SDK 3.1.0, I get the following error on what worked - I just create an ActionBar and add a back button.
var ab:ActionBar = new ActionBar();
ab.setPosition(0,1140);
ab.backButton = new qnx.fuse.ui.core.Action('Back');
ab.addEventListener(qnx.fuse.ui.events.ActionEvent .ACTION_SELECTED, goBackToGame);
this.addChild(ab);
ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::Graphics/drawRect() at ActionButton/updateDisplayList()[E:\hudson\workspace\BB10_1_X-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\ actionbar\ActionButton.as:154] at qnx.fuse.ui.core::UIComponent/validateDisplayList( )[E:\hudson\workspace\BB10_1_X-AIR_SDK_API\src\qnx ui\src\qnx\fuse\ui\core\UIComponent.as:1056] at qnx.fuse.ui.managers::InvalidationManager/validate DisplayList()[E:\hudson\workspace\BB10_1_X-AIR_SDK _API\src\qnxui\src\qnx\fuse\ui\managers\Invalidati onManager.as:126] at qnx.fuse.ui.managers::InvalidationManager/doInvali dation()[E:\hudson\workspace\BB10_1_X-AIR_SDK_API\ src\qnxui\src\qnx\fuse\ui\managers\InvalidationMan ager.as:230] at qnx.fuse.ui.managers::InvalidationManager/enterFra me()[E:\hudson\workspace\BB10_1_X-AIR_SDK_API\src\ qnxui\src\qnx\fuse\ui\managers\InvalidationManager .as:194]
I've readded all 4 ANEs and 4 .swcs from SDK 3.1.0, so I'm not sure what I'm doing wrong. Any tips? Thanks.
EDIT: This happens only in the Flash Builder's own AIR simulator, NOT when I debug/run it on the device (back button on actionbar works perfectly there!). Haven't tried with a VMWare machine.
02-11-2013 09:22 AM
02-11-2013 09:40 AM - edited 02-11-2013 09:45 AM
That doesn't make much sense, as it worked with the previous SDK.
EDIT: I mean, I understand what you're saying and agree; it just seems pointless, as everything worked before. Replacing the default Back icon with a custom icon doesn't stop the Error from happening. Debugging in Simulator is much faster than on the device or VM.
02-11-2013 10:06 AM