Hi!

I'm trying to create a simulated grocery store check out area where you
click on the item, drag it under the scanner (causing the price to appear)
and then you put it in a bag.

I've got the whole thing working except I can't get the scanner part to work
while the item is being dragged. Right now you have to drag the item under
the scanner and drop it. Then it will activate the "hit" area, then you
drag it again to the bag. Here's how it's set up...

My draggable images are MCs containing buttons. On the button is this code:

on (press) {
startDrag("/01");
}
on (release) {
stopDrag();
if (getProperty("/01", _droptarget) eq "/trigger") {
tellTarget ("/status") {
gotoAndPlay("Mayo");
}
} else {
}
}

TRIGGER is the "hit" area under the scanner where they place the object
STATUS is an MC that displays the read-out on the scanner. At the frame
labeled "Mayo" I have the price info for that object.

All this works fine. I tried to mess with the above button code to allow
the draggable MC to execute the tellTarget action without having to use the
stopDrag property first, but no luck.

Any ideas? Am I even approaching building this in the best way?

Thanks!
Rob|e.9








--
Rob Solberg
Hypersound Music & Audio Design
[url]www.hypersound.net[/url]
651.365.1100 :telephone
651.365.1101 :facsimile
888.649.5551 :toll-free
<><