Groups | Blog | Home
all groups > flash (macromedia) > august 2007 >

flash (macromedia) : Scrolling_starfield.fla / Simple Change


EasyE
8/22/2007 9:50:01 PM
I am using the file 'Scrolling_starfield.fla' found at:
http://www.adobe.com/support/flash/action_scripts/event_methods/event_methods07.
html

Can anyone tell me how to reverse the scroll? I have played around with the
AS and can't get it. Currently it scrolls from the Left to the Right. How do
I change this to scroll from Right to Left? Posting a message is always my
last resort.

Thanks in advance for any and all help!
clbeech
8/22/2007 10:53:20 PM
dzedward
8/23/2007 2:26:50 AM
I do not have MX on this comp, so I can't access the sample, but my guess would
be change:
_x += (horizfader._x-horizfader.initx)/15;
_y += (vertfader._y-vertfader.inity)/15;
to
_x -= (horizfader._x-horizfader.initx)/15;
_y -= (vertfader._y-vertfader.inity)/15;

then you'll have to change the if statements to reflect the new direction so
it will loop still... maybe you could post a link to the fla if that doesn't
suit your needs.
clbeech
8/23/2007 2:50:20 PM
that's what I thought too dz, but then when looking at the if statements, it
appears as though they're set up to check for all directional movements?? so I
though that there must be something else in the script that may feed negative
values to the event handler, based on user control. dunno?
EasyE
8/23/2007 3:44:53 PM
dzedward - Thank you!
This was a complete oversight on my part. I appreciate the help!
dzedward
8/23/2007 3:54:47 PM
AddThis Social Bookmark Button