Help to make this example work

Hello
I am facing a problem in the display of dynamic images. I'm pasting my MXML code. This code is does not return an error, but still does not. in this example when I click on the image control rack should take its source from the column of the click.

<? XML version = "1.0"? >
<!--itemRenderers\inline\InlineDGRenderer.mxml-->
"< mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml" > "

< mx:Script >
<! [CDATA]

Import mx.collections.ArrayCollection;

Variable in the Application scope.
public var localVar:String = 'Application localVar ";

The data includes the URL for the album cover.
[Bindable]
private var initDG:ArrayCollection = new ArrayCollection([)
{Artist: 'Pavement', Album: 'Slanted and enchanted',}
{Price: 11.99, Cover: ' images/telephia_logo.jpg'},
{Artist: 'Pavement', Album: 'Brighten the corners',}
{Price: 11.99, Cover: 'telephia_logo.jpg'}
]);

Retrieve the image associated with the item selected in the grid.
private void getImage (): void {}
var cartGrid:DataGrid = dgrid;
var imageSource:String = ' images /' + cartGrid.selectedIndex;
Image1. Load (imageSource);
}
[]] >
< / mx:Script >
< mx:DataGrid id = "dgrid" dataProvider = "{initDG}.
variableRowHeight = "true" change = "getImage (); ">

< mx:columns >
< mx:DataGridColumn dataField = "Cover" / >
< / mx:columns >

< / mx:DataGrid >


< mx:Image width = "150" height = "100" id = "image1" source = 'imagesource' / >

< / mx:Application >

Please tell me how this could be done also work if anyone has an example of similar work please tell me. My requirment is used to display the images and the path must be taken from the column in the grid

It was easy, that I should have done before
selectedIndex returns the column index and not the data in what was the pnly reason why he wass does not
If you keep the image as 1.jpg, 2.jpg names, that it works well

Anyway, now I have to look for something that gives me the path of the source in the column, not the column no.

Tags: Flex

