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

C1017 - Why does Authorware sometimes say an icon doesn't exist when I refer to it with the @ symbol?

by - Joseph Ganci


Occasionally, I need to refer to an icon with a calculation as its name with an @ reference. Invariably, AW doesn't let me. It tells me that there is no icon with that name. Is this a bug? Any workarounds? Using the IconID won't work. For instance, I want to check that the icon has never been matched using MatchedEver@"IconTitle".

It isn't the fact that it's a calculation icon. You probably have it set up as a feedback to a conditional response. That's the problem - the title of the icon is also the expression or variable you are using to activate the response.

One way to do it works if you know which child the conditional response is. By child, I refer to the order from left to right of the feedbacks attached to the Interaction icon. So, if your conditional response is the first one attached to the Interaction icon called "parent", you can use the following code to determine if it was ever matched:

icon := ChildNumToID(@"parent", 1)
matched := MatchedEver@icon

This uses the ChildNumToID function (obviously). I didn't think this one through too hard, so you might consider this a quick and dirty method. There might be a better way.

There are 0 reviews
Add your review
Back