At 8/5/05 09:30 PM, shakiko wrote:
how can i make a pop up thing in a flash document , but not like a real pop up, one that u make using flash , so wen u click on somthing , it pops and u can drag it , minumize it and exit it ... and stuff , ( alll flash )
1. is it possible
Yes
2. if yes , how can i make it ?>??
Use a movieclip.
Inside the MC, have a 'titlebar' which is a button, and your 'minimise' and 'close' buttons overlaid on it.
On the titlebar button, have this:
on(press){
startDrag(_parent);
}
on(release, releaseOutside){
stopDrag();
}
On your 'close' button:
on(press){
_parent._visible=0;
}
Minimise is a little more tricky, I recommend adding a second frame to the MC which just shows the titlebar without the main area of the popup, and using
on(press){
_parent.gotoAndStop(2);
}
To open the popup, give the MC the InstanceName 'popup' and use this on the button which will open it:
on(press){
popup._visible=0;
}