Hey All,
im having some troubles with as2.0 classes calling each-other.
Basically, on the root timeline I have MC Called “myMovieClip” [how original]
and on the first frame I have :
myBox = new buildBox(myMovieClip, 100, 100)
then, in a AS2.0 Class file I have :
class buildBox()
{
function buildBox(inside:MovieClip, w:Number, h:Number)
{
// some AS code
* **inside.drawBox(w,h)***
// blah blah blah
}
// some other functions
}
then, in another AS2.0 Class File theres :
class drawBox extends MovieClip
{
function drawBox(w,h)
{
trace("draw box")
// AS Code to draw box and stuff
}
}
Whenever I execute this the swf just does nothing, I have tested the script so many times and it turns out that the drawBox class is never called - I always get a “Property Does Not Exist” error for MC.drawBox(100,100)
I have also tried importing the class file on the 1st frame, but still nothing… is there anything special you need to do to register a property to a flash class - in this case the MovieClip Class? or am I doing somthing completly wrong.
thanks in advance for your help !!!