Similar Questions

  • Need help to make my printer work with the new laptop.

    I just bought a laptop ACER Aspire V5-571. At the Windows experience index. Intel (R) core, 64-bit. My current project is gettting my 2005 Dell all-in - one 944 to work with my new laptop. I passed on the line and installed the recommended driver and used the printer to scan a document I then sent an email, but for some reason my computer any it will not print a page from an online account. Keeps saying needs of troubleshooting and I need to download the driver, which I did, a Vista 7 64-bit-compatible driver. How can I make this work? or what other driver or update do I need?

    It seems that Vista drivers are the latest Dell has provided.  I noticed that, they say, you have to install all the drivers for this device before installing the Vista (s).  I found the link depending on whether you should check out

    http://support.Dell.com/support/topics/global.aspx/support/KCS/document?&docid=270659&doclang=en

    Some older printers have no Windows 7 drivers, but usually the work of those of Vista.  If they are not, you can use XP mode if you have the professional or Enterprise version of Windows 7 Ultimate.  If you have the Home Premium version, you can use him anytime upgrade to professional for $90.  Of course to buy a new printer is always an option too.

    As you probably know, it is the responsibility of the manufacturer to provide drivers.  Many manufacturers have refused to provide any Windows 7 drivers for older devices.

    Good luck.

  • OfficeJet pro 8600 printer-how to make this program work and installation?

    I have problems printing. I wonder how to ste it to the top and do work.

    Moved from feedback

    Original title; printer Officejet pro 8600

    Hi David,

    1. what operating system is installed?

    2. what security software is installed?

    You can go through the printer manual to know how to set up the printer and make it work.

    You can also refer to these items and check if that helps.

    http://h30434.www3.HP.com/T5/printer-all-in-one-install-setup-e-g-Windows-8/How-do-I-install-printer-software-on-HP-OfficeJet-Pro-8600/TD-p/1123283

    http://h30434.www3.HP.com/T5/forums/SearchPage/tab/message?filter=labels%2Clocation&location=Forum-Board%3AInstall&q=OfficeJet+Pro+8600+printer

    Let us know if you need assistance with any windows problem. We will be happy to help you.

  • What is the best technique to make this page work?

    Here is a link to a jpg file showing a design for a portfolio site that I am building:

    http://i287.Photobucket.com/albums/ll130/Mickmastergeneral/test_modeling_texturing.jpg

    The image of the mountain BIKING will be a Qucktime file; the visitor will be able to rub the cursor to see a rotating pre-rendered model. The visitor will then be able to view a different model by clicking one of the thumbnails at the bottom of the page. So far so good.

    But the visitor will also have the ability to view the model texture map in a new window (by clicking on one of the icons on the right texture map), as well as choose wired or mode shaded (by clicking the appropriate text button; cela would load a quicktime movie of either a wire or textured turnaround model).

    So, the trick is to get all the stuff appropriate to load when the user clicks on a thumbnail lower display: Quicktime movie, the card icons of a texture that is appropriate for this model (which must in their turn to post a link to pages with the correct image) and text buttons "Shadow" & "Wired" (which has a link to the appropriate Quicktime movie).

    I don't have any web design over the years, so I use an older version of DW (Dreamweaver Ultradev 4), and I'm certainly not up on top of the latest techniques. I know how to work with frames, but I heard it's a good idea to stay away from them. Layers would work for this? I worked with behaviors and I know how make image exchange and hide/show layers, but I don't know how (or if) I can use this trick to make the appropriate texture and wireframe/shaded links appear. Any ideas how should I proceed?

    Without going into the details of your proposal, here are a few basic rules for you-

    1. do not use Quicktime - do not use Flash.  A lot of people don't have installed Qt.  Most have Flash.

    2. do not use frames.

    3 do not "Layers" until you understand the absolute positioning and the consequences of their use.

    Some ancient time, UD will work just fine, even if it shows very well the CSS layouts in its creation.  And to prepare for this, you will definitely want to study some HTML and CSS.

  • Cannot print on the back with Win 7 on my 7410xi. How to make this feature work? CC = en

    Recently changed from Win XP again Win 7 on a new PC.  Downloaded new driver and the feature in XP under 'Basics' gives me the ability to reverse print.  Cannot find this feature in the newer version.  Everything for my banking is set up to collect setbacks.  This feature was there and I can not find?  Please tell me how to put in work.  If this isn't the case, it must certainly be a feature added to an update as soon as possible.

    Go to start, devices and printers, right click on the Officejet 7410, select the options in Advanced Printer preferences and change the order of pages.

  • could use help to make this conditional script auto play managers

    I am disassemble animation example scenario to learn on board.

    There are 4 buttons for 4 different labels on the chronology of the scene. Each departure of labels in a new symbol.

    A calendar of the coast have animations within them.

    Now by clicking on the right button sets a variable that moves the playhead of the corresponding label. There is also the forward and back arrows.

    But he is now a right of "go to and stop. I just want to "go and play" so that the animation of the cycles automatically if the buttons are not that is clicked.

    Button code:

    mouse over:

    Insert the code for mouse enter here

    this.circleBtnSymbol = sym.getSymbol ('btn_circle1');

    this.circleBtnSymbol.stop('on');

    mouse over:

    Insert the code for mouse leaves here

    If (this.activePanel! = 1).

    {

    this.circleBtnSymbol = sym.getSymbol ('btn_circle1');

    this.circleBtnSymbol.stop ('off');

    }

    Click on:

    Insert the code for mouse click here

    this.onClickCircleBtn (1);

    Chronology of the scene:

    on 'market' first circle btn

    this.circleBtnSymbol = sym.getSymbol ('btn_circle1');

    this.circleBtnSymbol.stop('on');

    Insert the code for the event here compositionReady

    Global var

    this.activePanel = 1;

    this.prevPanel = 1;

    this.panelCount = 4;

    this.panelObject;// Panel

    this.circleBtnSymbol;// circle btn

    this.arrowBtnSymbol;// arrow btn

    on 'market' first circle btn

    sym.getSymbol('btn_circle1').stop('on');

    called internally only

    this.changePanel = function()

    {

    -change the Panel

    This.Stop ('panel' + This.activePanel);

    this.panelObject = sym.getSymbol ('panel' + this.activePanel);

    this.panelObject.play (0);

    -set the States of circle btn

    Disable all btns

    var i = 1;

    for (i = 1; i < = this.panelCount; i ++)

    {

    this.circleBtnSymbol = sym.getSymbol ('btn_circle' + i);

    this.circleBtnSymbol.stop ('off');

    }

    Set active btn

    this.circleBtnSymbol = sym.getSymbol ('btn_circle' + this.activePanel);

    this.circleBtnSymbol.stop('on');

    Console.log ("this .activePanel =" + this.activePanel);

    }

    this.onClickCircleBtn = function (arg)

    {

    Console.log ('onClickCircleBtn');

    If (arg! = this.activePanel)

    {

    this.activePanel = arg;

    This.Stop ('panel' + This.activePanel);

    this.panelObject = sym.getSymbol ('panel' + this.activePanel);

    this.panelObject.play (0);

    this.changePanel ();

    }

    }

    this.onClickLeftArrow = function()

    {

    Console.log ('onClickLeftArrow');

    If (this.activePanel > 1)

    {

    -this.activePanel;

    } else {}

    this.activePanel = this.panelCount;

    }

    this.changePanel ();

    }

    this.onClickRightArrow = function()

    {

    Console.log ('onClickRightArrow');

    If (this.activePanel < this.panelCount)

    {

    this.activePanel ++;

    } else {}

    this.activePanel = 1;

    }

    this.changePanel ();

    }

    Thank you.

    Sorry to paste all of the code.

    Code is correct but the chronology is not correct.

    Before chronology:

    Timeline after:

    You can download the new file here: https://www.box.com/s/simhjfjh2ch072roobz5

    I changed the timeline by drag-and - drop items [panel2, panel3, panel1, panel4].

  • Win 95/98 and xp - download fractal program = works ok; Download program OK vista; try to run = "vista does not support the mode full-screen" I do not understand this. What can we do to make this porogram work?

    the downloaded program title is taken from the site spanky. the title is frain204 zip

    Have you checked with the person or the company that produces the show? Whereas it is for Windows 95, 98 and XP, it may well not be compatible with Vista.

    "spud-u-like" wrote in the new message: * e-mail address is removed from the privacy... *

    the downloaded program title is taken from the site spanky. the title is frain204 zip

  • Action Script 3 help me with this tutorial?

    Can someone show me what code I am supposed to have done at the end of the tutorial. In my version does not have the button I click to pass the game.

    Activity 3:

    Goal: Creating a new INIT function for the screen 'start '.

    1. the next stage of this game is to create a screen of 'start '. Now, this will be the

    the first thing that loads when the game starts, if the suggestion is to bring us some changes

    the structure of the current game. The first thing is rename:

    private void init(e:Event_=_null):void

    TO:

    private void game(e:Event_=_null):void

    It helps to make this feature more obvious and the most appropriate title.

    2. now that we have made this change, we can recreate a new init function for the

    splash screen. We create this above game function.

    The new init(e:Event_=_null):void public void will contain:

    • Declare the boot as a new getCurrentCard image;

    • Add as a child• position properly in the center of the screen.

    Test and annotate

    3. now that the picture of the Start button appears on the screen in an appropriate way, there

    make clickable. Thus, within the new init function add an EventListener ' ', which is

    a "MouseEvent" CLICK, which will lead you to a new method called "startgame()".

    4. now that the earpiece is in place so we need to make the public function called

    "startgame()", for which the previous listener is pointing. It will look like:

    public void startgame(e:Event):void

    {

    SOME CODE

    }

    This should be under your init function. The part "e: Event" indicates that it will be

    have some kind of action event on to it.

    5 in this method, it must put in place a statement that will send the player to the game

    even when the boot image is clicked. It will be an "If" statement and will look like

    this:

    Start = > the e.target == start = (True) = > removechild (start) = > game() = > stop

    This looks like a pretty poor tutorial.  but

    public void init(e:Event=null):void {}

    go = new getCurrentCard;  You must declare GB

    addChild (GB);

    go.addEventListener (MouseEvent.CLICK, startgame);

    }

    public void startgame(e:Event):void {}

    removeChild (start_mc);  where start_mc is the movieclip of your start screen

    addChild (game_mc);  where game_mc is the movieclip of your game

    }

  • Please God. turn off this product. Your help desk services do not work, cannot turn off. I use the retail SECTOR, xi of adobe acrobat. Connected to the internet. On more than 20 min. open for disable grayed out. Windows 7 pro x 64. This shit makes people

    Please God. turn off this product. Your help desk services do not work, cannot turn off. I use the retail SECTOR, xi of adobe acrobat. Connected to the internet. On more than 20 min. open for disable grayed out. Windows 7 pro x 64. This shit makes people use fraud. I just want what it OFF can be USED on another COMPUTER.

    can anyone in the customer support to disable this?

    Hello Terry,

    I checked the serial number and found that you have enough number of activations left to install on 2 computers.

    Please uninstall the software and activate it on another machine. In case of problems please let me know and I'll help you.

    My direct email: [email protected]

    Chat Support email:

    http://helpx.Adobe.com/x-productkb/global/Service1.html

    Kind regards

    Rave

  • help make this work as a 3.0

    why I get this error? How should I do? IM after a tutorial flash 8 and im using cs3 is the main problem only I came across so far please help me convert this to make it work as a 3.0

    WARNING: 1090: Migration issue: the onRollOver event handler is not triggered automatically by Flash Player running in ActionScript 3.0.  You must first register this handler for the event using addEventListener ('mouseOver', callback_handler).

    B1.link_mc.myText_txt. Text = "Home";
    B2.link_mc.myText_txt. Text = "A connection";
    B3.link_mc.myText_txt. Text = "Service";
    B4.link_mc.myText_txt. Text = "portfolio."
    B5.link_mc.myText_txt. Text = "Contact";

    import flash.events.MouseEvent;

    B1.onRollOver = Function)
    {
    gotoAndPlay (2);
    }
    B1.onRollOut = Function)
    {
    gotoAndPlay (14);
    }
    B2.onRollOver = Function)
    {
    gotoAndPlay (2);
    }
    B2.onRollOut = Function)
    {
    gotoAndPlay (14);
    }
    B3.onRollOver = Function)
    {
    gotoAndPlay (2);
    }
    B3.onRollOut = Function)
    {
    gotoAndPlay (14);
    }
    B4.onRollOver = Function)
    {
    gotoAndPlay (2);
    }
    B4.onRollOut = Function)
    {
    gotoAndPlay (14);
    }
    B5.onRollOver = Function)
    {
    gotoAndPlay (2);
    }
    B5.onRollOut = Function)
    {
    gotoAndPlay (14);
    }

    Events work slightly differently in AS3 to AS2.  Essentially, you save an event to each object listener and then have a function that fires the listener.

    So, in order to revise your code:

    : CODE:

    B1.link_mc.myText_txt. Text = "Home";

    B2.link_mc.myText_txt. Text = "A connection";
    B3.link_mc.myText_txt. Text = "Service";
    B4.link_mc.myText_txt. Text = "portfolio."
    B5.link_mc.myText_txt. Text = "Contact";

    B1.addEventListener (MouseEvent.ROLL_OVER, doOver);

    B2.addEventListener (MouseEvent.ROLL_OVER, doOver);

    B3.addEventListener (MouseEvent.ROLL_OVER, doOver);

    B4.addEventListener (MouseEvent.ROLL_OVER, doOver);

    B5.addEventListener (MouseEvent.ROLL_OVER, doOver);

    B1.addEventListener (MouseEvent.ROLL_OUT, doOut);

    B2.addEventListener (MouseEvent.ROLL_OUT, doOut);

    B3.addEventListener (MouseEvent.ROLL_OUT, doOut);

    B4.addEventListener (MouseEvent.ROLL_OUT, doOut);

    B5.addEventListener (MouseEvent.ROLL_OUT, doOut);

    function doOver(evt:MouseEvent):void {}

    evt.currentTarget.gotoAndPlay (2);

    }

    function doOut(evt:MouseEvent):void {}

    evt.currentTarget.gotoAndPlay (14);

    }

    : CODE END:

    So, to summarize.

    First register you an event listener for the ROLL_OVER and ROLL_OUT event.  I put them together to access a function for each type, because I noticed that all the codes were the same thing.

    Then, the two functions.  An event listener passes an event object in the function, so the (evt:MouseEvent)

    Then, I use the event object to discover the object that triggered the event (evt.currentTarget) and I ask him to perform the gotoAndPlay action associated with the event.

  • I have followed closely at least six different sets of instructions to make this transfer, and none of them worked.

    At the same time, I made five new ringtones of the song of the birds and their synchronized successfully to my iPhone. Now, I did one more and I cannot get transfers, although it see the upward in my iTunes library on my iMac. It's less than 30 seconds and he appears as the correct type (ringtone). I have followed closely at least six different sets of instructions to make this transfer, and none of them worked. I am running the latest operating system, the most recent iOs and the most updated iTunes on both systems. Help, please.

    < re-titled by host >

    Hello saelon,.

    Looks like you have problems of synchronization a ringtone from iTunes on your iPhone. I know how fun it can be to create and use custom ringtones, so I can understand why you would reach for help when he's not working for you.

    To find out how to properly synchronize your ringtones to your iPhone, see the article: syncing your iPhone, iPad or iPod touch with iTunes on your computer via a USB - Apple Support

    If you still have problems of synchronization of this tone, it could be that the tone is not appear in the iTunes ringtones section and/or is not selected to synchronize. This applies specifically in numbers 4 and 5 of the article above the synchronization.

    If your custom ringtones do not appear in the "Tones" section in iTunes, it is possible that they are not in the correct format. If you do not already have, the program that we recommend for creating ringtones for your iPhone is GarageBand, it's available for iOS and Mac OS X. check the resources below for more information on this:

    GarageBand 11: Create an iPhone ringtone

    GarageBand for iOS

    GarageBand for Mac OS X

    Thank you for using communities of Apple Support.

    Have a great day!

  • CREATE DVD WINDOWS STOPPED WORKING / CAN'T READ DOWNLOADED VIDEOS, I BURNED A DVD ON THIS PIECE OF JUNK AND NEVER COULD BURN AGAIN, IS WHY MICROSOFT DO NOT WANT TO HELP ME WITH THIS COMPUTER

    I DON'T KNOW MUCH ABOUT COMPUTERS I KNOW JUST THE STORE I BOUGHT THIS COMPUTER FROM IS OUT OF BUS. JUST LIKE ME I'M NO LONGER WORKS I WANT JUST THIS DVD PROBLEM SOLVED

    Hello
     
    The "WINDOWS DVD MAKER has STOPPED working" is a common error, and there are several causes for this.
     
    We recommend that you check the event log to find out what is causing the problem and view details of return.
    1. open Event Viewer by clicking the Start button, click on the Control Panel, clicking system and Maintenance, clicking Administrative Tools, and then double-click Event Viewer.
    2. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
     
    Visit this link for more information: http://windows.microsoft.com/en-US/windows-vista/Open-Event-Viewer
     
    After the details of the event log, so that we can help you better.
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.
  • My mouse no longer works 2 days ago... I restored my pc on the eve, it works... but that did not help my mouse. This mouse works on another pc... I am getting error usb? I removed & charged all under the usb tab__

    My mouse no longer works 2 days ago... I restored my pc on the eve, it works... but that did not help my mouse.   This mouse works on another pc... I am getting error usb?  I removed & charged all the usb tab

    Hello

    You may need assistance from a real store tech computer (no leeks and glances at a BestBuy or)
    other BigBox stores) or the manufacturer of your system Support.

    What is the error of USB?

    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

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

    Please make these now even though you might have tried this before:

    Remove the mouse if indicated in the Manager of devices - devices of score - click right on - UNINSTALL.

    Then lets refresh the USB stack

    Control Panel right CLICK on EVERYTHING - Serial USB controllers - device configuration-manager and
    UNINSTALL all but the category itself - REBOOT - it refreshes the drive and battery USB

    This KB shows XP how to and the method of Vista is identical
    http://support.Microsoft.com/kb/310575

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

    If necessary try these two:

    Tips for solving problems of USB devices - and a Mr Fixit
    http://windowshelp.Microsoft.com/Windows/en-us/help/c39bd203-f729-47a4-8351-83291e13c8a81033.mspx#EGB

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

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Facebook like button does not work, I used the widget of muse and created the facebook code. Anyone know how to make this work?

    Facebook like button does not work, I used the widget of muse and created the facebook code. Anyone know how to make this work?

    Hi connally25,

    Here is a link to a video tutorial on how to add a Facebook button, please check if you have followed the same steps to add the video.

    http://TV.Adobe.com/watch/learn-Adobe-Muse-CC/adding-a-Facebook-like-button/

    If you followed the steps correctly and the button still does not; Here is a link to a forum thread which may help to solve the problem:

    Facebook follow Widget does not

    Concerning

    Sonam

  • When I go to get the modules (7.0.1), there is no evidence, except the info bubble "which are the modules. How to make this work?

    When I go to get the modules (7.0.1), there is no evidence, except the info bubble "which are the modules. How to make this work? The rest of the functions in this section seems to work. And I can get MY addons, but not the available modules.

    On the left side, click Extensions.

