ActionScript 2.0 :: Tree-component As File-browser?
May 7, 2004Is it possible to use the tree-component as a regular filebrowser, to display actual files on your computer?
View 2 RepliesIs it possible to use the tree-component as a regular filebrowser, to display actual files on your computer?
View 2 Repliesis there any way to put scroll of tree component in left side of component or creating a custom scrollbar for tree component
View 13 RepliesI'm trying to make a Flex Tree Component display the children of a sprite in a hierarchical way. Moreover, dragging the items on the FlexTree would resort and reparent the items. I have special Elements set as Folders. This would allow other elements to be added there as a children by dragging an element on the tree and dropping it there. I have a failed attempt which works, but breaks when I try to add folders. Basically, it fails at reparenting the items by dragging and resorting folders and that Does anyone know of a component or something which can do this, has anyone have created any of this or could anyone give me a clue?
View 1 RepliesIs there any way to put scroll of tree component in left side of component or creating a custom scrollbar for tree component i asked in many forums but i think all flash designers are dead
View 1 Repliesis there any way to put scroll of tree component in left side of component or creating a custom scrollbar for tree component
View 2 RepliesSo I'm writing a Component for our artists to use and I need to be able to point at an XML document. I could have them simply write out the path in a string, but I'd like to allow them to navigate to the source file with a file browser if possible. I've looked through much of the documentation for metadata tags and haven't found anything "reliable"... for instance... [URL]. Lists possible "types" for [Inspectable] metadata, but it doesn't list nearly all of them... I'm currently using a type="Video Content Path" to let them browse to a video file... but I would think that Adobe would also have a type that allowed to browse to any file type, not just a video.
View 1 RepliesI'm trying to use the tree component in conjunction with a php page I have that produces xml. But I am literally struggling so much its ridiculous*. My php page is printing out this:
Code:
<?xml version='1.0' encoding='utf-8'?>
<folders>
[code].....
I have created a tree diagram using the 'Tree Component' in flash, and have linked it to my XML file:
<?xml version="1.0" encoding="iso-8859-1"?>
<node label = "Sports Club">
<node label = "Ball Games">
<node label = "Tennis" />
<node label = "Soccer"/>
<node label = "Bassball"/>
[Code] .....
If you haven't noticed yet, the tree diagram is nothing complicated, it branches out as 'ball games' and 'athletic games' with sub categories such as tennis, soccer etc. (or 100 Meter & Hurdles for Athletic sports.) Now I've managed to go this far, BUT, what i'm trying to do is that when the user chooses the subcategory e.g. 'Tennis' from the tree diagram, I need to get text into a blank text-box.
I was wondering if I can change the font style, weight, color, etc of an individual node within MM's tree component. I know you can use setStyle to change all elements, but I want to try to narrow it down to certain nodes. Also on a side note I was wondering if the tree component will render text as html.I am loading the content from an xml file.I was wondering if there is a way to have some of the nodes in the document render bold in the tree component.
Edit: I have found more info on what I would like to do and it involves the use of the CellRenderer API.
get the mousewheel working with my tree component? I have this code - but it doesn't seem to work. hmmmm [AS]var mouseListener:Object = new Object(); mouseListener.onMouseWheel = function(delta) { trace(delta); trace('hello'); } Mouse.addListener(mouseListener);[/AS]
View 3 Replieshow to add a check box in flash tree component?
View 2 RepliesI'm using the tree component for a little Windows Parody I'm making. In my .fla, There's a tree component that loads an external XML file. I can't figure out how to add custom icons to my component, though.I know it's possible to set the icons for just the default folder and file icons, but since it's a Windows Parody, there'll be different icons for different file types, folder types, etc.In other words, I'd like to have a different icon for every item in my Tree component.
Here are the contents of my XML file:
<node>
<node label="Desktop">
</node>
<node label="Documents">
[code]....
Also, I don't need to have an XML file loaded. If there's an easy way that does it all within Flash, please tell me. I just need to be able to handle events from the Tree.
i wanted to know hot do i set multiple styles on e tree component using actionscript2.0. i need to change color, font size and font weight.
View 1 RepliesI have created a MyTreeItemrenderer extending TreeItemrenderer.
However, I do not want any label, folder, disclosure icon nor icon. I want to dispaly every node of the tree with my own graphic like eg: a line, round image etc.,
How can you find out if a Flex Component (in my case the tree) is scrollable? I tried it like this
if (_listOwner.height < _listOwner.measuredHeight) {
// so stuff
}
from within the tree's item renderer but didn't succeed. Access to the tree's scrollbar is private so that I can't get the info that way.
i have a namespaced Xml structure :
<rootlevel xmlns="http://www.wigo.org/simo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wigo.org/wigo ./schemas/lexicon.xsd">
<name>simulation</name>
[Code].....
now, i have a labelFunction that passes in the xml..as an object but when i ran the programme, the tree view has each node, name, num_vars and variable as branches but the content in each of them was null and blank.
how can i properly display the namespaced XML on a tree view such that it shows every branches and elements in each branch?
private function treeLabel(item:Object):String{
var label:String = item.localName();
return label;
}
I want to customize the scrollbars on a mx|Tree component is Flex 4. I would like to mimic this functionality: [URL].
View 2 Repliesso ive got this
// Import the treeClasses.* to use TreeDataProvider
import com.yahoo.astra.fl.controls.treeClasses.*;
[code]......
how you set up data binding betweenDataSet and Tree component?
View 1 Repliesgot a client that wants an app that will allow users to build something almost identical to an organization chart, dragging information blocks (tree nodes) and attaching them to higher tiered nodes (which are themselves info blocks) and rearranging branches as required. The client doesn have nearly enough budget for us to construct the chart component from scratch so hoping to find a readymade AS3 component that will work with some tweeks
View 1 RepliesHow do I indicate the visit history on a flex tree component? I want to highlight the clicked/visited nodes to a different color and will not change after that, so that all the visited nodes will be one color. I tried adding an attribute to the underlying XML by
[Code]....
This code does retain the new color, but it also changes the color of nodes which are not visited at all. What am I doing wrong here? Is there any better way to achieve this?
Is there a way display the display list in the Tree component. I could parse the display list into xml but then I would not be able to create a reference to the display object.
View 1 RepliesI have a custom class that extends the Tree component so I can add some logic to the drag and drop functionality and not allow folders to be dropped inside folders.In the dragOver function, I am using:
var currNodeOver:TreeItemRenderer = TreeItemRenderer(indexToItemRenderer(calculateDropIndex(event)));
to determine the drop target, and setting:
[code].....
If i want check parent node checkbox means below childerns checkbox will select automatic .[code]...
View 2 RepliesI've got a Tree component on the stage that allows users to select a node (which sets the enabled to false and sets the focus off the tree) and then they can enter data. The problem is that if they click on the tree (still disabled) they can now use the keys (arrow keys & first character of the line keys) to navigate within the tree component
View 3 RepliesI've got a tree component on the stage that the user can add folders and questions to. I need to write the data from the tree into a database as the user adds items and then re-build the tree from the database when the user re-opens the program. This works fine except the client wants the user to be able to delete and move items within the tree.
I'm not sure how I can track the position of items within the tree so that it re-builds the tree (from the database values) in the same order as it was when the user closed the program?
At first, I thought I would just add the getDisplayIndex of the selectedNode, but that changes when you expand or collapse a folder, and it would also mean that I would have to update a number in each database entry any time the user moves a folder or item...
I'm thinking the only way I can get around this and ensure the db tracks the latest treeview is to provide a "Save" button and make the user hit that (instead of hitting the "Accept Changes" button which currently exists for each item & folder and just updates the database on each new entry). With the "Save" button, I could just copy a new database on top of the old one (removing all the unique id indexes) and then write to the new db. Not the end of the world, but it seems more ponderous and less intuitive. Plus, if the user enters hundreds of items, it could take time to write the entire db each time...
I have an accordion component that contains 3 list components and 2 tree components...there are all the components from the flash library of components...and I need to print the contents of these 5 "lists"For now I'm concentrating on the lists...then I will worry about how to print the trees with all the nodes expanded...but I can't seem to figure out how to determine how many items are in a list.
View 7 RepliesI'm using the iconField property of the Flex Tree to dynamically set the icon that a node should use. This works fine for leaf nodes but for branch nodes it doesn't seem to respect my iconField and instead just shows the default folder node.
Here's a simple repro:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
[Embed("assets/icon1.png")]
[Code].....
What happens is that icon2 shows for the East and West nodes but icon1 doesn't show for the Sales node. How can I get this to work?
Is there a way to enable dragging of only leaf nodes in a tree component?
View 1 Repliesdoes anyone knows how i could just eliminate the folder icon of a tree control and display only the leaf? supposing i have an xml structure looking this :
[Code]...