Subj : Re: Using extends command flag but cannot access inherited fields or methods To : netscape.public.mozilla.jseng From : vwine@yahoo.com (Vaughn) Date : Fri Apr 25 2003 06:22 pm vwine@yahoo.com (Vaughn) wrote in message news:... > Hello, > > I'm using the following to compile a script, named TestScript.js: > > java -cp ".;js.jar" org.mozilla.javascript.tools.jsc.Main -g -nosource > -extends Son TestScript.js > > As you can see, this script extends a class named Son (which extends > Daddy). > > I would like to be able to access member data from Son and Daddy > within TestScript, but when I try I always get exceptions (see the > attached source below for details). Is there something I can do to > get at inherited fields and methods from my script? > > Thank you so much for your help! > > Vaughn > Hello, I turns out that NervousText.js extends Applet and is perfectly capable of accessing inherited methods. When I moved my code out of the global portion of the script and put it in functions, things worked; I could access fields and method adequately. However, my larger more complicated project was still not working. I was getting a ConversionError. Today I discovered what the issue was, but I'm going to start a new thread to describe it (see "Unable to access protected fields in compiled script that extends another class"). Vaughn .