A Flash Developer Resource Site

Results 1 to 20 of 20

Thread: Hide Mc (Very simple Question)

  1. #1
    Senior Member
    Join Date
    Sep 2005
    Location
    Gothenburg, Sweden
    Posts
    357

    Hide Mc (Very simple Question)

    Hi

    I've use this code to hide mc's

    Code:
    on (release) {
    _root.mcName._visibility = false;
    }
    I have to use this command in a loaded movie called "bilder.swf". The problem is that i want to hide a movieclip in the original movie named "index.swf".

    How can i do that? The movieclip in the original movie is called "page".

    Should i use this code? Is the level of the original movie 0?

    Code:
    on (release) {
    _level0.page._visibility = false;
    }
    /xzerox... Take a look at http://www.vmgcomputers.com/h75

  2. #2
    Senior Member donaldparkerii's Avatar
    Join Date
    May 2005
    Location
    San Diego
    Posts
    616
    I dont think you need to add the level in there. Did you create the movie clip "page" with actionscript?

  3. #3
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    level0 is _root

    on (release) {
    _root.page._visible = false;
    }

  4. #4
    Senior Member
    Join Date
    Sep 2005
    Location
    Gothenburg, Sweden
    Posts
    357
    thanks for the reply chris but it does not work... I don't think you understainds me:

    I've got a movie named index.swf.
    In index.swf i have a movieclip called page.
    In "page" i have a button who loads a movie called bilder.swf
    In bilder.swf i have a movieclip called bilder.
    In "bilder" movieclip i've got a button.
    With this button i want to hide "page" in the index.swf got it?
    /xzerox... Take a look at http://www.vmgcomputers.com/h75

  5. #5
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    OK man...if you have a level0 anything in a script...it's from swish or flash object, example or movie. ...so revert to what you were doing and use the word.

    "_visible"

    and not

    "visibility"

    Had I known this kind of content was what we were dealing with instead of thinking you were using a command in KM that it doesn't utilize (flash supports), I would have stayed out of it....sorry.
    Last edited by Chris_Seahorn; 08-22-2006 at 01:47 PM.

  6. #6
    Senior Member
    Join Date
    Sep 2005
    Location
    Gothenburg, Sweden
    Posts
    357
    still nothing... if i use the code:

    on (release) {
    _root.page._visible = false;
    }

    It does only hide my bilder.swf and not the "page" movieclip
    /xzerox... Take a look at http://www.vmgcomputers.com/h75

  7. #7
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    bound to be just a naming issue.

  8. #8
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    _lockroot has to be enabled

    You are able to edit this index.swf? ...it's Koolmoves? or a trapped flash swf(trapped as in you don't have the source code to index.swf) you want to manipulate from a loaded clip(binder)?

    This is exactly why I hate mismatched content.....make it all Koolmoves or toss it I say

  9. #9
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    It seem like loadMovie and unload movie would work since a level could be added then removed by a button

    As for mismatched content, I do it all the time.

    example:

    on (release) {
    loadMovieNum("home.swf", 10);
    }

    Or

    on (release) {
    unloadMovieNum(10);
    }
    Any programming language is at its best before it is implemented and used.

  10. #10
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    As for mismatched content, I do it all the time.

    Didn't say you hated it...said I did. Do as you wish.

  11. #11
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    Quote Originally Posted by Chris_Seahorn
    Didn't say you hated it...said I did. Do as you wish.
    I was trying to give a different alternative. Thats all.
    Any programming language is at its best before it is implemented and used.

  12. #12
    Thick as a Brick bobgodwin's Avatar
    Join Date
    Sep 2003
    Location
    Metro Detroit
    Posts
    217
    Here's a shot at it.

    And what's the difference between this:

    on(release){_root.page._visible = 0;
    }

    And this:

    on(release){setProperty("_root.page", _visible, "0");
    }

    Is one preferred?
    Last edited by bobgodwin; 01-05-2008 at 05:05 PM.
    Bob Godwin

  13. #13
    Senior Member
    Join Date
    Sep 2005
    Location
    Gothenburg, Sweden
    Posts
    357
    thanks for all the replys guys... i solved it using an url and a _blank target...

    look at www.vmgcomputers.com/uk and press "bilder" and "klicka här för att starta"
    /xzerox... Take a look at http://www.vmgcomputers.com/h75

  14. #14
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Xzerox that site seems to stop at 62% loaded for some reason.

  15. #15
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    Quote Originally Posted by blanius
    Xzerox that site seems to stop at 62% loaded for some reason.
    yea, at mines too.

  16. #16
    Senior Member
    Join Date
    Sep 2005
    Location
    Gothenburg, Sweden
    Posts
    357
    my site works now... some ftp problems... please check it out
    /xzerox... Take a look at http://www.vmgcomputers.com/h75

  17. #17
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    yea, it works now. Your site is very nice. I like it, but you could increase FPS, everything is so slow... ive go to wait... and i - and many other ppl - dont like to wait...

  18. #18
    Senior Member
    Join Date
    Sep 2005
    Location
    Gothenburg, Sweden
    Posts
    357
    hum... i use 32 fps... i thought that was maximum for koolmoves?
    /xzerox... Take a look at http://www.vmgcomputers.com/h75

  19. #19
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    no, i use 60 fps with usually 6 tweens pkf. 60 is the max value.

  20. #20
    Senior Member
    Join Date
    Sep 2005
    Location
    Gothenburg, Sweden
    Posts
    357
    aha... but i think im gonna strick to 32...
    /xzerox... Take a look at http://www.vmgcomputers.com/h75

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