Installation Snag 1046 “Stage3DManagerSingletonEnforcer”

Software: Away3D 4.x

joda, Newbie
Posted: 01 April 2014 03:12 AM   Total Posts: 3

Apologies for clogging up the board with newb questions. I’m hopelessly stuck trying to get Away up and running with CS5.

I’ve been through all of the special steps installing having to do with FP11, I have my files linked up properly and every time I try to compile (using regular or ctrl F12) I get the same compile error.

/Users/freeman/Downloads/away/away3d/core/managers/Stage3DManager.as, Line 30 1046: Type was not found or was not a compile-time constant: Stage3DManagerSingletonEnforcer.

I’ve tried switching out different versions of Away 4 and the FP11 playerglobal.swc and no matter what I do I get this error. I’ve commented out individual lines in my Main.as, but it seems that only by commenting out everything associated with Away can I avoid this compile error. I’ve tried multiple tutorials and got the same result.

Anybody have any insight as to what might be wrong here? Thank you very much.

   

joda, Newbie
Posted: 01 April 2014 04:35 AM   Total Posts: 3   [ # 1 ]

ok, crazy so I changed the line that the error was coming from

public function Stage3DManager(stage:Stage, Stage3DManagerSingletonEnforcer:Stage3DManagerSingletonEnforcer)
  {

public function Stage3DManager(stage:Stage, Stage3DManagerSingletonEnforcer)
  {

and now it works. Had to do this in one other place. What gives? Is this me being a newb or something else that is bizarre?

   

Avatar
theMightyAtom, Sr. Member
Posted: 01 April 2014 06:23 AM   Total Posts: 669   [ # 2 ]

Very strange indeed! Not heard of that one before.

I looked into it, the only unusual thing I can see was that that particular class is declared in the same .as file as Stage3DManager, at the bottom.

class Stage3DManagerSingletonEnforcer
{

The only purpose is serves is to make sure there’s only one instance of Stage3DManager. So you can either not worry about it, or try declaring it in it’s own .as file. The only thing I can think of is that CS5 is not seeing it, because it doesn’t have it’s own Class file.

Good Luck!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X