2. Preparing a Papervision3D Project

December 13, 2007 – 3:22 am

The following will teach you how to create a new project in Flash Develop, set the classpath to Papervision, and add a new class to write your code:

Requirements

Steps

  1. Run FlashDevelop
  2. “Project->New Project”
  3. Select “Actionscript 3->Empty Project”
  4. Type name, select a directory, and choose whether or not you want FlashDevelop to automatically create the directory for you then click OK.
  5. “Project->Properties”
  6. “[TAB]Classpaths->[BUTTON]Add Classpath
  7. Select the “src” folder of the GreatWhite Papervision installation then click OK.
  8. Right-click on your project package, “Add->New Class”, then type a class name
  9. Right-click on the class (mine is named “Main.as”) and select “Always Compile” which effectively sets this class as the Document Class

Notes

  • You will not see anything if you compile your project now
  • FlashDevelop will now automatically import Papervision classes any time you strict type or use the new keyword
  1. 6 Responses to “2. Preparing a Papervision3D Project”

  2. I saw a comment on the FlashDevelop forums that this tutorial may not be as complete as necessary. Here’s the comment for those who need it:

    http://www.flashdevelop.org/community/viewtopic.php?p=11362&sid=2fcdea4ae1395b53a7fde8d328dc58c1

    Once you’ve installed FlashDevelop, start it up and do the following-

    *1. Make sure location of the compiler is specified- in FD go to “Tools ->
    Program Settings”, left-click on the “AS3Context” tab and on the
    “Flex SDK Location” line put the name of the folder/dir containing
    the file “mxmlc.exe”.
    2. “Project -> New Project”
    3. Select “ActionScript 3 -> Empty Project”
    4. Give it a name in the “Name:” box, pick a project directory location
    and choose whether or not you want FD to automatically make the
    project folder for you, then click “OK”.
    5. Right-click on the project name then right- or left-click on
    “Properties…”.
    *6. In the “Output” tab of the Properties popup, pick an output name by
    either clicking in the Output File box and typing a name or by
    browsing to it. MAKE SURE YOU ADD THE EXTENSION “.swf” TO THE
    FILENAME OR FLASHDEVELOP WILL GET CONFUSED AT RUNTIME
    AND GIVE YOU AN “UNKNOWN FILE TYPE” ERROR. Set any other
    desired options in the tab (Dimensions, Framerate, Bg color, …)
    7. Now left-click on the “Classpaths” tab then left-click on the “Add
    Classpath…” button.
    8. Browse to the “src” folder of “GreatWhite” Papervision installation
    then click the browser-popup’s “OK” button. Now left-click the
    Properties popup’s “OK” button.
    9. Right-click on the project package then left-click on “Add -> New
    Class…”. Type your preferred class name then left-click the “OK”
    button.
    *10. Left-click on the project “+” button to open it and show the
    new class.
    11. Right-click on the new-class name and select “Always Compile”.
    *12. In the Configuration pulldown at the screentop, change “Debug”
    to “Release” if you are not running an FD debugger.
    *13. Click on the ‘gear’ symbol (just left of the Configuration pulldown)
    or press F8 to compile your project. Double-click on the symbol
    immediately to the left of .swf to run it.

    By John Lindquist on Feb 21, 2008

  3. Thankx

    By Xeepy on May 7, 2008

  1. 4 Trackback(s)

  2. Dec 14, 2007: pv3d.org » Blog Archive » 3. Creating a pv3d 2.0 Skeleton Class
  3. Jan 12, 2008: pv3d.org » Blog Archive » 8. Basic Template and Function Modifier Explanations
  4. Mar 1, 2008: Papervision Setup « ActionScript 3.0 - Flex
  5. Mar 7, 2008: Actionscript 3 - Flex » Papervision Setup

Post a Comment