AS3 / AIR - BB10 problem: TextInput, counting and Format

Hello world

I hope that I have forget something small and appreciate any help sincerely.

Short version of the problem:

When I add a skin to a TextInput object, assign a skin, I can't change the color of text.  If I remove the skin, it works.  And the skin seems to work correctly.  Seems the class of skin does not contain not controls font forground color.

How can I change the background color and a TextInput for BB10 forground using the AS3 BB10 Gold SDK?

Long version:

Help: import a qnx.fuse.ui.text.TextInput;

I have an application with 12 different themes.  In the application, I wish the TextInput box to inherit the theme settings.

Normally, I use the following to define a format.  And it works on its own.

var a: TextInput = newTextInput;

var b:TextFormat = newTextFormat;

b.Color = 0xFF0000;

a.format = b;

However, in order to change the color of the background for the TextInput, I needed to create a custom class.

public class myTextInputSkin extends UISkin

That's a lot of vars:

protected var upSkin Pright;

protected var focusSkinPright;

protected var downSkinPright;

protected var disabledSkinPright;

public var borderSize:uint = 2;

Who also works on its own to replace the background.  However, once I attribute the UISkin to the TextInput, it prevents the format never applied to the TextInput.

var a: TextInput = newTextInput;

var b:TextFormat = newTextFormat;

a.setSkin (myTextInputSkin);

b.Color = 0xFF0000;

a.format = b;

No matter how I trace out, it seems that is applied to the object and the skin is applied to the object.  Seek to deepen the TextInput function, it has a buried in TextField.  I can confirm that setting format reached the TextField object buried inside the TextInput, which means that the format should be really change.  I tried to manually trigger the event of colors of fonts to update inside the text input?

Anyway,.

Now I'm in a bit of a loss, and I feel I'm missing something simple and stupid.  Someone at - it ideas?

Ed.

Thank you!

For now, I have "unskinned" these elements.  Once it gets patched, I'll reconsider.

Ed

Tags: BlackBerry Developers

