Hi
Wonder if anyone can help me with this? New to Actionscript.
I am creating an expandable banner, I am able to load the expanded swf upon rollover, however I am trying to figure out how to remove the loaded swf on rollout, and therefore return to the unexpanded state.
Here is my actionscript:
function onOver(evt:MouseEvent) :void {
var photo:Loader = new Loader();
photo.load(new URLRequest(“expanded.swf”));
holder.addChild(photo);
}
rollover_btn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
function onOut(event:MouseEvent):void
{
holder.removeChild(photo);
}
holder.addEventListener(MouseEvent.MOUSE_OUT, onOut);
Any help would be much appreciated.
Thanks