ok answering my own questions again but anyone who liked to follow along. .  .

so yeah. on creationComplete DOES return after skins loaded. But because I was 
converting the skin to a MovieClip it would return null instead of yelling at 
me for wrong type etc (nice).

SO, then i convert to DisplayObject container and got a rad "hack" rocking:

var d:DisplayObjectContainer = this.getChildAt(0) as DisplayObjectContainer;
var mc:MovieClip = d["myMovieClip"] as MovieClip;

I can see this work by setting some prop:

mc.alpha = .5

BUT, I can't add any events to it. . . ??????????

I've tried setting enabled, mouseEnabled, etc to true but still doesn't 
propogate mouse events.

Anyone?




________________________________
From: Flex Noob <[email protected]>
To: [email protected]
Sent: Monday, December 15, 2008 11:46:19 PM
Subject: [flexcoders] When the heck are states ready?


I'm setting button states using embed swfs.

on click I know my button has 4 children:

upState
overState
downState
label

when checking for these children on creation complete: nadda.

I've tried listening for different events but nothing seems to fire.

As a hack I know i can set enterFrame event to check BUUUUUUUTTTTTTT. . . . 
REALLY???? I mean come on flex.



    


      

Reply via email to