/as above.
I was working 2 fake flash 2 see a createdTextfield as a button.
I hope some one see some advantage for this.
Since i think it can be done with attachmovie with a dynfield inside too.
but anyway…
Can someone give me a better view of how i can organize this much better?
-script is doing his work-
this.createEmptyMovieClip("my_mc1", 1);
this.createEmptyMovieClip("my_mc2", 2);
this.createEmptyMovieClip("my_mc3", 3);
this.createEmptyMovieClip("my_mc4", 4);
// i d x y w h (instanceName, depth, x, y, width, height)
this.my_mc1.createTextField("txtfield1", 5, 0, 0, 200, 20);
this.my_mc2.createTextField("txtfield2", 6, 0, 20, 200, 20);
this.my_mc3.createTextField("txtfield3", 7, 0, 40, 200, 20);
this.my_mc4.createTextField("txtfield4", 8, 0, 60, 200, 20);
this.my_mc1.txtfield1.text = "Menu item 1";
this.my_mc2.txtfield2.text = "Menu item 2";
this.my_mc3.txtfield3.text = "Menu item 3";
this.my_mc4.txtfield4.text = "Menu item 4";
with (this) {
//with (my_txt) {
border = true;
borderColor = 0x000000;
multiline = false;
wordWrap = false;
autoSize = true;
font = "_sans"
txtfield.size = 12
textColor = 0xFFFFFF
bold = false
italic = false
underline = false
//this.my_mc.txtfield.url = ""
//this.my_mc.txtfield.target = ""
align = "left"
leftMargin = 0
rightMargin = 0
//this.my_mc.txtfield.indent = 0
}
//textColor = 0xFFFFFF;
//
this.my_mc1.onPress = function() {
trace("button Pressed");
_root.my_mc1.txtfield1.textColor = 0xFFCC00;
_root.my_mc1.txtfield1.text.borderColor = 0x000000;
};
this.my_mc2.onPress = function() {
trace("button Pressed");
_root.my_mc2.txtfield2.textColor = 0x669999;
_root.my_mc2.txtfield2.text.borderColor = 0x000000;
};
this.my_mc3.onPress = function() {
trace("button Pressed");
_root.my_mc3.txtfield3.textColor = 0x999966;
_root.my_mc3.txtfield3.text.borderColor = 0x000000;
};
this.my_mc4.onPress = function() {
trace("button Pressed");
_root.my_mc4.txtfield4.textColor = 0x660099;
_root.my_mc4.txtfield4.text.borderColor = 0x000000;
};
Greetz://