Advertisement
Advertisement
| 05.09.2008 at 03:36AM PDT, ID: 23388847 |
|
[x]
Attachment Details
|
||
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: |
var cbListener = new Object();
var data_arr = [];
var index:Number;
var glowMe:GlowFilter;
cbListener.change = function(evt) {
index = evt.target.selectedIndex;
_root["btn_mc"+index].xCoord = _root.xwidth/2-Math.floor(((_root.maxLatE-data_arr[index].lat)*_root.xFactor)-_root.xwidth/2);
_root["btn_mc"+index].yCoord = Math.floor(((_root.maxLongN-_root.data_arr[index].long)*_root.yFactor));
//PLOT ACTIONS
_root["btn_mc"+index]._x = Math.abs(_root["btn_mc"+index].xCoord - 100);
_root["btn_mc"+index]._y = Math.abs(_root["btn_mc"+index].yCoord);
glowMe= new GlowFilter(0xFFFF00, 25, 5, 5, 4, 4, false, false);
_root["btn_mc"+ index].filters = [glowMe];
var glowMeTween:Tween = new Tween(glowMe, "blurX", Elastic.easeOut, 8, 8, 1, true);
glowMeTween.continueTo(20,5);
glowMeTween.onMotionChanged = function() {
_root["btn_mc"+index].filters = [glowMe];
};
};
cbFieldList.addEventListener("change",cbListener);
|