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

Adobe AIR Development

Sample Code - RSS Reader

by Retired on ‎01-07-2011 04:00 PM - edited on ‎03-29-2012 10:28 AM by Retired (15,247 Views)

This sample demonstrates the various methods of using offline storage, UI Components, and network connectivity.  It has been developed over the course of the 5 part developer webcast series (http://us.blackberry.com/developers/tablet/devresources.jsp).


For offline storage, the sample demonstrates how to use


  • SharedObjects
  • SQLite Database
  • File I/O


The sample also goes out over the network to retrieve live RSS feeds from the BlackBerry® Developer Blog, and display those to the BlackBerry device user.  It also leverages the QNXStageWebView component to display rich web content in the application.


In addition, this sample also shows how to leverage various application and device level events, with some device integration to create an integrated application.


This .fxp project was built using Adobe® Flash Builder® 4 and is written entirely in Adobe® ActionScript®.  To view the project, import the file into Adobe Flash Builder 4 and all of the resources will be displayed.


There is also an archived version of the project contained within the .zip file to be able to browse through the code without using Adobe Flash Builder 4.


*Update 3/28/12 - A new sample package has been added to work with Flash Builder 4.6 and SDK 2.0. 

by Developer
on ‎03-28-2012 05:42 AM

As of today (using PlayBook OS2.0 and Flash Builder 4.6) this example does not run out of the box. I have made few changes, I'll describe it here, probably this post will save you some time if you just decided to try the example


1) After importing the project in Flash Builder 4.6 it is marked as Desktop application, therefore I just created new ActionScript Mobile Project and copied the source over


2) Changes in FullRSSReader.as: (you need these changes in order to compile the project)

platformVersion.text = "Platform version: " + device.platformVersion;


platformVersion.text = "Platform version: " + device.scmBundle;


webView.enableJavascript = true;
webView.enableScrolling = true;


webView.enableJavaScript = true;
webView.enableSpatialNavigation = true;


webView.autoFit = true;


//webView.autoFit = true;


Further FlashBuilder marked as error all the mx.* imports, so I commented that lines too (line 24-27)


3) After running the app on PlayBook I found that for some reason drawInfoContainer() method is not working properly (overlapping other UI elements), so I commented it (line 270)


Hope this helps

by Developer
on ‎03-28-2012 05:45 AM

P.S. Just a tip - if you'd like to test the different offline storage methods you need to make changes in lines 73-75. Just uncomment the method you want to use and comment the other two (feedManager = ...)

Users Online
Currently online: 25 members 1,757 guests
Please welcome our newest community members: