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
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 fails with a "no such method" error.

is there a scoping issue, or somehow i have to redefine the XML object
prototype within my own class, Again?

-------- main timeline this is OK:

XMLNode.prototype.findFirstNode = function (searchName) {
        trace("searching for: " + searchName);
}

xml = new XMLNode;
xml.findFirstNode("test");  // fine up to here.

import pikkle.WireMenu;  // fails here

--------------

inside the pikkle.WireMenu i have exactly the same code,
xml.findFirstNode("test");

and there it fails, as if it forgot that it had added extra methods to
the XMLNode class.

thanks for any tips!

/dc
-------------------------------------------
      David "DC" Collier
mailto:[EMAIL PROTECTED]
      +81 (0)80 6521 9559
      skype: callto://d3ntaku
-------------------------------------------
      Pikkle 株式会社
      http://www.pikkle.com
-------------------------------------------
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
j:pn
http://www.lennel.org
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to