Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 12th, 2004, 11:34 PM
mattcooke mattcooke is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 3 mattcooke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Flash 5 Button State

I am using Flash 5 on an Apple laptop and am new to this. Can someone please help!

I am trying to "hold" the down state of my buttons after the user has clicked on them. For example, in the following link, I would like the link HAYWARD to remain orange after the user has clicked on it.

URL

Is there are a simple way of doing this?

Thanks in advance.

MC

Reply With Quote
  #2  
Old January 12th, 2004, 11:46 PM
jmichels's Avatar
jmichels jmichels is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Orlando, FL
Posts: 177 jmichels User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 18 m 12 sec
Reputation Power: 6
You can't really do that in the down state of a button. You'll need to use just a tad of actionscripting and a movie clip. I've made you an example below and encoded it in Flash 5.

Reply With Quote
  #3  
Old January 13th, 2004, 12:02 AM
mattcooke mattcooke is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 3 mattcooke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hey: thanks so much for that.
Am having trouble with the download though. Is it possible to talk me though the action scripting?

Cheers
MC

Reply With Quote
  #4  
Old January 13th, 2004, 12:12 AM
jmichels's Avatar
jmichels jmichels is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Orlando, FL
Posts: 177 jmichels User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 18 m 12 sec
Reputation Power: 6
Sure. For instance if you have a button that says "Press Button" and it has dark grey text, drag it onto the stage and then make a movie clip and give it an instance name of "clip." Inside the movie clip put a stop action in the first keyframe and in the second keyframe add some text that says "Press Button" with maybe some white text. Lastly drag the movie clip and align it in the center of the button. Inside the button's actions panel, add this code:

on (release) {
clip.gotoAndStop(2);
}

Reply With Quote
  #5  
Old January 13th, 2004, 01:05 AM
mattcooke mattcooke is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 3 mattcooke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you.
You are THE MASTER!

MC

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash 5 Button State


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway