-- aleXtra -- ©05 Alex da Franca
Version 1.0 -- 02/03/05

 

Lingo scripts to use with Integration New Media's Impressario Xtra for Macromedia Director

Purpose:

 
  • Use this behavior to display a Find- or Load-Dialog for Impressario Sprites
  • For use with the aleXtra LDM "aleXtra_ImpressarioFind"
  • It is fully customizable and looks on all platforms and playback environments the same (and works for Shockwave/Mac)
 
   

Requires:

 
  • "aleXtra_ImpressarioFind" LDM with all its scripts
  • Optional: Xml parser Xtra (version MX 2004) and Fileio Xtra for translation (translation can also be skipped => pUseImpressarioTranslation = 0)
  • ... and the Impressario Xtra of course
 
   

Usage:

 


Installation:

  • (Create an impressario member and drag it onto the stage)
  • Import "aleXtra_ImpressarioFind.dcr" file as Linked Director Movie: File -> Import...
  • Drag it to the score/stage (move it offstage)
  • Extend the sprite span to begin at least one frame before your impressario sprite
  • Move the playback head to a sprite within the sprite range form your Impressario sprite
  • Type the following into the message window:
    tell sprite <x> to mInstallRequiredScripts <y>
    (
    where <x> is the channelnumber of the LDM sprite and <y> is the channelnumber of your impressario sprite)
    This installs the behaviors for both, the Find Dialog and the Load Dialog. If you just want one of both, use mInstallRequiredFindScripts or mInstallRequiredLoadScripts
  • From the newly created castmembers in your movies castlib 1, drag the behavior named "aleXtraLoader" onto the sprite with the LDM
  • Start the movie and to invoke the Find Dialog type the following into the message window:
    sendSprite(<y>, #mDisplayFindDialog)
    to invoke the Load Dialog:
    sendSprite(<y>, #mDisplayLoadPDFDialog)

Customization:

  • Customize the window properties via the GPDL properties of the behavior "impressarioFindDLogHost": Alignment of the window relative to the Impressario sprite or absolute on stage, margins and size.
  • Customize the strings or use the standard Impressario strings with localization via XML files (Impressario 2 and Find Dialog only)
  • Customize the appearance of the dialog and its widgets with a CSS like script: All colors, font, fontsizes, buttons are customizable. (See example movie)

 

 
   

Help:

 
  • Read the comments at the top of the Behaviors
  • For the Install commands:
    tell sprite <LDM_spritenumber> to put interface()
  • For the Find Dialog:
    sendSprite(<y>, #GetFindDlogInterface)
  • For the Load Dialog:
    sendSprite(<y>, #GetLoadDlogInterface)
 
   

Sample + Download :

 
  • Shockwave example (View online. Requires the installation of the Impressario Xtra for Shockwave)
  • Download (the above sample as .dir file)
 

If it helped you to get a paid job delivered, you might want to contribute and support my work by donating via PayPal...