Search Tutorials
Adding actions to the minimise and close buttons Step 15 : Open Movie Clip minise + close. Select the close button and add the following actions: on (release) {
setProperty (_parent, _visible, "0");
}
Step 2: Select the minimise button and add the following actions: on (press) {
if (Number(getProperty("_parent.text", _visible)) == 0) {
setProperty ("_parent.text", _visible, "1");
setProperty ("_parent.stack", _visible, "1");
} else {
setProperty ("_parent.text", _visible, "0");
setProperty ("_parent.stack", _visible, "0");
}
}
You might wonder why and how this works. These script checks whether the 'window is minimised or maximised' and maximises when minimised or minimizes when maximised. The effect is just visual. In reality it just checks and sets the visibility of the Movie Clip textMC to 1 (if it is 0 when checked) or to 0 (if it is 1 when checked). That simple! We're done!! Test your movie to see if all is working correctly.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|