+ Reply to Thread
Results 1 to 7 of 7

Thread: Action script 3 Movement

  1. #1
    csana555 is offline x10Hosting Member csana555 is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    30

    Action script 3 Movement

    How do i move a button to a certain absolute position(to origin) with action script 3?

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Action script 3 Movement

    Last edited by misson; 05-05-2009 at 03:39 PM. Reason: fixed linkage

  3. #3
    csana555 is offline x10Hosting Member csana555 is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    30

    Re: Action script 3 Movement

    Thanks.
    Im not a very good googler.

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Action script 3 Movement

    Google can even help you to use google. Other than that, practice, practice, practice.

  5. #5
    FengFeng's Avatar
    FengFeng is offline x10Hosting Member FengFeng is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    China,Canton
    Posts
    59

    Re: Action script 3 Movement

    Quote Originally Posted by misson View Post
    But You must know the key word~~You can't figure out this problem with these key words
    Edit:
    Quote Originally Posted by csana555 View Post
    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 by FengFeng; 05-06-2009 at 03:51 AM. Reason: Automerged Doublepost

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Action script 3 Movement

    Quote Originally Posted by FengFeng View Post
    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;

  7. #7
    FengFeng's Avatar
    FengFeng is offline x10Hosting Member FengFeng is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    China,Canton
    Posts
    59

    Re: Action script 3 Movement

    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&n...on&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:
    Quote Originally Posted by misson View Post
    With that key word,you can find something common with flash,but no professional key word on flash action script~Thx
    Last edited by FengFeng; 05-06-2009 at 09:27 AM. Reason: Automerged Doublepost

+ Reply to Thread

Similar Threads

  1. [OFF] selling some hot script 500 credits each
    By neteater in forum The Marketplace
    Replies: 8
    Last Post: 03-24-2009, 09:08 PM
  2. Access to 300+ PHP scripts (2500 credits)
    By jonathanyaniv in forum The Marketplace
    Replies: 11
    Last Post: 06-03-2008, 10:58 PM
  3. Replies: 8
    Last Post: 12-03-2007, 04:12 PM
  4. Replies: 0
    Last Post: 10-10-2007, 07:53 AM
  5. Server UP time Script
    By dharmil in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 04-03-2006, 04:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers