ActionScript :: How To Display Picker With One Item Using Playbook QNX

Mar 16, 2011

I've got a QNX Picker control that isn't displaying the selected values when there's only one item in the picker. For example:

import qnx.ui.picker.Picker;
var pick:Picker = new Picker();
var arr:Array = [{label: "hi!"}];
pick.dataProvider = new DataProvider([new DataProvider(arr)]);
pick.selectedIndices = [0];
addChild(pick);

The result is a blank picker. Maybe I'm doing something wrong. When there are 2 items in the arr Array, the picker actually shows the selected Indices. How do I get the picker to display the selected item when there is only 1 item to choose from? I'm using Burrito, with Playbook SDK 0.9.3.

View 1 Replies


Similar Posts:


Flex :: Using Qnx.ui.picker.Picker In Mobile Project For Blackberry Playbook

Mar 11, 2011

there is a Picker example for usage in an ActionScript project. It works well in simulator. But how do you use that component in a Mobile Flex Project (with Burrito Flash Builder)? How do you add a qnx.ui.picker.Picker to a spark.components.View? The latter seems to expect a mx.core.UIComponent, but the former is a qnx.ui.core.UIComponent. The ActionScript project I've mentioned above works ok, because the Picker is added to the Sprite. But adding it to a View in a Mobile Flex project fails for me.

UPDATE: I've found this page today: [URL] And also I've found out that the QNX AIR components work on Android as well, wonder if it is legal to use them there? Nothing is mentioned in Playbook SDK Legal Notice.

View 2 Replies

ActionScript 2.0 :: Display Item In Datagrid In Order It Was Chosen And Remove Selected Item

Jul 20, 2010

I am in search of finding a way to display shopping cart items in a flash 8 datagrid in the order it was chosen by the user & also to ability to delete an item if the user choses. Currently I have the items displaying however they are displaying in a position as it is stored and called in the array. [code]

View 5 Replies

ActionScript 3.0 :: Display One Item From XML Feed?

Feb 2, 2009

I did post this in the AS 2.0 forum, as that's my preferred way of working, but am willing to give 3.0 a go if it's not too difficult.

I have this XML that I need to read into flash.

I want to display one of the temperatures in the xml.

For instance, say I want to display the temperature for 'Sydney'.[code]...

View 3 Replies

ActionScript 3.0 :: Get Item Display Onto Stage?

Dec 3, 2009

Tell me what needs to be done in order to get item display onto the stage in Action Script 3. I wrote this code to receive RSS Feeds and it seems to work perfectly, however, I can't get it to display on the stage. When I test, it displays code in the "Output" window.

View 4 Replies

ActionScript 3.0 :: Keeping Item At Top Of Display List?

Jan 19, 2010

I have an AS file which contains all of the code for a main menu. This code loads another AS file which initializes code for the general items that will be on the stage throughout the whole flash. But when I initialize the code for one of the menu items after it's clicked I don't know how to get 2 of the items from the stage elements code to be on top of the display list. Because, as the code for the menu item loads the two stage elements are going to cover the items from that code and after its loaded its going to open up and show them the items that are loaded from the menu item code.

View 4 Replies

ActionScript 3.0 :: Keeping Item At Top Of Display List

Jan 19, 2010

I have an AS file which contains all of the code for a main menu. This code loads another AS file which initializes code for the general items that will be on the stage throughout the whole flash.But when I initialize the code for one of the menu items after it's clicked I don't know how to get 2 of the items from the stage elements code to be on top of the display list. Because, as the code for the menu item loads the two stage elements are going to cover the items from that code and after its loaded its going to open up and show them the items that are loaded from the menu item code.

View 3 Replies

ActionScript 3.0 :: Combobox Does Not Display Selected Item When Masking

Oct 17, 2011

I have one combobox in layer which is under the masking (Mask Layer). It does not display selected item particularly in chrome browser (version 14)

when click on combobox it drops down and display items but when make selected specific item, it doesn't display.

View 3 Replies

Flex :: Display ArrayCollection In Group With An Item Render?

Jul 27, 2011

i got an Arraycollection which holds other arrays in it.i want to display the data inside with an item render but cant manage to do this
here is example code to explain my question

<s:DataGroup dataProvider="{news}"
itemRenderer="components.displaynews">

and this is the item render

<s:Label text="{data.??/}"/>

now what i dont understand is what comes after data? in the array collection the data goes like this : myArrayCollection->[0]->firstname

so when im binding data to item render,how do i represent the [x] to get to the specific name that i want? this obviusly wont work

<s:Label text="{data.[0].name/}"/>

and one more thing is what is the lightest way to display data in a listgroup with simple item render (image and text)

private function convertFBEventData2TreeData(eventData:Object):Object
{
var children:ArrayCollection = new ArrayCollection();[code].....

i dont know what to add after data, i tried many things but nothing work :

View 1 Replies

Database :: DataGrid - Display Selected Item Across Couple Of Labels

May 11, 2011

I have a datagrid that loads content from a database. Once the data has been loaded I have a function that has
selectedIndex=0;
Right after that I call another function that tries to display the selected item across a couple of labels. The problem is nothing loads in the labels unless I run the functions twice. I'm guessing its some sort of data race problem where the item hasn't been selected by the time the function that displays the items in labels runs. How can I get the item to be selected before the next function runs.

View 1 Replies

ActionScript 2.0 :: Display In A Sequence With A Short Delay Between Showing Each Item In Columns

Dec 22, 2005

I have an array of menu items that I'm trying to display in a sequence with a short delay between showing each item in 3 columns. Without manually creating individual text fields and putting them on many frames, how would I do this with actionscript?

[Code]...

View 1 Replies

Actionscript 3 :: SelectedLabel Spark ComboBox = Returns The String For Display In An Item Rendered

Dec 20, 2011

this function bellow returns the String for display in an item renderer.

[Code]...

But i am blocked about the public function set selectedLabel(label:String):void is there anyone who know a function labelToItem or another solution to set my combobox selectedLabel

View 1 Replies

ActionScript 3.0 :: Mc Into Tooltip - Text Fields On The Stage That Display The Title And Description Of The Thumbnail Item?

Feb 11, 2009

bit stuck on something here and hoping that someone will be able to answer this question. i have a gallery generated via xml - i have three text fields on the stage that display the title and description of the thumbnail item.

[Code]...

not quite sure of the best/easiest way is to do it - call from the library and attach to mouse or something along those lines?

View 2 Replies

Flex :: Playbook App Fails To Minimize?

Feb 21, 2011

I am having an issue with a playbook app I am working on. This is the first one i've done using Flex Burrito Hero, and on the simulator I noticed that the app fails to minimize gracefully (when multi-tasking etc). Are there any resources for handling minimization or anything that could help guide me to debug whats going on with that?

View 1 Replies

Actionscript 3 :: Embed Video In A Playbook App?

Mar 25, 2011

How can I embed and play a video from a given url, in a playbook app written in as3?

View 1 Replies

Actionscript 3 :: Graph Library For Playbook?

Mar 31, 2011

I need a line chart in my playbook app. does anybody know a library for that? (for as3 mobile air projects)

View 3 Replies

Flex :: Playbook AIR SDK Images On Surface

Jul 21, 2011

I am trying to write a Playbook app using the AIR SDK, I need a surface of some kind that I can load a large image onto, then subsequently place some smaller images on top of and add the whole lot to a ScrollPane so I can pan it around the screen. I have tried by adding the image to a sprite and displaying that in a group in the application but the image does not show up. What is the correct surface kind I should be using here and how should I be loading the images? (currently using "Embed" and loading the image into a BitmapAsset.)

var scroll:ScrollPane = new ScrollPane();
scroll.setScrollContent(image);
scroll.update();
scroll.graphics.beginBitmapFill(icon.bitmapData);
scroll.graphics.drawRect(100,100,56,56);
scroll.graphics.endFill();
scroll.update();

This code causes a non-moving icon to be drawn behind the scrollContent, I want to add something on top of the scroll content that moves with it.

View 2 Replies

ActionScript 3 :: Instantiate TabbedViewNavigator For Playbook

Nov 16, 2011

How can I instantiate a TabViewNavigator from actionscript for the playbook? Currently, I add the necessary spark frameworks and have this piece of code in the Main of my actionscript project:

[SWF(width="1024", height="600", backgroundColor="#ffffff", frameRate="30")]
public class Main extends Sprite {
private var waitDialog:BaseDialog = new BaseDialog ();
public function Main() {
super ();
[Code] .....

When the button is clicked, the button disappears as you would expect but the tab navigator is not added/does not appear. I tried without removing the Main class but that does not work either. What do I need to do to set up a tab interface. I can get similar code working through Flex and MXML but not in actionscript.

View 1 Replies

Flex :: Building Blackberry Playbook App In Adobe AIR?

Mar 29, 2011

Ive been trying to write my first Blackberry Adobe Flex application but get the following errors:

1172: Definition mx.controls:Label could not be found.

View 1 Replies

Flex :: View Navigation On Blackberry Playbook

Apr 14, 2011

I'm creating a pure actionscript 3 mobile project for Blackberry Playbook. One problem I have came across is that there seems to be no inbuilt way to handle view navigation. In flex mobile projects, we have the spark.components.ViewNavigator component, but this isn't available on a pure AS3 mobile project. These two links are both making their own libraries for view navigation...

[Code]....

View 2 Replies

Flex :: Swiping Through Content On Blackberry Playbook?

Apr 18, 2011

I am creating a Playbook app in Adobe Flex/AIR. I have a situation where there is too much content to show all on one page so I would like it where the content overflows vertically, the user can swipe to scroll down, like they were viewing a website on an Ipad.

I am extending the View class to make my screens, I could place every screen in a one element List or surround it all in a Scroller but surely there must be an inbuilt way to do this on the Playbook?

With the limited Blackberry documentation, I'm struggling to find the solution,

View 1 Replies

Flex :: Remove Choppiness In Scroller On Playbook?

Apr 21, 2011

After deploying the Flex 4.5 Spark Scroller control to a Playbook, the default result is choppy/jittery scrolling and no spring at the top and bottom of the scrolling.

Is there a way to change this behavior to a normal smooth touch scrolling with start and end springiness?

View 2 Replies

Flex :: Push From Server To Blackberry Playbook?

Jul 13, 2011

Is possible to make a "push", initiated by a server, to send data down to a Blackberry playbook application?

If so how is this best implemented in Flex/Actionscript? ie. How do we capture this on the client?

View 1 Replies

Actionscript 3 :: Communication Between 2 Flex Playbook Applications?

Aug 4, 2011

The overall aim of my project is to communicate between two Playbook flex applications. I found this article and tried it out:

[URL]

Application 1 (Called 'App1')

var folder:File = File.applicationStorageDirectory.resolvePath("shared/misc");
folder.createDirectory();
employeeDB = File.applicationStorageDirectory.resolvePath('shared/misc/employee.db');

[Code].....

View 1 Replies

Actionscript :: Option Menu On Playbook View?

Jan 12, 2012

How to make option menu on Playbook view? Is there standard APIs to do that, I am using Air SDK

View 1 Replies

ActionScript 3.0 :: 3 Project (Playbook) & OpenGL Integration?

Jul 25, 2011

I'm building an application that has a certain colouring feature where the user is able to select pencil crayons and essentially draw on a white surface and erase and what not. I was hoping the actual implementation/math/logic for drawing would be taken care of and all I would have to do is set up touch events in my Playbook project.

The problem I have is how do I integrate the openGL library with a Playbook project that solely uses AS3.I've looked around the web for like a 'AS3GL' equivalent but couldn't find anything, it seems that openGL is only catered to certain platforms/languages?

View 1 Replies

IPhone :: Playbook Support For Streaming And Choosing Camera

Dec 23, 2010

I am wondering if Flash / AIR can find all these mobile devices front facing camera and use RTMP to stream the video captured? I would like to create a video conferencing app for these devices. Of course none of them support testing this in the simulators and I don't have the funds to purchase or access all of them that I would like to test. I have seen some posts where they have done this for android but not sure about support for finding a list of cameras, choosing one and streaming from iphone 4 and playbook.

View 2 Replies

Actionscript :: Port A Flash Application To BlackBerry PlayBook?

Jan 2, 2011

I have a Flash application written in ActionScript 2 that I would like to port to the BlackBerry Playbook. The application is composed of an .swf file and a directory containing a large number of vector images. The path to these images (e.g. imagefolder/icons/icon1.swf) is hard-coded into an application and requires the image directory and the .swf file to be in the same directory.

I've installed the PlayBook SDK and have tried packaging the application with FlashBuilder 4, but I have no experience with this programme and have so far been unsuccessful. I tried placing the application in an SWFLoader component, but I then realised after reading this pdf document that MXML components are not supported. Since the app is written in AS2, I believe it cannot be compiled by Flash Builder. I don't need any any of the AIR features so I was wondering how could I embed the .swf and image directory in a Flash Builder ActionScript project so that it would run on the BlackBerry PlayBook.

View 1 Replies

Flex :: Modify Icon Of The Application For Blackberry-Playbook?

Mar 23, 2011

way to modify/replace the icon of a Playbook program?

Like display a red star on it - to indicate there is new message for the user.

I've tried tracing NativeApplication.supportsDockIcon and NativeApplication.supportsSystemTrayIcon properties, but they are both false on Playbook simulator.

View 2 Replies

Flex :: Search - Application For PlayBook Text Input Variable

Jan 8, 2011

how to take what a user inputs into a s:TextInput and use that as a variable in a JSON data request? Basically, I want to have a user enter a search term, like "math" and then have that placed into a variable so I can use it in a JSON request. Something like public var q:String, except that my search box (and hence user input) is on another "view" of the application. I've just started with Flex Mobile applications and I might be way out of my league.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved