FORUMS: list search recent posts

[AS3}Make buttons repeat

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
bogdan Oancea
[AS3}Make buttons repeat
on Sep 9, 2008 at 11:56:08 pm

hy i have an as3 autoscript, and i want to make the first button appear at the end that the movie is spinning. When i move the mouse to the right, the menu goes to the right. but i don't want it to stop after the last button in the right is in sight, i want the first button to be now in the right. Something like a caroussel . this is the code:

import mx.transitions.Tween;
import mx.transitions.easing.*;

this.createEmptyMovieClip("container",1);

var imagesNumber:Number = 10;
var urlArray:Array = new Array("", "page.html", "page.html", "page.html", "page.html", "page.html", "page.html", "page.html", "page.html", "page.html", "page.html");
for (i=1; i<=imagesNumber; i++) {
container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);
myThumb_mc = container["thumb"+i+"_mc"];

// This adds a variable to the movieclip.
// That variable (_url) contains the URL from the array above.

myThumb_mc._link = urlArray[i];
myThumb_mc._x = (i-1)*myThumb_mc._width;
myThumb_mc._y = (Stage.height-myThumb_mc._height)/2;
myThumb_mc.onRelease = function() {
getURL(this._link);

};

}

container.onEnterFrame = function() {
this._x += Math.cos((-_root._xmouse/Stage.width)*Math.PI)*13;
if (this._x>0) {
this._x = 0;

}

if (-this._x>(this._width-Stage.width)) {
this._x = -(this._width-Stage.width);

}

};

make something like a loop





Return to posts index

bogdan Oancea
Re: [AS3}Make buttons repeat
on Sep 11, 2008 at 7:34:05 pm

Common :(( no help plsssss i need it



Return to posts index

Clint Milner
Re: [AS3}Make buttons repeat
on Sep 16, 2008 at 12:16:34 pm

http://www.actionscript.org/resources/articles/148/1/Advanced-Slider-Menu/P...

Maybe this will help




Clint



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]