Ik zet mbv onderstaande function de background van een textfield, bij rollout rollover. Zodra ik de variabele van het textfield wijzig (varHeadline), werkt het toekennen van de backgroundColor niet meer.
Dit lijkt me een Flash bugje, niets aan het textfield wijzigt behalve de variable. Wat kan ik hier erm... aan doen
function setHeadline(){
_root.currentHeadline.currentEntry.html = true;
_root.currentHeadline.currentEntry.selectable = false;
_root.currentHeadline.currentEntry.background = true;
_root.currentHeadline.currentEntry.textColor = 0x004477;
_root.currentHeadline.currentEntry.backgroundColor = 0xFFFFFF;
_root.currentHeadline.varHeadline = aTicker[0].headline;
_root.currentHeadline.onPress = function () {
this.currentEntry.backgroundColor = this.oldColor;
getURL(this.currentEntry.link, "_blank");
};
_root.currentHeadline.onRollOver = function () {
_root.allowChanges = false;
this.oldColor = this.currentEntry.backgroundColor;
this.currentEntry.backgroundColor = 0xDDEEFF;
};
_root.currentHeadline.onRollOut = function () {
_root.allowChanges = true;
this.currentEntry.backgroundColor = this.oldColor;
};
}
Dit lijkt me een Flash bugje, niets aan het textfield wijzigt behalve de variable. Wat kan ik hier erm... aan doen
function setHeadline(){
_root.currentHeadline.currentEntry.html = true;
_root.currentHeadline.currentEntry.selectable = false;
_root.currentHeadline.currentEntry.background = true;
_root.currentHeadline.currentEntry.textColor = 0x004477;
_root.currentHeadline.currentEntry.backgroundColor = 0xFFFFFF;
_root.currentHeadline.varHeadline = aTicker[0].headline;
_root.currentHeadline.onPress = function () {
this.currentEntry.backgroundColor = this.oldColor;
getURL(this.currentEntry.link, "_blank");
};
_root.currentHeadline.onRollOver = function () {
_root.allowChanges = false;
this.oldColor = this.currentEntry.backgroundColor;
this.currentEntry.backgroundColor = 0xDDEEFF;
};
_root.currentHeadline.onRollOut = function () {
_root.allowChanges = true;
this.currentEntry.backgroundColor = this.oldColor;
};
}