Use a library symbol in a class
Hi. I am making a class of a movieclip (not the main class) and I want to use other MovieClip. (FondoGris) for a listener. What can I call it? I can't do this by calling the symbol class with an instance or using the instance name as it is not the main class.
Thank you
my code
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
import FondoGris;
public class PestanaEmergenteVolumen extends MovieClip {
public function PestanaEmergenteVolumen() {
var objectClose:FondoGris = new FondoGris ();
addEventListener(MouseEvent.CLICK,playVolume);
objectClose.addEventListener (MouseEvent.CLICK, retryVolume);
function playVolume (e:MouseEvent): void{
if (currentLabel == "uno"){
play();
//panelURL_mc.removeEventListener(MouseEvent.CLICK,playURL);
}
else{
stop();}
}
function retryVolume (e:MouseEvent): void{
if (currentLabel == "diez"){
play();
//panelURL_mc.addEventListener(MouseEvent.CLICK,playURL);
}
else{
stop();
}
}
}
}
}
