12-03-2010 08:51 AM
i have started tablet development and new to action script.
i want to design a control like Tree in flex , i have written following code,
var treeData:XML= <root>
<node label="Parent 1">
<node label="Child 1" />
<node label="Child 2">
<node label="Grandchild 1" />
<node label="Grandchild 2" />
<node label="Child 3" />
<node label="Child 4" />
var sampletree:Tree=new Tree();
sampletree.x = 5;
sampletree.y = 50;
sampletree.width = 500;
sampletree.height = 500;
i get no error on compilation but when i run the programm i get a blank screen.
anybody to help?
Also where can i get samples for playbook which demonstrates all control available.
thanks in advance.
12-03-2010 09:47 AM
Maybe error is not in tree control creation, but in main app code. Field creation looks ok, have you tried to put this code in simple hello world from developers introduction guide?
12-03-2010 10:25 AM - edited 12-03-2010 10:35 AM
Can it be becasue Tree is mx.controls.Tree ? If yes, it wont work if you trying to add it to the Sprite.
Dont remember the class name for QNX tree control, please try to use it
12-03-2010 10:41 AM
yes i have added this in simple hello world program.
yes tree is a mx.control.
There is no control named tree in QNX.
so i cant use it?
if not then what will be the proper control like tree in QNX?
12-03-2010 11:18 AM
"Tree" controls on mobile devices are "typically" implemented as a single list, and then when an item is selected, tweens to another list. A gesture to the left will go back to the parent list.
Since no world on an updated SDK after 0.9.1, and if you're trying to get a free PB, I would proceed without any expectations of having a QNX Tree control. Suggest creating two lists that tween back and forth and fill the list from an internal hierarchial data structure depending on the current selection.
Hope that helps.
12-05-2010 07:39 AM - edited 12-05-2010 08:11 AM
so does that mean that i cannot use mx.controls like tree?
so has any one found solution for this?
will mx.xontrols work on playbook?anybody from RIM to answer this?
12-05-2010 09:58 AM
Just a suggestion, but I would go with multiple lists to have a tree-like functionality. It is more finger touch friendly, consistent with other mobile devices in the use of gestures, and probably less memory intensive since the GUI does not have to render so much.
With so much that BB has to do in the next month (bugs, simulator, stability, etc.), I would not pin my hopes on a new QNX tree control in the next 30-45 days.
I would also not expect for BB to respond officially to what might or might not be available since they have not (for the most part) done so from other posts.