Theme works does not in Hello World app?

Hello

I was reading through the slides and I was wondering why the Hello World application has such a ugly black background, despite I have configured the white theme.

I don't really see the difference with the RSSReader sample, and then I could be watching something. Thank you

Hey zezke,

to change the background of your application, you have three options to choose from. Theme stuff that you read everything is what about the buttons and the components of the application. To change the background of your application however follow one of these three steps (starting a thread to discuss this issue to front):

Metadata:

package{   import flash.display.Sprite;

  [SWF(width="1024", height="600", backgroundColor="#CCCCCC", frameRate="30")] public class MyApplication extends Sprite

      public function MyApplication()       {         (...)

      } }}

The background is in the same format as the color of the HTML. The second way is by creating a shape object that is larger than the screen and adding that the first child in your program as follows:

package{   import flash.display.Shape;   import flash.display.Sprite;

    [SWF(width="1024", height="600", backgroundColor="#CCCCCC", frameRate="30")]  public class MyApplication extends Sprite {         public function MyApplication()       {

          var appBackgroundColor:Shape = new Shape();

          appBackgroundColor.graphics.beginFill(0xFF0000);          appBackgroundColor.graphics.drawRect(0,0,1024,600);           appBackgroundColor.graphics.endFill();

          addChild(appBackgroundColor);

            (...)     } }}

To add an image is as the second step only by using the Image class as follows:

package{   import flash.display.Shape;   import flash.display.Sprite;  import flash.filesystem.File;

  import qnx.ui.display.Image;

  [SWF(width="1024", height="600", backgroundColor="#CCCCCC", frameRate="30")]  public class MyApplication extends Sprite {         public function MyApplication()       {

          var appBackgroundImage:Image = new Image();

          appBackgroundImage.setImage(File.applicationDirectory.resolvePath('path/to/image.png').url);          appBackgroundImage.setSize(1024,600);         appBackgroundImage.setPosition(0,0);

          addChild(appBackgroundImage);

           (...)

      } }}

Here is the link to the older thread:

http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-Air/how-to-set-background-for-contain...

