Search Results

Search found 6 results on 1 pages for 'kamo'.

Page 1/1 | 1 

  • Sharing variables between mxml components

    - by Kamo
    I have several mxml components in an app, all of which need the same variable called genericX. I've included that variable in the main mxml and made it public [Bindable] public var genericX:Number = 102; but I still can't access it from other mxml components. If I try to do this for example, it doesn't recognize the variable. <s:Button x="{genericX}" label="Click" />

    Read the article

  • Uploading PDF or .doc and security

    - by Kamo
    I have a script that lets the user upload text files (PDF or doc) to the server, then the plan is to convert them to raw text. But until the file is converted, it's in its raw format, which makes me worried about viruses and all kinds of nasty things. Any ideas what I need to do to minimize the risk of these unknown files. How to check if it's clean, or if it's even the format it claims to be and that it does not crash the server.

    Read the article

  • Is session destory not enough to clean the session

    - by Kamo
    When the user clicks a logout button, I connect to a script that simply does this session_destroy(); session_start(); I thought this would be enough to reset all $_SESSION variables such as $_SESSION['logged'] and $_SESSION['username'] but when I load the page again, it automatically logs me in as if the session is still active.

    Read the article

  • Setting button width with fx:Style

    - by Kamo
    I have 4 buttons, all of them have the same width. <s:Button id="btn1" width="{btnWidth}" /> <s:Button id="btn2" width="{btnWidth}" /> <s:Button id="btn3" width="{btnWidth}" /> <s:Button id="btn4" width="{btnWidth}" /> Is it possible to set their width with Style, something like this: s|Button{ width: btnWidth; } I tried it, but auto-complete isn't working, which leads me to think that there's something wrong with the syntax. Basically my goal is to not have the width property set specifically for all 4.

    Read the article

  • Setting the gap of layout

    - by Kamo
    I usually set the layout like this where I specify the gap inside the VerticalLayout tag <s:Group> <s:layout> <s:VerticalLayout gap="10"/> </s:layout> </s:Group> I'm trying to specify the layout as a property of the Group like this <s:Group layout="{new VerticalLayout()}"> </s:Group> but not sure how to specify the gap in this case. Couldn't spot something in the documentation to show if it's possible to include gap as a parameter when creating new VerticalLayout or what its position would be.

    Read the article

1