# Using Snicklefritz's tweenlite array rollover example

**URL:** <https://forum.kirupa.com/t/using-snicklefritzs-tweenlite-array-rollover-example/286598>\
**Category:** Uncategorized\
**Created:** [April 17, 2009, 2:43pm UTC](https://forum.kirupa.com/t/using-snicklefritzs-tweenlite-array-rollover-example/286598 "2009-04-17T14:43:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Post date:** [April 17, 2009, 2:43pm UTC](https://forum.kirupa.com/t/using-snicklefritzs-tweenlite-array-rollover-example/286598/1 "2009-04-17T14:43:46Z")

</div>

Modifying the example in this thread:

> **[Understanding Array's](https://www.kirupa.com/forum/showthread.php?t=323044&highlight=import+gs.TweenLite%3B)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

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

```auto
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.
