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

source: trunk/lingosource/castlib2/SpriteNameBeaver.ls

Last change on this file was 244, checked in by alex, 2 years ago

open linked script now also opens script fouind in member comments, if not a linked scripts

File size: 1.3 KB
Line 
1-- SPRITENAMEN
2-- sprite naming behavior
3-----------------------------------
4-- CREATED:
5--
6-- PROPERTIES:
7--!memberProperties: [#name: "SpriteNameBeaver", #scripttype: #score, #scriptSyntax: #lingo, #comments:"~/Documents/Scripts/lingo/SpriteNameBeaver.ls"]
8--
9-- DESCRIPTION:
10--             lingo scripts to handle movies in a window
11--             director movies running in their own window -> new player instance
12--             authoring and runtime only, as in shockwave we can't open and communicate
13--             with other windows.
14-----------------------------------
15
16
17property pKanalname
18
19on beginsprite me
20  if pKanalname <> #kanalname then call(#mMeldeKanalname, mGetXScript(), pKanalname, me.spritenum)
21end
22
23-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
24
25on endsprite me
26  if pKanalname <> #kanalname then call(#mMeldeAbKanalname, mGetXScript(), pKanalname, me.spritenum)
27end
28
29-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
30
31on getPropertyDescriptionList
32  liste = [:]
33  addProp liste, #pKanalname, [#default:#kanalname, #format:#symbol, #comment:"Name for sprite:"]
34  return liste
35end
36
37-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
38
39on mGetMyKanalName me
40  return pKanalname
41end
Note: See TracBrowser for help on using the repository browser.