ticketmaster uk phone numbers cryptload download honda civic hybrid reviews 2010 samsung omnia 2 verizon release date tan leather gloves ladies toyota camry 2010 price in india autodesk revit architecture 2010 rapidshare plant cell diagram labeled for kids land rover discovery 2 parts catalogue snow leopard server serial numbers mitsubishi lancer evolution viii mr specs dvdfab 6 torrent piratebay mitsubishi lancer evolution ix price crazy hair day n game download xbox 360 elite bundle deals mw2 mitsubishi outlander 2003 service manual used honda crv for sale philippines free screensavers for mac fireplace mitsubishi lancer evolution 8 parts sony vegas movie studio platinum 9 tutorials cheap honeymoon vacations all inclusive dodge trucks for sale by owner volvo s40 repair manual download sony vegas download torrent leather jackets and coats for women xbox live gold membership free trial 2000 jeep grand cherokee parts and accessories autodesk inventor 2010 tutorial series suzuki samurai off road products warcraft 3 download free full game for mac autodesk maya 2010 crack only toyota camry parts and accessories 2010 jeep wrangler unlimited sahara reviews nikon d90 vs canon 50d reviews download guitar hero 5 songs wii honda civic type r price list compaq presario 2100 laptop warcraft 3 frozen throne maps free download warcraft 3 frozen throne maps dota allstars xbox live support number ireland floor tile layout tool operation flashpoint 2 demo download apologize by song diamond jackson pornstar t shirt designing software free download playstation network store game list play pocket tanks game online dodge challenger srt 10 for sale hyundai accent parts catalog nikon coolpix p90 digital camera price in india wrt54g wireless bridge setup the notebook movie download free download free abandonware starcraft full download free software download download free antivirus software mac os x snow leopard torrent download download full free software objective type questions priya rai business affair lobster coupon nude pinup art programming software siemens s7 300 natural pubic hair handbags bali systemworks download trial free scrabble games lottery jackpot tax calculator apprentice lineman jobs bmw motorcycle parts xbox live gold membership codes for free youtube acorralada belt up and buckle off free dream of jeannie slots online game free download flight simulator x controls list lepo je milijonar download download nero start giving a hand job suzuki boulevard s40 free download virus update kaspersky free confederate wallpaper free email guitar strumming queen elizabeth ii ship latest flashget free download download r kelly download gamecube isos maori tattoo download psd files xbox live gold membership codes generator dragonfly tattoo teens bra antivirus pour win98 se breasts photography dvdfab 4 free download the all seeing download free wolf run slot asphyxiation movies work breakdown example in building portfolio management process steps harley davidson screaming parts catalog sony ericsson w910i subwoofer wiring diagram plans for slot ported subwoofer box electronics and computer engineering technology salary bc246t police software download free roller games to download free software unlock lg vx8500 download phim quoc autodesk maya 2010 serial free css templates silkroad download a earthmate gps of warcraft authentication key skype video not working ubuntu free download mp3 song free bible black download printable dvd covers free pei game download free rpg maker xp activation codes download excel vba book coca cola desktop themes beastyality movies free ghosting software autodesk autocad 2010 keygen the phonics game free tycoon games cigarette making machines cheats for psp games opel cars in usa marketing 4ps nativity scene kids costumes toyota replacement parts hot porn movies design your own tattoo lettering using tattoo fonts download screensaver for vista greek tattoo mercedes ambrus download microsoft word concentration camp tours in europe ford f150 radio diagram software download free download msn stocking movies toyota camry 2010 price club tires operation flashpoint 2 demo pc download turbo download suzuki atv manuals download ford escape hybrid battery life expectancy hacker msn password guitar pro tabs archive download jeep wrangler unlimited sahara 2010 self adhesive floor tiles home depot winx dvd ripper platinum keygen kia sorento 2011 mileage linux mint 8 helena reviews suzuki sx4 crossover 2010 reviews saturn sky hardtop 2009 south indian wedding invitation wordings for friends atheros ar5b91 wireless network adapter driver windows 7 minivan comparison reviews telugu movies free online watching jaguar performance parts wireless network security key cracker ford credit account access dodge challenger for sale toyota corolla recalls 2010 canon g11 accessories suzuki parts online uk imtoo dvd ripper platinum 5 serial number xbox 360 hard drive mod banned honda accord parts diagrams wireless network security key finder free hairstyle software windows soccer rules for dummies land rover defender 110 for sale south africa watch tool academy season 1 episode 1 gmc sierra 2500hd duramax diesel for sale paris hilton download 2008 subaru impreza sti for sale recipes for kids snacks derby car designs magic dvd ripper free full version download laptop reviews consumer reports watch saw 6 online free megavideo toyota corolla parts catalogue compaq presario v6000 wireless card not working bmw x5 e53 service manual mercedes benz clk63 amg black series for sale indian personal wedding invitation wordings for friends wireless network adapter driver hp xbox live gold free trial code young teens in bra underwear playstation network cards free codes plant cell parts and functions for kids jeep wrangler for sale by owner in nc honda civic type r mugen rr summer fashion internships 2010 guitar pro 5 crack code watch movies online free streaming twilight free 3d flight simulator games online play hunting games autodesk inventor 2010 download free trial bathroom shower tiles designs famous poems about dreams free sony ericsson w580i software downloads windows 7 wireless network connection disabled install flash player 9 linux tar gz playstation 2 emulator bios torrent compaq presario c700 drivers downloads bank motorcycles compaq mini netbook 110 reviews the logo creator free download for mac buy skate shoes online cheap flight simulator x downloads full version free nikon d40 digital slr camera price in india free templates for powerpoint slides wireless n usb network adapter drivers compaq mini netbook 110c battery macromedia flash player version 7 free download mitsubishi evo ix mr for sale autodesk maya 2010 serial number free software downloads for blackberry bold free marathi movies watch online 2010 ford fusion awd reviews xbox 360 repair guide torrents bmw x6 price list restaurant city hack tools free download play monster truck games online free macromedia flash player 9 download free free xbox 360 e73 repair guide nissan skyline gtr r35 price in malaysia recipes for chicken breasts with bone in wireless networking tutorial pdf samsung cdma mobile phones in india with price kawasaki mule 610 jeep grand cherokee srt8 body kit banana republic coupon code malta weather april draw your own house plans online free linksys wireless g usb network adapter software download nintendo ds games downloads for r4 snow patrol chasing cars mp3 download free english movies online streaming free tattoo ideas for girls wrists sony vegas movie studio 9 tutorials tattoo art samsung led tv 6000 series review 2010 volkswagen jetta tdi wagon review hairstyles for oval faces canon powershot g11 price comparison screensavers for mac os x snow leopard kawasaki versys 2010 reviews guitar bar chord chart 1968 dodge charger for sale in texas nissan rogue forum jeep cherokee reviews 2009 94 isuzu rodeo engine diagram desktop backgrounds nature famous short love poems for him lands end coupon codes free ship 2010 jeep wrangler unlimited sahara accessories flight simulator 2004 no cd crack download dress up celebrities boys download lemmings windows used chrysler 300 for sale in florida 2010 subaru outback review video usb flash drive not recognized windows 7 coupon codes for sears used honda crv for sale by owner samsung lcd tv problems color land rover defender for sale used download xbox live gold membership generator satellite images of earth from space famous portrait photographers wikipedia used dodge charger srt8 parts used bmw x5 diesel for sale usa guitar hero online keyboard game software testing jobs in bangalore bengaluru guitar pro tabs torrent download wireless network bridge isofter dvd ripper platinum keygen 2009 jeep grand cherokee laredo accessories dvdfab 6 serial crack bmw 3 series 2010 models caribbean map with capitals ford escape hybrid 2010 reviews youtube music downloader registration code free uk phone reverse lookup dish network internet prices canon g11 best buy coupon 2009 jeep wrangler rubicon 4 door leah remini in bra satellite tv for pc elite edition 2009 torrent xbox live points generator online autodesk inventor download crack pizza hut coupon codes december 2009 dvdfab 6 torrent crack xbox 360 custom case mods samsung solstice apps sony vaio cw series reviews nikon coolpix s220 driver download sheer lingerie dvdfab 6 crack key guitar pro tabs download pack sony vegas 9 keygen mediafire compaq presario 2100 hard drive removal celebrity cruises deals 2010 guitar tuner software for nokia n73 mitsubishi eclipse gsx turbo for sale bathroom floor tiles black and white mitsubishi outlander 2009 compaq presario 2100 ram memory dvd ripper free trial no watermark pci wireless network card windows 7 ancient egyptian artifacts for kids wireless n router comparison 2009 review snow blowers microsoft bluetooth mouse 5000 driver windows 7 discount furniture outlet atlanta ga pizza hut nutrition calculator uk volkswagen beetle for sale best gaming laptops for under 500 nikon coolpix free gps maps download tomtom digital tv antenna booster used honda civic parts for sale juicer recipes cancer guitar rig 4 pro torrent mac autodesk inventor 2010 key generator 2007 jeep grand cherokee laredo recalls dvdfab 5 registration key generator opel gt parts for sale free poker games winx dvd ripper platinum crack linux mint 8 helena screenshots guitar hero online flash jogos keno drive in 1968 dodge charger for sale cheap doctor serial bluetooth headset reviews for iphone youtube hindi movies free online fendi handbags dish network keys time warner cable tv guide nyc xbox live gold trial code generator hd desktop wallpaper widescreen summer internships for graduate students 2010 xbox 360 wireless adapter driver windows 7 car rental coupons codes enterprise trapped girl game tires plus oil change coupon gps tracking software free download download backgrounds for powerpoint 2007 junior bridesmaid hairstyles pictures pizza sauce recipe food network mercedes amg c63 wallpaper desktop destroyer christmas version portable carpet cleaning machines for sale pizza hut delivery menu prices facebook proxy server tourettes guy soundboard bob saget youtube video converter wmv online download warcraft 3 frozen throne keygen flight tracker live europe tattoo artist 3 online game hyundai santa fe 2010 interior pictures hummer h3 accessories australia watch summer heights high full episodes online mercedes benz fashion week february 2010 tickets snowboarding jackets men honda civic 2010 si sedan free playstation network card code generator samsung tv troubleshooting no color harley davidson boots for men compaq presario v5000 laptop drivers chrysler aspen 2010 photography quotes xanga xbox 360 games on demand free simple plant cell diagram for kids helmet decals stickers snowboards for cheap grassroots festival 2010 compaq presario v5000 laptop specs bmw 3 series coupe facelift 2010 sony vegas movie studio 10 release date compaq presario v6000 motherboard replacement dodge charger srt8 supercharged for sale rolex oyster perpetual datejust ladies price airlines currently hiring flight attendants used dodge trucks for sale in pa free satellite tv software for mac portfolio manager software india facebook proxy login rpg maker xp sprites creator 2010 hyundai elantra touring edmunds download skype for blackberry bold 9700 cox cable modem router setup cadillac cts coupe 2010 release date nintendo ds emulator for mac os x guitar tabs for enter sandman soccer jerseys clearance free dating sim games online wedding invitations templates ticketmaster ticket exchange sony vegas 9 tutorial book limewire 5 free download travel advisory weather air snowboard boots reviews 2009 free download flatbed scanners reviews 2009 clothes mentor orland park movie quotes from the hangover jack lalanne juicer pulp recipes sony vaio support forums used volkswagen jetta for sale in ohio satellite maps live canada 2010 bmw x6 m for sale compaq drivers for vista dvd shrink windows 7 radio shack cycling team gear brooks shoes sony vegas free download full version 2006 hyundai elantra blue book xbox 360 arcade games torrent e36 bmw m3 engine for sale anime dating simulation games online cigarette coupons marlboro chrysler corporate office location free wedding catalogs 2001 honda civic for sale by owner 1970 dodge challenger for sale cheap award for best virus restoration hardware outlet georgia honda civic hatchback for sale in ny computer science vs computer engineering salary us news computer science rankings 2010 girls soccer team quotes ticket to read cheat jeep liberty diesel specs tattoos ideas for girls volkswagen credit audi financial services sony ericsson xperia x10 phone price wireless router range extenders wedding reception invitations only animation vs animator game 2 dvdfab 6 key torrent motorcycle accessories honda shadow eros guide toronto guitar tabs and chords for beginners pontiac vibe 2005 recalls linksys wireless router setup comcast truck rental with liftgate samsung led tv 6000 calibration kawasaki dirt bikes 110cc bluetooth headset reviews 2009 best toyota oem parts catalog hp printers compatible with windows 7 64 bit pool tables for sale used ebay asus bluetooth dongle driver windows 7 mazda rx 8 r3 used desktop calendar free download for vista laminate wood flooring installation cost ancient egyptian food recipes for kids modern bathroom paint ideas wow armory addon advertising agency internet marketing gamecube games on wii system jeep liberty diesel reliability fiber cement siding cost per square foot mazda rx 8 2010 specs gamecube emulator for wii compaq presario f700 drivers free download bmw x5 parts catalogue honda civic hybrid battery life honda generators for sale craigslist mazda rx 8 price in india how to install laminate flooring on stairs video dvd burning software torrent download mitsubishi evolution 8 for sale plant cells and animal cells for kids mazda 626 parts list youtube videos de musica de reggaeton honda accord for sale by owner winter olympics sports icons wedding ceremony vows non religious xbox 360 cheats for gta 4 tbogt skype for macbook pro download pontiac grand prix gtp performance parts guess handbags shop online compaq presario f700 laptop specs gamecube emulator for psp download playstation emulator mac os x leopard keyboard symbols mac os x soccer dribbling drills buy cigarettes online indian reservation 2011 cadillac cts coupe msrp famous haiku poems about love wowwiki toc tactics satellite tv for pc 2009 titanium edition megaupload dish tv india recharge online software architecture diagram sample logo design studio pro torrent


3. Creating a Papervision Base Template

**UPDATE**
Creating and using this custom template is no longer needed. Papervision now includes a BasicView.as see updated tutorial:
Getting started using BasicView.as
view-update

The first thing that you should do when creating a Papervision 3D project is to create a "Base Class" which will serve as a template to speed up the start of each papervision project you attempt.

1) Create a new FlashDevelop Project

Open up FlashDevelop. On the start page, click on the New: Project... Under the Recent Projects Window.

New Project....

The New Project dialog box will appear. Under Actionscript 3, click Empty Project. Type a name into the Name textbox, and tick the box labelled "Create Directory for Project".

New Project Dialog
(Click To Enlarge)

Click OK to close the dialog box. You will now see your project under the Project window. We need to add a source file to the project.

The first thing you need to do to your project is to import the papervision source so that your program can use it. From the menu at the top, choose Project, then Settings.

The Project settings dialog box will appear. Click on the Classpaths tab and click Add Classpath.

You now need to browse to the folder in which you downloaded the GreatWhite source code in tutorial number 2. Select the greatwhite folder (It should contain directories called org, fl and com) and click OK.

You should now have an icon which looks like a Lego Brick containing the GreatWhite source code under your project.

Project Tree

You now need to make a script to be executed when your program runs. Right click on your project in the project tree and goto Add > New Class.

