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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drag&drop works SOME of the time 1

Status
Not open for further replies.

jeanzee

Technical User
May 22, 2001
6
US
I have a large swf which loads a smaller swf into level 1 when prompted by the user. Inside the smaller swf is a drag & drop interaction which only works when the small swf is played by itself. When you try to play it inside the large swf, the draggable objects do not recognize the drop target. Does anyone have ANY idea why this is happening?
 
hi

Drag-n-drop should work when loaded into another _level, the only reason I can think of for it not working is that you have targetted _level0 in the original drag-n-drop movie, and haven't modified it for use in another _level.

dave dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Thanks, Dave. Here's the action on the draggable item:

on (press) {
startDrag ("_root.print");
}
on (release) {
stopDrag ();
if (_root.print._droptarget =="/droparea") {
setProperty ("_root.print", _x, 381.7);
setProperty ("_root.print", _y, 157.2);
tellTarget ("_root") {
gotoAndStop (55);
}
} else {
setProperty ("_root.print", _x, 98.7);
setProperty ("_root.print", _y, 93.8);
}
}

I've tried replacing the word _root with _level1 or _parent, but with no luck. Any idea what I'm doing wrong?
 
checking now... dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
change the following line, from:

Code:
if (_root.print._droptarget =="/droparea") {

to

Code:
if (_root.print._droptarget =="_level1/droparea") {

should work fine.

dave dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top