Sliding bar

Still here asking x help.
Hi everyone,
I got some problems with the dimension of a series of pics that are suppose to slide.
Some details:
Simple layout, Stage size 400w X 300h
45 x 400 bottom bar for 14 buttons ( so r the pics)
400 x 255 usable space to slide the pics
every button has an action like that:

on (release) {
_root.controller.targXpos2 = 1500;
}

the last number, the x position make me going crazy, I know it should be easy but I can handle 14 pics moving around x the stage ( 5230 pixel width )

---------Actions x the controller: -----------

onClipEvent (enterFrame) {
setProperty(_root.bar, _x, cX-(difX/14));
cX2 = _root.content._x;
difX2 = cX2-targXpos2;
setProperty(_root.content, _x, cX2-(difX2/14));
}
onClipEvent (load) {
targXpos = 65;
targXpos2 = 2615;
}

Does any one can help me understand how i can calculate the right number for every button so all the pics will be showed centered.
glad to give u more details if u need.
There is also a bar following the mouse over the button but i will take it away.
sorry if all this sound stupid but i am quite new to AS .
good Easter:pope:

i am on line if u need some more details … :slight_smile:

i’m not sure what you mean by making them show centered…:-\

first of all thanks x your interest, after two days i was givin’ up.
With centered i mean that my stage w. is 400px and the "content "which is suppose to slide is around 5000px.
I need to find the key to assign to every button the right _x position but as i said B4 i am not so good with A.S.
there is a downlodable sample at www.yahoo.com
I.D. = justxtheslider@yahoo.com
password = ssssssss
TONS oF THanks x your TIME & Interest
good Easter
ciao

i can’t seem to find it on yahoo? Do you think you can put it on the forum?

2 mins

try now
http://mail.yahoo.com/

I D = justxtheslider

Psw = ssssssss

i’m nto sure whats wrong, but one of the file is zip which i can’t open, and the other one seems to not be an fla when i open the zip…?!

2 mins

one of the files were 170kb, i’m sure that’d fit onto this forum…just stick it here, much quicker and easier

is just a zipped fla, is all right with u ??

max 100 x this forum … : (

oh…hm…

any other place where i can post this ugly stuff ??

was the size still overlimit with it zipped? hmm…dunno, sorry :frowning:

yes ! and ill be glad if u can see the fla with the original pics on it

any suggestion ?

here is the .fla
i took out all the pics and put some simple shapes instead.
Many thanks to any kind of suggestion u can make!
enjoy the egs
:battery: :battery: :battery: