TeamXposure
Technical User
Hello
Disclaimer: New to AS and would love any help you could provide ... thanks.
Description: I have 8 images which need to scroll horizontally in a project. As they scroll off the page I need them to reset and begin to scroll again when it is their turn.
I am using the following AS to move them across the canvas:
this.onEnterFrame = function() {
if (this.circle_mc._x < 550) {
this.circle_mc._x += 3;
}
if (this.square_mc._x < 550) {
this.square_mc._x += 3;
}
}
I obviously have no problem having them end off screen ... but how can I have them reset to the other side of the page and resume the above script?
Thanks again for any help ... if you need more information, please let me know.
-Scott
Disclaimer: New to AS and would love any help you could provide ... thanks.
Description: I have 8 images which need to scroll horizontally in a project. As they scroll off the page I need them to reset and begin to scroll again when it is their turn.
I am using the following AS to move them across the canvas:
this.onEnterFrame = function() {
if (this.circle_mc._x < 550) {
this.circle_mc._x += 3;
}
if (this.square_mc._x < 550) {
this.square_mc._x += 3;
}
}
I obviously have no problem having them end off screen ... but how can I have them reset to the other side of the page and resume the above script?
Thanks again for any help ... if you need more information, please let me know.
-Scott