ItemRenderer type image display and the object

I have an element converter that displays my image and object type (in the text which is scheduled on my image) as below snapshot.  How can I remove the text of object type?

wrongTypeDisplay.jpg

The first line is supposed to be, supposed to be a chart title.  But my problem is whence the text "[BitmapImage object]"?  Here is my code itemRenderer:

<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                    xmlns:s="library://ns.adobe.com/flex/spark" 
                    xmlns:mx="library://ns.adobe.com/flex/mx" 
                    autoDrawBackground="true">
     
     <fx:Script>
          <![CDATA[
               protected function getImage(event:MouseEvent):void {
                    //largeImage.load(event.currentTarget.getRepeaterItem());
               }
          ]]>
     </fx:Script>
     
     <s:states> 
          <s:State name="normal"/> 
          <s:State name="hovered"/> 
     </s:states>
     
     <s:Image source="{data.source}" maxHeight="100" maxWidth="100"
                horizontalAlign="center" verticalAlign="middle"
                click="getImage(event)" />

     <s:Label text="{data}" maxWidth="60"
                color="blue" textAlign="center"
                verticalAlign="middle" />

</s:ItemRenderer>

The source is from a DataGroup in the main.mxml with a dataprovider of an ArrayList:

<s:ArrayList id="tempData">
               <fx:String>1 Picture</fx:String>
               <s:BitmapImage source="I:\Documents\development\SERCO\SNA_media\pictures\1.jpg"/>
               <fx:String>2 Picture</fx:String>
               <s:BitmapImage source="I:\Documents\development\SERCO\SNA_media\pictures\2.jpg"/>

Any help/direction on getting to not display the type of object would be greatly "reverend."

Tony

Hi Tony,.

#1

(first) that you are using the definition of unusual data source - which does not use instances of object with properties - direct burt of values ordered by the order in which they are declared (label/path/label/path) - although I've seen these examples by Adobe itself:

http://www.Adobe.com/devnet/flex/videotraining/exercises/ex4_01.html

That the first part of the series uses exact application you are currently using. You will see that it is quite complex because of the different nature of the objects hosted in the list table - which requires quite * rare * (read: not often seen) approach to data binding.

#2

(second) which is supposed to already you - and what is being discussed in the second part of the article from Adobe is the most common way to provide data to the lists: array of objects (list):

http://www.Adobe.com/devnet/flex/videotraining/exercises/ex4_02.html

It's more natural: there is an object that has * label * and * way *: label describes object that contains the path where the image.

With this second part of the sample of Adobe list table example could be defined in a more natural way:

[code]


     
     
     

then in the converter of label.text element could be related to {data.label} and source of the BitmapImage to {data.imageFile} respectively (or any given property name, you must use when you declare your data providers) in the definition of your ItemRenderer (see related part of the Adobe tutorial which deals only)

Is here more general informative tutorial from Adobe on 'data provider' (arraylist, list, etc.) in the Flex SDK kit:

http://www.Adobe.com/devnet/flex/QuickStarts/using_data_providers.html

HTH,

Kind regards

Peter

Tags: Flex

