10-02-2012 05:49 PM - edited 10-02-2012 05:52 PM
Just wanted to post RIMs active frame sample for everyone, as there was no direct link from the developer website and I had a bit of a difficult time locating it.
https://github.com/blackberry/Samples-for-AIR/tree
https://developer.blackberry.com/air/apis/bb10/qnx
10-12-2012 07:16 PM
Has anyone been able to successfully use:
10-14-2012 09:32 AM
10-14-2012 12:46 PM
I do seem to have permissions. The image is located in an assets folder within the project (where i am able to load all of my other assets).
As a test, I tried using setCoverFromWindow(nativewindow) (as per the sample) and adding the image as a child to that native window. This works, but seems like a lot of extra work especially when there is a function to set it from a file.
10-14-2012 01:29 PM
11-17-2012 10:48 AM
setCoverfromFile not working for me too.
But there is workaround use code from example in first post and change:
coverbg = new Bitmap( new BitmapData( cover.width, cover.height, false, 0xFFFF0000 ) );
to
coverbg = new Assets.COVER;
I have in Assets class this line, you can embet that in mxml file somewhere else:
[Embed(source="assets/cover.png")] public static const COVER:Class;
I had to remove QNXLabel, to make it work.
Add this to functions onCoverEnter and oncoverExit and remove other things:
createCover(); QNXCover.qnxCover.setCoverFromWindow( cover );
11-17-2012 10:51 AM
@jtegen:
QNXCover.qnxCover.setCoverFromFile(new Assets.COVER);
or
QNXCover.qnxCover.setCoverFromFile("assets/cover.p ng");do not work, i try all paths ../assets, /assets ...
Only Black Screen when enter cover.
Did U report this Bug, if not please ... Thanks.
11-19-2012 11:22 AM
For a cover image I am using a Loader to load the bitmap when the app starts up, and then setting the cover bitmap once the image has been loaded. As such the Bitmap object is defined before onCoverSize() is ever called. If something has gone wrong and the bitmap is not yet set when onCoverSize() is run, then I set the bitmap to a solid color using
if(coverbg==null)
{
coverbg = new Bitmap( new BitmapData( cover.width, cover.height, false, 0xFFAAAAAA ) );
}
11-19-2012 01:56 PM
In my case onCoverSize() is never trigered becouse i'm using Flash Builder (Mobile Flex Application) and init screen on Creation Complete but just call create_cover() every time there is line that checks if cover is sreated.
12-14-2012 01:54 AM
AmonRaHR wrote:
In my case onCoverSize() is never trigered becouse i'm using Flash Builder (Mobile Flex Application) and init screen on Creation Complete but just call create_cover() every time there is line that checks if cover is sreated.
@AmonRaHR
Can you please post an example of what you changed? I am also using a flex mobile application and the event listener is not getting fired: QNXCover.qnxCover.addEventListener(QNXCoverEvent.C