Re: [Flashcoders] extending built-in classes and scope

2006-09-17 Thread Johannes Nel
if you are extending the xml classes to get search capability look at www.xfactorstudio.com 's xpath implementation On 9/16/06, dc [EMAIL PROTECTED] wrote: hi list - I am trying to add some functions to built in classes. Q1) Using the prototype syntax. Is this an AS1 method, is there a

Re: [Flashcoders] extending built-in classes and scope

2006-09-17 Thread Arul Prasad M L
seems like your pikkle.WireMenu class got imported before the compiler reached your timeline code to add findFirstNode method to the XML object. Try adding your method, using a class ... Or, may be, try wrapping your code to add that method to XML object's prototype in a initclip/ endinitclip

[Flashcoders] extending built-in classes and scope

2006-09-16 Thread dc
hi list - I am trying to add some functions to built in classes. Q1) Using the prototype syntax. Is this an AS1 method, is there a better way to do this with AS2? Q2) this works within my main movie script. however, when i try to use the extended XML object within my own classes, the compiler