Modifying the example in this thread:
My SWF is doing everything I want it too, but I am unhappy with the k weight.
As the images are visible on rollover, is it possible to prevent them from loading until a user initiates the roll over.
This is the AS
import gs.*;
var btnArray:Array =
[
btn1,
btn2,
btn3
];
var tipArray:Array =
[
mc1,
mc2,
mc3,
];
function initSite():void
{
for (var i:Number = 0; i < btnArray.length; i++)
{
MovieClip(tipArray*).alpha = 0;
MovieClip(btnArray*).id = i;
MovieClip(btnArray*).buttonMode = true;
MovieClip(btnArray*).mouseChildren = false;
MovieClip(btnArray*).addEventListener(MouseEvent.MOUSE_OVER, btnOver, false, 0, true);
MovieClip(btnArray*).addEventListener(MouseEvent.MOUSE_OUT, btnOut, false, 0, true);
}
}
initSite();
function btnOver(e:MouseEvent):void
{
TweenLite.to(MovieClip(tipArray[e.target.id]), .5, {alpha:1});
}
function btnOut(e:MouseEvent):void
{
TweenLite.to(MovieClip(tipArray[e.target.id]), .5, {alpha:0});
}
I was thinking that putting the target MCs on frame 2 with a stopped on frame1 movie might be a way to keep the k weight user initiated.