-
Painted into a corner and over my head!
Mx
Attached is a simple wiring diagram. Click on the "park" or "drive buttons and you will see that power (red line) activates all that way to the fog lamp switch.
I am trying to accomplish the following sequence
if the light switch is in either the "park" or "drive" position, the fog lamp switch on = fog lamps on.
else if the light switch is in the "off" position and the fog lamp switch is off = fog lamps off.
I pretty sure I should be using an if/else statement and should this be placed in the "fog lamp switch" Action
code:
on(release){
if(_currentFrame = ="park" && MC_foglampCircuit = = "on")
MC_foglampCircuit.gotoAndStop ("on")
}
I think I am getting close, any help would be appreciated. I'll keep searching in the meantime.
-
This works for me...
On your "MC_P_FoglampSW" mc...
Code:
onClipEvent (enterFrame) {
if(_parent._currentframe == 6 || _parent._currentframe == 11){
_parent.MC_P_FoglampSW.gotoAndStop("On");
_parent.MC_FoglampCircuit.gotoAndStop("On");
}else{
_parent.MC_P_FoglampSW.gotoAndStop("Off");
_parent.MC_FoglampCircuit.gotoAndStop("Off");
}
}
-
Thanks I'll give it a try.
Based on some of the posting of the people you have helped, I sort of feel "honored" that you lent me a hand.
I'll try to disect your solution, so that I can understand what happening.
Thanks again!!!!
-
Thanks it does work,
BUT..........
Is it possible to make the light switch animation separate from the foglight switch. So that if you have the lightswitch in the off position, then you click on the foglamp Sw, then don't come on.
What the difference between root and Parent?
just curious
Again thanks
-
_root is an absolute path, _parent is a relative path.
If you ever load this thing in a container clip of another movie, _root probably wouldn't work!
Don't quite understand your other question?
-
Currently the fog lamps are controled by one action: the headlight switch.
In reality you would have to turn on your headlights, then turn on the fog lamps by using the fog lamp switch. Thats what I am trying to animate
clear as mud
-
I just noticed that you are up in Canada, got to be getting pretty late! nightowl?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|