How can I make multi-dpi icons in an IconItemRenderer?

My first custom of building IconItemRenderer and I have trouble getting my multi-DPI of graphic resources to display properly.  Basically, I don't know how to do this.  I can do that quite easily in a button (or any where else, I can use the MultiDPIBitmapSource) but I don't know how to do this in ActionScript.

Can someone lead me to a tutorial (or just give me the answer)?

Currently, I simply called a single asset like this:

private void communicationIconDisplay(item:Object):Object {}

var icon: Class;

var comm:CommunicationInformation = CommunicationInformation (item);

Switch (comm.typeId) {}

case CommunicationInformation.PHONE:

display the icon on the phone

icon = AssetStore.getInstance () .phone160;

break;

case CommunicationInformation.EMAIL:

view email icon

icon = AssetStore.getInstance () .emailAt160;

break;

etc etc.  Thank you!

You can do something like this:

Switch (applicationDPI) {}

case DPIClassification.DPI_320: {}

break;

}

case DPIClassification.DPI_240: {}

break;

}

case DPIClassification.DPI_160: {}

break;

}

}

Tags: Flex

Similar Questions

  • How can I make 300 DPI illustrations?

    I'm working on a series of illustrations for a book in Adobe Photoshop CS. How can I set the DPI to 300 afterwards, that is, after I've already created the illustration? Thanks in advance.

    In the toolbar under 'Edit' to go to the size of the image and set your dpi there.

  • How can I make my desktop icons smaller?

    I have expanded my desktop icons and I can't find where I did, to windows Explorer or control panel or the Center home. I want to return to their original size

    Hello

    Right click on the desktop - display - select size.

    I hope this helps.

  • How can I make sure my internet cable works even if the icon is not displayed by the clock

    I see the wireless connection icon, but I used to see one for the wired connection also. So where is it?

    How can I make sure my internet cable works even if the icon is not displayed by the clock?

    Click Start > Control Panel > network and Internet > network connections.

    Click with the right button on your Local network, and select Properties. In the window properties of LAN make you that these boxes are checked.

    [] Display the icon in the Notification area when connected

    [] Notify me when this connection is limited or no connectivity.

    Click [OK] and get out of here!

    Right-click on start and select Properties. On the taskbar and Start Menu click the taskbar tab, and then click the Customize in front of the Hide icon button inactive and it make sure that the option 'always show' for the local network is selected.

    HTH,

    NASS - http://www.nasstec.co.uk

  • Icons on the homepage are larger than normal, how can I make it smaller. __

    my desktop icons are larger than normal, how can I make the smaller

    Right click on the desktop and click on views and there should be three options for selecting the size of the icons.  If they are too big, choose one of the smaller options and see if it suits you better.

    I hope this helps.

    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.

  • How can I make icons clickable notification?

    Hello

    I am writing an application that runs at startup and is a background service. I have an icon that appears in the ribbon (?) at the top, alongside the missed calls and text message notifications.

    My question is, how do I make my clickable icon as the icon of missed calls? OR on non touch devices, how can I leave the focus of the user on the icon using the trackball?

    The reason why I want it to be clickable/Active is just if I post a status message and identification number.

    Thanks for the help!

    Welcome on the support forums.

    the class that you are referencing is
    http://www.BlackBerry.com/developers/docs/6.0.0api/NET/RIM/BlackBerry/API/MessageList/ApplicationInd...

    as much as I know there is no way to implement this feature, it seems that RIM uses the internal API to get the behavior of native applications.

  • How can I make iOS safari bookmarks 9

    How can I make a bookmark in Safari in iOS 9? My wife Samsung has bookmark icons that appear on the desktop. Can I do this?

    To Add a site to your Favorites in Safari, follow these steps. First of all, make sure you are at the top of the Web page so that you can see the address bar. Look at the bottom and tap and HOLD the third icon (it looks like a page).

    If you hold down the icon a popup appears:

  • How can I make the biggest impression

    How can I make the biggest impression on all Web sites? where is the setting? Thank you!

    To temporarily make more big, click on 'view' in the menu, then choose 'Zoom' & then it will allow you to set the zoom to larger or smaller.

    If you want to definitely bigger, if you have a Mac, click on 'Firefox', then 'Préférences' / If you have Windoze choose 'Tools', then 'Options' (both look the same from here...), then click the "Content" icon and change the font size.

    That should do it...

  • The address window has been reduced. How can I make it any longer so I can see the address (or most of them at least)?

    I've updated to Firefox for Mac 3.6.23. I have OS 10.4.11. Immediately, I noticed that the address window has been reduced to about half an inch. The search engine is long, like the address used to be window. It's not good for me. I usually use the address window to make changes and move it to a new page. I can't do it now. How can I make long once again the address window? Can I return to 3.6.22? I need this long window.
    Sincerely,
    Gerald E. Strickland
    Bradenton, Florida

    You can place the mouse between the address bar and the search bar, and it will become an icon of resize.

    Press the left mouse button and drag it to the right to make the larger location toolbar.

    You can also reset the related wides by deleting localstore.rdf in the Firefox profiles folder

  • How can I get the airplay icon to appear? Changing the settings of firewall does not work

    How can I get the airplay icon to appear? Changing the settings of firewall does not work

    Hello Drjoe378,

    I understand that you do not see the AirPlay icon in iTunes on your Mac. If you have verified that your firewall is disabled or that the problem occurs regardless of the status of your firewall, there is a little more that can help return your ability to connect to AirPlay devices.

    1. Make sure you have the latest version of iTunes and Apple TV software.
    2. Connect your computer and other devices on the same network Wi - Fi. If you are using Ethernet, connect the two devices on the same router or hub. If you use the Wi - Fi and Ethernet, plug your device AirPlay the same router that your computer uses for Wi - Fi.
    3. Restart your computer, device AirPlay and network router.
    4. Because some Airplay devices include a power switch for AirPlay option, look for the option in the settings and make sure that the feature is enabled. Refer to the user guide of the device for more information.

    Use AirPlay to stream content from iTunes on your computer wireless
    https://support.Apple.com/en-us/HT202809

    All my best.

  • How can I make the screen keyboard on disappear?

    How can I make the screen keyboard on disappear?

    Press the key at the bottom far right (icon with an arrow to the bottom of the keyboard).

  • How can I make use of TC partitions and make sure that the file analysis is on the right partition?  I do not see the partitions that I have done in the Finder, but I can drag and drop the files in the folder 'Data' unique under Finder/Shared/TC.

    MacBook Air, OSX 10.10.3, 128 GB; 2 TB Time Capsule ME177LL/A.

    Final objective: use Time Capsule as a Time Machine for my MacBook Air and as a storage solution for large files that I don't want permanently on my MacBook Air.

    So far, I've implemented the TC and set up Time Machine on the TC.  I was able to create 2 partitions on the TC using disk utility then that TM was a backup and the disk was recognizable in disk utility.

    Under Finder/shared, I see the TimeCapsule 'airport', and when I click on it it is a file called "Data".  I was expecting to see my two partitions here.  Under 'Features' is a ' Zissou31 MacBook Air (3)"sparsebundle file and I can also create folders here and drag and drop files on the TC here.  I can see the partitions in disk utility, but how do I see/use the partitions I created in the Finder?

    I fear that this may not be set up correctly and I'm either losing on an entire partition I created or these files dragged/dropped may be at risk of overwriting of TimeMachine.  How can I make sure that the file analysis is on the appropriate partition?

    I disabled TimeMachine and go back to see if I could 'point' to one of the partitions, but the "Data" folder is the only thing that TimeMachine seen.  How do I point time Machine for one of the partitions?

    Thank you!

    In addition, in disk utility, I can see one of the partitions TC is related to the time Machine, indicated by the icon Time Machine green bottom left, but two partitions seem to fall under "Zissou31 of the MacBook Air (3) .sparsebundle.

  • How can I make my favorites appear in bold?

    original title: How can I make my favorites appear in bold? I've seen bad eye.

    How can I make my favorites appear in bold? I've seen bad eye.

    Hello

    What operating system do you use?

    Here are the articles that might help you to change the font style to "BOLD" for all items on the windows Explorer. It is not possible to change the font style for my favorites.

    You may need to select the icon, under the drop-down list of items, seemingly advanced (for windows XP) or Windows color and appearance (for windows vista and 7).

    To change your window fonts
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/display_ct.mspx?mfr=true
    Change Windows fonts
    http://Windows.Microsoft.com/en-us/Windows-Vista/change-Windows-fonts
    Change Windows fonts
    http://Windows.Microsoft.com/en-us/Windows7/change-Windows-fonts

  • Windows Vista - How can I get the volume icon in the notification area

    original title: how to make the volume icon back of the im notification Vista box, I get the notification area, but it won't let me click on the volume icon

    How can I get the volume icon in the im notification Vista box I can up the notification area but it won't let me click on the volume icon only clock

    Hello

    Try Method 3 in the provided link (you have method 1 already tried without success):

    "How to activate or disable the Notification area system icons in Vista"

    http://www.Vistax64.com/tutorials/106787-notification-area-system-icons.html

    See you soon.

  • How can I make Lightroom my default picture on my Mac software?

    How can I make Lightroom my default picture on my Mac software?

    Hello

    Step 1

    Find your file and right click (Alt - click) the icon. This will bring you a menu with a number of actions in this regard. Click info

    Select Get Info

    Step 2

    You will be presented with a window that looks like the image below. Here all the information on the file that you selected, including its location on the Mac, the size of it and much more. What interests me is the section in the red zone.

    The Open with: section shows the current application that this type of file opens with, and clicking it it shows a drop-down list that hosts the application different types you can choose. Click on it to reveal the menu drop-down

    Step 3

    Drop-down choice of application

    You will be now be presented with something similar to the image above - a list of applications that can open this type of file. Select the one that you want to be the new default application.

    Tip: If your application is not in this list, you can select other at the bottom of the list to navigate through all of your applications on your Mac

    Confirmation

    Press the continue button in the pop-up dialog and you're all set!

    Thank you

Maybe you are looking for

  • SD card reader does not read SD cards

    Hey, its me again. Yesterday, I tried the card reader built into the laptop yesterday, and to my disappointment, it simply does not work. I push the card, and after that I heard the click, it sits in the slot of how it is supposed to. The light turns

  • Failure to scan all-in-one Officejet 4315xi

    I have an Officejet 4315xi all in one.  After that I sent my last fax, the message "failed to scan.  Unable to scan, copy or fax"displays on the screen of the printer.  I powered it on and outside.  I tried it on another computer.  Is anyone know how

  • Update of firmware for 30 d

    EOS 30 d: I thought I was to update the firmware, but missed the last of them, old several years now.  I 1.0.5 but 1.0.6 is indicated as the last.  When I go to the page of the software for 30 days, it shows the download, but by clicking on the butto

  • Enhanced rate of the Bluetooth Win7 T420s

    @All: I have a question for experienced users. I installed, since the Update Manager, Bluetooth with enhanced data rate software. Today, I used BT for the first time and Win7 installed another piece of software for the connection. Only one I use now,

  • Multiple Applications open not showing Application Active

    Throughout the day, I have several applications like Excel, Outlook, Explorer, etc.  I find often times when I close a document that my screen displays an open application, but this application is not active then when I click it nothing happens.  It