-
newbie compiling problem
Hi there,
I'm completely new to actionscript 3.0 as well as using external *.as files.
I'm now studing the moock essential 3.0 book. The problem is that I don't
know how to compile it... I followed the instructions in the book one on
one but without result: It doesn't do anything.. just a blank swf file while
the classes are full of trace functions..
I am using the flash authoring tool for compiling. I have a fla file and in the
same folder a bunch of *.as files. When I specify the class ref in the
document class field in the properties menu it says:
"A definition for the document class could not be found in the classpath,
so one will automatically generated in the SWF file upon export."
What am I doing wrong?
thanks
-
Senior Member
This means that the class path is not correct. If you have the A.as class in the folder "scripts" you need to write
scripts.A.as
in the fla and
package scripts {
in the .as file.
- The right of the People to create Flash movies shall not be infringed. -
-
Sorry I'm not quite getting it.....
To be more specific:
I have all the files (flas, as files and swfs) in one folder named "virtualzoo/src".
The package name in the as files is named "zoo".
The main class is called "VirtualZoo".
In the fla file I specify "zoo.VirtualZoo" in the document class field.
These are the step by step instructions in the essential actionscript 3.0 book (p130).. but it's not working.
-
Senior Member
You need to place the .as files in a folder named "zoo".
- The right of the People to create Flash movies shall not be infringed. -
-
ohhhh ok thanks! It works
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|