Script Containers
Posted: Fri Oct 25, 2013 8:57 pm
Hi All.
Does someone know how to save/set and use global Containers of script, and how to call these when needed?
fx 10 buttons that do different things. but 5 lines of code is the same.
How do I put these 5LineOfCode into a variable container?
So I can do something like this:
on MouseUp
Call 5LinesOfCode
End MouseUp
Shall I use a MainScript or the Script of MainStack or hte actual Card?
Or does I only need to declare it on any card, as long as I call it "Global".
Does someone know how to save/set and use global Containers of script, and how to call these when needed?
fx 10 buttons that do different things. but 5 lines of code is the same.
How do I put these 5LineOfCode into a variable container?
So I can do something like this:
on MouseUp
Call 5LinesOfCode
End MouseUp
Shall I use a MainScript or the Script of MainStack or hte actual Card?
Or does I only need to declare it on any card, as long as I call it "Global".