Changeset 163 for trunk/lingosource/castlib2/commonMovieScript.ls
- Timestamp:
- 04/06/08 11:11:43 (4 years ago)
- File:
-
- 1 edited
-
trunk/lingosource/castlib2/commonMovieScript.ls (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib2/commonMovieScript.ls
r150 r163 91 91 pGList = [:] 92 92 scr = mGetXScript(#regisx) 93 if not voidP(scr) then93 if not listP(scr) then 94 94 if mCheckForXtra(me, "BudAPI") = 1 then call(#regisb, scr) 95 95 if mCheckForXtra(me, "vList") = 1 then call(#regisv, scr) … … 496 496 on mGetThisMovieName me 497 497 glob = mGetGlobalList(me) 498 return string(glob.getaprop(#movieIdentifier)) 498 str = string(glob.getaprop(#movieIdentifier)) 499 if length(str) > 0 then return str 500 str = mSplitPath(me, the moviename).basename 501 mSetThisMovieName me, str 502 return str 499 503 end 500 504 … … 1196 1200 -- xxxxxxxxxxxxxxxxxx stored script instances: 1197 1201 1198 on mGetInstance me, instName 1202 on mGetInstance me, instName, useRawNew 1203 1199 1204 theGlobs = mGetGlobalList(me) 1200 1205 gParentScriptInstances = theGlobs.getaprop(#gParentScriptInstances) … … 1209 1214 1210 1215 if mGetMemType(me, member(instName)) = #script then 1211 saveScr = new(script instName) 1216 if useRawNew = 1 then saveScr = rawnew(script instName) 1217 else saveScr = new(script instName) 1212 1218 gParentScriptInstances.setaprop(instName, saveScr) 1213 1219 return saveScr 1214 1220 end if 1215 1221 1216 1222 if saveScr = -1 then return 0 1223 gParentScriptInstances.setaprop(instName, -1) 1217 1224 inst = mGetXScript(symbol(instName)) 1218 if objectP(inst) then 1219 saveScr = new(inst) 1225 if not(listP(inst)) then 1226 if ilk(inst) = #instance then inst = inst.script 1227 if useRawNew = 1 then saveScr = rawnew(inst) 1228 else saveScr = new(inst) 1220 1229 gParentScriptInstances.setaprop(instName, saveScr) 1221 1230 return saveScr … … 1356 1365 delim = the last char of the moviepath 1357 1366 if length(delim) < 1 then 1358 delim = the last char of the applicationpath 1367 1368 if the runmode contains "plug" then 1369 delim = "/" 1370 else 1371 delim = the last char of the applicationpath 1372 end if 1373 1374 1359 1375 if length(delim) < 1 then delim = "/" 1360 1376 end if … … 1396 1412 mp = the moviepath 1397 1413 if length(mp) < 1 then 1414 if the runmode contains "plug" then 1415 mp = "" 1416 else 1398 1417 mp = the applicationpath 1418 end if 1399 1419 if length(mp) < 1 then 1400 1420 mp = "@/" … … 1412 1432 delim = the last char of the moviepath 1413 1433 if length(delim) < 1 then 1414 delim = the last char of the applicationpath 1434 1435 if the runmode contains "plug" then 1436 mp = "" 1437 else 1438 delim = the last char of the applicationpath 1439 end if 1440 1441 1415 1442 if length(delim) < 1 then delim = "/" 1416 1443 end if … … 1482 1509 delim = the last char of the moviepath 1483 1510 if length(delim) < 1 then 1484 delim = the last char of the applicationpath 1511 if not(the runmode contains "plug") then 1512 delim = the last char of the applicationpath 1513 end if 1485 1514 if length(delim) < 1 then delim = "/" 1486 1515 end if
Note: See TracChangeset
for help on using the changeset viewer.
