View Full Version : How www.0-to-1.com mc navigation created?
wownflutter
10-10-2002, 03:24 AM
Must involve setProperty or setTransform...
How is the mc triggered by location to change..
and how is it constrained.
Thanks for any input!
hi,
the navi is made beautyful but also very easy.
you got a mc with a dynamic text field in it.
letīs call the mc "myMc". you also need a marker outside of the stage, call it "marker".
then you need buttons. on Rollover you set the marker on a specified _xpos and set the variable "anim" true.
on the first frame of your timeline you type the following code:
_root.myMc.onEnterFrame = function() {
if(_root.anim && Math.abs(_root.marker._x - this._x)<1) {
this._x = _root.marker._x;
_root.anim = false;
}else if (_root.anim) {
this._x -= (this._x - _root.marker._x)*.5;
}else{
}
};
and here you got a fully working navigation.
cobo
thx to joshua davis
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.