Help!!! Action Script Q:
- Started
- Last post
- 11 Responses
- mase
I'm using this script to make my Mc scroll down the page. I want it to be on a continueous scrolling loop but dont know how to make it start again at the top...
Can anybody help?
onClipEvent (enterFrame) {
this._y += 1;
}(It seems SO simple but I'm struggling to find stuff / work it out on actionsript.org and flash kit)
Any help is much appriciated!!!
- weestu0
onClipEvent (enterFrame) {
if (this._y
- weestu0
onClipEvent (enterFrame) {
if ( this._y < bottomY ) {
this._y += 1;
} else {
this._y = 0 ;
}
}swap bottomY for the value of the bottom of your screen...
- mase0
Cheers weestu,
I've put in this but it just stops...onClipEvent (enterFrame) {
this._y += 1;
}onClipEvent (enterFrame) {
if (this._y= -1419) {
this._y = 0;
}
}
- mase0
(missed that second bit - thanks again)
I've now got this but it is just static...onClipEvent (enterFrame) {
if ( this._y
- blaw0
onClipEvent (enterFrame) {
if (this._y
- mase0
Whoops!
I am a dumb ass, I put in the bottom of my MC not the screen..It works cool but when it starts again It leaves a white gap - don't suppose you know how i'd get this to be a smooth transition? Would I need to MC?? or summit??
my code now:
onClipEvent (enterFrame) {
if ( this._y
- weestu0
not sure i understand the white gap, can u post a linky?
- mase0
- weestu0
i see. the way i would do it is to break your images into two movie clips.
When the last logo of the first mc is at the top of the screen, start the second mc. (when the first mc is fully off the stage you can move it back to the top, ready for it's next trip).
Do the same for the second mc, when the last logo is at the top, start the first mc moving again... that should work and look smooth/continuous.
- mase0
...using the actions script?
I have done a version that is just twened animation but the logos arn't great quality so its jerky, using action script to animate seemed alot smoother.
I;ll give it a bash with the action script, cheers for all your help!
- stewart0
use this to share actionscripts
http://pastebin.coconut.se/