Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Twain Xtra
DriveInfo
Creating Records - Valentina
Ripple General Settings-Alphamania
Password Protection in a Projector
EasyBase
Flash Member Controls
RadioGroup
Star Parent Script
All_In_One Button Hue Shift
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail