Read field of TextInmput text and to execute referring condition to the informed text

Post Read field of TextInmput text and to execute referring condition to the informed text, AS3.0 To depend the inserted text for the user, flash will be read by the compiler to player, and a connective if goes to define for which picture will be directed or which page web will be linkada with the URLRequest function, or the function gotoAndPlay () for the pictures of timeline. Ultiliza object of field of dinãmico text or textInput? input I find. ---------------------------------------------------------
OBJECTS: Object of text entrance: textoEntrada
button for verification: button link
All the code is stored in picture 1. we have the function:
Code:
stop ();
function loads (event: MouseEvent): void {
to var textoEntrada: String;
if (textoEntrada == " sim"){
      to var link: URLRequest = new URLRequest (" HTTP: \ \ google.com");
      navigateToURL (link);
      } else { gotoAndPlay (2); \ \ the picture where 2ª option is located in timeline }
to botaolink.addEventListener (MouseEvent: CLICK, loads);
THIS CODE AND DID NOT FUNCTION!

made the sujeridas modifications, but it appears the following error: Scene 1, Layer ' Layer 2' , Picture 1, Line 18 1086: Error of syntax: waiting semicolon before port. My objective is when clicar in the button will be verified what he was inserted in the text field, if to contain the word “yes program” it goes to open a URL senão goes for frame 2 of the line of the time.
where " textE" it is the object of entrance text that this in palco, as well as the button is located in palco, with a name of occurrence of " boto".
the two elements had been attributed to the name of occurrence through the menu properties of the flash.
import flash.events.MouseEvent;
import flash.net.URLRequest;
function port(event:MouseEvent):void{
                var textE:String;
                if(textE.text == "yes"){
                               trace("primary portfolio to Author");
                               var indic:URLRequest = new URLRequest ("http://google.com");
                               navigateToURL(indic);
                }else{
                               trace("second page to author");
                               gotoAndPlay(2);
          boto.addEventListener(MouseEvent.CLICK)port;
stop();

Similar Messages

  • On my itunes library my albums are all sorted but when  i put onto my ipod touch (4th Gen) it seems to duplicate i have checked everything and there are no spaces in the information my question is how do isort it because these things drive me mad

    on my itunes library my albums are all sorted but when  i put onto my ipod touch (4th Gen) it seems to duplicate i have checked everything and there are no spaces in the information my question is how do isort it because these things drive me mad i would be most gratefully if you could find a way to help
    thatnks

    Never mind, got it to work. I stumbled around on Google for a while and somehow ended up reading things from the 'jailbroken' community. They had easy instructions to get out of Recovery mode. Thanks anyway though!
    P.S. For anyone who experiences this, here is the fix: Hold Power and Home in unison for 6 seconds, then power on as normal.

  • My Iphone 3 gs is restarting, and a screen to connect to Itunes. When I connect, and restoration, in order to process the information appears: "An unknown error occurred in the restoration (-1)". Help me please!

    My Iphone 3 gs is restarting, and a screen to connect to Itunes.When I connect, and restoration, in order to process the information appears: "An unknown error occurred in the restoration(-1)". Help me please!

    That is a baseband error. Has your phone ever been illegitimately unlocked? If so, that problem happens. If you haven't jailbroken/unlocked, visit your local Genius Bar.

  • I'm trying to make a purchase and I get a message that the information does not match with the bank. What can I do?

    I'm trying to make a purchase and I get a message that the information does not match with the bank. What can I do?

    Go to the APP store or Itunes. On the bottom of the mainpage, tap your apple id, view account. Then you can edit the payment information. Or you can do it(if you encounter a problem there) on Itunes on computer. Just go to the store, select your name and edit information. Make sure everything matches...exp date, name as appears on card etc..

  • I am about to buy and iphone 4, its second hand and is in amazing condition. The only problem is that the 'wi-fi' button doesn't not work. I tried to click on it but nothing responds. Can this be fixed? Should i still purchase it?

    I am about to buy and iphone 4, its second hand and is in amazing condition. The only problem is that the 'wi-fi' button doesn't not work. I tried to click on it but nothing responds. Can this be fixed? Should i still purchase it?

    while you are with the person selling it to you, ask if you can do a complete restore of the software settings->general->reset->reset all
    reboot the phone to factory settings and see if that fixes the problem.  if not, i wouldn't buy it unless they are selling it to you for less than $50.  wifi is crucial for keeping data low and using features like facetime

  • Reading fields from a text file

    Hi, I'm fairly new to this so bear with me.
    This is for an assignment - the idea is to cretae an online system for booking seats at a cinema - haven't got past the login stage yet?
    I've got an applet that needs to read in a field from a text file.
    I'm using the StringTokenizer function.
    I've put a test in to check that the applet can find the file, which seems to be ok.
    However, it's not reading from the file.
    Te file is a simple text file - fields are seperated by a comma and a space.
    Any ideas?
    Please help as this is quite urgent.
    Prototype Code is below
    public class cinema extends Applet implements ActionListener, ItemListener{
    private List ActionList;
    private int listIndex;
    TextArea t = new TextArea(5, 30);
    private Button gobutton, writebutton, login, logout;
    private PrintWriter suggestfile;
    TextField Userid, password, enterField;
    private int count, checkuser;
    private BufferedReader firstn;
    File myFile = new File("e:\\Ian\\Unistuff\\2nd Year\\se2\\cinema2\\src\\cinema2\\member.txt");
    //Construct the applet
    public cinema() {
    enterField = new TextField("Please enter user ID and Password");
    enterField.setEditable(false);
    add(enterField);
    Userid = new TextField(3);
    add(Userid);
    password = new TextField(10);
    password.setEchoChar('*');
    add(password);
    //Initialize the applet
    public void init() {
    BorderLayout borderLayout1 = new BorderLayout();
    //some code ommitted
    t.setEditable(false);
    add(t);
    gobutton = new Button("Go!");
    add(gobutton);
    gobutton.addActionListener(this);
    public void actionPerformed(ActionEvent event) {
    if (event.getSource() == gobutton) {
    try {
    firstn = new BufferedReader( new FileReader(myFile));
    catch (IOException e) {
    t.setText("Member database missing - please contact Chairperson");
    return;
    try {
    String line1;
    boolean found = false;
    while (( ( line1 = firstn.readLine() ) != null) && (! found))
    {StringTokenizer token1 = new StringTokenizer (line1, " ,");
                              String user = token1.nextToken();
                                 if (Userid.getText().equals(user))
                                   { found = true;
                                     t.setText("Hello");
    firstn.close();
    catch (IOException e) {
    System.err.println("Error Reading File " + myFile + ": " + e.toString());
    Here's the text file:
    Ian, Dodson, 001, rubbish
    Joe, Bloggs, 002, medway
    Bill, Smith, 003, unique
    Guest, , Guest,
    To test that it is working, it should just put a message in the Text Area, but nothing happens when you press the "go" button.

    1. Your applet will not work, because it is trying to
    read file from local disk.
    2. This task can be solved by simple CGI script
    (which is much more common and universal thing than
    java), so you do not need to use java if you want to
    send 3 lines to a server.
    3. See examples and read some books.1. Stated the obvious.
    2. This is a java forum, not Perl.
    3. Pathetic and patronizing.
    Very helpful.

  • Is Active Directory's ExtensionAttributes9 a field in user object and how to retrieve it in the class type userprincipal?

    Hi, I'm using VS2012.
    I want to use this ExtensionAttributes9 field to store date value for each user object.  I use UserPrincipal class, a collection of these objects are then bind to a gridview control.  Is ExtensionAttributes9 a field in AD user object? 
    How can I access it and bind to the gridview?
    If this field isn't available then what other field can use?
    Thank you.
    Thank you

    UserPrincipal is basically a wrapper around DirectoryEntry:
    http://msdn.microsoft.com/en-us/library/system.directoryservices.directoryentry.aspx and only provides a subset of the Active Directory, although the most common, attributes that are available for the user object.  The attribute that you
    seek is not one of them.
    By utilizing the method that I provided you a link to, it will return the underlying DirectoryEntry that was used to build the UserPrincipal object and should allow you to access the attribute that you seek.
    It would be greatly appreciated if you would mark any helpful entries as helpful and if the entry answers your question, please mark it with the Answer link.

  • Start page starts correctly them elongates to the right of the screen and can only see part of the information displayed.

    It means that I am unable to read all the information being displayed,such as my email,I cannot log onto it with the password as it is off the screen where the whole page as moved to the right of the,it appears to stretched.

    This issue can be caused by the Babylon Toolbar 1.1.8 extension
    See:
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I am getting an error that says "failed attempts to get anything from cdr server" on a website. It just started and now it won't launch the information. How do I correct this?

    This is occurring on the website Virgin Mobile. I was asked to perform some upgrades on my computer and now I am unable to get the content of my call history to display on a screen within this website. The 2nd window will display quickly and then shrink down before showing the call history content.
    The error message then pops up saying "failed two attempts to get anything from cdr server"

    Are you using the original gray-faced OS X DVDs that came with the system (if so, what OS X level does it say on the disk) or a retail copy of OS X 10.6 or another gray-faced OS X disk from another system? You can't use a gray-faced OS X disk from, for example, an iMac or MacBook Pro, to install on your MacBook. 
    Was it originally delivered with an OS X level that is greater than what you're trying to install? You can't install an earlier level than what came with the system.
    Did you boot to the DVD, and use Disk Utility to create one disk partition, then reboot and try to install? 

  • Attempting to copy to the disk failed. The disk could not be read from or written to", and "itunes could not copy to the ipod because the file could not be read or written" WTH?

    I recently bought my son who is special needs an iPod shuffle gen 4 and nothing but complications.  I kept getting error message saying it could not be read from or written to.  Then it would not even charge up.  I let ig charge on computer for 6 hours it turned green.  Then I went to check it out and it went to orange then nothing.  So, I took it back to the storea and got another.  I am home excited for my son and nothing it is doing the same thing!  Someone please help me I am ready to swear off iPod period!

    I had this issue and couldn't figure out what it was for the life of me. I am running windows 7 and the latest version of itunes. I tried multiple reinstalls of itunes and restores of the ipod. I finally got it fixed by following this guide.
    http://support.apple.com/kb/TS1539
    Apparently there was an issue with my .dll files. Hope this helps.

  • Hi, I have a mac mini..all of a sudden when I wake it up in the morning it says I didn't disconnect y external properly and it will try to retrieve the information..it finally appearsbut it never used to say I should disconnect the external before...help

    Hello, my mac mini has suddenly started displaying a warning sign when I wake it up..saying I didn't properly "eject" a device... It is referring to my external/backup hd {on which I store music files, photos, back up files, etc}.  It has never happened until yesterday... and I have had the hd hooked up for over a year.  Each night I just put my mini to sleep and when it wakes in the morning everything is fine... the only time I ever disconnect the external hd is when I completely shut down or unplug...the procedure then has been to turn off the mini...then disconnect the external hd and unplug it. This has always worked fine, then suddenly it says I haven't properly disconnected the external hd... I don't know what to do... am I supposed to use the eject button now before I shut down...and how can I do that... it will state that it is not able to be ejected because it is in use {the rotating photos in my monitor background are stored on the external hd}.  I am puzzled... don't want to lose the info on my external hd...but I need to be able to put my mini to sleep. Help, please.

    Have the pics allways been used off the external drive?
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    Is Spotlight indexing that drive, or is it used by Time Machine?

  • My iPhone 5c screen is lifting at the corner and the store says it's my fault even though my phone is in an otter box and is in immaculate condition. The manager insinuated that I bent the frame to get a new phone!

    My screen is lifting in the corner and the phone is in an otter box and in immaculate condition. Took it in and the manager told me that it's my fault and insinuated that I bent the frame on purpose to get a new phone! I just want my phone fixed. I don't want to pay 300 for another phone when they have already fixed the screen once as it wasn't working.

    So call AppleCare and ask to be transferred to customer service and talk to them.

  • I have an external hard drive and I would like to transfer the information on it to my macbook pro

    I have just received a Macbook pro for Christmas and I am trying to transfer info from an external hard drive to my mac but I am totally clueless. Please help!!

    You can use Setup Assistant or Migration Assistant to migrate from the old computer's backup disk to the new computer. If you use Setup Assistant, that would be when you first power on the new computer and it will create user accounts on the new computer to match the old one and migrate files and programs (at last the ones that will run on the new computer) from your backup to the new computer.
    Migration Assistant is similar but is run after you have the new computer up and running (e.g. you didn't run Setup assistant on the very first power up).
    P.S. This is exactly what I did for our Macbook Air, obtained in 2011, to get it set up with everyting from an older (2008) iMac. I ran Setup Assistamt with the Time Machine backup from the old computer connected via USB to the Macbook Air. All the proprietary software (MS-Office, Adobe Photoshop, etc.) was migrated over without having to re-enter serial numbers and the like, all emails and browser bookmarks were migrated, all user files and settings were migrated, even wireless router ids and passwords. The only thing I had to reinstall was the driver software for a Canon wireless printer/scanner.

  • Error Message "Lightroon encountered an error when reading from its preview cache and needs to quit"

    Error Message "Lightroon encountered an error when reading from its preview cache and needs to quit"
    It says thes everytime I try to open Lightroom and then quits the program.
    Help please--thanks

    Using your system browser, go to your catalog folder and look for a folder with the extension .lrdata and delete that folder. You will have the same name as your catalog but with the different extension. DO NOT make the mistake and delete your catalog. After you delete that folder Lightroom should start and will begin building a new previews folder.

  • Adobe Reader X (10.1.2) and Adobe Acrobat 7.1 Standard Issue

    I am running Windows 7 Professional 32 bit and IE9.
    I have had Adobe Acrobat 7.1 Standard installed on my PC for a while without any problems.
    Today, while trying to open some forms on a government website, I received the following message:
    I clicked OK to install Adobe Reader X (10.1.2) and restarted my PC to complete the installation.
    Once I logged back into my PC, every single icon on my taskbar, start menu, all programs, etc. had been changed to the Adobe Reader X (10.1.2) icon below, and when I clicked on any of them, I received a message that Adobe did not support that file/application.
    The only way I was able to resolve this issue was to unistall Adobe Reader X (10.1.2) from my PC and everything went back to normal.
    Is there a way to have both Adobe Acrobat 7.1 Standard and Adobe Reader X (10.1.2) installed on my PC without experiencing the above issue?
    Please note that I need to have both programs, but I cannot afford to spend money to upgrade my current version of Adobe Acrobat.

    Thanks for your input Michael Kazlow.
    However, it appears that contrary to your statement, it is possible to run different versions of Acrobat and Reader at the same time.
    I have found this Adobe's article outlining 4 diffent solutions to resolve the issue I was experiencing in my original request on this forum http://kb2.adobe.com/cps/860/cpsid_86069.html
    In my particular case, I was able to resolve my issue by following the first solution in the article.

Maybe you are looking for