Brian Lin
asked on
Advance RollOver question
Hi, experts
I have a script that works and i try to make each images button becomes large after roll over. Roll over part of code is not working. Please let me know how to fix it.
Thanks
Example http://www.brianlinstudio.com/testingExample.zip
------------- Roll over part code ----------------
///////////////////\\\\\\\ \\\\\\\\\\ \///////// ////\\\\\\ \\\\\\\\
function buttonOver() {
_loc1 = this._parent._parent;
trace("which one is roll over now -- "+this._parent);
this._parent.gotoAndStop(6 );
_loc1.myName = _loc1.projects[i];
//_loc1["button"+i].gotoAn dStop(1);
mc = _loc1["myTarget"+this._par ent.i];
mc._xscale = mc._yscale=120;
prev_width = this._parent._width;
this._parent._xscale = this._parent._yscale=120;
after_width = this._parent._width;
this._parent.buffer = (after_width-prev_width)/2 ;
this._parent._x -= this._parent.buffer;
this._parent._y -= this._parent.buffer;
mc._x -= this._parent.buffer;
mc._y -= this._parent.buffer;
mc.swapDepths(120);
this._parent.swapDepths(12 1);
}
///////////////////\\\\\\\ \\\\\\\\\\ \///////// ////\\\\\\ \\\\\\\\
I have a script that works and i try to make each images button becomes large after roll over. Roll over part of code is not working. Please let me know how to fix it.
Thanks
Example http://www.brianlinstudio.com/testingExample.zip
------------- Roll over part code ----------------
///////////////////\\\\\\\
function buttonOver() {
_loc1 = this._parent._parent;
trace("which one is roll over now -- "+this._parent);
this._parent.gotoAndStop(6
_loc1.myName = _loc1.projects[i];
//_loc1["button"+i].gotoAn
mc = _loc1["myTarget"+this._par
mc._xscale = mc._yscale=120;
prev_width = this._parent._width;
this._parent._xscale = this._parent._yscale=120;
after_width = this._parent._width;
this._parent.buffer = (after_width-prev_width)/2
this._parent._x -= this._parent.buffer;
this._parent._y -= this._parent.buffer;
mc._x -= this._parent.buffer;
mc._y -= this._parent.buffer;
mc.swapDepths(120);
this._parent.swapDepths(12
}
///////////////////\\\\\\\
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
welcome,
Plz spell my name correctly,
it is 'Aneesh' not 'Annesh'
:)
Plz spell my name correctly,
it is 'Aneesh' not 'Annesh'
:)
ASKER
Opoos, sorry, by the way, I got one last small question on the function buttonClick()...
Thanks, Aneesh
Thanks, Aneesh
ASKER
Hi, Aneesh
Please take a look at new link https://www.experts-exchange.com/questions/22493766/Unable-to-see-Zoom-in-images-after-click-on-the-thumbnail-images.html
Thanks :)
Please take a look at new link https://www.experts-exchange.com/questions/22493766/Unable-to-see-Zoom-in-images-after-click-on-the-thumbnail-images.html
Thanks :)
ASKER