ljCharlie,
> What path should I be point this Classpath to?
Your best bet is to set aside a folder -- a dedicated
folder, just for
class files -- and set your classpath to that folder. I'm on
a WinXP
machine, so I keep a pair of folders inside My Documents
called
"ActionScript 2.0 classes" and "ActionScript 3.0 classes,"
and I put my
custom class files into those, depending on the version of
the language. My
classpath settings include the path to the "ActionScript 2.0
classes" folder
for AS2 work and the other one for AS3 work.
Inside your dedicated folder, you'll have additional
subfolders as
dictated by the package hierarchy determined by each class
file. Most
often, developers organize their class files into packages
determined by
their domain names in reverse. My domain name, for example,
is quip.net, so
I would put my own custom classes into net\quip\ subfolders
inside my
dedicated folder. If I'm writing classes for manipulating
bitmaps, I might
add a third subfolder:
net\quip\bitmaps\
... in which case my class would belong to the
net.quip.bitmaps package,
such as this:
net.quip.bitmaps.CrazyBitmapClass.
Again, that "net" folder would be inside some dedicated
folder on your
hard drive, and your classpath should only point to the
dedicated folder
(such as C:\Documents and Settings\<user>\My
Documents\ActionScript 3.0
classes\).
If you were using code from Adobe -- but not code that ships
with Flash
directly -- you might create additional subfolders under your
dedicated
folder -- com\adobe\ -- and put those new classes files in
there.
> when I did the Linkage to a button, the tutorial said to
check
> on the Export for Action and Export in first frame check
boxes;
> however, I'm not sure what to type for the Base class. I
tried
> to type in my class name but it didn't work.
The Base class field will be filled in for you
automatically, based on
what sort of symbol you're linking. (A movie clip, for
example, will
automatically have its base class set to
flash.display.MovieClip.) The
thing you'll want to fill in is the Class field. If your aim
is to be able
to attach this symbol at runtime, you don't actually have to
*write* the
class that goes into the Class field, because Flash will
write it for you
automatically. In fact, you'll see a warning message telling
you so. If,
instead, you're actually writing a class file and wish to
associate that
with your symbol, you'll enter the full package to that class
file,
including the class's name. Alternatively, you could simply
put the class's
name alone, if the class file is in the same folder as your
FLA.
David Stiller
Co-author, Foundation Flash CS4 for Designers
http://tinyurl.com/5j55cv
"Luck is the residue of good design."