views:

16

answers:

1

hi, i have to develop one image gallery in flex, alt text

this is how it looks, wht i have to do, is to make it run, like it keeps running, from left to right,(the items shown here should move from left to right) i am using repeater in an hbox, can u help me by telling, how to make it movable?

Thanx in advance

A: 

Increse horizontalScrollPosition property of the box on timer or in each frame until it reaches maxHorizontalScrollPosition.

Maxim Kachurovskiy
do u hav n e working demo, coz the maxHorizontalScrollPosition, i m not getting this property, wht i m doin is, i m removing the last element from the hbox,
Ankur Sharma
private function init():void{ dataService.send(); timer = new Timer(1000); timer.start(); timer.addEventListener(TimerEvent.TIMER, onTimer);}private function onTimer(event:TimerEvent):void{movingHbox.addChildAt((movingHbox.removeChildAt(movingHbox.numChildren-1)),0);}
Ankur Sharma
this init(), i m calling on creationComplete of Application, ryt, than on timer, i adding child box, last child to first postion, this gives a flickring effects...k, no first i try wht u have suggested,
Ankur Sharma