Which Papervision 3D classes?

Hi,
3 years ago I made a Papervision 3D carousel with Actionscript 3.0 in Flash CS2.
I downloaded the 3D classes from http://code.google.com/p/papervision3d/dowloads/list the file: Papervision3D_1_5.zip
All worked fine.
I now run CS5 on a new iMac and have changed the pics in the carousel.
The file Papervision3D_1_5.zip on the site has become a deprecated file.
Which file should I have to make it run again?
My 3 year old tutorial and the actionscript 3.0 were fine then,
But should I make any changes to it?
Code:
=================================================================
package
import flash.display.*;
import flash.display.stage.*;
import flash.events.*;
import flash.geom.ColorTransform;
import flash.utils.Dictionary;
// Import Papervision3D
import org.papervision3d.core.proto.*;
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.materials.*;
public class main extends Sprite
// ___________________________________________________________________ 3D vars
private var container :Sprite;
private var scene     :MovieScene3D;
private var camera    :Camera3D;
private var planeByContainer :Dictionary = new Dictionary();
// ___________________________________________________________________ Album vars
private var paperSize :Number = 0.4;
private var cloudSize :Number = 1500;
private var rotSize   :Number = 360;
private var maxAlbums :Number = 9;
private var num       :Number = 0;
private var radius    :Number = 500;
private var anglePer  :Number = (Math.PI*2) / maxAlbums;
// ___________________________________________________________________ stage
public var myContent :MovieClip = new MovieClip();
// ___________________________________________________________________ main
public function main(){
//stage.quality = StageQuality.MEDIUM;
init3D();
addChild( myContent );
this.addEventListener( Event.ENTER_FRAME, loop );
// ___________________________________________________________________ Init3D
private function init3D():void{
// Create container sprite and center it in the stage
container = new Sprite();
addChild( container );
container.x = 380;
container.y = 230;
// Create scene
scene = new MovieScene3D( container );
// Create camera
camera = new Camera3D();
camera.zoom = 5;
// Store camera properties
camera.extra =
goPosition: new DisplayObject3D(),
goTarget:   new DisplayObject3D()
camera.extra.goPosition.copyPosition( camera );
// ___________________________________________________________________ Create album
private function createAlbum(){
var material:MovieAssetMaterial = new MovieAssetMaterial( "Thumb" );
material.doubleSided = true;
material.lineColor = 0xFFFFFF;
material.movie.gotoAndStop( num +1 );
material.updateBitmap();
var plane :Plane = new Plane( material, paperSize, 0, 4, 4 );
// organise position
var gotoData :DisplayObject3D = new DisplayObject3D();
gotoData.x = Math.cos(num*anglePer) * radius;
gotoData.z = Math.sin(num*anglePer) * radius;
gotoData.rotationY = (-num*anglePer) * (180/Math.PI) + 270;
plane.extra =
id: Number,
goto: gotoData
plane.extra.id=num;
// Include in scene
scene.addChild( plane, "Thumb" + String( num ) );
var container:Sprite = plane.container;
container.buttonMode = true;
container.addEventListener( MouseEvent.ROLL_OVER, doRollOver );
container.addEventListener( MouseEvent.ROLL_OUT, doRollOut );
container.addEventListener( MouseEvent.MOUSE_DOWN, doPress );
planeByContainer[ container ] = plane;
num++;
// ___________________________________________________________________ Button events
private function doPress(event:Event):void{
var plane:Plane = planeByContainer[ event.target ];
plane.scaleX = 1;
plane.scaleY = 1;
var target :DisplayObject3D = new DisplayObject3D();
target.copyTransform( plane );
target.moveBackward( 350 );
camera.extra.goPosition.copyPosition( target );
camera.extra.goTarget.copyPosition( plane );
plane.material.lineAlpha = 0;
var fr :Number = plane.extra.id;
myContent.gotoAndStop(fr+2);
private function doRollOver(event:Event):void{
var plane:Plane = planeByContainer[ event.target ];
plane.scaleX = 1.02;
plane.scaleY = 1.02;
plane.material.lineAlpha = 1;
private function doRollOut(event:Event):void{
var plane:Plane = planeByContainer[ event.target ];
plane.scaleX = 1;
plane.scaleY = 1;
plane.material.lineAlpha = 0;
// ___________________________________________________________________ Loop
private function loop(event:Event):void{
if( num < maxAlbums )
createAlbum();
update3D();
private function update3D():void{
var target     :DisplayObject3D = camera.target;
var goPosition :DisplayObject3D = camera.extra.goPosition;
var goTarget   :DisplayObject3D = camera.extra.goTarget;
camera.x -= (camera.x - goPosition.x) /12;
camera.y -= (camera.y - goPosition.y) /12;
camera.z -= (camera.z - goPosition.z) /12;
target.x -= (target.x - goTarget.x) /12;
target.y -= (target.y - goTarget.y) /12;
target.z -= (target.z - goTarget.z) /12;
var paper :DisplayObject3D;
for( var i:Number=0; paper = scene.getChildByName( "Thumb"+i ); i++ )
var goto :DisplayObject3D = paper.extra.goto;
paper.x -= (paper.x - goto.x) / 12;
paper.y -= (paper.y - goto.y) / 12;
paper.z -= (paper.z - goto.z) / 12;
paper.rotationX -= (paper.rotationX - goto.rotationX) /12;
paper.rotationY -= (paper.rotationY - goto.rotationY) /12;
paper.rotationZ -= (paper.rotationZ - goto.rotationZ) /12;
scene.renderCamera( this.camera );
=================================================================
Note that I haven't been really busy with Flash since then ...
Would appreciate any help on this,
Enzo
code:

Yes, I do.
The errors:
1046: Type was not found or was not a compile-time constant: BitmapFileMaterial.
1180: Call to a possibly undefined method BitmapFileMaterial.
(lines 22 - 27)

Similar Messages

  • How to create Gantt Chart by Java? which package n class include it?

    may i know how to craete Gantt Chart or any other chart using Java programming?? which package n class enable me to do so..?? i try 2 find on API but fail lo
    thanks

    http://www.egantt.com/

  • Which view object classes should be used by managed bean in ViewController?

    I just like to find out which java implementation classes created for a view object should be referenced in a managed bean on the UI side.
    For my view object InfoVO, I can create the following classes:
    View Object class: InfoVOImpl
    View Row class: InfoVORowImpl
    View Row Client Interface: InfoVORow
    View Row Client Class: InfoVORowClient
    Currently, I use InfoVOImpl and InfoVORowImpl in my managed bean so that I can use the getter methods conveniently to access the attributes with proper data types.
    I am not sure when I should use InfoVORow and InfoVORowClient instead of InfoVORowImpl.
    What are the context and reasons for using InfoVORow or InfoVORowClient instead of InfoVORowImpl?

    Hi,
    all of these are wrong. If you want to access a method exposed on a ViewObjectImpl class, the you expose the method as a clientMethod (or clientInterface) in the Java options for the View Object (or Application Module if the method is on AMImpl). You should avoid using implementation classes directly in the managed bean. If you need to access a View Object, use its interface ViewObject. If you need anything more specific than that, expose a method on the client interface after which you can access it through the binding layer.
    Frank

  • LoadClass    (error loading a class which extends other class  at run-time)

    Hey!
    I'm using the Reflection API
    I load a class called 'SubClass' which exists in a directory called 'subdir' at run-time from my program
    CustomClassLoader loader = new CustomClassLoader();
    Class classRef = loader.loadClass("SubClass");
    class CustomClassLoader extends ClassLoader. I have defined 'findClass(String className)' method in CustomClassLoader.
    This is what 'findClass(String className)' returns:
    defineClass (className,byteArray,0,byteArray.length);
    'byteArray' is of type byte[] and has the contents of subdir/SubClass.
    the problem:
    The program runs fine if SubClass does not extend any class.
    If however, SubClass extends another class, the program throws a NoClassDefFoundError. How is it conceptually different?
    Help appreciated in Advance..
    Thanks!

    Because i'm a newbie to the Reflection thing, i'm notI don't see reflection anywhere. All I see is class loading.
    sure what role does the superclass play when i'm
    trying to load the derived class and how to get away
    with the errorWell... hint: all the superclass's stuff is not copied into the subclass.
    I am quite sure it fails to load the superclass because of classpath issues.

  • How to access a method of a class which just known class name as String

    Hi,
    Now I have several class and I want to access the method of these class. But what I have is a String which contain the complete name of the class.
    For example, I have two class name class1and class2, there are method getValue in each class. Now I have a String containing one class name of these two class. I want to access the method and get the return value.
    How could I do?
    With Class.forName().newInstance I can get a Object. but it doesn't help to access and execute the method I want .
    Could anybody help me?
    Thanks

    Or, if Class1 and Class2 have a common parent class or interface (and they should if you're handling them the same way in the same codepath)...Class c = Class.forName("ClassName");
    Object o = c.newInstance(); // assumes there's a public no-arg constructor
    ParentClassOrInterface pcoi = (ParentClassOrInterface)o;
    Something result = pcoi.someMethod(); Or, if you're on 5.0, I think generics let you do it this way: Class<ParentClassOrInterface> c = Class.forName("ClassName");
    // or maybe
    Class<C extends ParentClassOrInterface> c = Class.forName("ClassName");
    ParentClassOrInterface pcoi = c.newInstance();
    Something result = pcoi.someMethod();

  • Under Which Package HttpSessionEvent.class is present in jdk 1.4.1.

    Hi,
    The HttpSessionEvent.class is a per-defind class or what if pre-defined class under which package it is coming.
    And Where to find the per-defind classes and its packages.
    Where i can find the package javax.servlet.http.
    please guide me i am a newbee
    Thanks in advance

    HttpSessionEvent is not a class with the J2SE distribution.
    It can more than likely be found under jar files in the J2EE distribution.

  • Find jar file which contains wanted class

    I have too many jar and zip files under my classpath. How could I know which jar or zip file contains the class file I wanted?
    Thanks.

    Maybe this tool will be of interest to you:
    Java Tip 105: Mastering the classpath with JWhich - Identify which class will be loaded in your classpath
    http://www.javaworld.com/javaworld/javatips/jw-javatip105.html?
    Jesper

  • Which SAP BPS Class?

    Hello,
    I am in the process of learning BPS and I am wondering what the difference is between SAP's BW370 an SEM215 courses?  I already have knowledge of BW, but am wondering which of these two classes is necessary for me to enter a BPS job.
    Do I require both or is one of them enough?
    I would appreciate any information.

    Gentlemen,
    If I may add my 2 cents worth at this late stage, given my experience as an Instructor  SAP Academies ...
    In my considered opinion, these are two different sides of the planning component within  (what used to be SEM Planning, and is now) BI Planning.
    BW 370 focusses more on the <u>BI-IP functionality</u> aspect of planning and to a lesser extent on the nuances & intricacies of working with <u>SAP-delivered Planning Applications</u>, which is what SEM215 focusses on.
    The objective of SEM215 is, I quote,
    "- The application of the knowledge gained from BW370 or TBW45 to business issues in accounting issues and implementing them with SEM-BPS
    - The analysis focuses on integrating subplans such as sales and profit planning, profit center, overhead cost, personnel cost, investment, balance sheet and liquidity planning into a business plan."
    <u><i>If you will, I'd probably look at BW370 as breadth (of functionality) and SEM215 as depth (of usage & application); and is intended as a follow-on course ...</i></u>
    Assuming that you're looking to engage in on-site consulting, I'd say that a key success factor, (obviously in addition to the knowledge of functionality) <u><i>is the ability to better map business concepts and requirements to the system using the connections available </i></u>within SEM/ BPS.
    This in my view is the utility of SEM215
    I quote the curriculum for your reference ...
    <u>BW370</u>
    Status and tracking system
    Setting up planning structures and observing modeling aspects
    Setting up customizing and executing planning functions
    Setting up a planning query that is ready for input using the BEx Query Designer
    Integrating the plan query in different end user interfaces
    Displaying different query tools in the planning context
    Using the characteristics relationships to integrate correct business characteristics relationships in the planning
    Integrating the status and tracking system as a monitoring tool in the planning
    <u>SEM215</u>
      Sales and profit planning with hierarchies and variables as part of top-down and bottom-up planning as well as rolling forecast modeling approaches.
    Overhead cost planning with primary and secondary costs.
    Balance sheet planning using financial planning functions.
    Personnel cost planning.
    Investment planning for new units and their simulated depreciation
    Integrating profit center accounting to the other subplans.
    Liquidity planning and cash flow analyses.
    Assessing business key figures for success-oriented enterprise controlling.
    Showing how the subplans interact with a Web interface as part of a planning folder.
    Showing various retractions such as cost center retraction and investment retraction.
    As you can see, the orientation is quite different; and I concur with the thought that one does require the foundation of BW370 to provide breadth before one goes off diving into the depths
    There, my rather long-winded tupenny worth
    Rgds
    /Anand Murthy
    What I've conveniently ignored is the fact that BW370 is all about the way forward (IP etc.) while SEM215 is still mired in the BW 3.5-ish world. So, you're not going to do work on the latest & greatest environment. Yet, the content is valuable & the understanding can be carried thru' into your working env. (tho' u might end up doing a sh*t-load of config to re-create the self same Planning Apps in BI 7.0 IP). I'm sure that this'll change pretty soon, as SAP's already brought a few Planning Apps over (B/S Plg comes to mind), albeit in a somewhat skeletal manner; so you can be sure that the rest'll follow pretty soon.
    There!
    Now, I'm truly done!
    Cheers!

  • Can I test which one owner class Child's instance.

    $ cat Child.java
    public class Child
    public Child(){}
    //how to Know which owner the object,ParentA or ParentB?
    public void testParent()
    $ cat ParentA.java
    public class ParentA
    Child a;
    $ cat ParnetB.java
    public class ParentB
    Child b;
    $

    you may misunderstand the concept of object variables, they are reference to an object. an object may have many references from many other objects, and you can't tell the object itself belongs to what object. in your case, the child actually is a reference rather than an object, and the reference is a value, it can just stay inside the you-called parent objects, and any assignment or method return value is a copy of the reference rather than itself. so it does not make any sense to find its parent.

  • If I want to paste from clipboard on a Flex web app, which element and class should I use?

    I want to have this function: copy image from somewhere, and paste in an area in  Flex app, can I realize that?
    which element to support? canvas?
    which class can implement this?
    thanks!

    With System.setClipboard("Text this in clipBoard"); this we can use for Text, but I am not sure for setting Images in ClipBoard or no.
    You can refer this
    http://www.flexets.com/show-image-from-clipboard

  • Error in running jsp file which contains inner class,help !

    Environment ias sp4 for windows2000
    Error:
    try to access class jsp.APPS.bsteelWZ.order.OrderMgmtMain$1$sOrderHelper
    from class jsp.APPS.bsteelWZ.order.OrderMgmtMain
    OrderMgmt.jsp contains a class named sOrderHelper.
    It's all ok on ias sp2 for solaris.
    Thank you!

    405 errors in the HTTP cycle
    Any client goes through the following cycle:
    * Obtain an IP address from the IP name of your site (your site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
    * Open an IP socket connection to that IP address.
    * Write an HTTP data stream through that socket.
    * Receive an HTTP data stream back from your Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.
    This error occurs in the final step above when the client receives an HTTP status code that it recognises as '405'.
    Resolving 405 errors - general
    405 errors often arise with the POST method. You may be trying to introduce some kind of input form on your Web site, but not all ISPs allow the POST method necessary to process the form.
    All 405 errors can be traced to configuration of the Web server and security governing access to the content of the Web site.

  • How do I deal with a Java method which returns a class object?

    Hi, I am using JNI to talk to some Java code from c++;
    I have a java method in class B that is defined as
    class B{
    A[] As;
    A getA(int i){
    return As(i);
    where A is one of my classes.
    I would like to know the code to deal with a returned object of type A and then how to access the variables in A from c++.
    I have defined my method pointer as :
    env->GetMethodID(B, "getA", "(I)A;");and have the jclass object of type A.
    Would I do something like jclass A_CLASS = env->FindClass("A");
    jobject A_OBJECT = (A_CLASS)env->CallObjectMethod(B,getA, i) ; If so, how do I then access the fields in A_OBJECT? Please let me know, thanks.

    ilganeli wrote:
    Thanks but this doesn't really help. I know how this is done in Java (see below).Presumably you also understand how that code will fail. At least based on what you have posted here.
    I do not understand the syntax to do the equivalent thing in JNI, specifically, how to cast the returned object from the CallObjectMethod function to be of the appropriate type, namely A, and then how to access those fields. You don't cast it. Didn't do so in your java code either.
    But you define how you are going to attempt to access any object in JNI. If you mess up it fails.

  • Problem compiling a  file which utilises a class I've created

    I am experimenting with creating my own classes. I've created my own class and I'm able to compile it. When I try to compile my test file to test the class I get a "cannot resolve symbol" error referring to where my class name is in the test file. The thing is, I've emailed the files to a friend and he is able to compile both files and subsequently run the test file. Has anyone got any ideas as to why my friend can compile the test file but I cannot?

    My XP machine is at home, so I cannot verify that. But for W2K, you can right-click on the My Computer icon, select Property. Then select Advanced tab. In the middle is Environment Variables. Click on the button to open up the User Variables and System variables. CLASSPATH is in the System Variables pane.
    XP should be similar to W2K. Give it a try.
    Hope this helps.

  • How to identify the KJS process in which the startup class is running

    The startup class will be executed in every kjs process (default, iiop). How can i check that i'm not in the cxs(iiop) process?

    Hi
    There is no where used list for Process chain, but you can check it in table RSPCCHAIN.
    Give details as below:
    Version is 'A'.
    Process Type is 'CHAIN'.
    Process Variants = 'enter technical name of the local chain'.
    now hit execute button.
    You can see the list of process chains under Chain  ID column.
    Ravi

  • Which package Proxy class is belonging to ?

    In the AS3 reference guide, the last line of page dedicated to Proxy Class (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/Proxy.html)
    explains that Proxy class is now belonging to Top level classes.
    "Note: Prior to Flash 11 and AIR 3.0, the Proxy class was a member of the flash.utils package. It is now a top-level class."
    But the top of the same page put this Proxy Class among flash.utils package.
    Package
    flash.utils
    Class
    public  class  Proxy
    Inheritance
    Proxy  Object
    In addition, the Proxy class doesn't belong to Top level classes in http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/package-detail.html#met hodSummary
    It seeems that the reference guide has to be fixed.
    And what is the right place of Proxy class ?

    from what I can see it's still in the utils package. maybe they were going to move it and changed their mind?

Maybe you are looking for

  • Cursor size for excel

    Hi everybody, because I didnt get solution in forum https://social.technet.microsoft.com/Forums/office/en-US/997efa53-b988-4292-a82b-b3338d0e1cea/cursor-increase?forum=excel&prof=required the last proposal ws to ask here. so the question was: How can

  • CS4 with HD footage from Canon HV30 - will new CPU help?

    Hi guys, I've just dumped an hour of Mini HDV footage onto my system, and the playback constantly stutters - the video pauses for a second at a time. My first guess was my CPU, but now that I've read other posts here, it may just be CS4.  I'm using W

  • Problem downloading ZIP file with Squid-3.0

    Hi, I have upgraded my Linux CentOS squid proxy servers to Squid version 3.0. Since then I can not download the following file it just hangs : http://download.oracle.com/otn/java/sqldeveloper/sqldeveloper-1.5.5.59.69.zip I dont see any error in the s

  • Engage Trial Installation Problem

    When I invoke my trial copy of Xcelcius Engage, It says: "Please enter your Xcelcius keycode" What is that? When I use the Installation key code sent in the introduction e-mail, it says Your Xcelcius keycode is missing or expired.

  • Errors when going to download apps

    When I want to download Photoshop CC onto my Windows 8.1 PC, it tells me that it is up to date. I cannot find it anywhere on my PC and is not in the Application listings. I have also run the Cleanup Kit that comes with Creative Cloud, which also came