If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Reversing rotation

Hi there -

I got an istock flash of a rotating earth for a client project (http://www.istockphoto.com/stock-fla...php?st=d5556f2) and now the client wants to reverse the rotation of it! Being a newbie, I've looked at the actionscript and can't make heads or tails of it. (I've also tried messing with it to try to understand what each line is doing but also can't figure it out. Can anyone help make sense of this and describe how to reverse the direction???

It is a masked object and 2 objects that refer to the foreground and the background.
Here is the script affecting the background object (The foreground is similar, but dmf.scaleX are +105;
dmf.scaleY +105).

The onEnterFrame is where the animation is happening. You can adjust either of these places (but not both)xadd = -2;//<------- you can change this to xadd = 2
this.onEnterFrame = function() {
dmf.mapPoint = new flash.geom.Point(50, 50);
img.scrollRect = new Rectangle(x, 0, 250, 250);x += xadd;//<------- you can change this to x -= xadd
if (x<1) {
x = 500;
}