Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
Rob Solberg #1
Drag Through "Hit" Area Not Working
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
<><
Rob Solberg Guest
-
Drag and drop problem with "dragEnabled" and"allowMultipleSelection"
Update 2, if it can help someone: Finally I don't manage the drag and drop by myself using DragManager.doDrag(...). Why? Because doing so if the... -
Remembering the height of the display area when using "fit width"
Hi, I'd like acrobat to remember the height of my display area when I use "fit width", so that I don't have to scroll down each page. Indeed, the... -
"Buffer" area in scrolling layer?
Hi, I'm using a layer as a text box and I've set the overflow to "scroll". I don't like that the text is butted up against the scrollbar on the... -
is "drag" the best method for...?
*This message was originally posted while the forum was down last weekend. I won't post it again if I don't hear from anyone, but since there were... -
Error from "drag to rotate" script
Hi, I've been having trouble using the "drag to rotate" action on a 3D model. I created a new movie which only has a 3D sprite with a single model...



Reply With Quote

