-
on(press) count - MX2004
Hello,
I'm making a training piece. I have a scene where the user needs to click (press because it is on a touch screen) on 5 areas of a picture. I have these as buttons right now. Once all 5 areas have been selected I want to pass along a fscommand(""); to the shell that plays the training lesson.
I have changed the buttons to movie clips and have used code that keeps track of each movie clip, but it hasn't given me the correct results. Rather that beat up the code I have been using, I wanted to get something fresh. If that is okay?
Any ideas to count the 5 or more buttons?
Thank you
-
Confused Game/Cartoon Designer
i dont understand the last question, but when you ask a movie clip to pull an "on (release)", it wont work very well
P-Dizzle is in the hizzle.
-
re:
I have 5 buttons. Once all 5 have been pressed, order doesn't matter, the fscommand(""); should be enabled(?).
I know there is a
count++ command, listeners and that.
Is there something like
button01 clicked = "true"
button02 clicked = "true"
button03 clicked = "true"
button04 clicked = "true"
button05 clicked = "true"
then fscommand("");
or
function checkCount()
{
if (hotspotCount == 5)
{
fscommand("");
}
}
Like I said I have copied and pasted my code to death.
Thanks in advance
-
Confused Game/Cartoon Designer
i feel sort of noobish asking this, but what is fscommand?
P-Dizzle is in the hizzle.
-
fscommand passes info to another program. For my project there is a program running the complete training course. Throughout the training they have some flash pieces. The fscommand from flash tells the main program it is done playing.
-
FK'n_dog
Any ideas to count the 5 or more buttons
set boolean flags on each button -
Code:
btnA.onRelease=function(){a=true;}
btnB.onRelease=function(){b=true;}
and check for the flags -
Code:
if(a && b && c && d && e){..do stuff..}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|