FP11 and Away3D

Software: Away3D 4.x

gnitsuk, Newbie
Posted: 01 December 2011 04:36 PM   Total Posts: 2

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.

   

Avatar
Turboconnard, Newbie
Posted: 02 December 2011 10:09 AM   Total Posts: 4   [ # 1 ]

Do you try with the wmode=“direct” in your webpage ?

 

   

gnitsuk, Newbie
Posted: 02 December 2011 10:48 AM   Total Posts: 2   [ # 2 ]

Thank you for your reply, Unfortunately wmode is indeed direct. I see nothing when viewing the html or the swf in the browser.

Attached is the complete tiny project in case that helps anyone else to help me.

I just can’t think what is wrong. It all worked so easily when I first started out with Away3D some months ago, just installed Incubator, downloaded Away3D source and job done.

Would dearly like to be Away3D programming again :(

Thanks for any help.

 

File Attachments
BasicAway3D.rar  (File Size: 80KB - Downloads: 0)
   

Avatar
Turboconnard, Newbie
Posted: 02 December 2011 01:28 PM   Total Posts: 4   [ # 3 ]

the download link does’nt work for me… I have a blank page so i can’t look at your code.

 

   

s00zn, Newbie
Posted: 05 December 2011 11:17 AM   Total Posts: 6   [ # 4 ]

Did you also install flash player 11 for your browser?

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X