A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Moving an object

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    128

    Moving an object

    I was wondering if anyone knows how to move an object around in the screen. Do you do it when you use PlaceObject, DefineObject, or am I off?

  2. #2
    Junior Member
    Join Date
    Jan 2007
    Posts
    13
    Make a movie clip, than name it(click on "instance name", not the same as the name you pick when you create the movie clip).
    Then use something like car._x -= 5(to move the car 5 pixels to the left, out of usually 550).
    Use car._y -= 5 to move it up the screen.
    Use car._x == 0(to move it to a specific spot and not move it a distance).

    You cannot use Place/Define object.

  3. #3
    Senior Member
    Join Date
    Jul 2008
    Posts
    128
    Thanks for the post, but I was referring to the actual SWF file format specs not the actual flash application. I'm trying to write the code that is being written out by their program. Any help would be appreciated.

  4. #4
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi Xeris2,

    you can actually move objects around the screen. Traditional motion tweens end up in the swf file as placing the same object in every frame, with different matrix

    Musicman

  5. #5
    In this site you can take help to move an object in flash.
    here is explain how to move an object
    http://web.uvic.ca/akeller/pw406/ht_...ove_object.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center