Refering to Instance Name

im trying to, to make my MC have a rollover effect but my movie clip had been added by Action Script so this doesnt work

pane.onRollOver = over;
pane.onRollOut = out;

function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(7);
}

or can you refer by linkage ID?

come again?

your Mc has been added with AS and you cant give it an rollover effect why not??

im mean, how can i give it an instance name because as its not on the timeline but in the libary it doesnt let me give it an instance name

pls post your files or some more code…

you must use attachMovie for movies from library so you can reference them in ActionScript code

When you call MovieClip.attachMovie you must make a name for it.

attachMovie(idName:String, newName:String, depth:Number):MovieClip
//idName - the linkage identifier of the movie clip in the library
//newName - the name for the movie clip once it is attached to the stage, this is the instance name of the movie clip
//depth - the depth to attach the movie clip at

Things like this is what the help file was made for :wink: