Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-06-2006, 12:44 PM   #1
Registered User
Join Date: Nov 2006
Posts: 1
Default minimize,maximize,close

how can i add minimize,maximize,close buttons to movieclip?whats the script.(im beginner )
flashlearning is offline   Reply With Quote
Old 11-06-2006, 02:32 PM   #2
Toys in the Attic...
Noct's Avatar
Join Date: Oct 2006
Location: NY
Posts: 3,022

Close is the easy one:
on (Release) {_root.myMovieClip.removeMovieClip();}

Or, if you don't want the MC to actually be removed, you could set an empty frame in the movieClip, and call that. (Which is essentially just a better way of using a ._visible)
on (Release) {myMovieClip.gotoAndStop("_null");}

To make Min and Max you need to create a frame for each in the MC itself. One with everything removed for Min, and one in it's full glory for Max.
Then you just call them, and set the MCs .x and .y values so they go where you want.

on (Release) {
myMovieClip._x = xValue;
myMovieClip._y = yValue;

Keep in mind if you want it to be accurate, you need to throw in mouseOvers on the 3 buttons to highlight, (the minimize should technically have right mouse click actions), and the Max button should switch back and forth between restore and max.

maxButton.onRelease = function () {
if (mcMax !=true) {
mcMax = true;
} else {
mcMax = false;
Noct is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:51 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.