Maybe you are looking for

  • attachment error more than 7 MB

    Thunderbird 31sending attachments over 7 MB said that it is not possible due to the maximum sizeThis is because the attachment is converted (of course).Previous version worked controlling the original message size limit not on that converted. So if b

  • www always appears when I type about.config, so it won't work

    I have Firefox 23.0.1I am wanting to get into about.config Whenever I have type about.config, and then press ENTER, it gives me www.about.config and said that he can not find the Web page. I have looked around and cannot find a solution. I am running

  • I can't type a search in Safari on my iPhone6.  He immediately returned to the home screen.  This just started today.

    I can't type a search in Safari on my iPhone6 +.  When I try to enter a site name, default immediately to the home screen.  This just started today.  I tried to turn off the phone.  If I hit the Safari favorites listed, it works.

  • Which laptop I do own fear?

    My HP laptop battery won't hold a charge.  I may be an hour out of it after it loads for the night.  In addition, it drains dead in a week of non-use. So, I need a new battery.  If the top of the page right on my laptop screen says I have a DV6000. 

  • Several kings with several clamps

    Hello, I'm playing with the pliers to various VI in Labview 2011 and I have 1 working, but I want to have more than 1 (probably 3). I already know about CTRL to make a new KING, but I have no idea how to do to send this information in the clip-VI, an