Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-24-2009, 12:30 PM   PM User | #1
pspsully
New Coder

 
Join Date: Feb 2006
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
pspsully is an unknown quantity at this point
Draggable MC inside Draggable MC

Hi Guys,

I was wondering if this is possible?

I have a MC the drags up and down, but inside that MC i also have an MC that i want to drag from Left to Right. The Main MC is called UpDown and the one inside is called LeftRight, here is the code i am trying to use.

Code:
UpDown.onPress = function {
     UpDown.startDrag(false,this._x,-500,this._x,500);
}

UpDown.onRelease = function {
     UpDown.stopDrag();
}

UpDown.LeftRight.onPress = function {
     UpDown.LeftRight.startDrag(false,0,this._y,60,this._y);
}

UpDown.LeftRight. onRelease = function {
     UpDown.LeftRight.stopDrag();
}
But i cant get it to work Any Ideas?
pspsully is offline   Reply With Quote
Old 04-24-2009, 01:12 PM   PM User | #2
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
Does nothing work, or when you click on the LeftRight does the UpDown move up and down?
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:43 PM.


Advertisement
Log in to turn off these ads.