dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Please help a little newbie about the _visible proprety !

  1. #1
    Member
    Join Date
    Jun 2002
    Posts
    72
    Hi all,
    I just want to make a simple thing : When you roll over a button, the graphic next to him desappears. The graphic is called "mimi"
    I made that on the button's actions :

    on (rollOver) {
    mimi._visible = false;
    }

    But it doesn't work.. how can i do plz ?
    Hacook

  2. #2
    Junior Member
    Join Date
    Jun 2002
    Posts
    4
    use 0 instead of false

  3. #3
    Member
    Join Date
    Jun 2002
    Posts
    72

    doesn't work :(

    on (rollOver) {
    mimi._visible = 0;
    }

    doesn't work ...

  4. #4
    Junior Member
    Join Date
    Feb 2002
    Posts
    8
    Maybe its something to do with the _level at which "mimi" is stored. Try this (replacing "x" with the appropriate level):

    setProperty(_levelx.mimi,_visible, false);

  5. #5
    Junior Member
    Join Date
    Jun 2002
    Posts
    4
    on (rollOver) {
    setProperty("mimi", _visible, "0");
    }

  6. #6
    Senior Member
    Join Date
    Jul 2000
    Posts
    419
    "I just want to make a simple thing : When you roll over a button, the graphic next to him desappears. The graphic is called "mimi" "

    first of all you can't do squat with a graphic. it MUST be a movieClip!!! convert it to a movie clip, with that said, I should also note that you cannot name graphics, So it seems "mimi" is the name of the graphic in the library, library name are completely irrelevent for anything, they are only their to keep you organized, and serve no other purpose.

    So, after you convert your graphic to a movieclip, drag it on the stage and give it an instance name. "mimi" then your original code will work.

    on (rollOver) {
    mimi._visible = false;
    }

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