Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 2 of 2
  1. #1

    Default changing buttons permanently

    I would actually like to ask two related questions. I am trying to make a button that will change to (and remain until pressed again) a different picture everytime it is pressed. To do this, the button need to remain altered, even when the button is not clicking or hovering over the button. As well, the button needs to be changed more than once, more specifically, each time it is pressed. Unfortunately, I don't know how to do either of these things. Any advice would be apreciated.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    You can use movieclips as buttons. Consider a movieclip with seperate frames each holding a different image.

    Code:
    _root.mcInstanceName.onRollOver=function(){
    _this.gotoAndStop("frameLabel");
    }
    _root.mcInstanceName.onRollOver=function(){
    this.gotoAndStop("frameLabel");
    }
    To control one movieclip timeline from another might look something like...

    Code:
    [code]
    _root.mcInstanceName.onRollOver=function(){
    _root.someOtherMC.gotoAndStop("frameLabel");
    }
    _root.mcInstanceName.onRollOver=function(){
    _root.someOtherMC.gotoAndStop("frameLabel");
    }
    [/code]
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Changing the language
    By Organ Donor in forum General Flash
    Replies: 2
    Last Post: 04-14-2009, 06:32 AM
  2. Changing images in flash.
    By kguerrero in forum Advanced Flash
    Replies: 7
    Last Post: 09-11-2007, 09:16 AM
  3. Changing movieClips
    By Shiroten in forum Flash Scripting
    Replies: 0
    Last Post: 10-10-2006, 02:45 AM
  4. Changing images
    By viewsoft in forum Newbies
    Replies: 1
    Last Post: 08-27-2006, 12:25 PM
  5. Changing Picture within an animation
    By rimes1 in forum General Flash
    Replies: 1
    Last Post: 07-21-2004, 03:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial