开发者

input and dynamic textfield cant get new value

Basicly the problem. very strange problem.

  • i cant assign a new value to a dynamic field by code.
  • i cant write into a input field on flash player.

you're ganna need the fla file. i made it simplify. not complicated. http://www.sundanceresidences.com/formTest.zip

i be appreciated if you dont ask code. it is not the case here. if you really w开发者_开发技巧ant to help just test the file.

Thanks.


i was using flash ide to create textfields, i always work this way until i see this unknown error. This is happening sometimes. The solution is creation textfields by code. With this way i had to format and style fields. i made an example if people come here from google.

    var name_txt:TextField;
    name_txt = new TextField();
    name_txt.type = TextFieldType.INPUT;
    name_txt.x = 10;
    name_txt.y = 10;
    name_txt.width = 338;
    name_txt.height = 20;
    name_txt.multiline = false;
    name_txt.antiAliasType = AntiAliasType.NORMAL;
    addChild(name_txt);     

    var myFormat:TextFormat = new TextFormat();  
    myFormat.color = 0x093F51;
    myFormat.size = 12;
    myFormat.bold = true;
    myFormat.letterSpacing = "1";
    myFormat.font = "PT Sans Bold";

    name_txt.defaultTextFormat = myFormat;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