please...anybody... have some mercy on me.....!!!!!!!!!!!
I'm trying to finally bite the bulletand learn AS properly as far as my poor little brain will take me - now I'm so stuck - it's driving me insane...
![]()
Just when I thought I was getting it - this dilemma...
I've set up variables for the x and y position of a butterfly movieclip, then using these for 4 directional buttons which move the clip along usng the given value - everything works fine when I set the value to a set number.
I also have a dynamic text box in place, displaying the x and y position of the clip - working fine with the set value as well.
So far so good...
Now I'm trying to have 2 input fields there for the user to be able to change the x and y value. At the moment I've got a button in place to set the variables value.
The strange thing is that my script work just fine for 2 button (up/-y and down/-x) - but the other 2 do the oddest thing and I'm just so stuck :'(![]()
![]()
The value seems to go through but instead of adding - it just adds them at the end of whichever y postion is currently there, ie when the y position reads 200 - after the change of value to eg 20 - the y position reads 20020 (instead of the correct y poisition: 220).
So something must be wrong in my script, it currently is:
on(release){
_root.butterfly._x -= _root.x;
updateAfterEvent();
}
=>for working button
on(release){
_root.butterfly._x += _root.x;
updateAfterEvent();
}
=> for misfunctioning button
And I'm still new to variables - just playing around with them, trying to understand... scared of maths as well... so it's just freaking me out now... am I stupid ? Or don't I see the complexity yet???
Any help, any tips... - I've attached the file - just in case I was talking jibberish...
Hoping for a light at the end of this tunnel.....
Prisca


and learn AS properly as far as my poor little brain will take me - now I'm so stuck - it's driving me insane...
Reply With Quote