Think of something that you wish Authorware could do but it doesn't?
Let the our good friends at Macromedia know via the wishlist.
Please let us know if you find
any of the materials on this site inappropriate or offensive. Please include
the url and why the material should be reviewed.
Comments and questions about the site are also welcome. Please no Authorware
questions, use the AWARE
list.
|
Back
1067 - How can I create a Case/Select/Switch statement inside a calc icon in Authorware?
by - Ike Eisenhauer
How can I create a Case/Select/Switch statement inside a calc icon in Authorware?
Aware Script does not provide a Case/Select/Switch statement, but no fear
your nested-never ending if-then-else-ad infinitum problems are over.
1. One way:
Cases:=["1","3","5","7","Apples","Oranges","Helpme"]
Actions:=["F:=1","F:=3","F:=5","F:=10","N:=\"Pommes\"","N:=\"Not
Apples\"","JumpFileReturn(\"Help\")"]
EvalAssign(Actions[FindValue(Cases,vCondition)] )
2. To show up the Director Ninjas:
Cases:=["MediaPlaying@\"MySound\","MouseDown&AltDown","MouseDown","AltDown","ClickSeconds>180"]
Repeat with i in Cases
If Eval(i) then
vBranchTo:=FindValue(Cases,i)
Exit Repeat
End If
End Repeat
There are 0 reviews
Add your review
Back
|