You're not calling super() in the ClassA constructor.
On Aug 31, 2009, at 11:12 PM, Sajid Saiyed wrote:
Ok, Here is a bit more information.
ClassA (works pefrectly fine):
-----------
package com.folder.subfolder
{
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.Timer;
import com.folder.subfolder.*;
public class ClassA extends ClassC
{
public var myMenu: ClassB;
public function ClassA (){
addEventListener(ClassC.moveUP, someFunction);
}
public function someFunction(){
myMenu = new ClassB();
myMenu.name = "mymenu";
this.addChild(myMenu);
}
}
}
ClassB
-----------
package com.folder.subfolder
{
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.Timer;
import com.folder.subfolder.*;
public class ClassB extends ClassC
{
public function ClassB (){
// This is not getting called.....
}
}
}
Does this explanation help a bit??
Am I looking at the right place for the problem or the problem could
be somewhere else?
Thanks
Sajid
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders