I have just moved to cs3 (AS3). I am unable to make some programs run. For example I have downloaded the photo viewer from actionscript.org http://www.actionscript.org/resource...-V2/Page1.html but when I run this program, it shows just blank screen nothing else. Even SWF file is showing the same.
And it shows the error, "A definition for the document class could not be found in the classpath, so one will be automatically generated in the swf file upon export." While classpath is the same as of .FLA file.
Can anybody please tell me what to do?
I am new to this so I am unable to figure out how to do .AS file and .FLA file.
Thank you for any help.
The path to the Document class is wrong in the properties of the main movie. Open the fla file and go to properties. Where its says Document class there is the path to the class written something like com.Main for example. If the Main class is located in com.files.Main you would get the error you get. You need to make sure that the path is correct. Check where the class, in this example Main, is located and correct that.
- The right of the People to create Flash movies shall not be infringed. -
Thank you for the reply but I am unable to locate the classpath. I am uploading screen shot of my fla file. Please tell me where it is? Thank you so much for all the help.
OK, finally I could do it. What I did was, I clicked on settings button in the property window. Then clicked on ActionScript 3 settings button then Added classpath in the box at the bottom. I have some screen shots for it which I am including here. Thank you for all the help.