Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
schyst #1
create a navigator from an action event
hi..im a just a new user of FLEX, maybe only a week, and i have this exercise
on creating a UI similar to explorer. a tree will be placed in the left side
and the window on the left. what i want is when i click an item in the tree, a
tab will appear in the left window. and then when another item is clicked, then
another tab will appear. i have this code on creating a button when a tree is
clicked:
import mx.controls.Button;
public var button1:Button;
public function treeClick():void {
button1 = new Button();
canvas1.addChild(button1);
}
<mx:Tree id="tree1" x="0" y="0" width="100%" showRoot="true"
labelField="@label" height="100%" click="treeClick()">
but when i change it to a TabNavigator, it won't work...and also, how can i
know what item in the tree is selected or clicked?
schyst Guest
-
can't create action/droplet that doesn't put results on desktop
I am ready to pull my hair out..... I am trying to create an action, and/or droplet, that will put the results in a designated folder, or even... -
Can we fire a user control event when the user does the action
Can we fire a user control event when the user does the action not in the webservers or custom control event? What actaully I want is to handle a... -
Create an action form the history
I did a search and got no results, but I'm sure the subject has been brought up before. Is there any way to create an action from the history... -
How to create C# Dynamic Control Event Hander
I am creating an web control within a class and instance the class within my code behind and use its methods to dynamically generate page contents.... -
How to Create a user control with a event property?
I want to create a usercontrol and can set Click Event Function to it at desined-time,just as <myprefix:myLinkButton ... OnClick="ClickFunction"... -
ntsiii #2
Re: create a navigator from an action event
Declale the TabNavigator im mxml, empty, with an id, say "tn1".
Then create your content, which must be a container:
var vb1 = new VBox;
tn1.addChild(vb1);
When a node is clicked, the Tree dispatches a click event. A handler for this
event can reference the clicked node using event.target. Also, the
Tree.selectedItem will be a reference to the selected node.
Tracy
ntsiii Guest



Reply With Quote

