forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsert-script.xml
More file actions
executable file
·75 lines (60 loc) · 2.38 KB
/
Copy pathinsert-script.xml
File metadata and controls
executable file
·75 lines (60 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<doc>
<legacy_id>2198</legacy_id>
<name>insert script</name>
<type>command</type>
<syntax>
<example>insert [the] script of <i>object </i>into {front | back}</example>
</syntax>
<synonyms>
</synonyms>
<summary>Places an <glossary tag="object">object's</glossary> <property tag="script">script</property> into the <glossary tag="message path">message path</glossary>.</summary>
<examples>
<example>insert the script of button "Message Library" into back</example>
<example>insert the script of this card into front</example>
</examples>
<history>
<introduced version="1.0">Added.</introduced>
<deprecated version=""></deprecated>
<removed version=""></removed>
<changed version=""></changed>
<experimental version=""></experimental>
<nonexperimental version=""></nonexperimental>
</history>
<objects>
</objects>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<classification>
<category>Objects & Messages</category>
<category>Standalone Applications</category>
</classification>
<references>
<command tag="call">call command</command>
<command tag="remove script">remove script command</command>
<command tag="place">place command</command>
<command tag="start using">start using command</command>
</references>
<description>
<overview>Use the insert script command to use an object's script as a library for frequently-used handlers.</overview>
<parameters>
<parameter>
<name>object</name>
<description>The object is any object in an open stack.</description>
</parameter> </parameters>
<value></value>
<comments>A script inserted into the front receives messages first, before the target object receives them. A script inserted into the back receives messages after all objects in the message path, just before the engine itself receives the message.<p></p><p>Objects added to the front or back are placed at the start of the <function tag="frontScripts">frontScripts</function> or <function tag="backscripts">backScripts</function> list: the last-inserted object gets messages first.</p><p></p><p>Be aware that inserting scripts may make it difficult to understand how a stack behaves. If you use this command for development, be sure to carefully document which scripts are inserted, where, and when.</p></comments>
</description>
</doc>