Re: [Flashcoders] how to liesten XML onLoad Event?

2006-02-21 Thread zikey Han
Thanks ,Julien Vignali and j.c.wichman! I can do that ! 亲爱的朋友,祝你天天快了! http://www.flashpixy.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Bro

Re: [Flashcoders] how to liesten XML onLoad Event?

2006-02-21 Thread Julien Vignali
here is the infamous scope problem... I use Joey Lott proxy class (http://www.person13.com/articles/proxy/Proxy.htm) to solve that problem when it comes to create an xml parsing class : import ascb.util.Proxy; class MyParser{ private var xml:XML; function MyParser(url:String){ xml

RE: [Flashcoders] how to liesten XML onLoad Event?

2006-02-20 Thread j.c.wichman
> Of zikey Han > Sent: Tuesday, February 21, 2006 8:47 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] how to liesten XML onLoad Event? > > The problem is that : > In doc.onLoad function assigment , I want to transfer > function of showType witch is outside of onL

Re: [Flashcoders] how to liesten XML onLoad Event?

2006-02-20 Thread zikey Han
The problem is that : In doc.onLoad function assigment , I want to transfer function of showType witch is outside of onLoad assigment! But it can't work! It can't catch Varibles from outside of onLoad. doc.onLoad = function (ok) { trace(type_str+".." ); if (ok) { var str = th

Re: [Flashcoders] how to liesten XML onLoad Event?

2006-02-20 Thread Chris Velevitch
On 2/21/06, zikey Han <[EMAIL PROTECTED]> wrote: > Hi,Chris Velevitch, > Thank you for your replay!But I use you mathod ,it's helpless! > you mean that : > put doc.load after doc.onLoad function assigment.But it can do nothing when > i compile it! Is the onLoad function being called (put trace sta

Re: [Flashcoders] how to liesten XML onLoad Event?

2006-02-20 Thread zikey Han
Hi,Chris Velevitch, Thank you for your replay!But I use you mathod ,it's helpless! you mean that : put doc.load after doc.onLoad function assigment.But it can do nothing when i compile it! -- 亲爱的朋友,祝你天天快了! http://www.flashpixy.com ___ Flashcoders@chattyf

Re: [Flashcoders] how to liesten XML onLoad Event?

2006-02-20 Thread Chris Velevitch
On 2/21/06, zikey Han <[EMAIL PROTECTED]> wrote: > var doc : XML = new XML (); > doc.load (xmlPath); > doc.ignoreWhite = true; > doc.onLoad = function (ok) {} Put the doc.onLoad function assignment before you call doc.load(xmlPath). E.g. var doc:XML = new XML(); doc.ignoreWhite

[Flashcoders] how to liesten XML onLoad Event?

2006-02-20 Thread zikey Han
Hi,list, Today I write a class,in this class want to parse xml docunment first ,and then do other events. class like this: /// class com.newShow.GlideWin { var type_str : String; var xmlPath : String; var album_arr : Array; var len : Number;