View Full Version : X-Marks-The Spot
Hello gang.
I really hope this belongs here in the simple/newbie section.
I’m working on an e-learning project for work and I need some help desperately.
It’d work like “X-Marks-The Spot”, but instead it would have 3 Xs mark the spot.
I’d like to have three hotspots when (all clicked with an X) to have a returned positive text message But, if the user clicks and misses the box, the feedback text would say something to the negative.
Would someone please help me out with a quick actionscript example, or just point me to the right place for better examples.
Thanks in advance,
Pat
Flash Gordon
07-29-2006, 06:48 PM
I'd help but I have no idea what you are talking about. Can you show me an example?
Thanks for your help. I appreciate it!
Sorry, I'll try to be clearer than mud here. I've included an attached Fla. as an example.
Basically I need the end-user to identify three (hidden) areas behind a small movie clip. If the user clicks the precise three areas (hitBoxs), then the text box will evaluated the user's selection as "correct" from the clicked areas. If the user clicks outside these hitBoxes the return is negative.
Hope that helps a bit,
Thx again,
-Pat
Flash Gordon
07-29-2006, 09:53 PM
I still don't really understand, but what I think you are looking for is something like
function droped() {
if( myX1.hitTest(box1_mc) && myX2.hitTest(box2_mc) && myX3.hitTest(box3_mc) ) {
myText.text = "You are correct";
}
}
myX1.onRelease = myX2.onRelease = myX3.onRelease = droped;
One last shot please, and I’ll leave you alone. Promise.
I think I’m close, but if you open this attached fla and rearrange the script; I think I’ll have it. (It’s the closest thing to what I’ve been searching for.)
On the sixth part of this attached .fla quiz. In the “hot regions”, the user is supposed to select only one choice. Now in theory, what if the answer was all three choices? - North, Center, and South. How would you change the actionscript to make the THREE highlighted parts the correct answer versus just one of them?
Hope this helps
Many Many Thanks
-Pat
shotsy247
08-07-2006, 09:01 PM
First you would need to go into the north, center, and south clips and edit the actions on the buttons so the other buttons highlights wouldn't go away when pressed.
Then you would need to edit the actions on the checkanswer button to:
if(_root.south._alpha == 100 && _root.center._alpha == 100 && _root.north._alpha == 100){. . .
_t
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.