map url to data

Software: Away3D 4.x

Avatar
ganesh, Member
Posted: 01 April 2013 08:00 AM   Total Posts: 54

This code snippet taken from away3d4 gold tutorial “Basic_Load3DS”

I have checked everywhere there is no file called “texture.jpg” in my project folder but even I can’t comment this line of code, if commented then it shows error, however I don’t understand how it is working… can some one please explain function of this particular code


//setup the url map for textures in the 3ds file
var assetLoaderContext:AssetLoaderContext = new AssetLoaderContext();
assetLoaderContext.mapUrlToData(“texture.jpg”, new AntTexture());

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X