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 July 31st, 2003, 05:24 AM
epvb epvb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 4 epvb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Something Simple? - MX

Hello all. Thanks for looking.

Straight to the point:

I thought initially my problem was with setRGB() but I've found the exact same thing happening while using setTransform and a similar problem when I attachMovie.

Basically what I've got is a couple of MCs grouped inside another MC. On the stage there's a combo box to select a colour & push button to call the function. The colour changes fine, but the affected mc then stops animating. I'm almost certain this is due to some very basic Flash rule that I've overlooked. Help!?!

I recreated my error from scratch, just in case I had some nasty code. Test file attached. Wanna check it out? Please?
Attached Files
File Type: zip problem.fla.zip (95.5 KB, 130 views)

Reply With Quote
  #2  
Old July 31st, 2003, 10:57 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
your problem is that it is a group being tweened, not the individual mcs, and groups don't mean anything to as, so you need to make them into an mc then add the reference to your function:

Code:
function doMenuColour() {
	if (menuc_select.getValue() == "1") {
		BackgroundColor = new Color(button.group_mc.back);
		BackgroundColor.setRGB(0x3163FF);
	} else if (menuc_select.getValue() == "2") {
		BackgroundColor = new Color(button.group_mc.back);
		BackgroundColor.setRGB(0x009900);
	} else if (menuc_select.getValue() == "3") {
		BackgroundColor = new Color(button.group_mc.back);
		BackgroundColor.setRGB(0x993300);
	} else {
		BackgroundColor = new Color(button.group_mc.back);
		BackgroundColor.setRGB(0x000000);
	}
}

don't forget to also replace the grouped mcs on the keyframe at the end of the tween with an instance of your new mc, and to name both.....

Reply With Quote
  #3  
Old August 2nd, 2003, 09:06 PM
epvb epvb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 4 epvb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Something Simple? - MX


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