atributo isOpen en el componente tree
Escrito el 26/08/2005 por Xavi Beumala
El problema es el siguiente. Queremos que un tree component cargue sus datos de un xml y que saque de este el estado inicial de sus TreeNodes (si estan abiertas o cerradas).
Para hacerlo podríamos implementar una función que recorriera el dataProvider en busca del atributo isOpen y hacer un setIsOpen(true). Pero si modificamos el código del componente resulta algo más sencillo.
En la linea 58 de la clase mx.controls.treeclasses.TreeRow donde pone:
if (branch) { if (nI==undefined) { nI = owner.getStyle( (open) ? "folderOpenIcon" : "folderClosedIcon"); } else {
ponemos:
if (branch) { if (nI==undefined) { nI = owner.getStyle( (open) ? "folderOpenIcon" : "folderClosedIcon"); } if (node.attributes.isOpen == "true" && firstTime) { owner.setIsOpen(node,true,false,false); firstTime = false; } } else {
Donde la variable firstTime es una variable de clase (definida con el resto de variables de la clase) definida como:
var firstTime:Boolean = true;
Ahora podremos utilizar una estructura de xml como la siguiente:
<node label="Local Folders" isOpen="true"> <node label="Inbox" data="0"/> <node label="Outbox" data="1"/> </node>
Acordaros que para que los cambios que hagáis en la clase TreeRow afecten al componente que tengas en el fla, teneis que forzar la carga de la clase. Yo simplemente pongo una referencia a ella en el frame 1: mx.controls.treeclasses.TreeRow; Para aseguraros que se está cargando podéis ponerle algun trace de verificación.
tette giovani webcam liceali vecchie obese immagini auto tette sode perle nere castration video nuvola nera negrone nudo freddissimo college
[URL=http://www.sexy-giornaliste.rehoko18.info]sexy giornaliste[/URL] sexsi lesbo [URL=http://www.sculacciare-culi.rijoko18.info]sculacciare culi[/URL]
viagra cialis levitra soma tramadol ultram
Weather web site, NEW
Looks very good.Thanks for article.
Thanks for very interesting article. I really enjoyed reading all of your posts. It?s interesting to read ideas, and observations from someone else?s point of view? makes you think more. So please keep up the great work. All the best
Looks very interesting. Thanks for sharing.
Thanks... http://www.oqtr.com/
Looks great!Thanks for sharing.
Thanks you
Thanks!
Abiye Thanks!
looks great!
Thanks
hilary duff
Thanks
ceren morayibrahim kendirciaslı enverefe daghanpelin karahanpinhaniKavak Yelleritokio hotelhilary duffAvril Lavigne
Thanks
Thanks so muchhh...
Thanks so much..
Thanks
thank you
Thank so much
thanks
Good..
thanks...
thanks
thank you
thank you
thank you
kız oyunları en güzel oyunlar güzel oyunlar güzel oyun oyunlar oyun komik oyunlar 2 kişilik oyunlar oda oyunları oda oyunları tatil tatil köyleri tatil yerleri tatil köyü tatil sepeti ucuz tatil ets tur çizgi film çizgi film izle çocuk oyunları çocuk oyun çocuk oyunu cocuk oyunlari oyun kiz oyunlari oyunlar bedava oyunlar bedava oyun kız oyunları beybix saç kesme oyunları saç oyunları doktor oyunları ameliyat oyunları var mısın yok musun beybix selena oyunları oteller ucuz otel tatil köyleri bez bebek kelimatör flash games onilne games mountain bike games extreme pamplona
Thanks
kız oyunları çocuk oyunları çocuk oyun bedava oyunlar oyunoyunlar saç oyunları doktor oyunlarıselena oyunlarıkomik oyunlar2 kişilik oyunlaroyunlarameliyat oyunları oyun oyunlar güzel oyun en güzel oyunlar chip oyun saç oyunları doktor oyunları bedava oyunlar cocuk oyunları çocuk oyunları kız oyunları
http://www.chipoyun.com
Thank you for taking the time to publish this information very useful!
thanked post
iyinet webmaster forumu 2008 seo yarışması tHAnk yOUiyinet webmaster forumu 2008 seo yarışması tHAnk yOUiyinet webmaster forumu 2008 seo yarışması tHAnk yOUiyinet webmaster forumu 2008 seo yarışması tHAnk yOUiyinet webmaster forumu 2008 seo yarışması tHAnk yOUiyinet webmaster forumu 2008 seo yarışması tHAnk yOUiyinet webmaster forumu 2008 seo yarışması tHAnk yOU
pr5 toplist, site ekle, link ele, url ekle
sohbet, chat, kamerali sohbet, seslichat
pr4 toplist, link ekle, site ekle
htmlkodlar, webmaster araçlari