A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    53

    closeWindow script?

    Hello folks.

    I have a button (on stage) using this script to open a movie clip (called from the library):

    on (release) {
    blankMC.attachMovie("atlas", "fakeName", 1);
    }

    It works perfectly. However, I have to close the window. So I made a little "close" button that is on the movie clip that is called from the library. I can't seem to make amything work, so I need some advice. Can anyone recommend a script that will close my movie clip?

    Thank you.

    pug

  2. #2
    Senior Member
    Join Date
    Aug 2003
    Location
    .. keep movin' ...
    Posts
    137
    2 ways ..
    ... either make the root movie go to some other frame ..
    .. or ... make the visibility zero of the blankMC.
    Theres a Devil inside us all .. only, some are afraid to bring it out !

  3. #3
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    on(release){
    _root.blankMC.fakeName.removeMovieClip();
    }
    Last edited by iaskwhy; 10-20-2003 at 10:27 AM.

  4. #4
    Member
    Join Date
    Sep 2003
    Posts
    53
    Thank you both for your time!!

    However, the script supplied by iaskwhy did exactly what I needed. I tried something similar to that, but I really don't know what I'm doing!!!

    THANK YOU MANY TIMES OVER!

    pug

  5. #5
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    When you have some extra time, open flash and make sure the Reference panel is open. Look on the left, and open the bottom Index folder. Then just start at the top and click each one and read the description for it. Even if you don't understand them all yet, you will eventually, and going through them all will kind of set them in your mind.

    It's the first place I look now for code that I don't know or remember.

  6. #6
    Member
    Join Date
    Sep 2003
    Posts
    53
    I didnt know that was there!!

    Thats great advice....thank you!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts




Click Here to Expand Forum to Full Width


HTML5 Development Center