Converting away3dlite to away3d4beta

Software: Away3D 4.x

vaene, Newbie
Posted: 27 June 2012 01:49 AM   Total Posts: 1

Are there any good guides to upgrading older code to the newest away3d4beta?
I would like to recreate the effect at:
http://wonderfl.net/c/kYxb

but I need to know what functions/classes map to which

here are some of the imports to start with

import flash.display.*;
    
import flash.events.*;
    
import flash.filters.*;
    
import flash.geom.*;
    
import flash.net.*;
    
import flash.system.*;
    
import flash.utils.*;
    
import away3dlite.containers.ObjectContainer3D;
    
import away3dlite.core.base.*;
    
import away3dlite.materials.*;
    
import away3dlite.primitives.*;
    
import away3dlite.templates.BasicTemplate;
    
import jp.progression.commands.lists.SerialList;
    
import jp.progression.commands.net.LoadBitmapData;
    
import jp.progression.data.getResourceById;
    
import org.libspark.betweenas3.BetweenAS3;
    
import org.libspark.betweenas3.core.easing.*;
    
import org.libspark.betweenas3.easing.Expo;
    
import org.libspark.betweenas3.tweens.ITween

Thanks in advance for the help!

   

Richard Olsson, Administrator
Posted: 27 June 2012 08:02 AM   Total Posts: 1192   [ # 1 ]

Without reading the full code of the example, it seems to simply be using Sprite3D instances with materials on them. Don’t try to translate the code line by line though, because you might bump into missing classes or changes which are not compatible 1:1, but still exist in one shape or form.

I suggest you make a small test case in Away3D 4 where you get a single Sprite3D instance rendering in your view with a material on it. Then you can go from there and try to implement the same animation logic that is in the wonderfl example.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X