Hi there am new to action scripting. I have a Flash banner done for me long back. It shows 3 animated images displaying 3 categories such as ‘Ready Stock’ ‘Custom’ & ‘Refining’ which expand when rolled over. The thing is i want to add separate links to these categories but i cant make out anything from the code and i am unable to get in touch with the guy who did the animation. The action scripting used in the animation movie clip Symbol116 is as below. You can also view the .fla file at http://prashantgeorge.com/header1.zip & view the flash file at http://prashantgeorge.com/header1.html All help would be much appreciated.
_global.Panels = this;
mcs = new Array(_1, _2, _3, _4);
icons = new Array(i0, i1, i2, i3);
photos = new Array(p0, p1, p2, p3);
titles = new Array(t0, t1, t2, t3);
totalWidth = 0;
smallWidth = 70;
mediumWidth = 120;
largeWidth = 270;
speed = 2;
smallFrame = 1;
mediumFrame = 11;
largeFrame = 21;
animateButtons = function (mc, mcEvent, index)
{
if (mcEvent == “open”)
{
mcTargetWidth = largeWidth;
otherTargetWidth = smallWidth;
mcFrameFunc = “gotoLarge”;
otherFrameFunc = “gotoSmall”;
}
else
{
mcTargetWidth = otherTargetWidth = mediumWidth;
mcFrameFunc = otherFrameFunc = “gotoMedium”;
} // end if
photos*.gotoAndStop(mediumFrame);
this.onEnterFrame = function ()
{
var _l3 = mc._width;
var _l2 = _l3 + (mcTargetWidth - _l3) / speed;
_l2 = Math.ceil(_l2);
_l2 = Math.floor(_l2);
_l2 < _l3 ? (Math.floor(_l2)) : (Math.ceil(_l2));
mc._width = _l2;
mcmcFrameFunc;
if (mc._width == largeWidth)
{
var _l4 = true;
} // end if
for (i = 0; i < mcs.length; i++)
{
if (mcs* != mc)
{
_l3 = mcs*._width;
_l2 = _l3 + (otherTargetWidth - _l3) / speed;
_l2 = Math.ceil(_l2);
_l2 = Math.floor(_l2);
_l2 < _l3 ? (Math.floor(_l2)) : (Math.ceil(_l2));
mcs*._width = _l2;
mcs*otherFrameFunc;
} // end if
} // end of for
for (i = 1; i < mcs.length; i++)
{
mcs*._x = mcs[i - 1]._x + mcs[i - 1]._width;
this[“l” + i]._x = mcs*._x;
this[“m” + i]._x = mcs*._x + 3;
} // end of for
for (i = 0; i < mcs.length; i++)
{
this[“m” + i]._width = mcs*._width - 5;
this[“p” + i]._x = mcs*._x + mcs*._width / 2;
this[“i” + i]._x = mcs*._x + (mcs*._width - 20);
this[“t” + i]._x = mcs*._x + 10;
} // end of for
for (i = 0; i < mcs.length; i++)
{
if (mcs*.isOnTheMove())
{
framesComplete = false;
break;
continue;
} // end if
framesComplete = true;
} // end of for
if (_l4 && framesComplete)
{
delete this[“onEnterFrame”];
} // end if
};
};
MovieClip.prototype.makeHit = function (index, linkObj)
{
this.index = index;
this.linkObj = linkObj;
this.gotoAndStop(this._name.charAt(1));
totalWidth = totalWidth + this._width;
this.mc.gotoAndStop(mediumFrame);
this.isInMotion = false;
this.onRollOver = function ()
{
animateButtons(this, “open”);
WhatDoYouSee.hide();
};
this.onRollOut = function ()
{
animateButtons(this, “close”);
};
this.onRelease = function ()
{
this.linkObj.go();
};
this.gotoLarge = function ()
{
if (photos[this.index]._currentframe < largeFrame)
{
icons[this.index].nextFrame();
photos[this.index].nextFrame();
titles[this.index].nextFrame();
this.isInMotion = true;
}
else
{
this.isInMotion = false;
} // end if
};
this.gotoSmall = function ()
{
if (photos[this.index]._currentframe > smallFrame)
{
icons[this.index].prevFrame();
photos[this.index].prevFrame();
titles[this.index].prevFrame();
this.isInMotion = true;
}
else
{
this.isInMotion = false;
} // end if
};
this.gotoMedium = function ()
{
if (photos[this.index]._currentframe < mediumFrame)
{
icons[this.index].nextFrame();
photos[this.index].nextFrame();
titles[this.index].nextFrame();
this.isInMotion = true;
}
else if (photos[this.index]._currentframe > mediumFrame)
{
icons[this.index].prevFrame();
photos[this.index].prevFrame();
titles[this.index].prevFrame();
this.isInMotion = true;
}
else
{
this.isInMotion = false;
} // end if
};
this.isOnTheMove = function ()
{
if (this.isInMotion)
{
return(true);
}
else
{
return(false);
} // end if
};
};
allEnable = function (boo)
{
for (i in mcs)
{
mcs*.enabled = boo;
} // end of for…in
};
MovieClip.prototype.makePhoto = function ()
{
this.mc.gotoAndStop(Number(this._name.charAt(1)) + 1);
this.mc2.gotoAndStop(Number(this._name.charAt(1)) + 1);
this.gotoAndStop(mediumFrame);
};
MovieClip.prototype.makeIcon = function ()
{
this.mc.gotoAndStop(Number(this._name.charAt(1)) + 1);
this.gotoAndStop(mediumFrame);
};
MovieClip.prototype.makeTitle = function ()
{
this.mc.gotoAndStop(Number(this._name.charAt(1)) + 1);
this.gotoAndStop(mediumFrame);
};