Similar Questions

  • Windows vista activation problem product ID and Java (0xc0000005) fatal error after installation of windows vista format.

    Original title: try to put wrong question ID problem!

    Due to problems of Java, I formatted and made a new installation.  My Vista Home Premium says its active.  When I try to put my product id was not found. When I try to leave microsoft to find that they can't pick up my computer and I can't enter by hand, he said its incorrect.   When I try to ask online chat, I cut that they deal with activation problems.  It is activated, I can't get the Web site recognize my product id, so I can post for help?  The world is - that sound familiar at all?

    I have fatal routine Java errors when I play a game Runescape.  I'd appreciate any help anyone could give me. Thank you

    A fatal error has been detected by Java runtime environment:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc = 0x6d884dca, pid = 3032, tid = 2976
    #
    # Version JRE: 6.0_30 - b12
    # Java VM: Java hotspot Client VM (20, 5 - b03 in mixed mode, sharing windows - x 86)
    # Problematic frame:
    # V [jvm.dll + 0x94dca]
    #
    # If you want to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    #

    Hi Verisetti,

    Have you installed security software after formatting windows?

    If so, you can uninstall the security software temporarily and check if you receive the access violation error.

    If the uninstallation of security software solves the problem, you may need to configure the settings of the software of safety accordingly. Please contact the software vendor for assistance in this regard.

    Note: Make sure that you install the security software after the trial.

    What about Windows vista product ID, you can try to validate Windows and check if it helps.

    For more information, see the following articles:

    What is the validation, and how does it work?

    Genuine Windows: Frequently asked questions

  • HOW TO CHANGE THE WALLPAPER FOR ADOBE AIR AS3 IN BB10?

    HOW TO CHANGE THE WALLPAPER FOR ADOBE AIR AS3 IN BB10?

    Please only start a thread.

    Original thread:

    http://supportforums.BlackBerry.com/T5/Adobe-AIR-development/changing-background-wallpaper-BBZ10/TD-...

  • I replaced my hard drive and format my computer before turning off the software PS.  It need my code series now, but I had lost.  How can I solve the problem and use the software again?

    I replaced my hard drive and format my computer before turning off the software PS.  It need my code series now, but I had lost.

    How can I solve the problem and use the software again?

    If you use a perpetual Photoshop and formatted your disc version of starting without disabling your activation of Photoshop, you also Adobe supports help you activate Photoshop once you retrieve your serial number.  The startup disk formatting would destroy that credential of Activation Photoshop machine which is registered in the database of the Adobe activation server. Which reduces the activation numbers you have to use.  If you have Photoshop installed on a second computer that means that you have no free activation available as well, even with your key you can't activated the machine.

  • Migration - 20 hours counting and transfer Assistant: what should I do?

    I try to spend a MacBook air with 10.7.x, a Macbook 10.11.x 2015.

    I checked on the Mac site for instructions.  It seemed the only option was to use the wi - fi: ethernet not available on either and no suggestions I could use the stroke of lightning; Time Machine, it is said, only works for 10.8.x upward.

    It all started very well but I'm now waiting for 20 hours on, and it seems stuck.  There is no indication of the time (the other posters say their transfer is indicated in 9 hours or 6 hours or 1 minute remaining - there is no indication on my Macbook...)

    I checked the internet for hours to see what to do.

    Some say yes, cancel the transfer, others say wait.  Some say to restart the process using Thunderbolt and target disk Mode.  Others seem to suggest Time Machine works - I've never used Time Machine then it would be an experience... There is nothing to tell me if I need to 'clean up' my new Macbook.  All that I can see a person gives to think I have to set up a new user account.  It seems some action Ethernet or Thunderbolt have also long delays.

    I'll have to make a manual transfer - I'm afraid that because every time that I have done in the past my Mail didn't work properly.

    It's all so frustrating - by for the course, I guess.  I had the Macs for more than 20 years and am still having problems with transfers (and many other things) often because the instructions are not correct - or don't tell you everything you need to know.

    Some advice would be helpful.

    Hi cbaz,

    As others have suggested that I would wait but if after a few hours, the remaining time does not change, simply cancel and manually transfer with target disk mode and a USB device.

    It's a pain, but it is a secure way to transfer your data.

  • Problem with IMovie and Quick time

    Hey everybody,

    I am faced with an unexpected problem with Quicktime and I Movie, and I was wondering if someone had already known that:

    I want to create a film based on shots from my personal camera. I started to work with IMovie to create a sequence of opening and added his musical band. I exported the scenes in Quick Time format without any problem. However, when I merge the exported sequence of I film with shots of my video camera, the soundtrack is completely eliminated.

    I checked on the Internet and saw that there might be a problem of "Codecs". To avoid this, I exported the sequence IMovie with Codecs of same as one of my video camera files.

    Now, if I compare the files exported from I Movie and those of my video camera, they have identical characteristics. However, the soundtrack will always disappear when I merge them.

    Could someone please help me solve this problem?

    Thank you very much in advance.

    Concerning

    Could someone please help me solve this problem?

    Not only based on what you already said.

    I want to create a film based on shots from my personal camera. I started to work with IMovie to create a sequence of opening and added his musical band. I exported the scenes in Quick Time format without any problem. However, when I merge the exported sequence of I film with shots of my video camera, the soundtrack is completely eliminated.

    How would you"merge" files? (I.e. a "QuickTime" format is any form of data compatible with the platform of supply and the specific structure of QT incorporated into real employment that is stored in a container of MOV file on any of up to 99 tracks possible). Also, what app do you use for reading the file 'merged '? (For example, some media players ignore secondary audio tracks as a result of some methods of 'fusion' of files so it is important to know how the files are "merged," whether or not the audio data are "scattered" several tracks, and/or if the Media Player supports playback of multiple, sequential audio popular.)

    I checked on the Internet and saw that there might be a problem of "Codecs". To avoid this, I exported the sequence IMovie with Codecs of same as one of my video camera files.

    The specific codecs and settings using the specific version of iMovie? (The current Mac OS X operating systems have two X QT and 'classic' Qt integrated structure so it is important to know what structure is used here and how).

    Now, if I compare the files exported from I Movie and those of my video camera, they have identical characteristics. However, the soundtrack will always disappear when I merge them.

    As a general rule, you should review the file "merged" to determine why it does not play back correctly rather than comparing the characteristics of the source being merged files. The main problem here seems to be in your project workflow. That is, you seem to be when you perform an operation in two steps rather than edit several iMove multimedia files and then export the combined results in a video the video and audio tracks have been flattened and exported in standard compression formats with unified settings, features and the.

  • standard Gmail view does not load on MacBook Air, loads fine on iMac and MacBook

    can only load in HTML view. Use the standard display on other computers on the same network. The MacBook Air only charge about 80% and goes no further.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • How can I recharge my sim data in the air of the ipad 2 and activate?

    How can I recharge my sim data in the air of the ipad 2 and activate?

    Hi asherfromqatar,

    The resources below explains how to activate cellular data on your iPad 2 Air service.

    Activate the service of cellular data on your iPad iPad, iPad 2 Air and Pro 3 mini or later

    Check or change your cellular data plan

    To check the status of your cellular data or make changes to your plan, go to settings > cellular data.

    To add another data plan to your iPad, tap Settings > cellular data > Data Plan > add a new Plan.

    When you activate a cell data with some carriers plan, your SIM Apple could be dedicated to the corporate network. Your iPad is unlocked so that you can buy an another SIM Apple or a standard carrier nano-SIM allows you to change networks. Learn more about dedicated SIMs.

    Get help

    Get help with your Apple SIM if you have one of these problems:

    • You receive an alert on your Apple SIM
    • You cannot activate a service or can't find certain support
    • You cannot connect to the cellular data network

    Take care

  • Pavilion Notebook PC 15-079er: problems with sleep and shutdown 15-n079er HP Pavilion Notebook PC.

    Hello world

    I have a huge problem with my Pavilion. I used Windows 8.1 earlier, and I decided to upgrade to Windows 10. I did not like something (can't remember what) and decided to return to Windows 8.1. Almost a year passed, I am again on Windows 10. But if I SLEEP my computer:

    • Screen goes black, everything seems normal.
    • No matter how long wait, fan keeps spinning and power LED, LED Wi - Fi on.
    • Keyboard input does not help. Does not meet what it is.
    • The only thing left to do - stop hard.

    And if I shut down the operating system:

    • Windows normally stops, close all applications, screen goes black.
    • Fan on, led on.

    I did not notice these problems with restarting and the hibernation.

    Two things I've done in this gap of the year:

    • Replacement screen. An old broke. Thanks to my cat...
    • Formatted the drive. I don't think it would do anything diffirent.

    So, any help would be appreciated.

    Thanks in advance,

    Kebab

    Hello

    On some machines, the pilot for 11 series IMEI has been known to cause that kind of question of the judgment, so it may be worth trying an earlier version.

    You can use the following method to install an earlier version of the driver IMEI.

    Download driver IMEI on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp66001-66500/sp66228.exe

    Disable your wireless card (should be f12 ).

    Open your download folder and run the installer - it warns you that it is an earlier version, but simply continue.

    When finished, restart the laptop.

    If the computer shuts down correctly, turn on your wireless adapter and use the utility on the following link to prevent Windows 10 to update automatically the driver IMEI again.

    https://support.Microsoft.com/en-GB/KB/3073930

    Kind regards

    DP - K

  • I had installed windows 8.1 with bootcamp, it was a c drive and I tried to do a second drive d with management of the disks, but when I shrink c drive and format the partition which was made by the management of the disks to d ' training, it destroyed my

    I use macbook pro.

    I had installed Windows 8.1 with bootcamp, that there was a c drive, then I tried to do the second drive with disk management d when I shrink the c drive and format the partition which was made by the management of the disks to d ' training, it destroyed my mac osx.

    Please help solve this problem.

    This partitioning is not supported. Please download GPT Fdisk from http://sourceforge.net/projects/gptfdisk/ and install it on the Windows side. Once it is installed, thanks for posting the output as indicated in the CMD window.

  • Problem with RUNDLL and sthelp.dll.

    I have windows XP on a small Dell Inspiron.  When I start a dialog box titled 'RUNDLL' appears and has the following message: "error loading: C:\Documents and Settings\...\Application Data\sthelp.dll.» The specified module could not be found. "I downloaded Malware Bytes and run a full scan - it found nothing.  I have been devoted to the application of msconfig, clicked on the Startup tab and tried to disable the checkbox where this dll is called upward, but the operating system seems to want to find when they start the computer.  What can I do to get rid of this nuisance? When I close this dialog (RUNDLL), the computer works fine... it is every time at startup.  Any help would be appreciated.

    There is no XP file called stehelp.dll and Googling, there is nothing reasonable and a bunch of bad ideas.

    Looks like it's a vestige of some malware that has been partially removed from your unspecified brand system and the model with the specified, unspecified XP Service Pack version and not specified where the antivirus/antimalware applications.

    These message types are quite common things to do after that some malware was only partially removed FRO your system, so I suggest the following:

    It is sometimes easy to get rid of the error message by doing something like disable the startup item in msconfig (if you can still find), but I suggest you fix the problem and difficulty not only the symptom of the problem by simply deleting the startup message.
    I would also not recommend you start digging in the registry to try to find the startup item and remove it unless you have a backup of your system or at least a backup of your registry, because there is no 'Cancel' or 'quit without saving changes' option in regedit.  If you make a mistake, that's all.
    These ideas relieve 'rapid' and sometimes risky of the symptom if they not even work at all, but they can't actually solve the problem.  Also, I'd be suspicious of ideas that begin with the words "try."  You don't need to try things, you need to fix things.  You don't need to try ideas that might work, you must do something that will always work all the time.
    Here are the detailed instructions that protect you and solve your problem in the 'right' way.
    If you do not have a good explanation for the name of the file in a Google search, the chances are good that your system is currently or has been infected by malware.

    A "Cannot find...". ', ' Failed to start..., "Could not load..." ». "Might not work... "" Cannot run ""error loading... ". "or"specific module could not be found"message at startup is usually related to the malware that has been configured to run at startup, but the referenced file has been removed after a malware scan, leaving behind him a startup item or the registry entry pointing to a file that does not exist.
    It might be a removal of malicious software or an application not installed.  The entry may have a curious looking name since it was probably generated at random when the malware was installed. If you search your system for the referenced file, you may not find.
    Windows attempts to load this file but cannot locate because the file has been deleted for most probably during an analysis of the malware. However, an orphaned associate of remainders of startup parameter or registry entry and tells Windows to load the file when you start or connection.
    So you should delete the referenced entry Windows stop trying to load or run the file. It may or may not be included in the registry, but you can find it.  Autoruns (see below) you get the elements no matter where it is.

    You must be sure to solve the problem and not just fix the symptom of the problem by simply relieving your message - system is not a fix (there is a difference).

    If you just locate and uncheck the item in msconfig, which disables the element but does not remove the reference to the element of false starting your computer.   The msconfig program is not a Startup Manager, that's a troubleshooting tool.  Disabling things in msconfig to put an end to the messages and think that your problem is solved is short-sighted and leave behind him a sloppy XP configuration.  Just disable the display of a start-up error message should not count as a 'solution' to the problem.
    If you are comfortable editing the registry, you can find and remove the reference directly from there or remove it using a popular third-party tool called Autoruns
    .  The problem can always be found in the registry well.
    Before making any changes to your registry by hand or with third-party tools, don't forget to first make a backup of the registry.  There is no cancellation or exit without saving the option in regedit.
    Here is a link to a popular registry backup tool:
    http://www.SnapFiles.com/get/ERUNT.html

    Consider making a manual, just System Restore Point in case you have to undo the changes.

    You can also use the Autoruns to find the element of start remains little matter where he's hiding.  Autoruns does not install anything on your computer.  It will display all startup locations where the reference may be then you can turn it off or remove it completely.  Here is the download link for Autoruns:
    Run Autoruns.exe and wait that he at the end of the filling of the list of entries.
    When the Autoruns is finished scanning your system, it will say "Ready" in the lower left corner. Autoruns can be a little intimidating to first if you have never seen it before because it displays a lot of information.  You are really interested only a few sections.
    The problem is usually to start the system or the user startup entries, then click the connection tab and see if the startup item is there.
    Scroll through the list and look for a boot entry associated files in the error message.
    If you can't find on the connection tab, look in any tab.
    You can also click file, search to search for logon, or any tab for all or part of the name of the element.
    Right-click on the offending entry and choose Remove.  If you are not sure what it is, you can simply turn off (uncheck the entry), reboot, and if the problem is resolved and things work normally and everything works fine, then delete the offending entry.  If you don't see it in Autoruns, you may edit the registry and remove the item from your startup folder it. Autoruns shall display the same information however.
    Given that your system has or has had an infection, follow up with this:
    Perform scans for malware, and then fix any problems:

    No matter what you use for malware protection, follow these steps:

    Download, install, update and do a quick scan with these free malware detection programs (not at the same time) and remove all threats:

    Malwarebytes (MMFA): http://www.malwarebytes.org/products/malwarebytes_free
    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    SAS will probably report a lot of tracking cookies and you can just let him delete them.

    Do a complete analysis from time to time when you have more time (in hours).

    They can be uninstalled later if you wish.

    The scans by operating clean, restart, and then fix any problems.

  • XP problem constant errors and the loss of the Im... Reformats multiple

    Well after a long time to use my computer * the bed... He said that the Config/System file is missing or damaged was told to fix. So after about 10 formats later and the error comes constantly with 1 million other mistakes so many different blue screens... Unmountable Boot Volume cannot locate a beehive... Explorer Windows crashing constantly... I don't know what it is material, but it crashes constantly and if I open up to mozilla it blocks the comp... I had weird graphics problems with games that would make executives to jump everywhere after about an hour of use? Memtest says there is no errors or it's my HARD drive?

    Hello

    • Are you able to boot to the desktop?

    You can check these links:

     
  • Problems with word and PDF after computer crash. Error "user has access privileges."

    Problems with word and PDF after crash

    My computer crashed and I had to run the recovery disk, the repair option, so he could run again. It does not format my computer but I had to re - install several programs. I reinstalled my copy of office for example.  I have an external hard drive where I put most of my files but since installing the recovery disc, it does not open some Word documents and gives a message error "user has not access privilege." It's the same thing with some pdf files. What can I do?  Please help because I can't open some of my documents from the University.

    Hello world
    I would like to just say thank you for your help and the problem is now solved.  In the end I paid someone to sort it out.  He explained that it was something like permissions for some of my files were owned by my old operating system and after that my computer crashed and I had to put through the recovery disc these permissions have been lost.  He told me that he had a program that looked for the old existing and re-installed.
    Thank you.

  • BlackBerry Z10 Z10, problem with Gmail and BIS

    I just got a new Z10 and had all configured to discover that my primary e-mail service, Gmail, does not work if the only internet access is through the Blackberry Internet Service (BIS).

    When I configured first, I got Wi - Fi active (other than BIS, I don't have a data plan as my main focus is email). As it was my 3 services e-mail (Gmail, Hotmail and my prived ISP service) all the connected without problem. It was only after I turned off WiFi that I discovered that while my other two services work fine, my Gmail account has become "not connected".

    I tried everything I could think of, including delete my Gmail account, do a reboot cold and then try setting up the account to new as well as doing a reset complete, I could start over again. All to nothing does not. Only if the WiFi is on what can I cannect to Gmail and that doesn't help me if I don't have a Wi - Fi service.

    Does anyone have any suggestions as to what I might try?

    BasinGroup wrote:
    Two problems with your comment about BB10 supporting not BIS: 1), a BB subscription service would be nuts not to provide support and 2) my 2 other E-mail accounts work fine with BIS.

    You may be right about Gmail not supporting ActiveSync, but on the device the Z10 was supposed to replace (Torch 9860 running os 7.1.0) no problem with Gmail and BIS, so there must be something unique about BB10 on the Z10.

    BIS is not used on BB10. BB10 access directly servers of e-mail now.

    Have you tried to configure gmail so that the signal from the carrier and not on wifi?

    In Gmail, you enable IMAP access and not use two-factor auth

  • FlexUnit with AS3 AIR does not work?

    Recently, I tried to take a shot at TDD (Test Driven Development), as I'm sure many of you know.  To do this I tried to use FlexUnit 4 of in Flash Builder 4.

    If I create a project as follows:

    1. New--> Flex project
    2. Next, Next
    3. (The main Application file) Replace .mxml, .as
    4. Finishing

    Then when I try to use FlexUnit in the ordinary way, it fails to generates an adequate FlexUnitApplication.mxml.  The content of this file is:

    
    
    package_declaration
    {
    class_declaration
    {
    class_body
    }
    }
    

    Therefore, there is a compile error that I can not move:

    Content is not allowed in prolog.
    

    However:

    If I followed the same process as above, without changing the .mxml to .as tests run correctly.

    Things, I tried to work around the error:

    • FlexUnit to 4.1 update
    • Pressing refresh in the FlexUnitsResults window
    • Creating a project with .mxml and thereafter remove this mxml and its replacement with an actionscript class
    • Bump on my desk.

    None of them have worked.

    Did anyone here successfully FlexUnit FlashBuilder 4 for an AS3 AIR project all?  If not, can anyone suggest another Test package?

    Thank you

    ~ Nick.

    I found a solution at least provisional.  I restarted FlashBuilder and despite the error marked under issues here and it worked.

    I think that restart Flashbuilder maybe erases a previously stored properly compiled build.  (Maybe Clean could also do this?).  in any case, at the time of compilation, the mxml file was generated correctly and all is well.

Maybe you are looking for

  • kinda weird police

    Hello. Since a previous update, my font looks like this: From safe mode fix, but when I try disabling plugins/addons/extensions remains. What can I do? Thank you

  • iPod classic 160 GB says no music after synchronization

    I have an old iPod classic 160 GB that has worked well for years. But suddenly, last week, while he was trying to put in new music (right now I have about 18 000 songs, more or less) he began to have problems with synchronization. After having tried

  • HP officejet Pro 8600: lines on scanned documents

    I'll have one with the line from the top to bottem of page on scanned and coppied documents. Can someone help me find the problem? Printing from my computer is perfect.

  • Problem on how to Set Up Windows Mail 6 with Gmail on Windows vista machine

    To all, when I try to send a mail to test (from OE) I get the follo box pop up to wing: Windows security Connect to imap.gmail.com Ask User name & password Machine of Windows vista Version of Windows mail (6) Nortorn 360 version (4.4) Here are my set

  • Is there a recommended EULA?

    Hello! It is said that "it is recommended to include a EULA" in an application which should be sold via the BlackBerry App World, but I am not a lawyer and I am very new to that. I have looked for a generic EULA that I can meet my needs but I can't f