noob Trying to instantiate classes
Hi, hopefully this seems obvious-
I have two active-element classes (files?)- they appear as separate elements. One defines a toy class called COne, the other defines CTwo. I was trying to test if 3dfa can handle circular references (can it?) but now when I do
var One = new COne();
I get the following error:
Unknown type 'CTwo' cannot be created on line 691 var Twoer = new CTwo()
What am I doing wrong?
class CTwo
{
Integer myothernum = 5;
function CTwo()
{
trace (myothernum);
}
function TestMe()
{
//var Oner = new COne();
}
}
the other defines COne-
class COne
{
Integer mynum;
function COne()
{
mynum = 4;
var Twoer = new CTwo();
}
}