Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Gravitational Force
QuickTime Silent Install
Timehouse Speech Xtra
Bevel Follow Mouse or Sprite-Alphamania
Interactive Flash File Behavior
Effector Set II for Alphamania
Find CD Drive - Using Wierd File
Export/Import Text and Filed Members for proofing
Group of Sprite Mover
EZ CD Creator
 

 

 

Behavior Swap Language Cast Libraries

Added on 9/14/1999

 

Compatibilities:
D7 D8 Mac PC Script

This item has not yet been rated

Author: MediaMacros (website)

Use this to swap out different language castlibs

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know. :-)

on setLanguage
  global gLanguage

  if gLanguage = void then gLanguage = "english"
  currentFilename = castlib("language").filename
  if the platform contains "Win" then
    theD = ""
  else
    theD = ":"
  end if
  the itemDelimiter = theD
  thePath = currentFilename.item[1..(currentFilename.item.count - 1)]
  castlib("Language").filename = thePath & theD & gLanguage
  updateStage
end

on getBehaviorDescription me
  return "This script swaps out the castlib named language for another external library in the same directory that is named the same as the language it uses. For example, the file used by the language library might be named spanish.cst. When changing the global gLanguage to french then running the script, the language cast is swapped for the french.cst file."
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail