PDA

View Full Version : Document Class Not Found


elveatles
07-30-2009, 10:47 PM
Hi, I'm having trouble with this seemingly easy task of getting Flash to find the document class.

I have a "develop" folder in which I have two folders "as" and "fla". I saved my .fla in the fla folder and I'm trying to point to my document class (Main.as) in the as folder. So in the publish settings, I added a classpath (../as) yet it doesn't find Main.as when I type in "Main" and click on the pencil icon. So then I just clicked on the target icon and browsed to that exact folder, and it still doesn't find Main.as.

Main is as simple as it gets:
package
{
import flash.display.Sprite;

public class Main extends Sprite
{
public function Main()
{
trace("blah blah blah");
}
}
}

I don't understand! Please help.

sam.uk.net
07-31-2009, 02:10 PM
Set the classpath back to how it was and try putting it the document class:

../as/Main.as

Good Luck ;)

sam.uk.net