Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wangbar... 1

Status
Not open for further replies.
Hmm... hard to say.

Try aligning the boxes on the stage dynamically...

for (i=1; i<=numBoxes; i++) {
_root[&quot;box&quot;+i]._y = Math.floor((max-min)/numBoxes*(i-1));
}


...in the &quot;on load&quot; event. I think the problem is partly due to the fact that the clips aren't sitting on exact pixel coordinates and errors creep in after a few iterations of the loop. To be safe I'd put a 10 pixel or so gap between each box so that minor overlaps aren't so noticeable (add it into the script above for simplicity).

I'll have a play with your .fla to see if I can help but thses are the first things that struck me.
 
Try this -


I just changed the loading stuff around to...


onClipEvent (load) {
_root.motion = 1;
numBoxes = 13;
spacer = 10;
min = 4;
max = 770+(numBoxes*spacer);
for (i=1; i<=numBoxes; i++) {
_root[&quot;box&quot;+i]._y = Math.floor((_root[&quot;box&quot;+i]._height+spacer)*((i-1)))+min;
}


If you want the boxes to be flush together set spacer to 0. I let it run for a while and it seems to be okay but the gap helps to smooth out the look of any rounding errors etc that could lead to a one pixel overlap.
 
the problem is i have a fussy client who want no overlaps and no spaces, and it is still overlapping...

oh well Regards

Big Dave

davidbyng@hotmail.com


** If I am wrong I am sorry, but i'm only trying to help!! **

 
I've worked out it is the speed that's causing the problem, if I set it to one it works perfectly but if I want it to go faster (which i do) then it f%!@s up Regards

Big Dave

davidbyng@hotmail.com


** If I am wrong I am sorry, but i'm only trying to help!! **

 
The version I put up on the web is scrolling at two pixel intervals - hike up your frame rate to compensate (I used 60fps). Makes it look much smoother too.

 
Tell a lie - it's scrolling at single pixels, I just checked.
 
The frame rate dosn't make any difference but i think i got it sorted now.

thanx wangbar Regards

Big Dave

davidbyng@hotmail.com


** If I am wrong I am sorry, but i'm only trying to help!! **

 
It doesn't? Does on my PC - are you on a slow machine?

Anyway, glad it's sorted - let me know when it goes live so I can see the finished article.
 
Oh yeah I made the world time bit as well. Regards

Big Dave

davidbyng@hotmail.com


** If I am wrong I am sorry, but i'm only trying to help!! **

 
About the times bit... I'm in Montréal (New York time) and the display ain't right on my system. It's 5 hours late compared to actual time.

Your scroll looks good!

A final note... IMHO, the bottom scrolling banner should be on it's own level, so that it's not restarted on each different button press.

Regards,
wink4.gif
ldnewbie
 
yeh mine aswell..five hours late in orlando,fl..which would be the newyork time as well..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Yeah I know that it is formated against UK time not any other time.

Ps anybody know how i get it to be right in all time zones? Regards

Big Dave

davidbyng@hotmail.com


** If I am wrong I am sorry, but i'm only trying to help!! **

 
Guess you have to add or substract hours accordingly!
And may have to use UTC, to do so!

Regards,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top