A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Drag-able Window Question

  1. #1
    Senior Member freshly's Avatar
    Join Date
    Dec 2003
    Toronto, Canada

    Drag-able Window Question

    Hi to all,

    I have a drag-able window that opens in a certain position
    when you click a button, once you drag that window from
    the original position and close it I would like it to open in
    the original position, instead of it opening
    in the dragged position.

    My guess is that you would use tellTarget but I am not sure how to do that

    Here is a source file

    Thanks In Advance!

  2. #2
    Junior Member
    Join Date
    Jan 2006
    Santa Monica, CA
    set two variables on the 1st frame:

    xpos = instance_name._x;
    ypos = instance_name._y;
    Whatever the code is that you have to open the window again add this to it:

    instance_name._x = xpos;
    instance_name._y = ypos;

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