A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Variables don't work correctly with onLoad

Threaded View

  1. #1
    Member
    Join Date
    Aug 2008
    Posts
    38

    Variables don't work correctly with onLoad

    I'm working with login.fla in samples of Flash ( c:/Program Files/Macromedia/Flash 8/Samples and Tutorials/Samples/ActionScript/Login ).
    I declared variable aa :
    var aa = 0;

    At function checkForm at "result_lv.onLoad = ...." I added:
    "aa="isValidLogin = " + result_lv.isValidLogin;"

    At the stage I added a textbox name aa_txt .

    At submit_btn.clickHandler I added : "aa_txt.text = aa;" (after checkForm).

    I login (username: Herbert password: glasses ) press button but isValidLogin does not appear at aa_txt textbox.
    If I press the button for a second time, the isValidLogin APPEARS!!! at the textbox.
    How can I make it appear with the first button press?
    Why is this happening?

    I have attached the modified login.fla (zipped).
    Attached Files Attached Files
    Last edited by panoss; 11-06-2009 at 06:39 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center