Hello tek'ers...been gone a while but now stuck again with the new CS4 version of Flash.
We have an app that we built way back in Flash 8 with AS2. There have been many updates to it using CS3...and everything was working fine. Now when you open source in CS4...there are no labels on the buttons.
The buttons show up...and they click...but the text field for the buttons is not showing up.
We do not have the time to recode the whole thing to AS3 as we have so many other priorities. Any help with fixing this issue would be greatly appreciated. This is the code making the buttons:
"Credit belongs to the man who is actually in the arena - T.Roosevelt
We have an app that we built way back in Flash 8 with AS2. There have been many updates to it using CS3...and everything was working fine. Now when you open source in CS4...there are no labels on the buttons.
The buttons show up...and they click...but the text field for the buttons is not showing up.
We do not have the time to recode the whole thing to AS3 as we have so many other priorities. Any help with fixing this issue would be greatly appreciated. This is the code making the buttons:
Code:
// This is the action to build the buttons based on array
for (i=0; i < toolsArray.length; i ++){
//Generic button building code
this.buttonContainer.startButtons.attachMovie ("toolButton", "bt"+toolsArray[i], this.buttonContainer.startButtons.getNextHighestDepth());
this.buttonContainer.startButtons["bt"+toolsArray[i]]._x = 13 //This sets the buttons to start location for x
this.buttonContainer.startButtons["bt"+toolsArray[i]]._y = 3 +(i *25)// The number i is multiplied by sets the distance between buttons
this.buttonContainer.startButtons["bt"+toolsArray[i]].toolTab._visible = false
this.buttonContainer.startButtons["bt"+toolsArray[i]].toolText.text = toolsArray[i]
//This assigns generic button functions
this.buttonContainer.startButtons["bt"+toolsArray[i]].onRelease = function(){
var buttonPush = this.toolText.text
// Loop through the buttons and reset them in position and tab visibility
for (r=0; r < toolsArray.length; r ++){
//Need to target back to the parent (stage) to get the buttons info
if (this._parent["bt"+toolsArray[r]] !=13){
this._parent["bt"+toolsArray[r]]._x = 13
this._parent["bt"+toolsArray[r]].toolTab._visible = false
}
}
// Once the buttons are reset, the clicked button must be set
this.toolTab._visible = true
this.toolTab._alpha = 100
if (this._x == 13){
this._x -= 7
}
showTool (buttonPush)
}
//Additional button functions
this.buttonContainer.startButtons["bt"+toolsArray[i]].onRollOver = function(){
if (this._x == 13){
this.toolTab._visible = true;
this.toolTab._alpha = 50;
}
}
this.buttonContainer.startButtons["bt"+toolsArray[i]].onRollOut = function (){
if (this._x ==13) {
this.toolTab._visible = false;
}
}
}
"Credit belongs to the man who is actually in the arena - T.Roosevelt