problems with the textinput control

Hi all

I am currently creating an Air based web browser, but I encountered a small problem that I can't find transient. When you enter the web address in the address normally bar i.e. http://www.adobe.com, it works fine. However, if enter you under adobe.com without the http standard he goes to app: / adobe.com. Is anyway to change this? Any help is appreciated. I've included a snippet of my code in order to get a better image.

   //this is the main code that deals with the textinput//

                        <mx:TextInput id="txtURL" text="http://www.google.com" 
               editable="true" enabled="true"
               change="changeInput(event);"
               textInput="urlTextInput(event)"
               enter="urlEnter(event)"/>

//other code here.//

                         private function urlTextInput(event:TextEvent):void {
                    // trace("urlTextInput event:"+event.text);
                    if (!this.bUserEditingLocation)
                    {
                      trace("Setting bUserEditingLocation = true");
                      this.bUserEditingLocation =true;
                    }
               }

               private function urlEnter(event:Event):void {
                    trace("urlEnter");
                    if (webbrowser.location != txtURL.text)
                    {
                    trace("bUserEditingLocation = false and setting location to "+txtURL.text);
                    webbrowser.htmlLoader.cancelLoad();
                    webbrowser.location =      txtURL.text;
                    bUserEditingLocation = false;
                    focusManager.setFocus(webbrowser);
                    }
               }

               private function changeInput(event:Event):void {
               }

               private function SetURLTextInput(S:String):void
               {
                    trace("SetURLTextInput to "+S);
                    txtURL.text = S;
               }

               private function browserComplete(event:Event):void {
                    if (txtURL.text != webbrowser.location)
                    {
                         if (!IsUserEditingLocation())
                    {
                         trace("BrowserComplete setting new location to text input "+ webbrowser.location);
                         SetURLTextInput(webbrowser.location);

                    }
                    else
                    {
                        trace("BrowserComplete while user is editing");
                    }
               }
                    else
                    {
                         trace("BrowserComplete to same location");
                    }

                   // Stop the marching dots, and return to the default text and color.
                   bLocationChanging = false;
                    lblURL.setStyle("color",DefaultButtonColor);
                    lblURL.text = DefaultButtonText;
               }

This can be even better:

If (textURL.text.length > = 2 & textURL.text.search ("ht")! = 0 & textURL.text.search (ww")})
textURL.text = "http://www." + textURL.text;

}

If this post answers your question or assistance, please mark it as such.

Tags: Flex

Similar Questions

  • Problem with the Quicktime controls, native

    I have a small question just to see if anyone else has had this problem.

    I use the product animation DVD Director, generally I use scripted rewind, fast forward, etc. buttons to order movies. A guy asked me to use the native controls of Quicktime instead, but when I check for them to show, it blocks the program. Now, I know that I was able to do this before, but now I turn... What is happening in the 9, 10 AND 11. I used 11 but I downgraded to an earlier version to see if I could do it in the previous version but there it is in all versions. I was able to do before the 9 and 10.

    the only thing different than before are that I have 11 and a new computer, but cannot think of any reason why this would be a problem.

    anyone has this problem with the Director shuts down when you are trying to activate the native quicktime controls? no idea why he would do this?

    Thanks for any help you might be able to provide...

    Are you on Mac or PC?

    It sounds like a conflict of driver - I can activate the controls in D9 and 10 with QT to win 7.5.5. Have you tried another computer?

    HTH

    johnAq

  • Problem with the fl.controls package...

    I get a very strange error with the fl.controls package. When I try to import the package it says that the package could not be found.

    Document class:

    package
    {
        import fl.controls.Button;
        import flash.display.MovieClip;
        
        public class ButtonExample extends MovieClip
        {
            private var b1:Button;      
            public function ButtonExample() {
                b1=new Button();
                addChild(b1);
            }
        }
    }
    

    Error report:

    Line 8: 1046: Type was not found or was not a compile-time constant: Button.
         private var b1:Button;      
    
    Line 10: 1180: Call to a possibly undefined method Button.
         b1=new Button();
    
    Line 3: 1172: Definition fl.controls:Button could not be found.
         import fl.controls.Button;
    
    Total ActionScript Errors: 3,  Reported Errors: 3
    

    I don't know what to do with these errors. The code seems fine to me, I checked again and again, but still can not compile with errors.

    Any help would be much appreciated.

    Thank you

    No, he can't.  the fl.controls.Button class includes code to the graphics used in the button component.  If you do not use a component button, do not import this class.

  • Problems with the parental control on the administrator account.

    Never use us the 'administrator' account as I have not configured any other account (it was unnecessary since there are no children in the House).  Whenever I try to download a game, I have problems.  It will finish the download, but as soon as I try to start the game, it gives me an error message saying 'parental controls have prevented this application to run.  I don't know why it gives this error and won't let me in the game, since I'm on the administrator account and it wont let me make changes to parental controls for the administrator account.  Anyone know what is the problem and how can I solve this problem?  Thank you!!!

    Try to create another administrator account, and then connect to that account and try to change or disable the parental control for the administrator account.  I don't know if it will work, but it's worth a try.

    I hope this helps.  If this isn't the case, after return and we will try something else.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Latitude E5430 - problems with the fan control

    Hi, I just bought a Latitude E5430 expect to get some laptops Dell Business quality. I use Windows 8 x 64 (in mode UEFI) BIOS A09 and the latest drivers available at dell.com.

    The problem I encounter is that as soon as the fan turns on, it does not turn off for a long time (blow fresh air), even if there is no high load system (only Internet Explorer open) and the temperature is lower than 50.

    Basically, the fan starts at a temperature threshold, cools the processor at 38-40 ° C, and even if the fan running does not cause the CPU more cool, it continues to operate for a long time (10 minutes or more) (while the CPU temperature constantly remains at 38-40 ° C). :-(

    Please forward this issue to the Ministry of development of the BIOS so that they can provide an update that improves the fan control.

    Everyone also having this problem, please take a look at this post from Dell-Terry B:

    http:/en.community.Dell.com/support-forums/laptop/f/3518/t/19480918.aspx?PageIndex=3#20294684

    where it asks more information to the users concerned.

    Same problem here. A09 BIOS update did not help. My specs: i7 - 3520M, 8 64-bit Windows

    Fan noise continuous ist boring and a fix would be appreciated.

  • problem with the tab control type def

    Hello community,

    There is still much more to learn more about LabVIEW.

    I have a tab control which is a (non-strict) type definition. It has 5 tabs with indicators.

    When I open type def and insert another tab, say three position and close type def, the tab on my fp control will of course win the additional tab.

    But the new number three tab will contain this as the former number tab three content and only the last tab will be empty.

    This isn't what I wanted. I think that I am doing it wrong.

    Is it possible to get an empty tab posted on three without defeat the purpose of a def type (because obviously I could decouple the def of type control, insert the tab and do a new type def).

    Best regards

    Florian

    Florian,

    I hope that you will display the tab as a user interface control in one place. In this case, you can have a typedef enum to subVIs and disconnect the the typedef tab control.

    Thank you

    George S

  • Problem with the movie control, please help!

    Hello
    I am a beginner in Flash and I need help with action script. I'm building a website on a SWF file and I can't navigate. I will guive you a simple example just to expose the problem.

    Let's say I have a SWF with two buttons. (Here is a picture to illustrate the situation)
    Now, if I press button1, I put the action: "liberation gotoAndPlay (2)" to play "anim1" until the framework 6. Then on setting 6, I want him to jump to frame 10 and play "anim2" then stop.

    And if I press button2, I want to take this path: "liberation gotoAndPlay (2)" to play "anim1" again until the framework 6. But now, instead of jumping to the frame 10 as does the button1, I want him to jump to frame 20 and playing "anim3" and then stops.

    I hope that my explanations are clear enough. Basically I want the two buttons to play anim1 but at the end of anim1, each take a different path. Hope someone can help me on this one.

    Thank you very much in advance!

    Try:

  • Problem with the mobile Flex list control

    Hello world.

    I have a problem with the list control in Flex mobile.  I need create list in "Flex mobile" and I need that list items must have following structure. a single image, text and then another picture. How do I do this?

    Concerning

    Include a component with a custom converter.

    See the documentation for Flex: http://help.adobe.com/en_US/flex/using/WS03d33b8076db57b9-23c04461124bbeca597-8000.html for more details.

  • Problem with the volume on Satellite Z30 control - A

    Hello

    I have a problem with the analog output sound on my A - Z30 (internal and line/headphone speakers). If for example I play music I see a clearly weak signal volume on the fader control of volume in my Win 8.1 source volume control. But on the master fader, I get a completely saturated and distorted signal. Even down to the time source and output does not help... it just sounds horrible.

    See: link: [https://dl.dropboxusercontent.com/u/30325547/SoundProblem.jpg] (sorry, it's a German system)

    Here we can see that the (extreme right) music player delivers a signal of low volume, while the master fader (left) receives a 100% volume distorted signal.

    If I use external speakers that connect via USB (Logitech Z305) it works perfectly.

    I have already uninstalled and reinstalled the latest version of the drivers for my sound card. But this problem is very persistent. It seems that something pulls the signal up, but I can't find any control that turns off.

    I'm not completely sure when that started, but it can be connected with the beginning of the use of a USB headset. But I already uninstalled this software once again, but that did not help as well.

    Any idea?

    Thank you very much

    PHILIPPE

    Hello

    According to the specifications of the laptop and drivers available on the Toshiba driver page, this laptop supports the Realtek sound card.
    That's why the Realtek HD audio Manager software should be available in the control panel.

    Realtek HD audio Manager provides different parameters as well as the speaker of the configuration options to get the best sound performance.

    In addition, computers laptop Toshiba are preinstalled with a sound tool DTS/Soft
    This software provides audio improvements in your computer.

    To be honest, I not quite sure what which could affect your sound volume, but the mentioned tools and configuration should be checked permanently m.

  • Problems with the help of control Edit Expression with tab control

    Hi all

    I am facing a strange problem when using Expression Edit Control with a tab control.

    When I put the Expression of the RichEdit controls on several tabs in a tab control, and when I run the application, the Expression Edit controls in a single tab are visible, others get invisible! I do NOTHING with them, but they do not simply show upward!

    I first faced this problem using Expr editing controls in Visual Studio c#. NET - with tab controls. For verification, I created a simple VI is LabVIEW to see if the problem is with my request / problem with Expression Edit controls in c#, etc. But voila!  A similar behavior in LabVIEW too! 

    I'm doing something wrong? OR do not do something right? Ask someone for help please ASAP!

    Thanks a ton in advance!

    DASI

    PS: Attached the VI here (LabVIEW 8.5) just download and run it, and you will see probably what I'm talking about!


  • Problem with the controls volume/internet on my laptop HP HDX 16

    Hey,.

    I have a laptop of HP HDX 16, around the age of 8 months. I keep having problems with the touch buttons that controls volume, bass/treble and the internet. The buttons randomly disappear by themselves, turn on and off Alternatively my volume/bass/treble from top to bottom and my internet.

    I have updated the drivers for the buttons to quick launch without result. I've also just updated my computer to Windows 7, so my Bios is brand new (the problem started before I updated to 7).

    As you can imagine, get my internet randomly stops and for the black volume screen blocking what I was doing and hang my computer is getting pretty annoying. Any help on this would be surprising.

    Thank you
    Printertron

    I also have the same problem. HDX 16, around the age of 3 months.

    I found to do all sorts of updates the driver, uninstall, System Restore (no), and does not help.

    I'm still on Vista, but when I get my kit to upgrade to Windows 7, I had planned to see if it resolved the problem.

    Technical support HP told me that if a recovery does not resolve the problem, it must be delivered to them, and the band of totality quicklaunch may have to be modified.

    I intend to make the recovery during the holiday season.

    Based on the fact that you got your computer 8 months ago, I assume that you have not used an upgrade kit. Which means, I would recommend doing a recovery before calling the technical support because they will just have to insist that you do anyway.

    An interim solution, when the volume control locks your screen is at the end of the process called "SmartMenu.exe". It will reload the next time that you start your computer.

  • Problem with the first pro effects controls

    Hi, Merry Christmas;

    I have a problem with the keys with the opacity effect in the effect controls panel. the following pictures I think make my problem more clear to understand:

    view of raft opacity control.png

    The picture above shows that the opacity of the element of gopro correction control is 100% unless I drank too much champagne, or fully visible on the screen!

    I want to do a transition effect showing the raft, which appear in the window of the following image, which is an Indian granary above the Colorado River.

    My video of the attic I zoomed up to the window they give the impression that enter the attic when I arrive at the moment I start, with keyframes to have

    inside of the attic without an opacity of 100% to 0% at the end of the clip attic. Unless the new champagne is very bad for my health and vision, I would then see the river

    and the raft! Well I did not and it gives me nightmares! What is the problem? I add that having a zoom smooth and regular, I used the effect time remapping in the video for attic.

    The clip of attic is just above the clip from gopro correction and he overlapped by the duration of the selected dissolution of the shown in the image below (I could of course use a resolution here, but I want to save money on an additional effect)

    view of granary opacity controls.png

    Here is the view with the screen and the opacity of the element of attic at 25%. Normally, the clip of the raft must be visible then! the orange-red to the right of the screen is inside wall of the attic!


    view with screen at 25pct opacity.png

    Thanks for your suggestions... Claude

    Sorry guys, I found the reason. My fade is too short! I had put 2 "to fade and seems not sufficient due to the element of the upper layer time remapping effect! Sorry for the inconvenience.

    Claude

  • Hello! Someone has some problem with the haptic on Macbook 12 "2016 function? It does not work on my Mackbook.

    I'm trying to figure if someone has my problem with the haptic on Macbook 12 "2016 function. The option is checked in the preferences system, but it does not work.

    Thank you

    Hello luigi10m,

    Thanks for posting on the Community Support from Apple. From your post, it looks like your haptic feedback does not work when you click using your trackpad and the setting is enabled. I know that this is a great feature and it is important to make it work. I'll be happy to help you.

    First of all, I would like to assure you that in system preferences > Trackpad > clicking silencer is not checked, that might help. In addition, it would be useful to reset the settings of the SCM. You can find instructions here: reset the management system (SCM) controller on your Mac - Apple Support

    I'll also include those for you here:

    1. Stop the Mac.
    2. Plug the MagSafe or USB - C adapter to a power source and to your Mac.
    3. Use the built-in keyboard, press shift-control-Option on the left side of the keyboard, then press the power button at the same time.
    4. All the keys to unlock, then press the power button to turn on your Mac

    Take care!

  • Problem with the search function

    I use firefox 10 and I have a problem with the search feature. If the word that I will try to find begins with the capital letter I can't find with control function if I write the word only with small letters. a the opposite. For example, if the word is 'Letter' I can't find this word if I type 'letter' in the search bar

    Is the option 'Option match case' in the verified search bar? If so, uncheck it.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • Satellite U500-17F: problems with the new HARD drive

    Hi everyone, I got some troubleshooting with my Satellite and a new drive, I bought recently, because that is already damaged because of too many bad sectors. One is a Western Digital Scorpio Black 320 Bg (WD3200BEKT model number). It should be a fast reader but is not with my Satellite.

    After having mounted the drive in the laptop, I ran a new installation (with full disk format} Windows 7 (64 bit) with all the necessary drivers (that I downloaded directly from the Page of Support Toshiba.)

    The problem is that the laptop needs a lot of time to start and also to disable, and whenever I try to run an application or start a program (for example Firefox, or just a few windows applications), the laptop freezes for about 30 to 60 seconds, the drive no longer works (you can hear leaders put in position 'parking' and the HDD LED control is constant) ", no lights flashing).

    It seems that the drive (during this 30-60 seconds) in something as a stand-by mode. I ran a few Western Digital diagnostic tools and the car looks all right to 100%. It works also without any problems in the other laptop (HP Pavilion DV6500). Could this be a problem with the controller (Intel ICH9M - E ATA AHCI controller) driver?

    Any suggestion?
    Thanx

    Hello

    You use the latest version of the BIOS?
    Please check if you need a BIOS update. Of course I read in a few discussions on the similar question of Win XP you use Win 7 but its value to check the update of the BIOS and U500 series.

    In addition, I recommend check you the power of Windows 7 options.
    Disable in the power profile that you use power saving HDD.

    Just a question:
    You use the option AHCI in the BIOS?
    As far as I know it of possible to use either a compatible SATA AHCI mode.
    AHCI must be used because this option would use full SATA performance.

Maybe you are looking for