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.
» Level Intermediate |
Added: 2001-01-25 Rating: 8 Votes: 123 |
» Author |
Patrick Jansen is a freelance flash-, graphic- and webdesigner. Born in Holland, currently residential in Brazil. Worked for the compagnies Lectric b.v. (www.lectric.nl) and NIC b.v. (www.notenbomer.nl). |
» Download |
Download the files used in this tutorial. |
Download (138 kb) |
» Forums |
More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.
Comments
There are no comments yet. Be the first to comment!