[flexcoders] Re: Tree-to-tree drag & drop

2006-08-10 Thread Michael Montagna
COPY operations arent supported in the Tree by default because the framework cant guarantee deep copies of your objects. You'll need to implement your own COPY logic in the DND methods (MOVE can stay the same) including your own object copy. HTH, -Michael > > On 8/9/06 10:47 PM, "John Mazzocc

[flexcoders] Re: Is it Possible to call a function that's inside of a Tree ItemRenderer?

2006-07-13 Thread Michael Montagna
--- In flexcoders@yahoogroups.com, "sufibaba" <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have a function inside of a custom Tree ItemRenderer. > > I would like to be able to fire this function programatically at the > Tree's level. > > Any light on this is greatly appreciated. > > Cheers, >

[flexcoders] Re: Tree Drag Drop Blues ... Bug Report

2006-07-13 Thread Michael Montagna
--- In flexcoders@yahoogroups.com, "sufibaba" <[EMAIL PROTECTED]> wrote: > > Hi Adobe Engineers, > > I am working quite a lot with the tree control. The problem I am > having is that when a node is draged from a tree to another tree, the > dropped on tree doesn't allow dropping on its first node

[flexcoders] Re: Complex XML in Tree Control

2006-07-12 Thread Michael Montagna
--- In flexcoders@yahoogroups.com, "dadrobson" <[EMAIL PROTECTED]> wrote: > > The XML that I am being sent is in the following format: > > > > > > > > > > > > > > > > > > > > When I bind xml in this format to a Tree control (labelField="@id"), > the collection tags ( and ) mess i

[flexcoders] Re: Flex 2 B3 :: Tree component doubts

2006-05-30 Thread Michael Montagna
Use the @ symbol for e4x attributes.  var attributeValue:* = [EMAIL PROTECTED] Note that if the attribute doesnt exist then you'll get back an empty XMLList.  -Michael --- In flexcoders@yahoogroups.com, "Torben Nielsen" <[EMAIL PROTECTED]> wrote: > > Hi Tracy, > >  > > Thank you for yo

[flexcoders] Re: Flex 2 B3 :: Tree component doubts

2006-05-30 Thread Michael Montagna
The Flex 2 Tree control was designed with this scenario in mind.  I'd take a look at the ITreeDataDescriptor, its default impl, and the various examples on this list and in the FDS samples.war.  Basically, you'll pass your data to the Tree as it is. Then you'll implement your own ITreeDataDesc

[flexcoders] Re: Bet3 Tree with Lines -- 3rd cut.

2006-05-27 Thread Michael Montagna
I took a look and updateDisplayList is getting called due to the mouse events, tree events, and scrolling. It seems correct but I'll verify they are all supposed to be there.  Assuming for the moment that they are necessary, you'll probably want to keep your drawing in UDL and add a flag in UD

[flexcoders] Re: databinding back to source?

2006-05-26 Thread Michael Montagna
I'm not exactly sure what the question is, but it seems you're asking if changes to data pulled from the Tree will be seen in the original data structure?  If that's what you mean, then you don't need binding, the Tree control already uses (and returns) your data by reference.  If you get a da

[flexcoders] Re: e4x XML Class: How to update a text node?

