Answered
Animation irregularity
I am very new to flash so please bear with me..
I am trying to create a simple interaction: when the user mouses over one coloured box that the second coloured box will move to the side (instead of partially covering the first box)
I have used this code:
on(rollOver){
red._x=10
}
on(rollOut){
red._x=-10
}
This provides what I am looking for, except when you mouse over for the first time, the 2nd box jumps to the side of the screen, any subsequent mouseovers and mouse offs results in the desired effect (but with the box having assumed a new origin half off the screen)
Any idea why this is happening? or a better suggestion on how to do this?
I am trying to create a simple interaction: when the user mouses over one coloured box that the second coloured box will move to the side (instead of partially covering the first box)
I have used this code:
on(rollOver){
red._x=10
}
on(rollOut){
red._x=-10
}
This provides what I am looking for, except when you mouse over for the first time, the 2nd box jumps to the side of the screen, any subsequent mouseovers and mouse offs results in the desired effect (but with the box having assumed a new origin half off the screen)
Any idea why this is happening? or a better suggestion on how to do this?