hope that helps. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    You may have installed one or more variants of the malware "VSearch' ad-injection. Please back up all data, and then take the steps below to disable it.

    Do not use any type of product, "anti-virus" or "anti-malware" on a Mac. It is never necessary for her, and relying on it for protection makes you more vulnerable to attacks, not less.

    Malware is constantly evolving to work around defenses against it. This procedure works now, I know. It will not work in the future. Anyone finding this comment a couple of days or more after it was published should look for a more recent discussion, or start a new one.

    Step 1

    VSearch malware tries to hide by varying names of the files it installs. It regenerates itself also if you try to remove it when it is run. To remove it, you must first start in safe mode temporarily disable the malware.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for other instructions.

    Step 2

    When running in safe mode, load the web page and then triple - click on the line below to select. Copy the text to the Clipboard by pressing Control-C key combination:

    /Library/LaunchDaemons

    In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

    A folder named "LaunchDaemons" can open. If this is the case, press the combination of keys command-2 to select the display of the list, if it is not already selected.

    There should be a column in the update Finder window. Click this title two times to sort the content by date with the most recent at the top. Please don't skip this step. Files that belong to an instance of VSearch will have the same date of change for a few minutes, then they will be grouped together when you sort the folder this way, which makes them easy to identify.

    Step 3

    In the LaunchDaemons folder, there may be one or more files with the name of this form:

    com Apple.something.plist

    When something is a random string, without the letters, different in each case.

    Note that the name consists of four words separated by dots. Typical examples are:

    com Apple.builins.plist

    com Apple.cereng.plist

    com Apple.nysgar.plist

    There may be one or more items with a name of the form:

    com.something.plist

    Yet once something is a random string, without meaning - not necessarily the same as that which appears in one of the other file names.

    These names consist of three words separated by dots. Typical examples are:

    com.semifasciaUpd.plist

    com.ubuiling.plist

    Sometimes there are items (usually not more than one) with the name of this form:

    com.something .net - preferences.plist

    This name consists of four words (the third hyphen) separated by periods. Typical example:

    com.jangly .net - preferences.plist

    Drag all items in the basket. You may be prompted for administrator login password.

    Restart the computer and empty the trash.

    Examples of legitimate files located in the same folder:

    com.apple.FinalCutServer.fcsvr_ldsd.plist

    com Apple.Installer.osmessagetracing.plist

    com Apple.Qmaster.qmasterd.plist

    com Apple.aelwriter.plist

    com Apple.SERVERD.plist

    com Tether.plist

    The first three are clearly not VSearch files because the names do not match the above models. The last three are not easy to distinguish by the name alone, but the modification date will be earlier than the date at which VSearch has been installed, perhaps several years. None of these files will be present in most installations of Mac OS X.

    Do not delete the folder 'LaunchDaemons' or anything else inside, unless you know you have another type of unwanted software and more VSearch. The file is a normal part of Mac OS X. The "demon" refers to a program that starts automatically. This is not inherently bad, but the mechanism is sometimes exploited by hackers for malicious software.

    If you are not sure whether a file is part of the malware, order the contents of the folder by date modified I wrote in step 2, no name. Malicious files will be grouped together. There could be more than one such group, if you attacked more than once. A file dated far in the past is not part of the malware. A folder in date dated Middle an obviously malicious cluster is almost certainly too malicious.

    If the files come back after you remove the, they are replaced by others with similar names, then either you didn't start in safe mode or you do not have all the. Return to step 1 and try again.

    Step 4

    Reset the home page in each of your browsers, if it has been modified. In Safari, first load the desired home page, then select

    ▹ Safari preferences... ▹ General

    and click on

    Set on the current Page

    If you use Firefox or Chrome web browser, remove the extensions or add-ons that you don't know that you need. When in doubt, remove all of them.

    The malware is now permanently inactivated, as long as you reinstall it never. A few small files will be left behind, but they have no effect, and trying to find all them is more trouble that it's worth.

    Step 5

    The malware lets the web proxy discovery in the network settings. If you know that the setting was already enabled for a reason, skip this step. Otherwise, you should undo the change.

    Open the network pane in system preferences. If there is a padlock icon in the lower left corner of the window, click it and authenticate to unlock the settings. Click the Advanced button, and then select Proxies in the sheet that drops down. Uncheck that Auto Discovery Proxy if it is checked. Click OK, and then apply.

    Step 6

    This step is optional. Open the users and groups in the system preferences and click on the lock icon to unlock the settings. In the list of users, there may be some with random names that have been added by the malware. You can remove these users. If you are not sure whether a user is legitimate, do not delete it.

  • To run all the applications of the laptop or install download applications works does not error message indicating that the application is not valid "win32.exe or win32.application.

    To run all the applications of the laptop or install download applications works does not error message indicating that the application is not valid "win32.exe or win32.application.

    Hello m.velentino,

    Not sure if you are still having the error message isn't valid win32.applicaiton.

    Get the error: not a valid 32-bit application can have several origins:
    I have listed some of them below.

    The file is corrupted, bad or missing.
    -If the hard disk is damaged or hurt it cause work programs to fail, either because not all data can be read from the hard drive the program is damaged on the drive. Run scandisk and defrag on the hard disk to check for potential errors.
    -If you run the program from a shortcut on the computer, verify that the program is still on the computer. In some cases if the program is no longer installed on the computer, you can get this error.

    File is not designed for your version of Windows:
    -If you try to run a program that is not designed for your version of Windows, you can get this error.
    -Although many old programs designed to work in older versions of Windows will work with new versions of Windows, unfortunately, not all programs will not work.
    -If the program is an MS-DOS program more former start program or Windows, you can get this error.
    -If the program is designed for a 64-bit version of Windows and you are running in a 32-bit version of Windows, it will not work and generate this error.

    File is a virus, worm or other malicious program file.
    -
    This error can be generated by a file that is a virus, worm, Trojan horse or other type of malware file. Often, this will result because the antivirus installed on the computer will not allow the file to install or run. Try to analyze the file to check, it is not a virus or infected.
    -If the file has been checked and is clean, it is always possible that the virus protection program or a another program installed on the computer is at the origin of questions during installation or execution of the program. Start the computer in Mode safe and try to run the program. start the computer in Mode safe will be that nothing is running in the background that could cause this problem.

    Hardware incompatibility.

    -If you get this error during the installation of a program, it is also possible that the CD-ROM drive or the drive that you are installing the program from is not compatible with Windows or has drivers that are not compatible with Windows.
    -Download the latest drivers for your CD player or other of the manufacturer of the computer or the manufacturer of the equipment. (Microsoft does not pilot for other materials)

    Let us know if these suggestions help you.

    Marilyn

  • Active state with menu manual not working does not with child pages

    I created a horizontal menu manual on my master page with two links (at WORK and about me). I did them manually as it was the only way I could work out how the style and the menu items to distance as I wanted. I created an active state that works for the main page WORK and the about me page.

    However, I have four child pages under the work, but when you click on one of them that the active State for labor (a green line under work) does not appear. When I return to the menu options to try to "solve" the problem and choose "All pages" all child pages appear in the main menu I want and does not solve the problem. I chose manual that I could put the line to show that under the term of WORK and not all field.

    Here is my Web site to demonstrate the problem: www.robertgreens.com

    Any help to fix this would be appreciated with gratitude!

    I managed to solve this problem (with the help of Live Chat Support). I needed to create an autour work and provide a 'normal' State which resembled the active state, so when you click on the pages of the child, it looked like work page parent menu (with a green line) below. This meant that I had to duplicate master page and do the same (deletion of the green line in the menu of work) for the words Me page. And now, everything looks the same: www.robertgreens.com

  • Found "Save as model" grayed out and cannot save. Recorded with .dwt but saved them "model" does not present as a "site template. Can anyone help? Thank you.

    Found "Save as model" grayed out and cannot save. Recorded with .dwt but saved them "model" does not present as a "site template. Can anyone help? Thank you

    I found the problem. I opened 'File' then saw 'save as template' grayed. Having not worked with models, I didn't know this isn't how it's done.

    What I should have done was file > save as > then clicked the drop-down 'Save as template' menu option. It was a simple mistake. Thanks to you all.

  • with firefox 43 yahoo and yahoo mail doesn't work does not correctly

    With the help of win 7 and firefox 43.0.1, I have 4 computers and now all have problems with yahoo and yahoo mail doesn't work does not correctly. Loading sites, but most of the features are missing and clicking on what whether changes to the lists of text. I have disabled flash / anti-spam etc., cleared cookies and cache and even firefox loaded down once again and have upgraded, no help. I'm forced to use IE now.

    I tried Yahoo support, they said try Firefox... In any case, it's Firefox and I found a solution using the 'Refresh Firefox' button. Whatever the problem was fixed on two of my computers so far. Got to update my setting again but it's 10 m, compared to the 10 hours I spent trying all that is nothing.

    Thanks for the help!

  • Adobe flash player not working does not or does not appear as an application under Tools, options

    Adobe flash player not working does not or does not appear as an application under Tools, options

    If you can't Flash 11.3 to work and need to return to 11.2 Flash you can download Player Flash 11.2 through this direct link:

  • WIFI doesn't work does not correctly after driver update

    I have a DESIRE 4 laptop 1023tu with operating system Windows 8 PRO. My WIFI works does not properly after the update drievr.

    Problems...

    1. When you try to connect to a wifi hotspot the quick adapter turns off and allows the card instantly

    2. after connected, sometimes no internet access and the problem turns off only after reconnecting to the netwrok after setting off.

    If the update doesn't work not for you then do as I explained in my previous post and roll back to the previous driver. This philosophy can be applied to all updates.

    If there is no pressure or emerging reason to update to your PC or laptop works just great... do not update. (this is especially true when it comes to an update of the BIOS)

    For your question #2, the problem could be your wireless (modem, router or access point) which causes the connection dropped.

    Best regards
    ERICO

  • my microsoft work does not work error message that I need to reinstall, but I don't have a disck because it was already installed when I bought at walmart

    I bought my dell computer 2009 Wal-Mart, that he has is already set up with windows vista basic... and now my microsoft works does not work it says I have to reinstall.  However, he is not come with a disc. so, how can I do without having to buy a disc

    Go here: https://smartsource.dell.com

    This is where you go to download programs that have been installed on your computer that you do not have a CD for.

  • AutoComplete doesn't work does not after installing IE *.

    AutoComplete URL function works does not after installing IE8.  Looking at the Advanced tab properties IE I see an option to use AutoComplete (which is
    ticked off) but it is said to "..". turn of Internet Explorer".  Whatever that means, and how I seized not semi-automatic work again under IE8?  I can go back
    for IE7, if it's the only way.   I tried to hit "reset" on the Advanced tab I saw a thread on try this - but no go...  Thank you

    sjakulski,
    Thank you for visiting the Microsoft Answers community forum.

    In Internet Explorer 8, the Auto complete option is in a new tab.  Go to tools, Internet Options and then click the content tab.  You will see a section that says "Auto-Complete".  Click on the 'Settings' button and it gives you several choices of auto complete options.

    This should solve your problem.  Let us know if you need more information.
    Thank you, Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • BlackBerry App Q10 does not open a few apps that I downloaded

    Nice day. Pls my blackberry Q10 does not open a few apps that I downloaded. I need help on what to do to solve this problem. Thank U

    MOD Edit: Title to be more descriptive

    What applications?

    Downloaded from where?

  • Hello World app: CAP exception has occurred

    Hi all!

    I am trying to build a simple "Hello World" app for PlayBook.

    I'm getting "CAP exception occurred" for this simple application.

    The config.xml file is:

    In response to myself for the case where this other nubbies could have a same error.

    I used regularly WebWorks Packer instead of WebWorks Packager for PlayBook.

    So, make sure you use the right place bbwp.

  • Search works is not in the people app

    When I search in the people App, I have 'no result '.  I tried to uninstall and reinstall the suite app people.  Is there any solution for this?  I should be able to search a person's name.

    Hi Jim,.

    Welcome to the Microsoft community where you can find all the answers related to Windows.

    According to the description, you are having problems with the search function doesn't work is not in the people App.
    Proceed as from the link below and check if that helps.
     
    Answer to us if you are having problems with the people App or any other issue of Windows, and we would be happy to help you.
     
     
    Good day!
     
    Hope this information helps.
  • I had endless problems with Lightroom since the purchase of subscription for one year in December 2014. Now, the development Module was disabled, as they claim that my subscription has expired...  He spent more time to work does not, and I'm bitterly briv

    I had endless problems with Lightroom since the purchase of subscription for one year in December 2014. Now, the development Module was disabled, as they claim that my subscription has expired...  He spent more time to work does not, and I bitterly regret it.  Help, please!

    Open the Adobe Creative Cloud application then go to preferences then sign out and then sign back with the same Adobe ID that you used to purchase the subscription photographers, that is to say the same e-mail address and password.

    Then open Lightroom and go to the Help menu and make sure that it is signed in with that Adobe ID email address.

  • BlackBerry smartphone App World does not connect to the App World Server

    • Carrier - Verizon
    • Curve 8330
    • OS 5.0.0.230
    • App World 1.1.0.23
    • BIS

    After loading App World on my curve, the program will load, but does not connect.  I get the error "BlackBerry App World is had problems to connect to the server BlackBerry App World.  Check your network connections, and then try again. "My network connects aren't working very well and all the other programs have NO problems to connect to their servers.

    Uh, Yes?

    but really, nevermind.  the last reslease for app world works fine.

Maybe you are looking for

  • Where can I find a "product key" for Microsoft Office Word 2007.

    When I try to open Microsoft Office Word 2007, which is installed on my computer, I get this pop up asking for my product key. I have no knowledge of a product key and I don't know where it can be located. Anyone has an idea about this 'product key '

  • Need remote control for Satellite P100

    Hello I bought a new P100, and I would like a remote control to use with WMCEdition and WMPlayer. How can I get a? Reply soon, Ian Dodds

  • Print pictures of the face before of the subvis to executables

    I have a high level vi which calls a Subvi, which has all the parcels I want to print a report.  It works as a vi I do refer to the Sub - VI I want to print the image of.  When I make an executable it no longer works and even if I change the referenc

  • Start button / stop Wag54g2

    Excuse me because of my language I have a few questions: Wag54g2 modem must disconnect the power supply when we don't Wan to use it? Can 2. how I upgrade the firmware? (I got the image file, but it does not work) Is it have mode button instead of the

  • How to print a list of my Contacts in Windows Live.

    THANK YOU ANSWER ME MICHELE MCDONALD original title: HOW to PRINT a LIST OF MY CONTACTS IN WINDOWS LIVE