Hiya,
I'm completely perplexed by the issue Im having, so any help
is greatly appreciated and will help preserve my hairline.
Here is my code snippet, currently with the testing text box:
<snip>
_global.workFile = "";
//tester
_root.createTextField("myEcho", 1000, 0, 0, 215, 40);
_root.myEcho.type = "input";
_root.myEcho.border = true;
_root.myEcho.background = true;
//end tester
/*set workfile landing*/
clipMedia.printAds.onPress = function(){
_global.workFile = "client1.swf";
_root.myEcho.text = _global.workFile;
};
clipMedia.onlineAds.onPress = function(){
_global.workFile = "client2.swf";
_root.myEcho.text = _global.workFile;
};
clipMedia.webSites.onPress = function(){
_global.workFile = "client3.swf";
_root.myEcho.text = _global.workFile;
};
clipMedia.cdROMs.onPress = function(){
_global.workFile = "client4.swf";
_root.myEcho.text = _global.workFile;
};
clipMedia.collateral.onPress = function(){
_global.workFile = "";
_root.myEcho.text = _global.workFile;
};
clipMedia.dM.onPress = function(){
_global.workFile = "";
};
clipMedia.mobileAds.onPress = function(){
_global.workFile = "";
};
clipMedia.logos.onPress = function(){
_global.workFile = "";
};
</snip>
clipMedia is a movie clip that contains the button instances referenced in
the code above (printAds, onlineAds, webSites, etc...).
the movie clip has multiple keyframes, so each keyframe has a instance of
the buttons above. The one exception is the frames that contain the
down state of each button.
initially, the code works fine, but if I edit or delete a button in a
subsequent keyframe, the value of _global.workFile will not set back to
the value of the edited button if clipMedia returns to a keyframe where
the edited button is in its original state.
basically _global.workFile is set properly the first time you click a
button, but once you click the next one it will not set back to the first
if you click the first again, yet will set to one that has yet to be
clicked.
I have tried recreating the edited button as an invisible button with all
the same properties, but that didn't work. I tried placing a duplicate of
the button off stage before editing the original, and that didn't work.
I can't see flaw in my logic, especially if I figure in all the fixes I
have tried.
any help here would be most appreciated.
thanks,
--paul
ps. oh yeah, I'm working in MX 2004 Pro
_______________________________________________
Bits mailing list
[EMAIL PROTECTED]
http://www.sugoi.org/mailman/listinfo/bits