A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: newbie compiling problem

  1. #1
    Senior Member
    Join Date
    Feb 2004
    Location
    Amsterdam
    Posts
    209

    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

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

  3. #3
    Senior Member
    Join Date
    Feb 2004
    Location
    Amsterdam
    Posts
    209
    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.

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

  5. #5
    Senior Member
    Join Date
    Feb 2004
    Location
    Amsterdam
    Posts
    209
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center