so, scroll() is for panel1 & postion is for 2. I think i change it to scroll1()& scroll2(). At least,i know what are they for . the last 2 wks, we having enough confusion over images,
Umm...no. Scroll() is to scroll the movieclips. position() is to position them. Panel1 is already where we need it to be so no need to position it. That's why panel2 is the only thing in the position movieclip.
Eh, medyman could you pls use // instead of trace ( its for debugging purposes i know).
Yea, sure. But don't get caught up on the traces. They're just an easy way to know what's going on.
So Scroll() and position() are two seperate functions. The entire bit should look like this:
Code:
var positioned:Boolean = false; // Is panel2 positioned yet?
function position() {
if (positioned == false) { // if we've already positioned it, don't run this.
panel2._x = panel1._width; // position panel2 at the end of panel 1;
positioned = true; // panel2 is positioned, no need to run the postion() function anymore
}
}
function Scroll() {
position(); // First position panel2 and then we'll start scrolling it.
// trace("scrolling");
}
Make sense?
Note: You won't see a visible difference after doing this but trust that it's done what you want.
Bookmarks