You are on page 1of 2

function bl1()

{
myLoader.load(new URLRequest("fscommand/BG1.jpg"));
}
function bl2()
{
myLoader.load(new URLRequest("fscommand/BG2.jpg"));
}

function bb1(event:MouseEvent):void
{
mLoader.load(new URLRequest("fscommand/BG1.jpg"));
setTimeout(bl1,100);
fscommand("exec", "S1.exe");
BE.b1.enabled = false;
BE.b2.enabled = true;
BE.b1.removeEventListener(MouseEvent.CLICK, bb1);
BE.b2.removeEventListener(MouseEvent.CLICK, bb2);
BE.b2.addEventListener(MouseEvent.CLICK, bb2);
}
function bb2(event:MouseEvent):void
{
mLoader.load(new URLRequest("fscommand/BG2.jpg"));
setTimeout(bl2,100);
fscommand("exec", "S2.exe");
BE.b1.enabled = true;
BE.b2.enabled = false;
BE.b1.removeEventListener(MouseEvent.CLICK, bb1);
BE.b2.removeEventListener(MouseEvent.CLICK, bb2);
BE.b1.addEventListener(MouseEvent.CLICK, bb1);

You might also like