Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Ignore:
Timestamp:
03/21/10 11:39:48 (2 years ago)
Author:
alex
Message:

cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib2/aleXtrasMovieScript.ls

    r244 r245  
    5656    end if 
    5757     
    58     alextras = rawnew(cms.script) 
     58    alextras = new(cms.script) 
    5959    if ilk(alextras) <> #instance then 
    6060      alert "Script" & QUOTE & "commonMovieScript" & QUOTE && "is missing. This movie can't proceed!" 
     
    109109  if scrName = "commonMovieScript" then return alextras 
    110110   
    111   inst = alextras.mGetInstance(scrName, 1) 
     111  str_scrName = alextras.mSymb2String(scrName) 
     112  inst = alextras.mGetInstance(str_scrName, 1) 
    112113  if ilk(inst) <> #instance then 
    113114    if the runmode contains "aut" then 
    114       put "Script" && QUOTE & scrName & QUOTE && "is missing! This may cause unwanted behavior" 
    115     end if 
    116       inst = [] 
    117     end if 
     115      put "Script" && QUOTE & str_scrName & QUOTE && "is missing! This may cause unwanted behavior" 
     116    end if 
     117    inst = [] 
     118  end if 
     119  if ilk(inst) = #instance then 
     120    if inst.handler(#new) = 1 then inst.new() 
     121  end if 
    118122  return inst 
    119123  ---------------------- 
    120124   
    121125   
    122   scrName = symbol(scrName) 
     126  scrName = alextras.mSymbolify(scrName) 
    123127  if ilk(scrName) <> #symbol then scrName = #commonmoviescript 
    124128  scri = (mGetAleXtras()).getaprop(#scripts) 
     
    233237  end repeat 
    234238  includes.deleteOne(#commonMovieScript) 
    235     globs[#gParentScriptInstances] = includes 
     239  globs[#gParentScriptInstances] = includes 
    236240   
    237241  exit 
     
    280284  if not(objectP(incl)) then 
    281285    put "No scriptinstances stored" 
    282   exit 
     286    exit 
    283287  end if 
    284288   
Note: See TracChangeset for help on using the changeset viewer.