Historical time line 2004-03-12 - By Andreas Weber
Back In its most basic form this can be done like so:
Put 2 clips on stage, instance names navi_mc (that's the button to drag) and content_mc (the thing wich moves in the opposite direction, e.g. a timeline representation)
And then this code on _root (or whatever timeline the clips are residing on)
dragLimitTop = navi_mc._y; dragLimitBottom = navi_mc._y + navi_mc._height; lastX = navi_mc._x;
navi_mc.onPress = function(){
// drag within bounds... this.startDrag(false,0,dragLimitTop,Stage.width ,dragLimitBottom);
// if too processor intense, replace with onEnterFrame this.onMouseMove = function(){ var dif = lastX - this._x; content_mc._x += dif; lastX = this._x; } }
navi_mc.onRelease = function(){ this.stopDrag(); delete this.onMouseMove; }
HTH -- ---- ------ Andreas Weber motiondraw.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|