Flash/XML/Drag and Drop

Posted on 2003-03-28
Medium Priority
Last Modified: 2010-04-03
I have a flash movie which allows the user to drag and drop items around the screen. If the user drags the item to the correct position, it stays there. If they drag it to the wrong position, it snaps back to its original position. If the item is dragged to the correct position, some text is displayed. This text is taken from an XML document that is loaded when the flash movie executes. When I include the XML in the flash, the drag and drop does not work. It doesn't even respond. If I take the XML out, the drag and drop works fine. The XML has been tested seperately and is fine. Anyone know why this might happen. I am using Flash 6.
Question by:Fatlog
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 22

Expert Comment

ID: 8226924
if you post your .fla somewhere on the web, I can take a look "under the hood", but from your description, I can't really tell...


Expert Comment

ID: 8227297
will need the source or part of the code to determine what happen ...


Author Comment

ID: 8237837
its solved. i had a very basic error. variable conflicts. should have checked that first!!!
i've another problem though. the XML document contains information that will appear when a certain event occurs. i.e. when you drag an item over a particular are, text about that item appears. the problem is with the cache. when i update the information in the xml document and run the flash movie again, the updated information does not appear. the old information appears! i think this is to do with the cache. anyway around this?

Accepted Solution

henryww earned 1000 total points
ID: 8237851
try putting a dummy variable at the end of the filename


myXML = new XML();
myXML.load("theXMLfile.xml?dummy=" + Math.floor(new Date()));


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question