Invalid SQL: INSERT INTO `swsessions` (`sessionid`, `ipaddress`, `lastactivity`, `useragent`, `isloggedin`, `sessiontype`, `typeid`, `dateline`, `status`) VALUES('2f8151fbfcaa05f995099f53b34d860c', '54.81.154.223', '1498227290', 'CCBot/2.0 (http://commoncrawl.org/faq/)', '0', '40', '0', '1498227290', '0'); (The table 'swsessions' is full)
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\support.inm.com\includes\functions.php:410) in C:\Inetpub\support.inm.com\includes\functions.php on line 1612
Returning focus to Impressario after the AW screen redraws - Support Center
inm logo
Corporate Website | Contact | Store | Support | Login  
     


Knowledgebase
View categorized listing of all common frequently asked questions.
Downloads
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
Product:Platform:Area:Version:
Impressario for AuthorwareAllInteractivityAll

Summary

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...

Solution

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