RESOLVED: Retrieve a Bitmap from a BitmapMaterial… How?

Software: Away3D 4.x

Mr Margaret Scratcher, Sr. Member
Posted: 19 September 2011 01:53 PM   Total Posts: 344

Hello again…

I’m trying to load a face into a tile6 cubemap, without losing the data that is already there, so what i though it that i could write the bitmapData from the bitmapMaterial to a movieclip, add the loader to that movieclip so that the image is in the right place, and then updateTexture. However I’m having trouble acessing the bitmapData


I’ve tried

trace (p.material.Bitmap

and

trace (p.material.BitmapData

but I get

Property Bitmap not found on away3d.materials.BitmapMaterial and there is no default value.

and

Property BitmapData not found on away3d.materials.BitmapMaterial and there is no default value.

respectively..

How do I go about this?

   

Mr Margaret Scratcher, Sr. Member
Posted: 19 September 2011 01:55 PM   Total Posts: 344   [ # 1 ]

Aha, got it

it’s .bitmapData - with lowercase ‘b’

Cursed inconsistent naming conventions!

   

Avatar
Alejandro Santander, Administrator
Posted: 20 September 2011 12:17 AM   Total Posts: 414   [ # 2 ]

Mr. Scratcher, just out of curiosity, do you not use an IDE with code completion?

   

Mr Margaret Scratcher, Sr. Member
Posted: 20 September 2011 02:21 AM   Total Posts: 344   [ # 3 ]

Yeah I do, I use FlashDevelop - Just today I was wondering why sometimes it helps me out and sometimes it doesn’t…. Missing the trailing semicolons maybe? Or maybe I’m somehow hitting a shortcut that turns it off…

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X