Hello,
Can anyone help me please. I did a lot of Away3D work around 6 months ago or so using FP10 Incubator. Recently getting back into Away3D and noticed that I see nothing in FP11, no problem, I need to rebuild. Got latest Away3D source and updated playerglobal.swc.
Project builds in Falsh CS5 but when viewed in browser I get blank white.
I distilled to a minimal code length, Here’s my code (with Away3D stuff all commented out):
public var m_view:View3D;
public var m_cube:Cube;
public var m_nCount:int = 0;
var m_textField:TextField = new TextField();
public function Basic3DView()
{
/*m_view = new View3D();
m_view.width = 200;
m_view.height = 200;
m_view.scene.addChild(m_cube);
m_view.backgroundColor = 0x333333;
var material:ColorMaterial = new ColorMaterial(0xFF0000);
m_cube = new Cube(material);
addChild(m_view);
m_view.x = 100;
m_view.y = 100;*/
addEventListener(Event.ENTER_FRAME,onEnterFrame);
m_textField.text = “Ooo”;
addChild(m_textField);
}
private function onEnterFrame(e:Event):void
{
m_textField.text = String(m_nCount);
m_nCount++;
//m_view.render();
}
As it stands, when viewed in browser one sees the counter counting.
BUT, when I comment back in all the Away3D stuff it builds fine but in browser I now see nothing, not even counter. Browser is using FP11.
Can anyone think of any thing I’m missing?
Even if the camera is positioned such as to not be able to see the cube I would have expected to see the view with its background colour of 0x333333 and also the counter.
Thanks,
Mitch.