A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Unable to run the program

  1. #1
    Junior Member
    Join Date
    May 2004
    Posts
    25

    Unable to run the program

    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.

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    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. -

  3. #3
    Junior Member
    Join Date
    May 2004
    Posts
    25
    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.
    Attached Images Attached Images

  4. #4
    Junior Member
    Join Date
    May 2004
    Posts
    25
    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.
    Attached Images Attached Images

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center