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 February 22nd, 2004, 11:28 AM
Kimppa Kimppa is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: Finland
Posts: 706 Kimppa User rank is Sergeant (500 - 2000 Reputation Level)Kimppa User rank is Sergeant (500 - 2000 Reputation Level)Kimppa User rank is Sergeant (500 - 2000 Reputation Level)Kimppa User rank is Sergeant (500 - 2000 Reputation Level)Kimppa User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 18 h 5 m 46 sec
Reputation Power: 15
button - rollOver/rollOut - background color

I got my hands on Macromedia Flash MX Professional 2004 today and I've been playing around with it. Anyway, I have this problem - and I assume there's an easy solution to it.

I can't get rollOver/rollOut to change the background color of a button.
This is what I've done. I've drawn a box with Rectangle tool -> Convert to Symbol -> button

Then I'm trying to add an action....

Code:
on (rollOver) {
	mycolor1 = new Color (_root.button1);
	mycolor1.setRGB (0xFF0000)
}


.... but it doesn't work. What am I doing wrong? What should I do?

Oh, and if any of you know some online tutorials, I'd appreciate the urls

Thank you in advance

- Kimppa
__________________
Fatal error on row 561: Couldn't access life - life isn't set

Reply With Quote
  #2  
Old February 22nd, 2004, 11:45 AM
Lauri Lauri is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: San Francisco
Posts: 272 Lauri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 53 sec
Reputation Power: 5
Send a message via ICQ to Lauri
Are you sure the code is on the button and not on the frame?

Reply With Quote
  #3  
Old February 22nd, 2004, 12:03 PM
Kimppa Kimppa is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: Finland
Posts: 706 Kimppa User rank is Sergeant (500 - 2000 Reputation Level)Kimppa User rank is Sergeant (500 - 2000 Reputation Level)Kimppa User rank is Sergeant (500 - 2000 Reputation Level)Kimppa User rank is Sergeant (500 - 2000 Reputation Level)Kimppa User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 18 h 5 m 46 sec
Reputation Power: 15
Yes, I'm absolutely sure.

Reply With Quote
  #4  
Old February 22nd, 2004, 12:46 PM
mpearce's Avatar
mpearce mpearce is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: NewHampshire, USA
Posts: 416 mpearce User rank is Corporal (100 - 500 Reputation Level)mpearce User rank is Corporal (100 - 500 Reputation Level)mpearce User rank is Corporal (100 - 500 Reputation Level)mpearce User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 30 m 44 sec
Reputation Power: 9
Send a message via AIM to mpearce
Quote:
Oh, and if any of you know some online tutorials, I'd appreciate the urls


Here are a couple that should help you.

http://www.echoecho.com/flashbuttons01.htm

http://www.webthang.co.uk/tuts/tuts_fmx/juan1/juan1.asp
__________________
Mark Pearce

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > button - rollOver/rollOut - background color


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 2 hosted by Hostway