Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question...

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
when using this code:

on (press) {
startDrag ("/menu", false, -452, 11, 0, 11);
}
on (release, releaseOutside, rollOut, dragOver) {
stopDrag ();
}

how does it calculate the constraint..pixels,inches,etc?
and when it does this will it constrain to the size of the movie itself or how exactly does that work?





e.gif


carlsatterwhite@endangeredgraphics.com
 
In pixels... Carl!
BTW, you should change your default dimensions to pixels rather than inches, I've told you a million times!

It contrains the clip you're draging within the boundaries you set in relation to your main movie size.
So if you have:
startDrag ("test", false, 100, 0, 700, 100);
In a 800*600 (pixels) movie, you can drag the clip "test" up to 100 pixels from the left edge of your main movie, and right up to 100 pixels from the right edge of your main movie (800 - 700 = 100).
Same for top and botton. You could drag this "test" clip from the top up to 100 pixels from the top.
You're constraining the drag to a defined rectangle!

Still workin' on your other question. Don't think it's possible the way you want to do it!

;-)ldnewbie


 
ok i'm back..just got in from school..ah ha, and pixels it is..cool..scratch that other idea anyway if ya can't get it to work..if ya can i will use it but if not i'm going another route(figures huh)..
e.gif


carlsatterwhite@endangeredgraphics.com
 
Shesssssssssssssssssssssssh! More than 12 hours I spent on this thing... And now you don't want it! Almost there, but no you won't get it... I'll keep it for myself!
Now, you owe me a beer!

;-)ldnewbie
 
no man i will use it..the more good effects the better..and ya better share it cause it was my idea!!

:) let me see what ya got
e.gif


carlsatterwhite@endangeredgraphics.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top