FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
livecode/docs/dictionary/command/insert-script.lcdoc at develop · livecodeali/livecode · GitHub
livecodeali
/
livecode
Public
forked from
livecode/livecode
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
livecode
/
docs
/
dictionary
/
command
/
insert-script.lcdoc
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (32 loc) · 1.34 KB
Breadcrumbs
livecode
/
docs
/
dictionary
/
command
/
insert-script.lcdoc
Copy path
File metadata and controls
48 lines (32 loc) · 1.34 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
Name: insert script
Type: command
Syntax: insert [the] script of <object> into {front | back}
Summary:
Places an <object|object's> <script> into the <message path>.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
insert the script of button "Message Library" into back
Example:
insert the script of this card into front
Parameters:
object:
The object is any object in an open stack.
Description:
Use the insert script command to use an object's script as a library for
frequently-used handlers.
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.
Objects added to the front or back are placed at the start of the
<frontScripts> or <backScripts> list: the last-inserted object gets
messages first.
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.
References: remove script (command), place (command), call (command),
start using (command), backScripts (function), frontScripts (function),
object (glossary), message path (glossary), script (property)
Tags: objects
Back
|
FazBrowse Home
|
New Git URL