Cast
Cast has static methods:
Lib.Away3D.Utils.Cast.bitmapData(data) |
Returns (BitmapData) |
data - any castable object or project path |
Lib.Away3D.Utils.Cast.bitmapTexture(data) |
Returns (BitmapTexture) |
data - any castable object or project path |
Examples:
Away3D = Lib.Away3D
TextureMaterial = Away3D.Materials.TextureMaterial
Cast = Away3D.Utils.Cast
material = TextureMaterial.new(Cast.bitmapTexture("/3D/Away3D/Basic_View/assets/floor_diffuse.jpg"), true, false, true, nil))
Created with the Personal Edition of HelpNDoc: Full-featured EBook editor