Hi Guys,
I just realized I can't apply functions to MC's like I did with AS2. I
am creating a bunch of movieclips from some data I get from an xml
file. I wanted to create a rollover state for each of the mc's,
nothing fancy. Would some kind soul give me a nudge in the right
direction?
Here's what I'm doing wrong:
var myFolder:MovieClip = new folder_mcDefault();
myFolder.FolderName.text = FolderNode.name.text();
myFolder.x = 8.5;
myFolder.y = 70.2+(i*31);
myFolder.BG_Clickon.alpha = 0;
myFolder.buttonMode = true;
myFolder.addEventListener(MouseEvent.ROLL_OVER, f_rollon);
myFolder.addEventListener(MouseEvent.ROLL_OUT, f_rolloff);
function f_rollon(evt:MouseEvent){
//======== Back in AS2, I would have used "this" instead of
"myFolder" but that doesn't work either ========//
myFolder.BG_Clickon.alpha = .1;
}
function f_rolloff(evt:MouseEvent){
myFolder.BG_Clickon.alpha = 0;
}
--
Carl Welch
http://www.carlwelch.com
http://blog.jointjam.com
[email protected]
805.403.4819
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders