Skip to main content
Participant
April 28, 2011
Question

Getting the name of a movieclipon rollover

  • April 28, 2011
  • 1 reply
  • 263 views

Hey guys i need a solution.i wanna show the instance name of my movieclip in a textbox with bakground color which is moving with the mouse pointer

After a time interval it should disappear also

Please tell me a way

This topic has been closed for replies.

1 reply

relaxatraja
Inspiring
April 28, 2011

Use mc._name to get the name of the movieclip.

txt.text=mc._name;

Use the setInterval to display the name:

on(rollover){

txt.text=this._name;

id=setinterval(disappearfn,5000);

}

function disapperfn():void{

     clearinterval(id);

     txt.text="";

}