gbellitt
05-19-2006, 04:28 PM
I am trying to work with a document created in Flash MX 2004 that I have converted so I can edit it with Flash 8. There are certain words in this document that, when the cursor rolls over them, a pop-up box with the definition appears. The box is supposed to go away on rollout. The original code for this action which was placed in the actions of the MC (the word being defined) looks like this:
on(rollOver){
_root.MakePopUp(this._x+this._width/1.75,this._y-this._height,"Polyuria/Polydipsia\n(excessive urination)");
}
on(rollOut){
_root.popUp_txt.removeTextField();
}
I tried to make this action work on another word which I placed an invisible mc over, but the box will not go away onRollout. Here is the code I have for the new word I am trying to define:
on(rollOver){
_root.MakePopUp(this._x+this._width/2.5,this._y+this._height,"Gross/Microscopic\nblood \tin the urine");
}
on(rollOut){
_root.popUp_txt.removeTextField();
}
I have tried changing the x and y coordinates so that the box appears outside of the hit area, but it still will not go away. This seems like a simple problem, but I cannot figure it out. any help would be appreciated.
on(rollOver){
_root.MakePopUp(this._x+this._width/1.75,this._y-this._height,"Polyuria/Polydipsia\n(excessive urination)");
}
on(rollOut){
_root.popUp_txt.removeTextField();
}
I tried to make this action work on another word which I placed an invisible mc over, but the box will not go away onRollout. Here is the code I have for the new word I am trying to define:
on(rollOver){
_root.MakePopUp(this._x+this._width/2.5,this._y+this._height,"Gross/Microscopic\nblood \tin the urine");
}
on(rollOut){
_root.popUp_txt.removeTextField();
}
I have tried changing the x and y coordinates so that the box appears outside of the hit area, but it still will not go away. This seems like a simple problem, but I cannot figure it out. any help would be appreciated.