[FONT=Times New Roman][SIZE=3]Hi there![/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]I am VERY new to AS3 so i guess this is quite a rookie question.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]I am trying to display using a trace statement the name of the object that I have my mouse over.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]Tried several approaches but no success so far.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]Just check the code, the line where there is a HERE.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]Thanks.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]Cheers.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]Leo.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]package {[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] import flash.display.MovieClip;[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] import flash.events.MouseEvent;[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] public class My_test extends MovieClip {[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] public function My_test() [/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] {[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] mc_the_mcs.addEventListener(MouseEvent.MOUSE_OVER, onOver);[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] mc_the_mcs.addEventListener(MouseEvent.MOUSE_OUT, onOut);[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] //folder_group.mouseChildren = false;[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] }[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] private function onOver(evt:MouseEvent):void [/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] {[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] trace("over now");[/SIZE][/FONT]
[SIZE=3][FONT=Times New Roman] trace(this.Object._name); [/FONT][FONT=Wingdings][FONT=Wingdings]ß [/FONT][/FONT][FONT=Times New Roman]Here.[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] evt.target.alpha = 0.5;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] }[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] private function onOut(evt:MouseEvent):void [/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] {[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] evt.target.alpha = 1;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] }[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] }[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]}[/FONT][/SIZE]