Thursday, May 31, 2012

[Action Script] Use slide bar to change images/frames May,2012

Hi,

I'm using this to create a slide bar:
ActionScript Code: var minX:Number = mcLine._x;var maxX:Number = (mcLine._x + mcLine._width) - mcButton._width;var absY:Number = mcButton._y;mcButton.onPress = function() {    this.startDrag(false, minX, absY, maxX, absY);};mcButton.onRelease = mcLine.onReleaseOutside = stopDrag;
And that works like a charm.

Does anyone know how I can use this slide bar to navigate between 4-5 images?

Lets say you move the slide bar 100px to the right, then a new image (01) appear. if you move the slide bar a new 100px to the right, a new image (02) appear. And so on.

Hope y'all understand my question :-)

Knut
Use slide bar to change images/frames

Related Post



0 comments: