Variables true/false with drop zone
Apr 30, 2014
Hi, I stucked at this:
I have a drop zone and 2 images.
I have 2 variables: "image1dropped" and "image2dropped" (set as false)
When you drop one of the images in the drop zone, the variable for that image changes to true.
When you drop one of the images in the drop zone, he checks if the other variable is true, and if yes, he shows a layer.
So, you only can see the final layer if the two images are at the drop zone.
The problem is:
You drop the first image in the drop zone, than you remove it. Now you drop the second one and the layer is show because the variable of the first one is true...
What I want is, IF is not there anymore (if you drop of) the variable need to be false again.
I try put another drop zone to set false, it works, but ONLY if the person drop the object in the zone... The problem is when people drop the thing outside all targets...
Any solutions for this?
Tnx a lot!
3 Replies
Could you add a transparent "False" drop target and place it at the bottom of the timeline? Then add triggers to the images, that when any of the two images is dropped on this (false) target, the variables are reset to False.
Like I said, I did it
But this not work if the person drop the picture outside of one of the targets :/
Tnx anyway :D If you or anyone has more ideas, please :D
This discussion is closed. You can start a new discussion or contact Articulate Support.