Alright, let me try to explain my situation....
I have a class (AppCore) that extends MovieClip.
I have a MovieClip called StageContents.
I have a class (DefaultCaption) with a button on it, that extends MovieClip.
In AppCore, I essentially do this:
This doesn't work. I see the button, but it's not clickable, and the mouse-over doesn't work.
If I change it to this:
it works fine.
I'd really rather have the children go on StageContents (for reasons I'd rather not go into).
Does anyone have any idea why this would be happening?
-------------------------
Matt Grande
C# Master.
Ruby on Rails Admirer.
ActionScript Student.
JavaScript Hate-Monger.
I have a class (AppCore) that extends MovieClip.
I have a MovieClip called StageContents.
I have a class (DefaultCaption) with a button on it, that extends MovieClip.
In AppCore, I essentially do this:
Code:
var StageContents:MovieClip = new MovieClip();
var dc:DefaultCaption = new DefaultCaption();
dc.setCaption("Text");
StageContents.addChild(dc);
This doesn't work. I see the button, but it's not clickable, and the mouse-over doesn't work.
If I change it to this:
Code:
var dc:DefaultCaption = new DefaultCaption();
dc.setCaption("Text");
addChild(dc);
I'd really rather have the children go on StageContents (for reasons I'd rather not go into).
Does anyone have any idea why this would be happening?
-------------------------
Matt Grande
C# Master.
Ruby on Rails Admirer.
ActionScript Student.
JavaScript Hate-Monger.