2006-05-25 Thread Michael Montagna
To replace the text of a node you can use replace(); var myXML:XML = blah; trace("myXML:", myXML.toXMLString()); myXML.replace(0, "new node text"); trace("myXML:", myXML.toXMLString()); Output: myXML: blah myXML: new node text -Michael --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[

[flexcoders] Re: F2b3: e4x XML object as Tree dataprovider, how to refresh tree display?

2006-05-24 Thread Michael Montagna
Post beta3, changes to XML will automatically get updated in the Tree control.  And you won't be required to go through XMLListCollection but you can simply make changes to the XML model itself, e.g. delete, +, appendChild, etc. You're seeing a bug in the b3 Tree where the collection events ar

[flexcoders] Re: Flex2: whats a TreeNode convert to

2006-05-24 Thread Michael Montagna
Hi Karthi, I just posted an example descriptor a few days ago.  Let me know if you need more info.  Since you have TreeNode and a hierarchical model already implemented, you can have your Descriptor wrap the methods on your TreeNodes, or else you can abandon the TreeNode implementation and u

[flexcoders] Re: How to break a Flex application in modules ?

2006-05-23 Thread Michael Montagna
In general, you'd look at your components and their relationship with other components. Then you can group related components into packages, wrap them in higher level components to hide complexity, or break them apart for more general reuse.  You'll also see what components are common to various

[flexcoders] Re: dragMoveEnabled in Tree component

2006-05-23 Thread Michael Montagna
That's correct, dragMoveEnabled is true by default. The reason is that Tree controls only implement MOVE operations by default and not COPY.   I'll doublecheck the docs.  Thanks for posting the error. -Michael Flex Framework --- In flexcoders@yahoogroups.com, "Xavi Beumala" <[EMAIL PROTECT

[flexcoders] Re: Flex2b3, Wine and trace()

2006-05-23 Thread Michael Montagna
Does the process have permission to read/write to that location? You might try creating the empty file (default name is flashlog.txt), and then reverifying. You might also try explicitly setting the filename param to something linux friendly like TraceOutputFileName=/var/log/flash/log HTH,

[flexcoders] Re: set node selected on a tree

2006-05-20 Thread Michael Montagna
--- In flexcoders@yahoogroups.com, Jesús Iglesias <[EMAIL PROTECTED]> wrote: > > I have a tree width an object as dataProvider. > > In response a some events of my aplication I need to select one node from the tree. The problem is I don't know how to do it. > > I tried > > treExplorer.select

[flexcoders] Re: Beta 3: Update Tree List Label

2006-05-20 Thread Michael Montagna
--- In flexcoders@yahoogroups.com, "FineLine" <[EMAIL PROTECTED]> wrote: > > Hi, my first post to this list. I built a test app with Flex Builder 2 Beta > 2 with a data update form which allows you to change the names of nodes in a > tree. This ActionScript code used to work to change the tree l

[flexcoders] Re: Tree Custom Data Descriptor Example Update

2006-05-19 Thread Michael Montagna
--- In flexcoders@yahoogroups.com, "sufibaba" <[EMAIL PROTECTED]> wrote:>> Hi Flex Team,> > Wondering if there is a working example for Beta3. The example in the> docs is not working.> > Flex 2.0 Developer's Guide > Building User Interfaces to> Flex Applications > Using Data Providers and Colle

[flexcoders] Re: Flex 2b3 - Tree Problems

2006-05-18 Thread Michael Montagna
--- In flexcoders@yahoogroups.com, "porsoc" <[EMAIL PROTECTED]> wrote: > > I have a string of valid XML that I want to show in a tree control.  I > can not get the tree to render my XML.  All it will show me is one > node with the entire XML string as the label. > > Isn't a control is suppose

[flexcoders] Re: Beta3 - Tree - Control visibility of nodes through XML DataProvider attribut

2006-05-18 Thread Michael Montagna
--- In flexcoders@yahoogroups.com, "thunderstumpgesatwork" <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I need to set the visibility of a node (and therefore it's children) > based on an attribute in the XML data provider. > > Can I capture an event and make the determination? > > What about

[flexcoders] Re: Flex2 Tree Bug crashes browser

2006-02-27 Thread Michael Montagna
There's certainly a bug in here, but you can try replacing the appendChild call: > var newNodeAdded:XML = selectedNode.appendChild(newItem); with: selectedNode.insertChildBefore(null, newItem); Also, I changed selectedNode to type XML from Object. This works for me, the Tree see's th

[flexcoders] Re: Full dynamic tree example

2006-02-27 Thread Michael Montagna
For the record, one way to fetch tree children on demand, is to pin the top level nodes to your Tree and then subclass the datadescriptor getChildren. In getChildren you'd run the service calls and return the appropriate children. -Michael --- In flexcoders@yahoogroups.com, "Pat Buchanan" <

[flexcoders] Re: Flex2 Tree

2006-02-09 Thread Michael Montagna
What you're doing is correct, so this is probably a bug. If we find a workaround I'll post it. Thanks, -Michael --- In flexcoders@yahoogroups.com, Teoti Graphix <[EMAIL PROTECTED]> wrote: > > Hello, > > I am writting this more as a comment then question. > > I have spent 2 days experimentin

[flexcoders] Re: Auto form focus

2006-02-08 Thread Michael Montagna
Initialize might be too early. -M --- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]> wrote: > > Is there a way with in flex to auto foucs on a certain compoent upon > initialization. I have tried the AS2 way > Selection.setFocus("instanceName"); But this does

[flexcoders] Re: Dont Even know how to classify this.

2006-02-08 Thread Michael Montagna
Maybe I missed it in there, but where's the handler for the save action? quAdminEditList(String, String, ...) -M --- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]> wrote: > > I currently have my beta app up and running. However I have ran into a > rather odd problem. > > R

[flexcoders] Re: Tree control in Flex 2 Beta 1

2006-02-06 Thread Michael Montagna
or hierarchical > data. The following sections describe the basic ICollectionView operations > using a list-based collection, but can also apply to similar operations on a > hierarchical collection." > > How is ICollectionView used with hierarchical data? Michael Montagna gave a

[flexcoders] Re: Delete Item after Drag operation in Tree (Flex 2.0)

2006-02-06 Thread Michael Montagna
There's a temporarily open bug in Tree that is causing items to be inserted without the corresponding remove. This appears to be a copy, but its really a bug in move. For now you can delete or copy your objects by implementing your own drag methods. dragStart and dragComplete should do the trick

[flexcoders] Re: Disable expand for tree branch

2006-02-01 Thread Michael Montagna
It's probably a bug if isBranch is ignored in some cases and not others. Also, there's no need to use a custom renderer in this case. The IDataDescriptor interface allows custom implementations of the isBranch and getChildren behavior. This allows for complicated relationships between parents a

[flexcoders] Re: Flex 2.0 beta 1 impressions

2006-02-01 Thread Michael Montagna
Hi Jonas, The Tree control has a few new attributes and classes to take advantage of AS3, e4x and to be generally consistent with other components like List. For the same reasons, we've also removed the ITreeDataProvider interface and its related classes. Things to keep in mind when using the ne

[flexcoders] Re: Tree control in Flex 2 Beta 1

2006-02-01 Thread Michael Montagna
Hi Gunnar,The Tree control no longer provides fine grained access to the nodes and node attributes of the underlying data model, instead you can use your own contract with the data directly.  So if you want to read or change your data, you would do so on that data without going through the Tree