Search Blog Posts

Posts Tagged ‘Verticle’

Verticle / Horizontal Scrolling in Flash

Wednesday, October 24th, 2007

The following examples below show how to make a movie clip in flash dragable either horizontally or vertically with set positions stopping the movie clip being dragged to far.
In these examples we will use 50 as the lowest position the object can be moved and 200 as the highest value that the object can be moved.

Verticle Scrolling (up and down):
on (press) {
startDrag(this, 0, this._x, 50, this._x, 200);
}

The opposite effect can be applied when you switch the variables and number around to this._y

Horizontal Scrolling (left and right):
on (press) {
startDrag(this, 0, this._x, 50, this._x, 200);
}

© Copyright 2003-2008 Minimalistic Designs | Terms | Links | Sitemap
Website Design Liskeard - www.minimalistics.co.uk