Sir_Scrunchalot
06-19-2008, 06:21 PM
I am currently having an issue with backwards compatability between flash 8 and 6. I need to use the glow filter which is only availiable in 8 with actionscript 2.0 but I have built this color selector for text in actionscript 1.0 in flash 6. If I try to change the publish settings or just import the code and objects below it tells me that the script is stalling and asks me if I want to close it. I don't know what needs to be changed to update this into actionscript 2.0 or to get it to work as a flash 8 file. Kinda new at flash and this program took me long enough to write this code that I really don't want to do it all over again.
Any help would be helpful
Thx in advance
MyXML = new XML();
MyXML.load("YearMake.txt");
MyXML.onLoad = function (success) {
if (success) {
YearMakeTXT = string(this.firstChild);
YMTA = YearMakeTXT.split("|", 29);
YearMakeAR = new Array();
for(i=0; i<29; i++) {
YearMakeAR[i] = new Array();
Year = YMTA[i].slice(0,4);
YearCB.additem(Year, i);
MFA = YMTA[i].slice(5);
MakeFontAR = MFA.split(",");
YearMakeAR[i][0] = Year;
for(j=1; MakeFontAR[j-1] ne ""; j++) {
YearMakeAR[i][j] = new Array();
MakeTXT = MakeFontAR[j-1].split("+");
YearMakeAR[i][j][0] = MakeTXT[0];
YearMakeAR[i][j][1] = MakeTXT[1];
}
ChangeYearCB();
}
}
}
import flash.filters.GlowFilter;
var myGlowFilter = new GlowFilter (0x6699FF,0.6,4,20,3,3,false,true);
OText.filters = [myGlowFilter];
//OText.embedFonts = true;
function ChangeYearCB(){
MakeCB.removeAll();
Anum = YearCB.getValue();
for (k=1; YearMakeAR[Anum][k][0] != Null; k++) {MakeCB.addItem(YearMakeAR[Anum][k][0],YearMakeAR[Anum][k][1]);}
ChangeMakeCB();
}
function ChangeMakeCB(){
OText.setNewTextFormat(new TextFormat(MakeCB.getValue()));
OText.text = IText.text;
}
Any help would be helpful
Thx in advance
MyXML = new XML();
MyXML.load("YearMake.txt");
MyXML.onLoad = function (success) {
if (success) {
YearMakeTXT = string(this.firstChild);
YMTA = YearMakeTXT.split("|", 29);
YearMakeAR = new Array();
for(i=0; i<29; i++) {
YearMakeAR[i] = new Array();
Year = YMTA[i].slice(0,4);
YearCB.additem(Year, i);
MFA = YMTA[i].slice(5);
MakeFontAR = MFA.split(",");
YearMakeAR[i][0] = Year;
for(j=1; MakeFontAR[j-1] ne ""; j++) {
YearMakeAR[i][j] = new Array();
MakeTXT = MakeFontAR[j-1].split("+");
YearMakeAR[i][j][0] = MakeTXT[0];
YearMakeAR[i][j][1] = MakeTXT[1];
}
ChangeYearCB();
}
}
}
import flash.filters.GlowFilter;
var myGlowFilter = new GlowFilter (0x6699FF,0.6,4,20,3,3,false,true);
OText.filters = [myGlowFilter];
//OText.embedFonts = true;
function ChangeYearCB(){
MakeCB.removeAll();
Anum = YearCB.getValue();
for (k=1; YearMakeAR[Anum][k][0] != Null; k++) {MakeCB.addItem(YearMakeAR[Anum][k][0],YearMakeAR[Anum][k][1]);}
ChangeMakeCB();
}
function ChangeMakeCB(){
OText.setNewTextFormat(new TextFormat(MakeCB.getValue()));
OText.text = IText.text;
}