inm logo
Corporate Website | Contact | Store | Support | Login  

View categorized listing of all common frequently asked questions.
View our categorized library of downloads for all necessary manuals, software, etc.
 Article Options
Support Center » Knowledgebase » INM Impressario for Authorware » Returning focus to Impressario after the AW screen redraws
Support Page Banner
 Returning focus to Impressario after the AW screen redraws
Impressario for AuthorwareAllInteractivityAll


Due to a quirk (bug) in Authorware, the Impressario sprite will lose the ability to trap mouse events, such as mouseWithin, mouseUp, mouseDown, etc. each time the Authorware screen is redrawn -- i.e., once the user clicks RETURN in a text box or when scrollbars are redrawn.

There is a workaround solution, described below...


The easiest way to ensure that the Impressario sprite can receive the user's mouse events is to force a refresh by erasing and redisplaying it after each interaction with Authorware. The Scripting Sample, on our sample page, illustrates this workaround.

The following code for erasing and redrawing an Impressario sprite is placed in a calculation attached to the Sprite interaction icon, so it is executed each time an interaction occurs:

-- Erase and redisplay the hidden dummy Impressario sprite so that Impressario retains focus
-- and accepts mouse clicks
EraseIcon(@"Impressario Dummy")
DisplayIcon(@"Impressario Dummy")

Impressario Dummy is an Impressario sprite icon that is linked to a very small, empty PDF document; this makes the refresh very quick. Even though the dummy sprite is redrawn, that action forces the focus back to Impressario, so that you can continue to interact with the PDF document.

Another trick is to set the Dummy Impressario sprite to display in layer -1. This prevents any flickering that may occur.

Article Details
Article ID: 26
Created On: 30 May 2006 03:24 PM

 This answer was helpful  This answer was not helpful

inm general footer
Services Xtras Go Products Support Gallery Store Download About Us Contact Newsroom