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.*;


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++) {
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() {



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

Maybe this will help


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved