ButtonBar does not display the icons...

Hello world. I use CentOS 4.3 with apache
Tomcat 5.5.23 and Flex 2.0. I have create a ButtonBar in my main.mxml
file with a dataProvider, which is an array of java objects. Each
Object has an icon, a label, and a ToolTip, among other things. The
Adobe LiveDocs for ButtonBar said: "you can also fill the.
property dataProvider with an array of objects. where each object can
have up to three fields: label, icon and ToolTip. "(See
http://livedocs.Adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=live Docs_Book_Parts & file = controls_059_08.html)
I have these fields. The label and ToolTip are working fine, but no icon is
displayed. For the icon, I tried...
(1) in the java Object:
@Embed (source = 'someSwfFile.swf', symbol = 'SomeButton')

or

(2) in the main.mxml file:
[Bindable]
[Embed (source = 'someSwfFile.swf', symbol = "SomeButton")]
public var SomeButtonCls: Class;
and then
definition of the icon in the java object to SomeButtonCls

Nothing works. Any help would be greatly appreciated!
Thank you
Josephine

I finally thought to it. I thought I would post what I did in case anyone else come across this problem.
in the mxml file:

[Bindable]
[Embed (source = 'someSwfFile.swf', symbol = "SomeButton")]
public var SomeButtonCls: Class;
[Bindable]
[Embed (source = 'someSwfFile.swf', symbol = "SomeButton2")]
public var SomeButton2Cls: Class;

[Bindable]
[ArrayElementType ("SomeObject")]
public var someObjList:Object;

public void setIcon(): Sub
{
var childNum:int = menuSomeButtonBar.numChildren - 1;
switch (someObjList.getItemAt (childNum) .icon)
{
case 'SomeButtonCls': Button (menuSomeButtonBar.getChildAt (childNum)) .setStyle ("icon", SomeButtonCls); break;
default: Button (menuSomeButtonBar.getChildAt (childNum)) .setStyle ("icon", SomeButton2Cls);
}
}
]]>


Top = "0" left = "0".
direction = "vertical" verticalGap = "10".
dataProvider = "{someObjList}" = childAdd "setIcon () '"
buttonHeight = '20' buttonWidth = "20" / >

Then in my Java code, I fill a variable called icon in someObjList with SomeButtonCls or SomeButton2Cls as required.

Tags: Flex

Similar Questions

  • My firefox does not display the icon fonts!

    I use fontello.com for my web design project. But recently it does not display the icon.

    and the strange thing is that its OK my Firefox friends and just my PC have the problem.

    for example, this page shows icon on my friends firefox but I can't see the icons
    https://DL.dropboxusercontent.com/u/28793409/fontello-d3b0f38a/demo.html

    That's what I see
    https://DL.dropboxusercontent.com/u/28793409/shot.jpg

    If Safe Mode is good, the more likely culprits are one of your extensions or incompatibility of the graphics driver. To work around the second question, you can disable use of the hardware acceleration Firefox to see if that helps.

    "3-bar" menu button (or tools) > Options > advanced

    In the mini ' General' tab, uncheck the box for "use hardware acceleration when available.

    It takes effect the next time you exit and restart Firefox.

  • iPhone app does not display the icon during installation

    Hello

    We have developed an iPhone application using flash builder. We used the following icons of the resolution.

    <>icon

    < image29x29 > assets/images/x_29px.png < / image29x29 >

    < image57x57 > assets/images/x_57px.png < / image57x57 >

    < image72x72 > assets/images/x_72px.png < / image72x72 >

    < image114x114 > assets/images/x_114px.png < / image114x114 >

    < image128x128 > assets/images/x_128px.png < / image128x128 >

    < image512x512 > assets/images/x_512x512.png < / image512x512 >

    < / icon >

    The icon appears correctly in iTunes and also icon in the device after installation. but the problem is during the installation of the application in the device, it is show Virgin icon.

    The app is only specific to iPhone devices. for example,.

    < iPhone >

    < InfoAdditions >

    <! [CDATA]

    < key > UIDeviceFamily < / key >

    < table >

    < string > 1 < / string >

    < / array >

    []] >

    < / InfoAdditions >

    < requestedDisplayResolution > top < / requestedDisplayResolution >

    < / iPhone >

    Please help me how to display the icon during the installation of the specific application of the iPhone.

    Hello

    The icon is not displayed during the installation of the application of the ad hoc package. Now, we have published (same code game) app in the Apple iStore and no problem icon with the distributed version (the application that's iStore).

    Thank you

    Chandrashekarreddy Muthumula

  • put a press photo card in a slot SD/MMC-MS/pro does not display the icon of the use of the slot. any idea will be useful.

    After the entry of a multimedia card in a slot SD/MMC-MS/Pro, does not show on the taskbar. When I got here how I stopped it to remove safely.

    Hello

    Thanks for posting your query in Microsoft Community.

    You can follow the instructions below to eject your SD card safely.
    In Windows Explorer, right-click on the drive letter for the SD card, you want to remove and select Eject.

    You can also consult the suggestions provided by Kevin D Souza responded on 23 June 2013 and check if this information helps:
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/safely-remove-hardware-of-SD-card-disables-card/0a5641af-8b55-4C3E-9ddc-158f877e3631

    See also the advice given by guenoun in the thread

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-desktop/safely-remove-hardware-icon-missing-and-cant-eject/e9fda0a2-C308-4853-BF1D-a3926ff0fcd1

    I hope this helps. Just reply with the results.

  • My screen does not display the icons, when I start standby or hibernation. Make it unusable.

    I have a new desktop computer with windows 8. When the computer goes to sleep or turns off, and then I press a button to turn it back on. Desktop does not show icons, rendering it useless.

    Hi Mike,.

    Thank you for bringing the matter to our attention.

    You said that you get not all icons when you start the computer after the sleep or Hibernate mode. We need more information to help you in a better way.

    1 you did all the software and the hardware on your computer changes?

    2. What is the brand and model of your computer?

    3. do you get an error message? If Yes, what is the error message?

    4. When you say that there are no icons, it is a black screen?

    5. are you able to see the icons when you restart the computer?

    Please, try the following steps and check if that helps resolve the issue with icons.

    Method 1: troubleshooting to be able to run and check if this help.

    a. press Windows + W on the keyboard.

    b. type Troubleshooting in the "search" tab and press enter.

    c. click show all on the left panel.

    d. click Power, will new popup window.

    e. follow the instructions on the screen.

    Method 2: try to start the computer in safe mode and also check in the boot.

    Step 1: Try to start the computer in safe mode and check if you still face the question.

    You can check the link below

    http://Windows.Microsoft.com/en-us/Windows-8/Windows-startup-settings-including-safe-mode

    Note: Please restart the computer to start in normal mode after a repair.

    Step 2: Try to clean boot and check if you still face the question.

    Please see the link to start the computer in a clean boot.

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

    Note: After troubleshooting, be sure to start your computer in normal mode by following step 3.

    Method 3: Run SCAN SFC. To run SFC / SCANNOW Please follow steps.

    a. press the Windows key + X, and then click command prompt.

    b. type the command: sfc/scannow , and then press on Enter.

    c. restart the computer and check.

    Note: The tool (SFC.exe) System File Checker scans missing or system corrupted files and repairs them.

    I hope this helps. If the problem started after the "standby mode", please get back to us. We are here to help you.

  • Monitor does NOT display the icons on Start Up, after the fashion 'sleep', etc.

    I recently bought my computer (last Monday) and the monitor turns on so I can see the wallpaper. However, no icons appear! If I unplug the monitor from the power supply and then plug it back it, is! the icons!

    I wanted to post here before contacting HP, because it can be a quick fix and I can't sit on the phone for who-knows-how-long.

    I have the HP p7-1234 and the monitor model number is HP2011-xi. I have Windows 7. Any help would be appreciated.

    Thank you!

    So... Guess what I learned?

    How many cables you have plugged into your monitor?  All came with a white and blue, and I connected the two.  Apparently, this causes the problem, as the two cables are designed to provide both screens.

    Disconnect the blue wire from the computer and the monitor, and then press the "Windows" key with the letter p at the same time.  Make sure 'computer only' is selected in the pop-up window, and then press ENTER.  This, according to an HP support technician, should fix the problem.

    The instructions should make that more clear that the two cables must not be connected on a single monitor, but it can also be common sense for those who have experience with two monitors.

    I've yet to leave my computer unattended to see if that solves the problem, so let's keep our fingers crossed.

  • InDesign CS4 does not display the icon in the shape of triangle for the images changed into links

    My InDesign crashed the other day and now it gives me is no longer the yellow triangle icon in the links Panel to indicate that image has been changed and must be updated. I generally do not connect the image to the original through Indesign, but work independently in Photoshop. This has never been a problem. After that I updated the image in PS, the triangle appears instantly in ID in order to be able to click on it and update the image.

    I can always click on the Refresh button to update the image, but I wish that these rear indicators because it helps me with older documents - so that I can know what are the images really need to update and which are not.

    I restarted the Panel and launched and closed the bridge such as suggested in other older discussions, and he has not made a difference. I also noticed that if I try to open the original image by ID with open with, the icon for the PS, for example, doesn't think I'm in PS (it opens the image in Windowd Paint). It makes me wonder is the whole connection between ID and PS is messed up. How can I correct this connection?

    Have you tried to delete your preferences?  How it is here.

  • After installation that does not display the icon clipmarks, installed twice

    Sometimes, back my icon disappeared, uninstalled and reinstalled clipmarks, twice, but still an icon will not appear. Impossible to use.

    This has happened

    Each time Firefox opened

    == Did not notice until about a month ago

    You can also try to delete files (extensions.rdf, extensions.cache, extensions.ini) extensions.* and compatibility.ini in the Firefox profile folder to reset the extensions registry.

    See "extension corrupted files": http://kb.mozillazine.org/Unable_to_install_themes_or_extensions

    If you see disabled extensions are not compatible on the next departure in "tools > Modules > Extensions" and then click "Find updates" to do a compatibility check.

  • My creative cloud does not display the icon Apps. Help, please!

    Screen Shot 2016-02-19 at 10.04.42 AM.png

    Hi ccdeluca%40hotmail.com

    Please follow the steps mentioned below-

    Let us know if it works.

  • my pc does not display the sound icon and I have no sound of my speakesrs are pluged

    sound works when last used. PC does not display the icon of audio and have no sound

    Hello jeffreysarver,

    Thanks for choosing Windows and thank you for providing an opportunity to help you.

    According to the description, it seems that you are having problems with the sound. As I understand well you can't listen to audio.

    I need to ask you some questions to help you better.

    1. were there any changes (hardware or software) to the computer before the show?

    2. the problem when you play system sounds?

    Perform the steps suggested by Sebastian M from the link below and check.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-pictures/no-sound-in-my-Windows-XP-computer/b2ad45d8-3242-4837-A728-b233ffd3f73c

    Answer to us if you are having problems with the sound or any other problem of Windows, and I'd be happy to help you.

    Good day!

    Hope this information helps.

  • Bug: Trash does not display 'empty' icon when the Recycle Bin is emptied.

    Bug: Trash does not display 'empty' icon when the Recycle Bin is emptied. This only happens when you use customized for the trash icons. The Recycle Bin appears correctly when office is updated.

    It would be nice if someone could answer this question, as it is 8 months old.

    Click Start, type regedit.exe, and then press ENTER.

    Reach:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\ {645FF040-5081-101B-9F08-00AA002F954E}

    Export the branch above into a REG file.

    Exit Regedit.exe

    Open the REG file with Notepad, copy the content and include it with your answer.

    Ramesh Srinivasan . The Winhelponline Blog
    Microsoft MVP, Windows desktop experience

  • Windows does not display the CD-ROM drive

    A week ago, my computer stopped showing me an icon for my DVD player. When I go into the Device Manager there is no option for CD/DVD players. I tried Microsoft Fix It, and he told me that there is no CD drive. I can not re - install a driver because the Device Manager does not display the CD players.

    I did not major changes to my computer I know so I can't imagine what the problem is. Help?

    Trevor

    Hello

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================================

    After the foregoing:

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
    Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and
    the correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even the exact registry for your CD/DVD settings
    drive from someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Dreamweaver does not display the images of the root folder

    Dreamweaver does not display the pictures in the folder root in the browser:

    "< a href ="... /... /.. /.. / gen/index.php "> < img src ="... /... /.. ' / gv_logos/gen_logo.png "alt ="Gen"width ="130"height ="60"> < / a >

    "< a href ="... /... /.. /.. / english/mall/home.php "> < img src ="... /... /.. ' / gv_logos/gen_mall_logo.png "alt ="Mall"width ="110"height ="60"> < / a >

    I use Dreamweaver CS6. I checked display > display external file, it is checked. I unchecked it executed the script, still no change.

    I've been in the problem for weeks.

    It's driving me crazy. .

    Thank you all. I finally discovered what the problem was. My ' link to ' was created at the root of the Document.

    For later use, to all those who may have this problem:

    1. Launch Dreamweaver.
    2. Click on "Site" in the top menu.
    3. Select "Manage Sites".
    4. In the 'Manage the Sites' box, select your local site folder. For example, my_new_site
    5. Click on change icon (it's the second icon on the button "Import Site").
    6. The site for my_new_site configuration (for example) is displayed. Now click on "Advanced settings".
    7. Search "link to:" in the options, select 'Site Root '.
    8. Click on 'Save' later, the box disappears.
    9. Click on 'Done'... and you're done!

    You don't need to restart your computer for the settings save constantly. But if that fell safe, Dreamweaver shut down and restart it. All links should display correctly.

    But it is worth mentioning that all of the links in the following format will have to be edited:

    /.../.../main.php

    Just rewrite the link paths not all scripts.

  • My Firefox has just automatically updated itself to the version 42. The extention under modules page does not display the extensions I have installed.

    My Firefox has just automatically updated itself to the version 42. The extention under modules page does not display the extensions I have installed. The plug in page shows the plug ins I installed. How can I fix it? This happened on my 64 bit Windows 7 partition. I installed the extension "classic add-on" to see if she could solve the problem. There is unfortunately no. I have a screenshot. I'm not sure if I have permission to upload it to the media gallery. I also use Linux, but I did not upgrade that are still there.

    It is possible that there is a problem with the files that store the registry extensions.

    Delete the files (extensions.json, extensions.sqlite, extensions.ini) extensions.* and compatibility.ini in the profile folder of Firefox to reset the extensions registry.

    New files will be created if necessary.

    See "extension corrupted files:

  • my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    Hello

    Follow the instructions here:

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

Maybe you are looking for

  • How to access the remote wifi router

    Hello I have a camera app on my phone where I can log in and check my home monitoring cameras. However, sometimes my homenetwork resets the ip address and if I'm not at home to check my new ip address, I don't know what is the new ip address to use a

  • 2.7.14 firmware update problems

    When I try to update my firmware 2.7.14 I get updated Firmware "error result" encountered an error that put up-to-date abandoned.  Everything works well except my remote access. Any idea?

  • Wmp54g freezes up to Vista when I install it

    Well, after two months of blame Dell for my pc problems, I finally realized what the Linksys pci adapter that is causing all the problems.  I had trouble with this gel upward on the Welcome screen or shortly there after.  Dell had me reinstall the OS

  • Error message in the SFC

    When I run SFC I get an error message on my laptop - I can't paste the CBS.log here - a long and complicated document journal. I ran SFC to see if I had a corrupted file to prevent my laptop from sleep to Hibernate. Any ideas on how to solve this pro

  • Is it possible to access find and replace text in a script?

    I need to replace the part of a chain that has differently formatted text inside all in preserving the formatting.JavaScript or AppleScript