Groups | Blog | Home
all groups > flash actionscript > july 2007 >

flash actionscript : PROBLEMS WITH A "CLOSE BUTTON"


blackmamba-11
7/7/2007 3:20:52 PM
Hello,
I'm not a pro with flash. But I have a full flash site to modify, Well I did
it but now I have some needs:
This is the site:
http://www.moiraproject.net/people/people.html
If you can see the pages open with an animation. I need to do something to
close the pages to see the main animation.
.. and to do that I thought to put a "X" button above the pages .. But I don't
know the script to make it!
Please someone can help me!?!?!?
kglad
7/7/2007 3:31:19 PM
blackmamba-11
7/7/2007 3:41:19 PM
Thanks for the quick answer ... but I don't know how to write
this code ...
well .. I have a button "x" on the pages. So I can write something like that?!?:

kglad
7/7/2007 5:42:22 PM
if your button's instance name is x and it is a true (not a movieclip) button
and it's on the main timeline of the movieclip you want to close, you can use:



x.onRelease=function(){
this.removeMovieClip();
}
blackmamba-11
7/7/2007 7:02:52 PM
I tried with this ..... but this is the error string:
ERROR = Symbol=symbol 653, layer=layer 53, fotogramma=1: Line 1: The
instruction must be inside the ON GESTOR
y.onRelease=function(){


WHAT DOES IT MEANS?!??!
kglad
7/7/2007 7:10:31 PM
AddThis Social Bookmark Button