Okay, I’m new to Away3D.
My project’s main class is extening view3D:
public class Main extends View3D {
and everything generally works fine (I’m plotting 3D object with textures ect…
BUT the background is BLACK, and I need it WHITE.
I already tried:
[SWF (width="1100", height="800", backgroundColor="0xFFFFFF", frameRate="60")]
No doing it ... still BLACK ...
Looking in the View3D class, I see that _backgroundColor is available, but even when i try hacking the the core class, I’m still not able to get it to be WHITE!
public var _backgroundColor : uint = 0xFFFFFF;
^ won’t work!
I also see there is a set backgroundColor function:
public function set backgroundColor(value : uint) : void
{
trace ("bg: " + value);
_backgroundColor = value;
_renderer.backgroundR = ((value >> 16) & 0xff) / 0xff;
_renderer.backgroundG = ((value >> 8) & 0xff) / 0xff;
_renderer.backgroundB = (value & 0xff) / 0xff;
}
Tho I’m not exactly clear how to call it ... ?
Can anyone help?
THANKS! :/