beaubie
07-19-2005, 06:49 PM
Hi all, my first post here.
I'm using SwishMax. From what I understand, the output, an .swf file, will output in Flash ver 6.
What I'm trying to do is, create input text fields on the fly depending on the results of an ASP page.
I realize that FlashMX is way dif in editing. But I also understand that SwishMax's output will support all swf6 stuff regardless if the internal engine in SwishMax understands all Actionscript1.0.
Basically, if I write Flash actionscript into Swish correctly, it'll work... almost all actionscript 1.0 will work but not 2.0.
So, I've got results coming back from an ASP/DB call. I know how to return the results, split the array, and "for in" loop through each index. We;re goo dup to that point.
The problem is, that the proper createobject() syntax/code eludes me.
I want to create text input fields dynamically. They should be named sequentially so I can read them back into an array to send to the ASP when it's resubmitted.
So far, I've got this. (label1 is the returning var from ASP)
MyArray = new Array();
MyArray = label1.split("|");
n=0;
for (vars in MyArray) {
NewInputName = "return" add MyArray[vars];
//this next line is what creates instances, the syntax is not correct yet.//
createobject("checkbox", NewInputName, 2, "Returned1");
NewInputName._x=100;
NewInputName._y=100;
n += 1;
//for testing only//
checkarrayval = MyArray[vars];
}
I'm using SwishMax. From what I understand, the output, an .swf file, will output in Flash ver 6.
What I'm trying to do is, create input text fields on the fly depending on the results of an ASP page.
I realize that FlashMX is way dif in editing. But I also understand that SwishMax's output will support all swf6 stuff regardless if the internal engine in SwishMax understands all Actionscript1.0.
Basically, if I write Flash actionscript into Swish correctly, it'll work... almost all actionscript 1.0 will work but not 2.0.
So, I've got results coming back from an ASP/DB call. I know how to return the results, split the array, and "for in" loop through each index. We;re goo dup to that point.
The problem is, that the proper createobject() syntax/code eludes me.
I want to create text input fields dynamically. They should be named sequentially so I can read them back into an array to send to the ASP when it's resubmitted.
So far, I've got this. (label1 is the returning var from ASP)
MyArray = new Array();
MyArray = label1.split("|");
n=0;
for (vars in MyArray) {
NewInputName = "return" add MyArray[vars];
//this next line is what creates instances, the syntax is not correct yet.//
createobject("checkbox", NewInputName, 2, "Returned1");
NewInputName._x=100;
NewInputName._y=100;
n += 1;
//for testing only//
checkarrayval = MyArray[vars];
}