Add New Class

Name the new class PaperBase.as and click OK. You will now have the Main.as file open in your editor. The code will look like this:

Actionscript:
  1. /**
  2. * ...
  3. * @author Default
  4. * @version 0.1
  5. */
  6.  
  7. package {
  8.    
  9.     public class PaperBase {
  10.        
  11.         public function PaperBase() {
  12.            
  13.         }
  14.        
  15.     }
  16.    
  17. }

This is a blank class. Firstly, we need to make this class compile when we run the project. To do this, right click on Main.as under the project tree and select "Always Compile".

We also need to specify the output SWF location. To do this, from the Project menu, select Properties.

On the Output tab under General, you'll see an input box labeled "Output File". Click Browse and choose where to place the output file.

Now, change the source code so that it looks this (Comments in the code explain each step of the way):

Actionscript:
  1. package  {
  2.     // These lines make differant 'pieces' available in your code.
  3.     import flash.display.Sprite; // To extend this class
  4.     import flash.events.Event; // To work out when a frame is entered.
  5.    
  6.     import org.papervision3d.view.Viewport3D; // We need a viewport
  7.     import org.papervision3d.cameras.*; // Import all types of camera
  8.     import org.papervision3d.scenes.Scene3D; // We'll need at least one scene
  9.     import org.papervision3d.render.BasicRenderEngine; // And we need a renderer
  10.    
  11.     public class PaperBase extends Sprite { //Must be "extends Sprite"
  12.        
  13.         public var viewport:Viewport3D; // The Viewport
  14.         public var renderer:BasicRenderEngine; // Rendering engine
  15.         // -- Scenes -- //
  16.         public var default_scene:Scene3D; // A Scene
  17.         // -- Cameras --//
  18.         public var default_camera:Camera3D; // A Camera
  19.        
  20.         public function init(vpWidth:Number = 800, vpHeight:Number = 600):void {
  21.             initPapervision(vpWidth, vpHeight); // Initialise papervision
  22.             init3d(); // Initialise the 3d stuff..
  23.             init2d(); // Initialise the interface..
  24.             initEvents(); // Set up any event listeners..
  25.         }
  26.        
  27.         protected function initPapervision(vpWidth:Number, vpHeight:Number):void {
  28.             // Here is where we initialise everything we need to
  29.             // render a papervision scene.
  30.             viewport = new Viewport3D(vpWidth, vpHeight);
  31.             // The viewport is the object added to the flash scene.
  32.             // You 'look at' the papervision scene through the viewport
  33.             // window, which is placed on the flash stage.
  34.             addChild(viewport); // Add the viewport to the stage.
  35.             // Initialise the rendering engine.
  36.             renderer = new BasicRenderEngine();
  37.             // -- Initialise the Scenes -- //
  38.             default_scene = new Scene3D();
  39.             // -- Initialise the Cameras -- //
  40.             default_camera = new Camera3D(); // The argument passed to the camera
  41.             // is the object that it should look at. I've passed the scene object
  42.             // so that the camera is always pointing at the centre of the scene.
  43.         }
  44.        
  45.         protected function init3d():void {
  46.             // This function should hold all of the stages needed
  47.             // to initialise everything used for papervision.
  48.             // Models, materials, cameras etc.
  49.         }
  50.        
  51.         protected function init2d():void {
  52.             // This function should create all of the 2d items
  53.             // that will be overlayed on your papervision project.
  54.             // User interfaces, Heads up displays etc.
  55.         }
  56.        
  57.         protected function initEvents():void {
  58.             // This function makes the onFrame function get called for
  59.             // every frame.
  60.             addEventListener(Event.ENTER_FRAME, onEnterFrame);
  61.             // This line of code makes the onEnterFrame function get
  62.             // called when every frame is entered.
  63.         }
  64.        
  65.         protected function processFrame():void {
  66.             // Process any movement or animation here.
  67.         }
  68.        
  69.         protected function onEnterFrame( ThisEvent:Event ):void {
  70.             //We need to render the scene and update anything here.
  71.             processFrame();
  72.             renderer.renderScene(default_scene, default_camera, viewport);
  73.         }
  74.        
  75.     }
  76.    
  77. }

