PDA

View Full Version : gallery help


been_1990
06-21-2008, 01:36 AM
Okay, ...well I need some help with the following:


Im doing a Flash photo gallery, Im loading the photos using xml.


var t = t_view.thum_view.attachMovie("item", "item"+i, i+1);

t.onEnterFrame = mover;
t.bigimage = nodes[i].attributes.bigimage;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t._x = 5.5;
t._y = 5.5 + (70*i);

}

What I need to find out is:

- How can I make the mover() function in a way that when I click a "up" button(main timeline) all the "t" will move upwards, and vice-versa?

- After that how can I stop them from moving after the last "t" has passed a specific _y point?

(A idea is to have a moving function based on a variable called speed
up_btn.onRelease = function(){
var speed -= 10
}
down_btn.onRelease = function(){
var speed += 10
}

, and then modify the same when I click on the "up or "down" button.)

Any help would be appreciated.... Hope I made myself clear :)