Nice work Bryan.  Don't worry, your English is understood. :)

Tim Hoff

--- In flexcoders@yahoogroups.com, "Bryan Choi" <[EMAIL PROTECTED]> wrote:
>
> I'll show you about somthing.
>
> ==========================
>
> // import and declare ITreeDataDescriptor
> import mx.controls.treeClasses.*;
>
> private var treeDD:ITreeDataDescriptor;
>
> ..... omission ......
>
> // initialize
>
> treeDD = mxTree.dataDescriptor;
>
> ..... omission ......
>
> // create XML
>
> var capitals = new XML (
>         "<node label='root' value='root'>" +
>          "<node label='U.S. State Capitals'>" +
>           "<node label='AL' value='Montgomery' />" +
>           "<node label='AK' value='Juneau'/>" +
>           "<node label='AR' value='Little Rock'/>" +
>           "<node label='AZ' value='Phoenix'/>" +
>          "</node>" +
>          "<node label='Canadian Province Capitals'>" +
>           "<node label='AB' value='Edmonton' />" +
>           "<node label='BC' value='Victoria'/>" +
>           "<node label='MB' value='Winnipeg'/>" +
>           "<node label='NB' value='Fredericton'/>" +
>          "</node>" +
>         "</node>"
>        );
>
> ..... omission ......
>
> // create XMLListCollection and specific source with XMLList
>
> <mx:XMLListCollection id="capitalColl" source="{capitals.node}" />
>
> // create Tree and specific dataProvider with XMLListCollection
>
> <mx:Tree id="mxTree" width="50%" height="100%" labelField="@label"
showRoot="true"
>              dataProvider="{capitalColl}"
>              change="selectedItemOfTree(event)" />
>
> ..... omission ......
>
> // change event of Tree handle
>
> private function selectedItemOfTree ( event :Event ) :void
>  {
>   var item :Object = event.target.selectedItem;
>   trace ( [EMAIL PROTECTED] );
>  }
>
> ..... omission ......
>
> // add function
>
> var treeItem :Object = mxTree.selectedItem;
> var xmlString :String = "<node label='Add Label' value='Add
Value'/>"
>
> treeDD.addChildAt ( treeItem, xmlString, 0 );
>
> mxTree.invalidateList();
>
> mxTree.expandItem ( treeItem, true, false );
>
> ..... omission ......
>
> // remove function
>
> var parentItem :Object = mxTree.getParentItem ( treeItem );
>
> var len :int = items==null?0:items.length;
>
> for ( var i:int=0; i<len; i++ )
>    {
>     if ( items [EMAIL PROTECTED] == [EMAIL PROTECTED] )
>     {
>      treeDD.removeChildAt ( parentItem, mxTree.selectedItem, i );
>      mxTree.selectedItem = parentItem[0];
>      break;
>     }
>    }
>
> mxTree.invalidateList();
>
>
>
> ===============================
>
> I wanna help you that.
>
> Regards,
> Bryan Choi.
>
>
>
> ----- Original Message -----
> From: "Tim Hoff" <[EMAIL PROTECTED]>
> To: <flexcoders@yahoogroups.com>
> Sent: Thursday, May 25, 2006 10:25 AM
> Subject: [flexcoders] Re: XMLListCollection search [f2b3]
>
>
> Hi Graham,
>
> I'm not sure if it works, but have you tried this approach?
>
> var myTreeData:ICollectionView = new XMLListCollection();
> var myCursor:IViewCursor = myArrayCollection.createCursor();
>
> myCursor.findFirst([EMAIL PROTECTED]:"9998"});
> // maybe just Id?.  According to the docs, this only works if the
> collection is sorted.
>
> myCursor.insert({label:"thing", id:"9999"});
> // might be different syntax for XML
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Bryan Choi" <oopchoi@> wrote:
> >
> > Hi Graham,
> >
> > As you can see that my english is not good.
> >
> > If I can tell you in english well, might be is not now in Korea.
> >
> > So I told you how many it'll help you...
> >
> > I am so sorry.
> >
> > However, I think that you can understand it, if you know that AS
> 3.0 syntax.
> >
> > Any way, I am sad and wanna talk in english well.
> >
> > Regards,
> > Bryan Choi.
> >
> >
> > ----- Original Message -----
> > From: "Graham Weldon" <graham.weldon@>
> > To: <flexcoders@yahoogroups.com>
> > Sent: Thursday, May 25, 2006 9:59 AM
> > Subject: Re: [flexcoders] XMLListCollection search [f2b3]
> >
> >
> > >
> > > Hi Bryan,
> > >
> > > Thanks for that link. Unfortunately I don't read Korean too
well
> (at all).
> > > Do you know if there is an English translation for this
> discussion, or
> > > do you have some code samples that are commented in English?
> > >
> > > Regards,
> > > Graham Weldon
> > > \
> > >
> > >
> > > Bryan Choi wrote:
> > >
> > >> Hi, Graham Weldon.
> > >>
> > >> I am a Korean.
> > >>
> > >> I explained it on my community.
> > >>
> > >> You can see from the url (
> http://cafe.naver.com/flexcomponent/665 )
> > >>
> > >> Actually, I was helped flexcoders members.
> > >>
> > >> So I'll show you and many Korean.
> > >>
> > >> I don't know how many it'll help you to know it.
> > >>
> > >> Thank you,
> > >> Bryan.
> > >>
> > >>
> > >> ----- Original Message -----
> > >> From: "Graham Weldon" <graham.weldon@>
> > >> To: <flexcoders@yahoogroups.com>
> > >> Sent: Thursday, May 25, 2006 9:05 AM
> > >> Subject: [flexcoders] XMLListCollection search [f2b3]
> > >>
> > >>
> > >> > Hi all,
> > >> >
> > >> > I'm wondering if anyone has had any experience or has some
> samples for
> > >> > searching an XMLListCollection for a particular item?
> > >> > I have a nested structure of <element>'s, each having
an "id"
> > >> attribute.
> > >> > I would like to be able to do something like:
> > >> >
> > >> > var myXmlListCollection : XMLListCollection = new
> XMLListCollection(
> > >> ...
> > >> > some data source ... );
> > >> > var item : *** = findItem
(myXmlListCollection, 'MyUniqueId');
> > >> > trace (item.toString());
> > >> >
> > >> > I am unsure of the class type of variable "item" in this
> example. I
> > >> want
> > >> > to be able to add in an element using "item" as the parent.
> So the data
> > >> > type used needs to allow this type of operation. The next
> step will be
> > >> > to add a child to this found item.
> > >> >
> > >> > Any thoughts?
> > >> >
> > >> > Regards,
> > >> > Graham Weldon
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > Flexcoders Mailing List
> > >> > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > >> > Search Archives:
> > >> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > >> > Yahoo! Groups Links
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >>
> > >> --
> > >> Flexcoders Mailing List
> > >> FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > >> Search Archives: http://www.mail-archive.com/flexcoders%
> 40yahoogroups.com
> > >>
> > >>
> > >>
> > >> SPONSORED LINKS
> > >> Web site design development
> > >> <http://groups.yahoo.com/gads?
>
t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
>
Computer+software+development&w3=Software+design+and+development&w4=M
>
acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
> -4QTvxB_quFDtMyhrQaHQ>
> > >> Computer software development
> > >> <http://groups.yahoo.com/gads?
>
t=ms&k=Computer+software+development&w1=Web+site+design+development&w
>
2=Computer+software+development&w3=Software+design+and+development&w4
>
=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig
> =lvQjSRfQDfWudJSe1lLjHw>
> > >> Software design and development
> > >> <http://groups.yahoo.com/gads?
>
t=ms&k=Software+design+and+development&w1=Web+site+design+development
>
&w2=Computer+software+development&w3=Software+design+and+development&
>
w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s
> ig=1pMBCdo3DsJbuU9AEmO1oQ>
> > >>
> > >> Macromedia flex
> > >> <http://groups.yahoo.com/gads?
>
t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof
>
tware+development&w3=Software+design+and+development&w4=Macromedia+fl
>
ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ
> I36cYzBjw>
> > >> Software development best practice
> > >> <http://groups.yahoo.com/gads?
>
t=ms&k=Software+development+best+practice&w1=Web+site+design+developm
>
ent&w2=Computer+software+development&w3=Software+design+and+developme
>
nt&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166
> &.sig=f89quyyulIDsnABLD6IXIw>
> > >>
> > >>
> > >>
> > >> --------------------------------------------------------------
--
> --------
> > >> YAHOO! GROUPS LINKS
> > >>
> > >>     *  Visit your group "flexcoders
> > >>       <http://groups.yahoo.com/group/flexcoders>" on the web.
> > >>       
> > >>     *  To unsubscribe from this group, send an email to:
> > >>        [EMAIL PROTECTED]
> > >>       <mailto:[EMAIL PROTECTED]
> subject=Unsubscribe>
> > >>       
> > >>     *  Your use of Yahoo! Groups is subject to the Yahoo!
Terms
> of
> > >>       Service <http://docs.yahoo.com/info/terms/>.
> > >>
> > >>
> > >> --------------------------------------------------------------
--
> --------
> > >>
> > >
> > >
> > >
> > > ------------------------ Yahoo! Groups Sponsor ----------------
--
> --~-->
> > > Get to your groups with one click. Know instantly when new
email
> arrives
> > > http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
> > > ---------------------------------------------------------------
--
> ---~->
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: http://www.mail-archive.com/flexcoders%
> 40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------
~-->
> Everything you need is one click away. Make Yahoo! your home page
now.
> http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
> -------------------------------------------------------------------
-~->
>
> --
> Flexcoders Mailing List
> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> Yahoo! Groups Links
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to