This is heavily commented, so it should explain everything that's happening.

When you run the project, you'll just see a blank screen, this is expected because you haven't added anything to the scene yet.

You can download the source file with the code comments or without using the links below:

Download Now

This file will now be used as the basis of any papervision projects that you do, and with very few lines added to that code, you can get really good results.

*EDIT*

Updated 20th August 2008, now works with the GreatWhite codebase changes

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post Post to Facebook Facebook Post to StumbleUpon Stumble This Post

70 Responses to “3. Creating a Papervision Base Template”


  • “Without Comments” version still has one line of comment in it.
    Nice tutorials by the way.

  • I did everything exaclty as above and i get this:

    Running process: C:\Users\Administrator\AppData\Local\FlashDevelop\Tools\fdbuild\fdbuild.exe “C:\Users\Administrator\Documents\PaperBase\PaperBase.as3proj” -ipc 642d8fdc-bd5c-469a-8cb8-a0ada52fb3cc -compiler “C:\FlexSDK” -library “C:\Users\Administrator\AppData\Local\FlashDevelop\Library” -cp “C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes” -cp “C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\User Interface”
    HINT: Improve your build speed when compiling in FlashDevelop3 by placing the Adobe Flex Compiler Shell in your Flex2 bin path.
    Building PaperBase
    mxmlc -load-config+=obj\PaperBaseConfig.xml -debug=true -benchmark=false -o obj\PaperBase633388734994054445
    Error loading: C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
    Build halted with errors (mxmlc).
    Done (1)

  • @Pimm,
    Thanks but that comment has been left in intentionally. It’s just there because it would be an empty function if it wasn’t, just looks neater that’s all :)

    @David,
    Looks like you’ve got a problem with your Java Runtime Environment. Try reinstalling or updating it. You can download the version of the JRE that I use here: http://filehippo.com/download_java_runtime/

    Hope this helps!

  • It works Thanks!!!

  • Great Idea. Thanks, I’ll use this now.

  • I am looking for this same information but for Flex Development (mac based)… took a look at FlashDevelop, snazzy. Any suggestions?

  • 7 I have problems with compiling :(

    Running process: C:\Documents and Settings\ratm\Local Settings\Data aplikací\FlashDevelop\Tools\fdbuild\fdbuild.exe “E:\–{ FLASH 3 }–\frenchtouch\PaperBase.as3proj” -ipc 70700430-2d73-4b63-8e4c-7ae80713fe4b -compiler “E:\–{ FLASH 3 }–\flexsdk” -library “C:\Documents and Settings\ratm\Local Settings\Data aplikací\FlashDevelop\Library”
    HINT: Improve your build speed when compiling in FlashDevelop3 by placing the Adobe Flex Compiler Shell in your Flex2 bin path.
    Building PaperBase
    mxmlc -load-config+=obj\PaperBaseConfig.xml -debug=true -benchmark=false -o obj\PaperBase633403583922343750
    defaults: Error: unable to open ‘E:\—-\flexsdk\frameworks/flex-config.xml’

    Build halted with errors (mxmlc).
    Done (1)

  • C:\Papervision\Base\PaperBase\PaperBase.as(15): col: 31 Error: Type was not found or was not a compile-time constant: Camera3D.
    also
    C:\Papervision\Base\PaperBase\PaperBase.as(35): col: 25 Error: Call to a possibly undefined method Camera3D.

    I just copied your final code…. And went through the set up once again… any suggestions?

  • Running process: “lots of text that isn’t necessary to write”
    Building New-Project
    mxmlc -load-config+=obj\New-ProjectConfig.xml -debug=true -benchmark=false -o obj\New-Project633407533560000000
    Error loading: C:\Program\Java\jre1.6.0_05\bin\client\jvm.dll
    Build halted with errors (mxmlc).
    Done (1)

    Getting the same error as David did, I’ve reinstalled Java three times to make it work but nothing helps (yes, I used the version that you linked). Any suggestions?

    Thanks in advance
    -Joxe

  • You are aware that BasicView in the papervision3D repository has exactly this function ?

  • protected var log :XrayLog = new XrayLog();

    its in org/papervision3d/utils/InteractiveSceneManager.as

    that line is causing an error, its not imported seemingly anywhere, do I have an up to date set of libraries ?

  • Hi Ralph,

    Yeah I’m aware of the BasicView class, but it doesn’t allow as much flexibility and it would require things like the event listeners to be added for every project. I decided to use this for a couple of reasons, 1 – It’s a bit confusing having only half of the basic stuff already done for you, and 2 – Creating my own base class will help people understand the inner workings of the engine.

    @ mojito, You can safely remove all occurences of the XrayLog thing from your project. You’ll most likely never use it, it was just used by the developers to help with debugging.

    -Luke

  • Hello. I am new to this but getting the following error. FlashDevelop worked fine the first time I ran it but now I get the error. I reinstalled another time and still the same. Help

    jwhite@mediatechinc.com

    ould not find file ‘C:\Documents and Settings\ALX\Local Settings\Application Data\FlashDevelop\Settings\MainMenu.xml’.

    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
    at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
    at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
    at System.Threading.CompressedStack.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
    at System.Xml.XmlTextReaderImpl.OpenUrl()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
    at System.Xml.XmlDocument.Load(XmlReader reader)
    at System.Xml.XmlDocument.Load(String filename)
    at PluginCore.Helpers.XmlHelper.LoadXmlDocument(String file)

  • This error ocurred when i try to build project

    “…
    Loading configuration file E:\paper\ExtrudeImage\obj\extrudeConfig.xml
    E:\paper\ExtrudeImage\obj\extrudeConfig.xml(13): Error: unable to open ‘C:\Documents and Settings\Marcio\Local Settings\Application Data\FlashDevelop\Library\AS3\classes’

    Build halted with errors (mxmlc).
    Done (1)”

    Why this? And how can fix this?

  • Still getting the following error. I reinstalled a few times. It just appear the xml file is missing from the folder. Windows XP is my OS. Any help would be great.

    could not find file ‘C:\Documents and Settings\ALX\Local Settings\Application Data\FlashDevelop\Settings\MainMenu.xml’.

    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
    at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
    at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
    at System.Threading.CompressedStack.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
    at System.Xml.XmlTextReaderImpl.OpenUrl()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
    at System.Xml.XmlDocument.Load(XmlReader reader)
    at System.Xml.XmlDocument.Load(String filename)
    at PluginCore.Helpers.XmlHelper.LoadXmlDocument(String file)

  • Just FYI, Figured out the Viewport3D error.

    My suspicion is that folks are downloading Papervision from papervision.org and aren’t getting the GreatWhite build.

    The papervision archive does not include some of the classes within GreatWhite so you will see the Viewport errors.

    Cheers,

    -S

  • I am totally new to all of this and can’t seem to figure out why these import statements are failing. I have followed the instructions above for downloading the GreatWhite files and pointing the ClassPath to this folder on my computer but the following errors are showing:

    MxmlcShell command: -o;C:\Documents and Settings\mark\Desktop\actionscript_pv3d\my_project\PaperBase\PaperBase.swf;–;C:\Documents and Settings\mark\Desktop\actionscript_pv3d\my_project\PaperBase\PaperBase.as
    Loading configuration file C:\Documents and Settings\mark\Desktop\actionscript_pv3d\flex2_sdk_hf1\frameworks\flex-config.xml

    C:\Documents and Settings\mark\Desktop\actionscript_pv3d\my_project\PaperBase\PaperBase.as(5): col: 32 Error: Definition org.papervision3d.view:Viewport3D could not be found.
    Done(4)

    import org.papervision3d.view.Viewport3D; // We need a viewport
    ^

    C:\Documents and Settings\mark\Desktop\actionscript_pv3d\my_project\PaperBase\PaperBase.as(6): col: 35 Error: Definition org.papervision3d.cameras could not be found.

    import org.papervision3d.cameras.*; // Import all types of camera
    ^

    C:\Documents and Settings\mark\Desktop\actionscript_pv3d\my_project\PaperBase\PaperBase.as(7): col: 34 Error: Definition org.papervision3d.scenes:Scene3D could not be found.

    import org.papervision3d.scenes.Scene3D; // We’ll need at least one scene
    ^

    C:\Documents and Settings\mark\Desktop\actionscript_pv3d\my_project\PaperBase\PaperBase.as(8): col: 34 Error: Definition org.papervision3d.render:BasicRenderEngine could not be found.

    import org.papervision3d.render.BasicRenderEngine; // And we need a renderer
    ^

  • Genial! Me ha servido de gran ayuda.
    Great! It was a big help!
    : )
    You are been read by southamericans, in this case from Uruguay.

  • smoov as far as i know…

    your import classes arent at the right folder for flash.

    so check them :)

    hope this fix your prob.

    cheers

  • I’m getting compilation error even with non-strict compile mode:
    Location:
    FreeCamera3D.as, Line 91
    Description:
    1023: Incompatible override.

  • I am having the same issue as sm0o0v.

    C:\ppv3d\3dtest\PaperBase.as(19): col: 23 Error: Type was not found or was not a compile-time constant: Viewport3D.
    C:\ppv3d\3dtest\PaperBase.as(20): col: 23 Error: Type was not found or was not a compile-time constant: BasicRenderEngine.
    C:\ppv3d\3dtest\PaperBase.as(22): col: 28 Error: Type was not found or was not a compile-time constant: Scene3D.
    C:\ppv3d\3dtest\PaperBase.as(24): col: 29 Error: Type was not found or was not a compile-time constant: Camera3D.
    C:\ppv3d\3dtest\PaperBase.as(36): col: 19 Error: Call to a possibly undefined method Viewport3D.
    C:\ppv3d\3dtest\PaperBase.as(42): col: 19 Error: Call to a possibly undefined method BasicRenderEngine.
    C:\ppv3d\3dtest\PaperBase.as(44): col: 24 Error: Call to a possibly undefined method Scene3D.
    C:\ppv3d\3dtest\PaperBase.as(46): col: 25 Error: Call to a possibly undefined method Camera3D.
    C:\ppv3d\3dtest\PaperBase.as(12): col: 32 Error: Definition org.papervision3d.view:Viewport3D could not be found.
    C:\ppv3d\3dtest\PaperBase.as(13): col: 35 Error: Definition org.papervision3d.cameras could not be found.
    C:\ppv3d\3dtest\PaperBase.as(14): col: 34 Error: Definition org.papervision3d.scenes:Scene3D could not be found.
    C:\ppv3d\3dtest\PaperBase.as(15): col: 34 Error: Definition org.papervision3d.render:BasicRenderEngine could not be found.

    I originally had the GreatWhite folder on another hard drive so I moved it back locally and put it on the C:\Flash Repository\GreatWhite

    Any ideas on where I should be putting it or what I may be doing wrong?

  • Alright. Figured out I wasn’t calling the class in my FLA.

  • Hey i dont have a main.as here :(

  • i’m glad…, it’s working properly :) Even though it’s a blank one i feel really happy

  • So how does this work exactly? I do the steps above and then I can just open up Flash CS3 and make a new actionscript file and the base class will already be recognized?

    Do I have to have the PaperBase.as file in my Actionscript 3.0 settings?

    Is Flash Develop a actionscript editor?

    I came to find this page after hitting this error message within Flash CS3:
    Papervision error Type was not found or was not a compile-time constant: Viewport3D, while doing the “PV3D Intro – Hello World (I)” tutorial over at madverticies.com which was a recommended tutorial site by papervision.

    Pardom my ignorance and thanks for your time and consideration.

    Peace and Love,
    Mikeumus.

  • I had the same problem as smoov. Fixed it by removing “” from project classpath which was first in the list. Using the Global Classpath also worked.

  • Hi guys, I’m having trouble to run the blank example. I think it might have to do with languages. When I run the project, I have this error:

    C:\proyectos\scm-medialab\test\as3_projects\PaperBaseOk\obj\PaperBaseOkConfig.xml(13): Error: unable to open ‘C:\Documents and Settings\Jesús\Configuración local\Datos de programa\FlashDevelop\Library\AS3\classes’

    As you can see, there are some odd characters there (they correspond to the words “Jesús” and “Configuración”). Is there a way to configure FlashDevelop, so that I can put those libraries in another directory?

    Thanks a lot.

  • Hi, I just made your base template and I am getting these errors…

    Any idea…

    Running process: C:\Documents and Settings\ASHLEY\Local Settings\Application Data\FlashDevelop\Tools\fdbuild\fdbuild.exe “F:\Ashley\Projects\Islandape 2008\is2008\islandape\islandape.as2proj” -ipc 380b940d-c898-4f49-a1c4-f650da409432 -compiler “C:\Documents and Settings\ASHLEY\Local Settings\Application Data\FlashDevelop\tools\mtasc” -library “C:\Documents and Settings\ASHLEY\Local Settings\Application Data\FlashDevelop\Library” -cp “C:\Documents and Settings\ASHLEY\Local Settings\Application Data\Adobe\Flash CS3\en\Configuration\Classes”
    Building islandape
    Main entry point not found
    Build halted with errors (mtasc).
    Done (1)

    Ashley

  • Para majadero:

    http://blog.sergioalvarez.net/flashdevelop-30-beta/

    Allì està la respuesta al problema

  • I could be stupid here, but I am getting this error when I compile. What could be wrong? Its getting stuck right on the first line

    C:\Documents and Settings\user\My Documents\PaperBase/PaperBase.as:1: characters 0-7 : parse error Unexpected package

  • Hmm… got it. I created an AS2 project I guess. There you go :)

  • When i run the project i get this at my output box:

    AscShell command: C:\Documents and Settings\kkkklk\Bureaublad\Nieuwe map (5)\Project interactive\PaperBase.as
    Done(0)

  • I am trying to run this on a mac with Flash CS3.
    I get these two compiler errors.
    I did download the current base class.

    Warning: 1090: Migration issue: The onPress event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( ‘mouseDown’, callback_handler).

  • Sorry mate, could you tell us which version of Papervision3D your PaperBase is designed to work with? It doesnt seem to work with PaperVision 1.5.

    Thanks mate

  • hello get following error : unexected package paperbase.as anyone know how to fix this

  • I get this error for Viewport3D.as:

  • Hey, can’t post comment

  • I keep on getting this error for Viewport3D.as:

  • Hey what’s wrong? everything after the first line doesn’t get posted

  • Today I got the latest version from scratch, and the errors are gone. Good!

  • @Scott

    some of you guys don’t read from the beginning he tells you its not PV 1.5 you use, he has a big download image on the front page telling where to download the 2.0, he gives you tutorials on the very first tutorial on where to get it..

    now i’m no different the average impatient guy, but i’m sure he does get a bit annoyed at people who fail to pay attention.. go from tut 1 and get the resources he mentions.

    btw.. followed the instructions, although i’m using flashDevelop 3 beta 7 it doesn’t show a main.as, i ignored creating it, and just continued with paperBase.as, and it worked.. thank you :)

  • @AdrianLMS

    I am also having problems with FreeCamera3D…

    Error: Type was not found or was not a compile-time constant: FreeCamera3D.
    Error: Call to a possibly undefined method FreeCamera3D.

  • I did get this to work with the PaperBase.as supplied in this tutorial but not the newest version linked to on the left sidebar.

  • Dood…. you rule. Thank you.

  • Hi Luke

    I tried the tutorial, but I´m getting the error when building for the first time and I´m not getting not even the blank screen.

    the error I´m getting is:
    D:\Trabalhos\Tutoriais_PV3D\PaperBase\obj\PaperBaseConfig.xml(12): Error: unable to open ‘C:\Documents and Settings\FELIPE\Configurações locais\Dados de aplicativos\FlashDevelop\Library\AS3\classes’

    Don´t know how to fix it. Could you please give some hint?

    Thanks a lot!

  • hola necesito ayuda…
    hello i need help …..

    when i like to test proyect appert a error :


    C:\Documents and Settings\web\Mis documentos\Prueba 3d\Prueba\obj\PruebaConfig.xml(13): Error: unable to open ‘C:\Documents and Settings\web\Configuración local\Datos de programa\FlashDevelop\Library\AS3\classes’

    porfavor ayuda.. gracias d antemano.
    pleas help!!! thanks a lot!…

  • What’s up with the hundreds of hidden “buy viagra” links in the page? Tried to copy/paste the class above and accidentally copied the entire page…

  • I have an error that reads as follows:

    Running process: C:\Documents and Settings\Mike\Local Settings\Application Data\FlashDevelop\Tools\fdbuild\fdbuild.exe “C:\Documents and Settings\Mike\My Documents\PaperVision\PaperBase.as3proj” -ipc b43f8c66-75d0-4874-aace-a745b8a00f7f -compiler “C:\Flex2SDK” -library “C:\Documents and Settings\Mike\Local Settings\Application Data\FlashDevelop\Library” -cp “C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes” -cp “C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\User Interface”
    HINT: Improve your build speed when compiling in FlashDevelop3 by placing the Adobe Flex Compiler Shell in your Flex2 bin path.
    Building PaperBase
    mxmlc -load-config+=obj\PaperBaseConfig.xml -debug=true -benchmark=false -o obj\PaperBase633577769111093750
    Loading configuration file C:\Flex2SDK\frameworks\flex-config.xml
    Loading configuration file C:\Documents and Settings\Mike\My Documents\PaperVision\obj\PaperBaseConfig.xml
    Error: a target file must be specified

    Use ‘mxmlc -help’ for information about using the command line.
    Build halted with errors (mxmlc).
    Done (1)

    Any clues?

  • Never mind. I hadn’t set it to “always compile.”

    Now I get a totally different set of errors. :( I’ll try and figure these out, though.

  • Getting an error deep within papervision – latest version…

    BasicProjectPipeline.as line 42 and 88
    1119: Access of possibly undefined property useProjectionMatrix through a reference with static type org.papervision3d.core.proto:CameraObject3D.
    1067: Implicit coercion of a value of type org.papervision3d.core.render.data:RenderSessionData to an unrelated type org.papervision3d.core.proto:CameraObject3D.

Leave a Reply


Follow papervision2 on Twitter

Flash and the City banner
2010 Flash And The City Speaker

RSS Feed