Similar Questions

  • Type of display and Dell U2413 technology?

    Hello! I have Dell U2413 monitor and i1Display calibration Pro and X-Rite i1profiler software. My question is, what should I choose in the list below? Select your type of display and technology CCFL Wide Gamut CCFL white LED RGB OLED Plasma RG Phosphor projector LED

    "RG Phosphor", all of Dell's GBLEDs share backlight type: U2413, U2713H, U3014 and the 4 k monitors UP2414Q and UP3214Q.

    It is the same for all that the GBLED you want to calibrate with an i1DisplayPro, Dell or not

    Edit:
    BTW do not use i1Profiler, use 1.5.3 BOF CAL1 and CAL2, and ArgyllCMS 1.6.3/DispcalGUI 2.1 with spectral correction GBLED (phosphorus RG) to calibrate "Custom color", "sRGB", "AdobeRGB" or "Standard" OSD mode.
    Just search this forum

  • corrupted image displayed when the value horizontal elasticity 'contract '.

    Hello.

    Using forms and reports 10.1.2.3.0

    I got a report where I'm trying to show the images centered horizontally in their surroundings.

    To do this, I created an image element within the framework (a rehearsal setting, because the images are extracted from the DB), manually it centered within the frame, attached with an anchor to his surroundings and define its horizontal elasticity of 'contract' (vertical elasticity is set to "fixed"). It is actually the preferred method to do this and some threads in this forum recommend it.

    What I got in the PDF file was an image corrupted in some circumstances.

    To refine what I've created three different images (width * height)

    1. 1000 * 666

    2. 1000 * 750

    3. 1000 * 800

    load in the DB and tried to run the PDF file. You can see the result in the following screenshot:

    garbage_example.jpg

    When I put the horizontal elasticity "fixed", the image is not damaged (this is not a solution because the image is left aligned then).

    Setting the OUTPUTIMAGEFORMAT to something different than default (JPEG) has not changed anything.

    Interestingly enough the Foxit PDF Reader it shows correctly, while AdobeReader X and XI and Inkscape even show the image corrupted (not only on my PC).

    We tried with multiple images/photos, and the only ones to be displayed correctly seem to be images with a 4:3 aspect or higher report. I was not able to determine exactly to what extent this behaviour.

    Anyone have any idea what may have caused this?

    Thanks in advance

    Markus

    Found a solution that is rather surprising for me: the value of the vertical elasticity of the image of "contract".

  • Recommended image size and the dimensions of the images on the retina of the iPad?

    What are the recommended dpi of the image size and the dimensions of the images designed in such DPS displayed on a retina iPad app?

    Take a look at the following link:

    http://blogs.Adobe.com/indesigndocs/2012/03/guidelines-for-creating-folios-for-iPad-3.html

  • I use iWeb to update a Web site and the objects appear in Safari unless you have a hyperlink when they download.  Is it because iWeb can only support a limited number of links, hypertext, or any other reason?

    I use iWeb to update a Web site and the objects appear in Safari unless you have a hyperlink when they download.  Is it because iWeb can only support a limited number of links, hypertext, or any other reason?

    It has been much discussed.

    See my solution in this post:

    Re: Re: iWeb Publishing Solution in El Capitan

  • Revolution of the object and the object Cube transitions do nothing?

    I love the transitions of the 'object' - Flip Object, object Pop, object Zoom, etc. But two transitions do not seem to do anything. Revolution of object (which is new) and the object Cube (which is not) do not seem to animate anything on the slide. Am I missing something?

    Both work fine on our systems at Yosemite

  • Satellite 1000-Z2: I need a driver for the display and the LAN

    Hello

    I reformatted my laptop S1000-Z2, and I have a real problem trying to find all the information about this model!

    Basically, I need a driver for the display and the LAN?

    Best regards

    Austin.

    What operating system do you use?
    If you use XP, you will not find the network on the site recommended driver driver!
    I can't give you advice where to find such driver because I don t know what the LAN card is installed in your oldie.

    But why you n t check yourself? Try to know what the LAN card you use and googel a bit for compatible applications ;)

  • Motherboard model H535 failure - the type of machine and the serial number invalid after replacement

    Does anyone know how to set the new Type of Machine and the serial number after a motherboard for a replacement model H535?

    The motherboard has recently failed on my model H535 (7 months after the expiration of the warranty - thanks, Lenovo). No local garage would agree to replace due to its nature of owners (thanks, Lenovo). I spent about four hours on the phone being bounced into back-and-forth between the many support staff (usually combined) Lenovo in sales, technical support, support of parts of IBM and various other departments (thanks, Lenovo), which one has suggested that I might have to try to find a motherboard on Ebay or Amazon for my computer in less-than-2-year-old. However, I finally get to someone at Lenovo, which has been able to sell a motherboard - for 2/3 of the cost of the original computer.

    Now, I installed the motherboard, and it works. However, during each boot, I get a POST with two beeps error which reads as follows:

    00CE error: Machine Type and serial number is INVALID

    Start of manufacturing sequence is taken if no selection is made

    I presume that the BIOS on the new motherboard must be programmed with the right Type of Machine and the serial number of my computer. I've read various things on the Internet about what to do, as updating the BIOS (I can not even find a BIOS under "downloads" of support for the H535 - thanks, Lenovo model), using WinPhlash (I apparently need one kind of BIOS ROM file to make it work, I don't have), getting a Lenovo hardware maintenance disk for my model (which apparently isn't available for other special people only me - thanks Lenovo), etc.

    The waiting time for Lenovo support are ridiculously long, and almost every customer support person is ridiculously uninformed on the difference between one of their computer models, and even less their motherboards (thanks, Lenovo). I am amazed and extremely frustrated. It shouldn't be rocket science.

    On a side note, I initially bought the computer from Staples with a credit card with extended warranty protection, which means I can get a refund for repair. Although the motherboard came with a packing list, no Bill has been provided by Lenovo, and I couldn't make them send one - or maybe even with success to explain what a Bill is (thanks, Lenovo).

    Well, Lenovo support was useless, and any alleged authorized suppliers were in fact still suppliers or could help with my problem. But I was finally able to fix it myself. Once I found the right piece of software, it has been fixed in less than a minute.

    My BIOS is by American Megatrends, and I discovered that they have a set of utilities that includes a called AMIDEDOS. It is intended for manufacturers to be able to change the strings of text stored in the BIOS for things like the manufacturer, product name, Version, number series, UUID, SKU number, family, etc., that is what I had to do. It is not intended for use by consumers, but it's there.

    When I ran the "DMIEdit.exe" program AMIDEDOS (clicked and ran as administrator from 10 Windows) and click on "System information" from the list, I saw "Product Name | STRING | Invalid' and ' serial number | STRING | NOT VALID ". The other fields appeared to have valid entries. I double-clicked on the fields valid and changed their "H535 model" and the serial number of my computer, respectively and then clicked on "Update all" at the top.

    Much to my surprise, he reported that he had successfully registered the new information. And, perhaps even more surprising is the fact that, when I rebooted, the double beep and the warning about the type of computer not valid and serial number have disappeared. In addition, the BIOS showed I had entered the new values, and the 'Manufacturing Boot Sequence' option (I understand can be much slower than a normal boot) had disappeared.

    Again, I'm a little surprised simple it was actually solve the problem once I got the correct software, or Lenovo part nor American Megatrends apparently offers to the owners, and it took hours and hours of research and research to understand. Use this information at your own risk, however, as playing with BIOS apparently can lead to problems not easily solved. That said, the modification of these text strings seems relatively safe.

    I will mention that I also ended up changing the method of "LEGACY" to "UEFI" boot in the BIOS after noticing that the selection.

  • read the type of variable and the value of LabView

    With the help of the TS. Class sequence that I try to get the type of variable and the values of local variables, parameter, fileglobal and stationglobal. Unfortunately I'm not able to find the right function. Hope someone can help me.

    Kind regards

    Lars

    Hello

    Maybe this simple TestStand example will help you.

    The API calls for LabView are the same...

    Hope that helps

    Jürgen

  • How can I find out what type of ram and the maximum amount that I can add to my: xp professional 32-bit PC?

    How can I find out what type of ram and the amount, maximum I can add to my: xp professional 32-bit PC?

    Thanks, GregCY

    Original title: RAM

    Fastest and easiest is to go to http://www.crucial.com/systemscanner/ and download and use the scanner.

  • Using an external display and the adapter on a laptop with Vista.

    I have a Dell Latitude D830 with Mobile Intel 965 video drivers. I also have a Dell D Dock with a Nvidia Geforce 6200 graphics card in the PCI slot.

    I understand why I can't use both of these cards together at the same time on a vista machine. I wish I could use only the adapter Nvidia docked and only the adapter PC mobile native while undocked, is it possible to do?

    I don't know if this can be done automatically, but I think it's possible with a minimum number of keystrokes (and properly configure the video settings for each monitor and video card).  Here's how:http://windows.microsoft.com/en-us/windows-vista/Set-up-multiple-monitors.  Check out the other articles referenced in this one to lead you through a bunch of articles on the dual display and the configuration, installation, troubleshoot and work with them.  I don't understand all the other links here - just follow those of the first and they will lead you to all the others.

    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.

  • Downloaded photoshop elements 12 ok installed and activated, it started and the start screen is displayed and the application is started then stop

    Downloaded photoshop elements 12 ok installed and activated, it started and the start screen is displayed and the application is started then stop immediately.

    Repetition and crashes again. Help it does not start!

    Solved! Tried everything in support documents and none of it worked. Frustration massive Adobe Chat staff who knows nothing and just told me to look at the documents of support again and again. They also gave me a phone number in Australia which has a recorde d message saying that the product is not supported! What is everything?

    Finally Adobe technical support Anand called me (from when I have opened the original case of support which gave me the serial number).

    Just had to rename the file SLCache in c:\program (x 86) and again the EULA and reactive. Now everything works fine. Way to hard.

  • I downloaded red CS6 plugin and added to the contents of the package, replaced the existing files with the new without saving, now my thumbnails images RED and the color correction do not WORK! How to bring back my old file importerRed! ?? Help!

    I downloaded red CS6 plugin and added to the contents of the package, replaced the existing files with the new without saving, now my thumbnails images RED and the color correction do not WORK! How to bring back my old file importerRed! ?? Help!

    Try asking in the forum Premiere Pro seems to be an Adobe first Pro Lab

  • image shows not when you use the element type image display

    Hi all

    My table has a blob column containing images

    However, they are not displayed

    I have a type of image screen called P6_DISPLAY_IMAGE, its source is a db column called PRODUCT_IMAGE

    I think I did everything correctly

    Please take a look at apex.oracle.com:

    workspace: martijnke

    login/password: demo/demo

    application: 78396 test voor Bernd

    page: 6 (just click on the products in the menu bar and click on the first column)

    as you can see, the display of the image (bottom) remains empty

    any help would be appreciated

    KR

    Martin

    Martijnke wrote:

    My table has a blob column containing images

    However, they are not displayed

    I have a type of image screen called P6_DISPLAY_IMAGE, its source is a db column called PRODUCT_IMAGE

    I think I did everything correctly

    Please take a look at apex.oracle.com:

    workspace: martijnke

    login/password: demo/demo

    application: 78396 test voor Bernd

    page: 6 (just click on the products in the menu bar and click on the first column)

    as you can see, the display of the image (bottom) remains empty

    Thanks for making the effort to demonstrate the problem.

    It seems to be nothing more complicated than missing data. Run this query showed that there is no data in the BLOB column for all rows:

    select product_id, product_name, dbms_lob.getlength(product_image) from apa$nf_products
    

    I downloaded an image of the product of the belt and it seems to work fine.

  • Heading1 background image displayed in the topic pane, but not in the preview or output of WebHelp

    I configured my H1 style so that it has a gray background color and a background image that I've specified to display to the left and down with no recurrence. I also added a quantity of filling down so that my background image is forced to land. The effect I created looks like this:

    h1.gif

    As you can see it looks good in the topic pane, but when I saw the topic or compile the project and view the output looks like this:

    h1-preview.gif

    Can anyone help?

    Thank you

    Jonathan

    Hello

    Background-attachment is the culprit, you also had two background images specified, so I deleted the redundant style:

    H1 {}

    do-family: Arial, without serif.

    font size: large;

    margin-bottom:-9pt;

    top of the margin: 6 pt.

    padding-top: 5px;

    padding-left: 5px;

    padding-right: 5px;

    padding-bottom: 16px;

    Color: #000000;

    make-weight: normal;

    make-style: normal;

    background: url (arrow.gif) non-repetition low left.

    background-color: buttonface;

    x-next-type: P;

    }

    Just replace the H1 with the code above, and you should be all ready to go.

    Take a bow

    Willam

    This email is personal. In our view, full disclaimer, please visit www.centric.eu/disclaimer.

Maybe you are looking for