Action script 3 Movement

csana555

Member
Messages
30
Reaction score
0
Points
6
How do i move a button to a certain absolute position(to origin) with action script 3?
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Google can even help you to use google. Other than that, practice, practice, practice.
 

FengFeng

New Member
Messages
59
Reaction score
0
Points
0
But You must know the key word~~You can't figure out this problem with these key words
Edit:
How do i move a button to a certain absolute position(to origin) with action script 3?
I haven't use AS since many years ago.
Maybe this code can work,wirte the code in the root,not in a MC
Code:
button.x(int x);
button.y(int y);
 
Last edited:

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
But You must know the key word~~You can't figure out this problem with these key words

Au contraire, the keywords work just fine. 1st result, 1st paragraph:
The most basic manipulation to any display object is positioning it on the screen. To set a display object's position, change the object's x and y properties.

myShape.x = 17;
myShape.y = 212;
 

FengFeng

New Member
Messages
59
Reaction score
0
Points
0
absolute position
the position to MC is different form the position to origo
To place a object to stage is an easy thing,but to place to a absolute position is no easy.
You can use the key words"as3 absolute position"
http://www.google.com/search?hl=en&num=100&newwindow=1&q=as3+absolute+position&btnG=Search
1st result,plx
You can see Flash/AS3; get/set absolute position of MovieClip?
in there,i find two function localToGlobal and globalToLocal
It's the key to solve this problem
search in your AS dictionary with the key word "localToGlobal"~~
Edit:
With that key word,you can find something common with flash,but no professional key word on flash action script~Thx
 
Last edited:
Top