A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how to: turn several MovieClips 'off' and then 'on'

  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    16

    how to: turn several MovieClips 'off' and then 'on'

    hi -
    please see:
    mdp.artcenter.edu/~nazarian
    for reference to this question, thanks.

    I am curious how it might be possible to switch several mc's 'off' upon a loadMovie command. The set-up is thus:

    There is a 'tooltip' mc offstage that gets called via duplicateMovieclip. Several thumbnails on the stage utilize this clip to provide info about each thumbnail. When a thumbnail image is clicked on, it loads an external movie onto the stage, covering the thumbnails and their little tooltip clips. However, it is possible to see both the thumbs and their (still) active tooltips through the semi-transparent background of the loaded movie.

    My goal is this: stop the tooltips/thumbnail buttons from functioning while there is a movie loaded over them. when the movie is closed and unloaded, they should return to 'on' status.
    thanks.

  2. #2
    now menacing sydney redact207's Avatar
    Join Date
    Dec 2001
    Posts
    213
    have you tried:

    use the duplicateMovie command within a for loop. to turn it on and off, use another function within a for loop.

    eg:

    Code:
    
    //duplicates the toolTip MC
    function dupToolTip()
    {
       numberOfToolTips = 20;
       for(i=0; i<numberOfToolTips; i++)
       {
          toolTip.duplicateMovie("toolTip" + i, i);
          setProperty("toolTip" + i, _x, getProperty("toolTip" + i, _width) * i);
       }
    }
    
    //change the state of the tooltip MC's
    function changeState(state, numberOfToolTips)
    {
        for(i=0; i<numberOfToolTips; i++)
          setProperty("toolTip" + i, _enabled, state);
    }
    hope this is what you were asking

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