How to make a button turn on the 'real' property while I'm clicking on a row of datagrid mxml App flex4

Hi friends,

I'm new to flex, I application web flex4 with mxml tags.

I hit this place, please give an idea.

I have a DataGrid with 5 lines and 4columns, and also I have a button (enable property is set to false).

while I click on a particular line of datagrid then the property enbale button should be change to true.

where I write the code.

any suggession or the code snippet.

Thanks in advance.

B.Venkatesan.

Hello

You can take the help of the following code:

http://ns.Adobe.com/MXML/2009.

xmlns:s = "library://ns.adobe.com/flex/spark".

xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

Import mx.collections.ArrayCollection;

[Bindable]

public var Arr:ArrayCollection = new collection ArrayCollection ([{a: "AAA", "BBB" b:}, {a: "111", b: "222"}]);

public void Activate (): void {}

BTN. Enabled = True;

}

]]>

Thank you and best regards,
------------------------------------------------------------------------------------------ --
Vibhuti Gosavi . [email protected] | www.infocepts.com
------------------------------------------------------------------------------------------ --

Tags: Flex

Similar Questions

  • How to make a button to put the Map Directions on the phone?

    I saw I need to copy something and paste it into the hyperlink of a button, then

    It would show the directions on the map, but what is the thing that I need to copy the hyperlink and where can I find?

    This would require the location (geolocation) which is not yet supported by Muse.

    To do now you would need to set up a google map map and the user will have to click the steering function.

  • How to make a button that controls the value of a dynamic text box

    Hey guys

    I wanted to do a manufacturer Bill... sort for me. I have some products Let tell and I click on them, and clicking on these buttons, I'd give to see the numbers add up in a text box dynamics and if I could keep track of the value inside the box.

    Lets say we have 2 buttons. by clicking on the 1st and the 2nd I want to get 12 in the text box and clicking on the 2nd and 1st I would get 21 in my box.

    Is this possible atall with AS2?

    Please guide me through

    Thank you.

    ensure that:

    TF. Text =""; TF is your textfield that shows the results of your movieclip button clicks

    for (var i: Number = 0; i<>

    This ["btn_" + i] .ivar = i;  Use the movieclip buttons btn_1, btn_2,.., btn_9

    This ["btn_" + i] .onRelease = btnF;

    }

    function btnF (): Void {}

    TF. Text += this.ivar;

    }

  • How to make interactive buttons to rollover?

    How to make interactive buttons to rollover?

    Hello

    I think that you are looking to create a button that changes on the mouseover? for this, you can define States of button for each mouse, such as normal action, working capital etc.

    This video explains the steps:

    http://TV.Adobe.com/watch/Muse-feature-tour/Muse-define-object-States/

    Please let me know if I'm missing something.

    Thank you

    Sanjit

  • How to make a button to Flash a PagSeguro https page.

    How to make a button to Flash a PagSeguro https page. Programming they offer is:

    <! - FORMULARIO ALEXANDER PAGSEGURO INICIO - >

    " < target form = 'pagseguro' action = ' https://pagseguro.uol.com.br/checkout/v2/cart.html?action=Add "method ="post"> "

    <! - NAO EDITE OS COMANDOS DAS LINHAS ABAIXO - >

    < input type = "hidden" name = "itemCode" value = "AC0DD53E5757C9F774629F9937513499" / >

    " < input type ="image"src =" https://p.SIMG.uol.com.br/out/pagseguro/i/botoes/Pagamentos/120x53-comprar.gif "name ="submit"alt =" pay com PagSeguro - rapido e, grátis e seguro! » / >

    < / make >

    <! - FINAL FORM ALEXANDER PAGSEGURO - >

    So I spent this programming in HTML start, I see the white border in my page.

    I wrote a book and this schedule must send to a site secure for sale

    I'm developing my site in Flash 4 and now nc6. Export to Html

    www.escalasdecores.com.br

    Use the urlloader class:

    var urlLoader:URLLoader = new URLLoader();

    var urlRequest:URLRequest = new URLRequest ("https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add");

    var urlVariables:URLVariables = new URLVariables();

    urlVariables.itemCode = "AC0DD53E5757C9F774629F9937513499";

    urlRequest.data = urlVariables;

    urlRequest.method = URLRequestMethod.POST

    urlLoader.dataFormat = pouvez;

    urlLoader.load (urlRequest);

  • How to make transparent cluster keeping only the elements inside the visible cluster?

    Hello

    Can anyone suggest me how to make transparent cluster keeping only the elements inside the cluster visible in the front panel.

    Thanks in advance,

    Vinciane

    As I said, use the space bar for what is paint. This works. Trust me.

    PS You cannot link to pictures stored on your hard drive. We don't see them. You must add them as attachments and then submit the post they get uploaded to the servers of NOR.

  • I get my email on two computers. How to make a computer out of the loop?

    I get my email on two computers. How to make a computer out of the loop without jeopardizing my Comcast email account?

    Using Outlook Express? Go to: tools | Accounts and delete the account. If you think you can it in the future, go to the properties of the account, and under the general tab, simply uncheck: include this account when receiving or synchronization.

    If you are interested, you can receive messages at a time without losing them on one.

    On both machines:

    Tools | Accounts | Mail | Properties | Advanced - Check: leave a copy of messages on the server.

    On a single computer only, make sure to delete messages after X days to satisfy your allocated space that you get from your server.

  • How to make 'Save to Desktop' save the default value instead of 'This PC'?

    How to make 'Save to Desktop' save the default value instead of 'This PC'?

    Windows 10, I guess?

  • In CC Dramweaver Adobe how to make my Web page fill the entire window?

    In Adobe Dreamweaver CC how to make my Web page fill the entire window?

    A width of 100% CSS.


    Body {width: 100 %}}

    Nancy O.

  • How to make a web page to the size of browsers?

    How to make a web page to the size of browsers?

    Try to download the pdf file and the example in this tutorial files, which explain how to do this.

    http://www.Adobe.com/devnet/Dreamweaver/articles/bk_dwcs4_mastering_css.html

    PZ

  • How can I install Windows 7 onto the new drive while keeping Windows XP on the old drive?

    Wow for on 1 computer install 2 operating systems with 2 hd

    I have 2 hard drives; We have Windows XP and the new one is empty (empty) installed on a computer.  I would like to install Windows 7 on the new hard drive.  How can I install Windows 7 onto the new drive while keeping Windows XP on the old drive?

    Thank you

    Hello

    Sound pretty simple you just need to start from the disc and choose the 2nd hard drive during the installation of windows 7
    your xp will remain such what. every time that you start the system it will ask you to choose which operating system you need
    Start with.
    thanx.
  • In windows 7, how to make firefox automatically starts when the computer is turned on

    In Windows 7, how to make Firefox starts automatically when I turn on the computer. Note, I ask how to do this with Windows 7, xp, not vista.

    You place a shortcut to open Firefox in the start menu > programs > startup folder.

    It is essentially the same in all versions of Windows.

  • How to make a button 3 States that remains in 'down' when I jump to a new point on the timeline?

    I use a series of buttons for navigation. When I click on one and go to another point on the timeline, I want the idle state to persist.

    I know how do it in html and css, but not in Edge animate. Thanks in advance, m

    Try this: symbol door button label to the top and bottom and outside (I do not use the State, but you can add the functionality).

    You can also use setVariable() and getVariable if you prefer.

    compositionReady:

    StateDown = 0;

    i = 0;

    SYM. $("feedback") .html ("stop:" + i);

    {sym.$('button').bind ('click', Function ()}

    i ++ ;

    SYM. Play();

    if(StateDown == 0) {}

    sym.getSymbol("button").stop ('down');

    StateDown = 1;

    }

    });

    on the timeline at every stop, I have this:

    StateDown = 0;

    i = 0;

    SYM. $("feedback") .html ("stop:" + i);

    {sym.$('button').bind ('click', Function ()}

    i ++ ;

    SYM. Play();

    if(StateDown == 0) {}

    sym.getSymbol("button").stop ('down');

    StateDown = 1;

    }

    });

    example: button with variable.zip - Box

  • How to make a button form create a pop up or make the text appear on the screen?

    I need help creating a fake site. Everything I want is when the user clicks on the button submit to a text box below the submit button or a message box pops up saying: "Please fill in all information." or "an email has been sent.

    The email is not real, no e-mail will be sent to the person entering the details.

    If the user does not have all the information, I would like information for stay and the message box, or the text to appear.

    If the user has put all the information, I want the message or text box to appear, but information disappear as the form was reset.

    Someone at - it a solution?

    Someone who knows how to code the buttons to do the other sections of the page appear, or become visible.

    Here is the code for the form... now you need to copy and paste it instead of what you already have, which is configured incorrectly.

    Membership

  • How a button turn to the left into a normal object

    Once an object is converted to a button, how can we change it back (have the button properties removed?) It doesn't seem to be an obvious way to do it, but I don't see that adobe did not allow for this...

    Ah, but there is a way: click on the button with the selection tool, and then choose

    Object > interactive > convert to object

Maybe you are looking for