Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 23rd, 2003, 04:18 PM
kevinv033 kevinv033 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Philadelphia, PA
Posts: 6 kevinv033 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to kevinv033 Send a message via AIM to kevinv033
Flash Drag and Drop problem

Having a problem with _droptarget when I use loadMovie("file", target);

Here's the details:

making a "fill-in the blanks" clip.
drag/drop the words "onto" a target.
and when all of the words are filled in it will move on to next scene, etc.

here's how i have the drop target coded.

myClip.onRelease = function(){
this.stopDrag();
if (this._droptarget == "/target"){
someCode...
}
}
works fine by itself, but when I load this into another FLA using loadMovie("file.swf", target); the droptarget is not recognized.

i have no idea what to do.

hope someone can help

thanks,
k

Reply With Quote
  #2  
Old July 24th, 2003, 07:55 PM
panhead490 panhead490 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 51 panhead490 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 7 m 38 sec
Reputation Power: 6
Send a message via AIM to panhead490
I'm not sure about this but I don't think your problem is with _droptarget...you are comparing it to '/target' and since you have loaded this .swf in another it is looking for 'target' at the root level. I am more familiar with actionscript using the dot notation but I'm assuming '/target' looks to the root timeline???

I may very well be wrong but I thought I would at least give you something easy to try.

~panhead490

Reply With Quote
  #3  
Old July 25th, 2003, 09:41 AM
kevinv033 kevinv033 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Philadelphia, PA
Posts: 6 kevinv033 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to kevinv033 Send a message via AIM to kevinv033
i figured it out.

you are correct that it was "looking' for that target on the root timeline.

i am mostly familiar with dot notation too, but "_droptarget" uses the old "/" notation.

my solution:

if (eval(clip._droptarget) == target){
etc etc.
}


this will convert the slash notation to dot notation.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash Drag and Drop problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway