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 September 6th, 2002, 05:59 PM
JeffCT JeffCT is offline
PHP & Ruby Developer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2001
Posts: 1,437 JeffCT User rank is Lance Corporal (50 - 100 Reputation Level)JeffCT User rank is Lance Corporal (50 - 100 Reputation Level)JeffCT User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 h 36 m 40 sec
Reputation Power: 9
Swapping colors

What is the best way to swap colors in a Flash movie? The swatch/mixer system seems to be very limited and I'm having trouble getting anything doen using that system. If there are, say, 100 symbols using the same 10 colors and I want to swap out those colors to create a different color scheme, without having to edit each symbol one by one, how would I do that?

Reply With Quote
  #2  
Old September 11th, 2002, 11:33 AM
freddydoesphp freddydoesphp is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2000
Posts: 669 freddydoesphp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Are you using Flash MX? If so its as easy as:

Code:
myColor = new Color(targetMC);
myColor.setRGB(0xFF0000);


So if you knew all the MC names you wnated to change ahead of time. Let's say they were clip1, clip2, etc.....

Code:
for(var i=0;i<10;i++) {
  var myColor = new Color(this["clip"+i]); 
  myColor.setRGB(0xFF0000);
}

Reply With Quote
  #3  
Old September 11th, 2002, 06:56 PM
JeffCT JeffCT is offline
PHP & Ruby Developer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2001
Posts: 1,437 JeffCT User rank is Lance Corporal (50 - 100 Reputation Level)JeffCT User rank is Lance Corporal (50 - 100 Reputation Level)JeffCT User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 h 36 m 40 sec
Reputation Power: 9
I'm using Flash 5. You can do the same thing in Flash 5 but I know that it makes the entire mc one solid color, which won't work.. There are hundreds of separate symbols, so I don't think that method will work for me.

Reply With Quote
  #4  
Old September 11th, 2002, 07:03 PM
freddydoesphp freddydoesphp is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2000
Posts: 669 freddydoesphp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Why can't you apply the color transformation to the individual symbols? Or are they not actually movie clips?

Reply With Quote
  #5  
Old September 12th, 2002, 06:22 PM
JeffCT JeffCT is offline
PHP & Ruby Developer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2001
Posts: 1,437 JeffCT User rank is Lance Corporal (50 - 100 Reputation Level)JeffCT User rank is Lance Corporal (50 - 100 Reputation Level)JeffCT User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 h 36 m 40 sec
Reputation Power: 9
The code will change the entire mc or symbol to one solid color, which won't work. There are hundreds of separate symbols and MCs, it would actually be easier to change the colors one by one in Flash than to write code to change each one...

Reply With Quote
  #6  
Old September 12th, 2002, 06:30 PM
freddydoesphp freddydoesphp is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2000
Posts: 669 freddydoesphp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Yes I understand that. But what you are saying is that one MC holds hundreds of separate MCs, right? SO use actionscript to change the separate MCs. I mean you did name them something that can be looped through right like sub1, sub2, sub3, sub4, etc.....

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Swapping colors


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