Collection of user input and store it

Could someone help me with detailed instructions on how to do it. I have internet search and my huge Director books for hours for a kind of pre-packaged instructions on obtaining the user text entry, but no luck. I have my set interface in place and these are the pieces of info I want:

Username (limited to 30 characters)
Connection (between 6 and 15 characters)
Password (between 6 and 15 characters)
Password2 (must match the password)
Correo electronico (must contain a sign @)

I don't know if I'm supposed to use text field, or component of flashTextInput. And how can I make the character limiting and looking for a character? I know it must be editable. How can I then collect this information with a "submit" button and save it in a file encrypted with the buddyAPI? And then how to get some of these data items and use them in this film or another in the program?

Thanks in advance.

There are many ways to go about this, but I would like this:

Use all members of #text. They are, for me, the simplest
with the most options.

Text sprites need not all all scripts. Do just a "submit."
a button that performs the audit. Something like that, you should get
on the road:

on mouseUp me
If member("username").text.char.count > 30 then
alert "user name must be 30 characters or less.
Pass
end if

If member("login").text.char.count > 15 may
alert "Login must be 15 characters or less.
Pass
end if

If member("login").text.char.count<6>
Alerts "Login must be at least 6 characters.
Pass
end if

If member("password").text.char.count > 15 may
alert ' password must be 15 characters or less.
Pass
end if

If member("password").text.char.count<6>
alert ' password must be 6 characters or more.
Pass
end if

If member("password").text<>member("password2").text then
alert "the password fields do not match"
Pass
end if

in the opposite case (contains the member("email").text '@') then
alert "Email field must contain a sign @.
Pass
end if

baWriteIni ("info", "username", member("username").text, la)
moviePath & "settings.ini") "
baWriteIni ("info", "login", member("login").text, la)
moviePath & "settings.ini") "
baWriteIni ("info", "password", member("password").text, la)
moviePath & "settings.ini") "
baWriteIni ("info", "email", member("email").text, la)
moviePath & "settings.ini") "

baEncryptFile (the moviePath & "settings.ini", "SuperSecretKey).

Go "frameThatYouGoToIfEverythingIsGood".
end

That's all. It will throw an error if something went wrong and if
It's everything is correct it will write in the settings.ini file and encrypt
He read these settings, you must decipher using the same
BaReadIni SuperSecretKey and the use of out the setting. Then you'll
You probably want to re-encrypt as soon as you have finished reading.

Tags: Director

Similar Questions

  • Get popupscreen user input and store it in the variable

    Hello world. I have a screen that is pushed to start the application

    pushScreen (new SPScreen());

    In the constructor of the form, I push an extension of popupscreen in the stack to get an int from the user through TextField amount.

    UiApplication.getUiApplication () .pushGlobalScreen (new SplashScreen(), 1, UiEngine.GLOBAL_SHOW_LOWER);

    In the popuupscreen, I store the entry under int amount;

    public void fieldChanged (field field, int context) {}

    name = nameTxt.getText ();

    quantity = Integer.parseInt (amountTxt.getText ());

    Close();

    }

    };

    Now I want int amount; in my screen to shoot the user supplied value and whenever you click on a button Add the amount in total, each time increasing the total amount.

     

    public static int amount;

    total int = 0;

    ...

    amount

    = OptionScreen.amount;

    Total = total + amount;

    No matter how many times you press the Add button it only changes the total amount. For example, if I enter 6 as the quantity and press the button 3 times I want the total 18 years, but the total is still only 6.

    I'm sure there's probably a way to pass a reference to the variable, but I have a similar situation where I have a variable which is accessible by a certain screens and can be changed in multiple screens as well.  I delcare a class called globalVars and put the variable.

    public class globalVars {
    
        public static int total;
    
    }
    

    Do only access you anywhere with globalVars.total.

    Kind regards

    Scott

  • JavaScript question - accept user input and use them in other areas with case changed (i.e. in a field to uppercase and the other as capatilsed each)

    Hi ther,.

    Ive been away from Livecucle for quite awhile and I lost a handle on coding.

    I am tyring to get the data from that paid to be repeated also in two other areas with different formatting (in capital letters and capatilise each word)

    Therefore, if the user enters "james smith michael" in a named filed - say - fullanme - she could also be replicated in a fullnameCaps file - changed to uppercase in this area (i.e: JAMES MICHAEL SMITH) and - class fullnameCapsEach get out of James Michael Smith

    the other fields will be just hidden.

    I remembered hot change the entry to the ceilings in the entry field - xfa.event.change = xfa.event.change.toUpperCase () - but that only works in the entry field of course.

    I tried to set the fullnameCaps and the fullnameCapsEach to equal the rawvalue of the entry fullanme field and put the code of change in them - but that doesn't seem to be the answer!

    Someone out there you have nay of ideas?

    see you soon

    Hello

    Try this solution in the event of change of your input field:

    var str = xfa.event.newText, capsAll, capsFirst;
    
      capsAll = str.toUpperCase();
      capsFirst = str.toLowerCase().replace(/([^a-z]|^)([a-z])(?=[a-z]{1})/g, function(_, g1, g2) {
        return g1 + g2.toUpperCase();
        });
    
    fullnameCaps.rawValue = capsAll;
    fullnameCapsEach.rawValue = capsFirst;
    
  • How to capture user input and display it in another text field

    Hey there,

    I create a simple screen that allows a user to enter text and I want to take what they get and appear in other fields of text on the same screen, so they do not have to retype. I'm using AS3. I read an article that gave me a few tips, but the code I use is not doing the job. I'm pretty new to Flash, so any help would be appreciated.

    Here is what I use:

    var Description: String;


    myText_txt.addEventListener (Event.ENTER_FRAME, assignText);


    function assignText(myevent:Event):void {}
    Description = myText_txt.text;
    }

    textResults_txt.text = Description;

    My thoughts after reading the article (I think it's from Ned) should follow the first text field, myText_txt and assign this text to the variable Description. Then I tried to assign the variable Description to another field of text called textResults_txt. However, when I type in the first text field, nothing appears in the second.

    Any ideas? Am I using the wrong method to monitor the text box?

    Thank you for your time.

    Stephen

    You don't want to lose an ENTER_FRAME for this.  You must assign an event listener for the input textfield that listens to a CHANGE event.  The event handler for this listener function will simply match the textfield in the first second.

    myText_txt.addEventListener (Event.CHANGE, assignText);

    function assignText(evt:Event):void {}
    textResults_txt.text = myText_txt.text;
    }

  • Decision tree for user input


    I am creating a workflow that accepts a user input and I'm trying to figure out how I can take a parameter selected between an entry and the next choice of entry poplulate.  For example:

    parameters: location, area

    Location (an array of strings) New York, London, Tokyo

    Therefore, based on the chosen of the location of the field parameter change

    New York - area: Prod, Test

    London - area: Prod, Dev, Test

    Tokyo - area: Dev, Test, Eng

    Hi Shaka,

    First, you must create an action (using vCO Client Java) that accepts the rental of type string input parameter and returns an array of strings containing fields for this location.

    If the signature of the action would be something like

    Array/string getDomainListByLocation(string location)
    

    And the action script content would be something like

    if (location == "New York") {
      return ["Prod", "Test"];
    } else if (location == "London") {
      return ["Prod", "Dev", "Test"];
    } else if (location == "Tokyo") {
      return ["Dev", "Test", "Eng"];
    } else {
      return ["Unknown location"];
    }
    

    Then, create a workflow with input parameters 2 - 'rental' of type string and 'areas' of type Array/string. Go to the "Présentation" tab in the editor of vCO and assign the following properties for entries

    • 'rent' entry - adds 'Predefined answers' property and fill its value with locations - New York, London and Tokyo
    • 'areas' entry - add "Data binding" property and bind to action that you created in the first step. Thus, the value of the property must contain OGNL action call expression, something like
    GetAction("my.actions.module","getDomainListByLocation").call( #location )
    

    Now, when you run the workflow, the first entry should be rendered in a dropdown menu with locations and when you choose one of them, the data binding action will be called and the value of the second entry should be amended.

    Hope this helps,

    -Ilian

  • Can be used as part of the regular expression user input data?

    Hello!!

    Yet another querry me... This time want to know is possible to use the chain of user input in the context of speech reqular for instant search... I am aiming to add the search functionality in my game... Where I m going to have several items available in the list... what I intend is to have a text box where I accept user input and instant search still a noob in AS3... so, if using RegExp my goal?

    Suggestions please...

    Thanks in advance...

    Yes - you can build a regular expression like this:

    new RegExp("bob", "gi");

  • Default user name and password on Stor.e Tv

    Hey,.

    I just bought a 2 TB stor.e TV set and switched all my files on it, I am trying to access the network and it asks me a username and password but I never put a!

    Do anyone knows the default user name and password OR do you know how I can create a?
    Also has there NEVER been an update of firmware for this thing?
    Best thing I can say, is that there has not been since 2010.

    Any help is greatly appreciated!

    Bravo guys,.
    John.

    To my knowledge the TV StorE is not secured with any passowords.
    I think you should try to Stor.E TV to factory default value.
    To do this, you must go to configuration-> General Setup-> default.
    But if it fails, and the store TV is not able to start, then this may be a malfunction of the equipment.

  • How can I uninstall or repair and I HID Non-User Input data filter?

    (He was installed by windows update & failed because the "fatal error", it continualy attempts to install start-up & fails.) There NOW in some SORT NOW picked UP MY wireless keyboard Microsoft THAT DO WORK MORE, AS THE PROGRAM CACHE IS DEFECTIVE!  When I stop & reboot, the KEYBOARD is NON-OPERATIONAL & I can't GET THE PIN TO LOGON! In desperation I dug an old logitech keyboard and eventually be able to log on to come here for HELP, someone please. Sorry for the cries of joy, (capitals), but I had a full head of hair when I started but I'm now almost bald!
    Brian McGDR

    Hi BrianMcGDR,

    1. When you are unable to install the Microsoft HID Non-User Input update data filter?

    2. What is the full error message you received during the installation of this update?

    3. do you have security software installed on the computer?

    4. What is the model number of the keyboard? What happens when you try to connect the keyboard to the computer?

    The update of the Microsoft HID Non-User Input data filter must be installed if you experience the problem that is mentioned in the Microsoft article below.

    The screen saver does not start after the installation of a wireless pointing device

    http://support.Microsoft.com/kb/913405

    I suggest that you download and install the latest drivers for keyboard, check if it helps.

    http://www.Microsoft.com/hardware/en-us/downloads

    See the update history for the exact error for failure put up-to-date and after return with details.

    (a) open Windows Update by clicking Start , all programsand then click Windows Update.

    (b) in the left pane, click view update history.

    (c) to view more information about an update, double-click it.

  • Text entry mode and user input validation

    Hey guys, someone tried to implement some sort of validation entry on BB 10?

    According to the literature, we have TextField that can be assigned to one of the variants of TextFieldInputMode: URL, PhoneNumber, NumbersAndPunctuation etc.

    There are no examples of this feature in action in the examples of Cascades source code on GitHub.

    I tried almost all variants of documentation and that you do not notice any changes in the local keypad. It always shows all the characters with special keys for user able to grasp everything that he or she wants. I guess that's what we call 'Default' variant of the keyboard. It's not good for me. At least, I want to be able to transmit a user through the regular expression input and generate an alert if something is wrong with the supplied value. But it would be much better to limit user input to some variants of the keyboard (for ex, keypad only)

    Here is my code:
    TextField {}
    ID: iValue
    hintText: "enter your value.
    inputMode: TextFieldInputMode.URL / / change this to what you want - without changes
    bottomMargin: 50.0
    textStyle {base: SystemDefaults.TextStyles.BodyText}

    layoutProperties: {StackLayoutProperties}
    horizontalAlignment: HorizontalAlignment.Fill
    }
    }

    Is it possible to show only digital keyboard and, possibly, use a regexp validation of user input at the moment?

    Yes, this guy's it via textChanging() signal and a regular expression.

    See this post on - http://supportforums.blackberry.com/t5/Cascades-Development/Preventing-non-numeric-key-presses-in-a-...

  • User input to JSON and mathematical operation

    Hello guys,.

    Now, I am currently building another application, and I want to use JSON as my database. There will be multiple entries (entries user, INTEGER) textfield that will be stored in JSON, so I want to apply a mathematical addition on each entry which is recorded in the JSON (total value) database, and then display it in the user interface. I also want to try this with XML, but I don't know if I could do it with XML.

    The sample application in the documentation (registration with JSON data) is not enforced with user input, but we specify the data. There is also an example of a mathematical operation of database. I still don't know the concept and how to write the code.

    Any help would be appreciated. Thank you.

    Hello
    Mathematical operations can be performed in the application itself.

    (1) create input controls, a button that will trigger the operation. Click, calculate the result, update the result field, then record the entries and result in a DB, JSON or XML file.

    (2) when the page is loaded into onCreationCompleted on the Page read handler registered values (if any) and fill the control with data.

    If you need help, please post the code you have so far and that someone may be power help with specific problems.

  • [ADF, JDev12.1.3] Which is the right place (for example, bean or AM) to create and store secret data that the user is unable to intercept?

    Hallo,

    in my page, when the user clicks on a button, I'have run an operation and in particular generate a code PIN and password that the user must not not know/interception.

    The STEM must be kept "secretly" in the comic book.

    I created a function to generate the PIN code in the 'Utils' to the ViewController project class.

    In the managed bean associated page I would deal with the click of the button through its ActionListener function.

    In this function I would also generate PIN call the "generatePIN" works and finally store the PIN in the comic book.

    Is the bean, the right to 'place' where build and store the PIN in the database?

    Maybe I'd better to generate the PIN and then store it throug a function of the module of the Application?

    Thank you

    Federico

    Well, he should go to the model because it is part of business process and is not part of the presentation of data.

    (AMImpl, VOImpl, or same ViewRowImpl are good places to write such code)

    The STEM must be kept "secretly" in the comic book.

    I don't know what that means exactly.

    Aspect of security, no matter where you place code (in the model or ViewController) because both are executed inside the Java virtual machine server-side.

    If you need to secure communications between WLS and DB, then open the database by using the SSL protocol connection (or create the stored procedure and generate PIN directly in db)...

    Dario

  • I got a license number for Adobe Master Collection from my school (Stevens Institute of Technology) and I can't understand how to use it to obtain the product. I created a user name and this is as far as I'm away.

    I got a license number for Adobe Master Collection from my school (Stevens Institute of Technology) and I can't understand how to use it to obtain the product. I created a user name and this is as far as I'm away. I need to download the product and I may not know where to start.

    Ask someone to your school... You have a Cloud redemption code, or a number of series CS6?

    If cloud, http://helpx.adobe.com/x-productkb/global/redemption-code-help.html Redemption Code and

    http://www.Adobe.com/products/creativecloud/FAQ.html

    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall

    http://forums.Adobe.com/community/download_install_setup/creative_cloud_faq

    What is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html

    To start https://helpx.adobe.com/creative-cloud.html the Cloud

    If CS6, download to other downloads and enter your serial number when prompted

    Once again, your 1 resource is your school

  • Tax calculation based on the user in the box input and displaying the result.

    Thanks to WhyIsThisMe for starting me on my first draft script & Jono! I'm almost there with my purchase requisition form (90% manufactured from the tutorial).  Everything works except for the taxable column

    form.JPG

    I can't understand the correct syntax to check the value of the checkbox in the column taxable and then do the math for the tax based on user input in the field % tax

    (total * stateTaxPercent / 100)

    Essentially, I want to make the calculation only the taxable = 1, and then display the cumulative tax in the tax field.

    Should I use mouseup as trigger to perform the calculation of the tax and save the result as a variable and displays the variable in the tax field? Then if another taxable box gets checked, I could add the new calculation of the variable. Not sure whether in an elegant way to get there.

    ?

    I would put the following text in the change event of each taxable check box (in formcalc):

    If ($ == 1) then

    tax = tax + (amount * 0,0825)

    ElseIf ($ == 0) then

    tax = tax - (quantity * 0,0825)

    endif

    (where 'tax' is what you called your total tax box and the 'amount' is what you called your box of price).

  • 'The specified network folder is currently mapped using a different user name and password'.

    "The specified network folder is currently mapped using a.
    another user name and password.
    Connect using a different user name and password
    First, disconnect any existing mappings to this network
    share '.
    I got this message when trying to access a laptop on my home network. It's a laptop which came for years. The only change that occurred was the removal of a few videos to Windows Media Player. In fact, I was sitting near the laptop (laptop 1) that stores the video & audio files that I share on my network for years and an additional (cell 2) laptop computer on my network. I was simply remove a playlist via WMP and I witnessed portable 2 lose access to files I had shared for years with my home network. I don't even use WMP, I had just open trying to access the laptop 1 video/audio files to my PS3 system. I was clear an old list of video of WMP so I could add the extra avi files to the list that I had collected over the years. I wanted to not double many videos so I removed the videos in WMP list. Since then, I'm not able to share anything of my laptop 1 to the rest of my network. I did not like WMP before, now I really despise WMP. When I try to share a folder, right click, share with & click on homegroup (read/write), the option is not selected. Any solution would be greatly appreciated. Thank you

    Hello

    The link below talking about a similar problem that should help you to solve the problem.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-networking/the-network-folder-specified-is-currently-mapped/928f6313-fe2c-4d2D-A247-152ec022e062

  • Apex_Collection adding member via user input

    Good day to all, I have this code how can I add members, based on an a user input via a textfield? I can simply add a member only because when I choose the collection it retrieves data as a single, I want to add more data based on the user if he seizes 5 values I need to retrieve 5 values also when I select it. How do I do that? Thanks in advance.
    DECLARE
    
    v_arr apex_application_global.vc_arr2;
    
    BEGIN
    v_arr := apex_util.string_to_table(:P1_DEPTNO);
    
    apex_collection.create_or_truncate_collection(p_collection_name => 'PCOL');
    
    FOR i IN 1 .. v_arr.count
    LOOP
    apex_collection.add_member(p_collection_name => 'PCOL', p_c001 => v_arr(i));
    END LOOP;
    END;
    Published by: mang jose on January 12, 2011 18:21

    Hi Jose,

    There are only two steps. On my page, my agenda of the page name is P4_DEPTNO (so set it to your page):

    1. create a process on your page that is running "on the load - before the Header." Code of the process must be:

    BEGIN
     IF NOT APEX_COLLECTION.COLLECTION_EXISTS('PCOL') THEN
      APEX_COLLECTION.CREATE_COLLECTION('PCOL');
     END IF;
    END;
    

    This creates the collection of PCOL If it does not exist, otherwise does nothing if there is

    2. create another process on your page that is running "on submit - after calculations and Validations'. The code for this must be:

    BEGIN
     APEX_COLLECTION.ADD_MEMBER('PCOL', :P4_DEPTNO);
    END;
    

    I put this process triggered by my button (P4_ADD_BUTTON in this example), but I also put it to depend on being NOT NULL - P4_DEPTNO, I've selected "In Expression 1 point value is NOT NULL" and concluded P4_DEPTNO Expression 1.

    And that's all you need to do!

    Andy

Maybe you are looking for

  • iPhone 5 c does not activate

    I changed the SIM to my iPhone (unlocked) and resetting. However, during the reset process the message: "the SIM card that you have currently installed in this iPhone is a carrier that is not supported in the title of the activation policy that is cu

  • Update recovery partition

    I think that hp / compaq should create a cylindre update software that would allow a user to the client update their recovery partition, so that if they were to perform a recovery of the system don't we clear tell an OS - the operating system upgrade

  • No one knows how long XP will be around? __

    I am running XP service pack II and need to buy new hardware to perpetuate this computer... but I don't have any other OS available to me (attached to cash). No one knows how long XP will be around?

  • AM300: Helps connect two computers

    I was wondering, because there are two USB keys and Port Ethernet on the Am300, can I connect two computers to it at the same time, we use the USB port and the other using Ethernet?

  • IPSec VPN with private WAN address... Help!

    I am trying to establish an IPSec Site to Site VPN to my company network. I use a Cisco 2811. If I plug a Public IP WAN connection my tunnel past traffic without problem, but if I tell a router in the middle where the 2811 pulls a private IP address