[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

02/27/2009 at 09:09AM PST, ID: 24184410
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

AS3: I need active states on my movieClip buttons that toggle according to which button is clicked

Asked by cubical38 in Microsoft Visual Basic.Net, ActionScript, Adobe Flash

Below is the code I have for my buttons.  I have 3 different swfs loading in once each corresponding button is selected (CLICK).  I also have rollover and rollout or idle states.  Now the dilemma:  Once a button (mc) is selected (CLICK) I need it to remain in its rollover state.  Once another button is selected I need the previously highlighted button to switch to idle state and the new button to be highlighted...  Sounds like the most basic, simple, AS3 101 question, but alas I am hitting a wall.  Based on my provided code what is the best option for this, an array with an active state on the timeline, a toggle with Boolean ect, ect...?  

Please help, any and all assistance is as always greatly appreciated...
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
var Hotspots:Loader = new Loader();
addChild(Hotspots);
moreInfo_btn.alpha = .5;
moreInfo_btn.buttonMode=true;
moreInfo_btn.addEventListener(MouseEvent.CLICK,getInfo);
moreInfo_btn.addEventListener(MouseEvent.MOUSE_OVER,changeColor);
moreInfo_btn.addEventListener(MouseEvent.MOUSE_OUT,changedColor);
function getInfo(MouseEvent):void {
	Mouse.show();
	rotate_mc.alpha = 0;
	Hotspots.load(new URLRequest("HiltiCallouts.swf"));
	Hotspots.y = 20;
}
function changeColor(MouseEvent):void {
	moreInfo_btn.alpha = 1;
}
function changedColor(MouseEvent):void {
	moreInfo_btn.alpha = .5;
}
 
rotate_btn.buttonMode=true;
rotate_btn.alpha = .5;
rotate_btn.addEventListener(MouseEvent.CLICK,gotoRotate);
rotate_btn.addEventListener(MouseEvent.MOUSE_OVER,changeColor1);
rotate_btn.addEventListener(MouseEvent.MOUSE_OUT,changedColor1);
 
function gotoRotate(MouseEvent):void {
	Mouse.show();
	rotate_mc.alpha = 0;
	rotate_btn.alpha = 1;
	Hotspots.load(new URLRequest("Hilti-Rotation.swf"));
	Hotspots.y = 40;
}
function changeColor1(MouseEvent):void {
	rotate_btn.alpha = 1;
}
function changedColor1(MouseEvent):void {
	rotate_btn.alpha = .5;
}
 
magnify_btn.buttonMode=true;
magnify_btn.alpha = .5;
magnify_btn.addEventListener(MouseEvent.CLICK,gotoZoom);
magnify_btn.addEventListener(MouseEvent.MOUSE_OVER,changeColor2);
magnify_btn.addEventListener(MouseEvent.MOUSE_OUT,changedColor2);
 
function gotoZoom(MouseEvent):void {
	rotate_mc.alpha = 0;
	Hotspots.load(new URLRequest("Hilti-Magnify.swf"));
	Hotspots.y = 0;
}
function changeColor2(MouseEvent):void {
	magnify_btn.alpha = 1;
}
function changedColor2(MouseEvent):void {
	magnify_btn.alpha = .5;
}
[+][-]02/28/09 08:35 PM, ID: 23766889

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, ActionScript, Adobe Flash
Sign Up Now!
Solution Provided By: greeneel
Participating Experts: 1
Solution Grade: B
 
 
[+][-]03/02/09 10:12 AM, ID: 23776358

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625