A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] enable/disable button through xml in attributes

  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    57

    resolved [RESOLVED] enable/disable button through xml in attributes

    ok. i would like to know how to enable and disable a button via xml. this is my code. please help. thanks in advance.

    Code:
    if (worksList[cp].attributes.button = "true"){
        button.enabled = true;
    }else if (worksList[cp].attributes.button = "false"){
        Button.enabled = false;
    }

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Actionscript Code:
    if (worksList[cp].attributes.button == "true"){
        button.enabled = true;
    }else if (worksList[cp].attributes.button == "false"){
        button.enabled = false;
    }

    typos on instance names and equivalence syntax.
    gparis

  3. #3
    Member
    Join Date
    Sep 2009
    Posts
    57
    it still did not work. is there another way to do this function?

Tags for this Thread

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