A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: Drag+Drop then Resize Symbol (MX)

  1. #21
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Hi, again

    You should completely avoid using Scenes because they're evil and will mess up everything for you as a coder, so stick with Frames :P

    In your code, you're only checking if the movieclip hits the wall once, and that's when you press it - it's really complicated to tell this in words, so maybe you can provide the FLA file, 'cause that'd be great ?
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  2. #22
    Junior Member
    Join Date
    Oct 2011
    Posts
    16
    Actually I am not sure what it is that I want to use. However, I want to drag object named zeke into another frame, like taking zeke out of the living room and moving him into the kitchen. Making it look like a movie whereby zeke walks from one room to another. I want the player to control the movement of zeke.

    I know I am rusty on actionscript. Was away from it for a few years, but now have time to mess around with it.

    Any help from you is greatly appreciated. :-)

  3. #23
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Could you provide your current FLA, please ?
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  4. #24
    Siderz
    Guest
    Sorry for posting on an old thread, but I just made a new thread and either it's disappeared into the void or it's being monetized first.

    In case it just disappeared, I'm gonna quickly ask here.

    I basically want it so that the draggable object is small, to fit on a board, and when you begin dragging it resizes to its full size, and when you drop it in the correct place, it stays the full size.

    If you remove it from its place, it should then go back to its smaller size to fit on the board again.

    I tried applying the code given at the second post in this thread, but I just couldn't figure out how to use it (Since I'm a n00b at Flash).

    Could someone show me how to apply it to my code?

    Code:
    on(press) {
    	_root.mySound2.start(0,0);
    startDrag(this);
    }
    on(release) {
    stopDrag();
    if (this._droptarget == "/target") {
    	_root.mySound.start(0,0);
    this._x = _root. target._x;
    this._y = _root. target._y;
    
    }
    else{
    this._x = 423.95;
    this._y = 109.45;
    
    }
    
    }
    Thanks in advance!

  5. #25
    Siderz
    Guest
    Forgot to add that I am using Flash CS5.5, and of course, AS2

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