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

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

    Default Controlling Button State

    Hi gang. Newbie question...

    I have created six buttons in a Flash movie that appears on every page of a web site to navigate through main sections of the site, each button with a unique up/over/down state. When a user is on a web page that is in a particular section, I want the button for that section to appear differently than when in any other section.

    Is there any way to tell Flash from the loading web page to use a different symbol or at least a different up state for a particular button? Perhaps by having the movie make the call based on the parent directory of the page it is appearing on? And if I can't do a total swap, can I at least make it use the down state design when up?

    I'd like to avoid creating six different versions of the movie...

    Thanks.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default

    I steer away from buttons as of Flash MX, I just use movieClips now for just this reason.
    I have a movieClip with 4 keyframes, and use rollover and release to change states, using a for loop to loop thru all my buttons, I can then change the button on release to the "stay down state". When a different button is pressed it sends all buttons to the default state, and the selected one only to stay down.

    Make sense?
    Taff

  4. #3

    Default

    I think so... Will play. But then how do I trigger the SWF from the HTML to start at a particular frame? Thanks.

  5. #4

    Default

    Ahhh....
    I've re-read your post and I understand your problem now. I'm afraid I can't think of any answer for you other than keeping the flash onscreen all the time....maybe by using frames.

    It may be possible using some sort of variable passed to the movie like this:

    //when you click the first button, it loads the HTML with the following filename:

    Code:
    menu.swf?setButton=btn0
    then you can (in Flash) access the variable setButton like this:

    Code:
    this[setButton].gotoAndPlay("depressed");
    I did knock up an example of my last post and you can find it here:

    http://www.rattenfaenger-hameln.de/F...micButtons.swf

    The fla is at the same address with the fla suffix

    Tell me how it goes, Its just theory at the moment.

    Taff

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Button hit state problem
    By scrotaur in forum Newbies
    Replies: 3
    Last Post: 04-02-2006, 04:12 AM
  2. MC in button over state
    By mrfranchot in forum Design and Animation
    Replies: 9
    Last Post: 01-11-2005, 04:04 PM
  3. Question about controlling button frames
    By moesciphish in forum General Flash
    Replies: 2
    Last Post: 12-16-2004, 01:40 PM
  4. Invisible Hit State/Hit Area in Flash Button Movie?
    By burroughs23 in forum General Flash
    Replies: 6
    Last Post: 03-21-2004, 04:34 PM
  5. Keeping Button in Down State While In Use
    By burroughs23 in forum Flash Scripting
    Replies: 1
    Last Post: 02-26-2004, 08:25 PM

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