Habe das Script mit den funktionen mal herauskopiert, dieses Script auf das entsprechende Bild in die Zeitleiste legen.
Die fla könnte ich per email senden, habe aber keine von dir gefunden
Um eine schaltfläche daraus zu machen, würde ich einen ghostbutton über das bild legen denn sonst müßte man in dem script auch noch die --on(release)-- funktion definieren und das wird wahrscheinlich für anfänger zu verwirrend
//Hier wird die Funktion für das zoomen festgelegt
//bitte nichts verändern
Object.prototype.ZoomIntervalDiv = function (pDim, pTempo, pBps)
{
var obj = this;
clearInterval (obj.iv);
obj.zoom = function ()
{
if (obj._xscale < pDim - 1/ pTempo)
{
obj._xscale = obj._xscale + (pDim - obj._xscale) / pTempo;
obj._yscale = obj._yscale + (pDim - obj._yscale) / pTempo;
}
else if (obj._xscale > pDim + 1 / pTempo)
{
obj._xscale = obj._xscale + (pDim - obj._xscale) / pTempo;
obj._yscale = obj._yscale + (pDim - obj._yscale) / pTempo;
}
else
{
obj._xscale = obj._yscale = pDim;
clearInterval (obj.iv);
delete obj.iv;
delete obj.zoom;
}
};
obj.iv = setInterval (obj.zoom, 1000 / pBps);
};
ASSetPropFlags (Object.prototype, "ZoomIntervalDiv", 1);
//hier wird die funktion für die instanz des jeweiligen bildes aufgerufen
//(bild 1 in movieclip umwandeln und den instanznamen mc1 vergeben)
// erklärung zu --ZoomIntervalDiv (200, 6, 24);-- erste zahl gibt die zoomgröße in prozent an
// die zweite zahl die geschwindigkeit, und die dritte zahl die zeit
mc1.onRollOver = function ()
{
this.ZoomIntervalDiv (200, 6, 24);
};
mc1.onRollOut = function ()
{
this.ZoomIntervalDiv (100, 6, 24);
};
//(Bild 2 in movieclip umwandeln und den instanznamen mc2 vergeben)
mc2.onRollOver = function ()
{
this.ZoomIntervalDiv (200, 6, 24);
};
mc2.onRollOut = function ()
{
this.ZoomIntervalDiv (100, 6, 24);
};
mc3.onRollOver = function ()
{
this.ZoomIntervalDiv (200, 6, 24);
};
mc3.onRollOut = function ()
{
this.ZoomIntervalDiv (100, 6, 24);
};
mc4.onRollOver = function ()
{
this.ZoomIntervalDiv (200, 6, 24);
};
mc4.onRollOut = function ()
{
this.ZoomIntervalDiv (100, 6, 24);
};