Dynamic image getting "stuck"

I have an application where you "page through" recipes. You can see it here. The recipes are a list with an item renderer of the "recipe card", controlled with a stepper skinned to look like "next" /"previous" buttons.
In the next iteration of this, I needed to add a "sponsored by" badge to one recipe card.
So, I added a section in the XML for that recipe only, with the path to the client's logo image in the xml.  And then I added below the recipe description this code:
<s:Group click="goRecipe(XML(data).sponsor.link)">
     <s:BitmapImage source="/images/{XML(data).sponsor.image}"/>
</s:Group>
It works, but once the image displays for the sponsored recipe (the one where this value exists), it is "stuck" and shows up as you page back through the other desserts.  It shows up on every other dessert, even if they have no sponsor node in the XML and they were blank before.  Changing the "tab" in the recipe book (which refreshes the list by changing its filterFunction) clears the image again.  But once it displays it stays.
Any ideas?

glad you got it working
i was going to say, sometimes, depending on how you load the data, the itemRenderer's data property can be null. in these cases you can add
if (this.data == null) {
  return;
to the dataChange handler.
An alternative to dataChange events is to override the set data method:
override public function set data(value:Object) : void {
  super.data = value;
  if (value.sponsorImage != null || value.sponsorImage != undefined) {
    sponsorImage.source = value.sponsorImage;
    sponsorImage.visible = true;
  } else {
    sponsorImage.source = null;
    sponsorImage.visible = false;
something like that...
- e

Similar Messages

  • I am unable to email an image from camera roll. the image gets "stuck". cannot input email address or subject line. am unable to cancel and go back to camera roll

    i am unable to email images from my camera roll. the image gets "stuck". cannot insert email address or subject line. cannot cancel... return to camera roll.
    what to do. i tries taking new picture and sending it in an email... same thing... gets "stuck "
    Waht to do ?

    Hello lohmann8,
    Thank you for providing so much detail about the issue you are experiencing with emailing photos from the Camera Roll.
    The first thing I recommend is quitting and relaunching the applications on your iPhone:
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    You can find the full article here:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    If you are still seeing the same issue after quitting and relaunching the Photos and Camera app, I recommend restarting your phone and then resetting if it's still not working:
    Restarting your device
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    Press and hold the Sleep/Wake button until the Apple logo appears.
    Note: Reset your device only if you are unable to restart it.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    You can find the full article here:
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, the last thing I recommend is backing up and restoring your iPhone:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    iTunes: Restoring iOS software
    http://support.apple.com/kb/HT1414
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Images get stuck in full screen mode

    In Lightroom, images get stuck in full screen mode, i.e. won't go back to develop or grid mode.  Please help!!

    In Lightroom, images get stuck in full screen mode, i.e. won't go back to develop or grid mode.  Please help!!

  • Image gets "stuck" in reader and I can't open new.

    I have a treo 700wx running windows mobile 5.0.  Downloaded Reader for pdf files.  It opens the first file flawlessly.  When you try to open a subsequent file, it's like the original image gets "stuck" in the viewer.  I have to perform a reset to move on to a new file and then the new file "sticks" also not letting me open subsequent files.  I have re-installed reader once and have the same issue.  Has anyone ever heard of this or can anyone offer any advice?

    Could you attach the PDF you're trying to view to this thread.
    -Gaurav

  • PAL / .avi images getting "stuck"

    hello
    I have PAL avi movies to cut a project - opened on a sequence - not asking for render - play audio but video gets "stuck"and won't follow audio...
    Is it RAM issues? Do I need more memory?

    Do I need more memory?
    For the 800 mHz G4 listed below your message? It's maxed out already at 1.5 GB.
    What codec do your .avi files use?
    You might try setting FCP to "Safe RT" and "Play Base Layer Only" to have the video playback more smoothly.

  • Canvas/work area image gets stuck, doesn't show any changes made?

    For some reason, if I minimize my Photoshop CS4 window for a few minutes and come back to it the canvas image I was working on is stuck for lack of better words. I change the zoom, doesn't do anything, although it shows at the top that I did in fact zoom to x%. Same for even using the brush to scribble, making layers invisible etc. Basically anything that changes what you see on the main canvas.
    The only quickest way I have found to fix this is by dragging the tab of the project I'm working on out to show it in a window then dragging it back into the main working area again. This is clearly frustrating, has this happened to anyone else? Any idea of how to fix this? I couldn't find a single thing about this issue on Google.
    The program itself doesn't even say not responding or anything at all, all menus open etc. so Photoshop itself isn't actually frozen, I'm baffled.
    I'm running Photoshop CS4 (Extended) on Windows 7 32-bit Ultimate.

    Sounds like you need a display driver update.
    Go to the web site of the maker of your video card, and download and install their latest driver for your hardware.
    That usually fixes this.
    If it doesn't try disabling the OpenGL Drawing setting in Edit - Preferences - Performance.
    -Noel

  • How do get a dynamic image to open in new browser window

    I'm using DW CS3, mysql (MAMP)   OS 10.6.2   I'm designing my online store.  I need the customer to be able to click dynamic image/thumbnails to view a larger image in a new browser pop up window 400 x 400.  An example of this functionality can be seen at :
    http://www.designpublic.com/spot-on-square-roh-dresser
    So far I can get the separate new browser window to open with the dynamic image, using the open new browser behavior, but the on click also advances to next page with the larger image. You have to press the back button to get back to the product page.  I want the customer to be able to see the product page , while viewing larger image, and then close larger image, and still have the product page open. I don't understand why 2 windows are opening.
    Thanks for the help people!
    William

    Hi
    I did look at it but, (and this is only my opinion, I do not like such effects) it is your decision.
    If you view source you will see -
    <a href="#" onclick="popWin('http://www.designpublic.com/catalog/product/gallery/id/12706/image/91883/', 'gallery', 'width=300,height=300,left=50,top=50,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="Spot on Square Roh Dresser" class="gallery-image-link"><img src="http://arcsmedia01.s3.amazonaws.com/catalog/product/cache/2/thumbnail/56x56/5e06319eda06f020e43594a9c230972d/r/o/roh_dresser1.jpg" alt="" /></a>
    Which is controlled by the javascript function
    popWin()
    which you can view using the firefoxe dev toolbar - view javascript function.
    PZ

  • My new macbook pro gets stuck. the image gets clowdy and stuck. it is brand new. !!

    i got a brand new macbook pro retina display. the thing gets stuck. image gets clowdy and does not allow me to go on typing. i can not believe. spend so much money and get this. do i give it back or does it have solution?

    Oh Well. Take it to an Apple store to looked at.
    But your topic header said Brand New. 3 months old isn't Brand New.
    Good Luck & Best Wishes.

  • UIX: how to get dynamic image generation working on ias10G?

    Hi,
    Anybody got UIX Dynamic Image Generation working on ias10G, on unix? My Images do not get generated (the page only shows the plain links)
    My env:
    - ias10G
    - AIX Version 5
    - java version: unknown, do not know what version ias10G is using
    On earlier versions (OC4J 903) we had to make sure an XServer was running and pointed our DISPLAY variable to that server. When the XServer was down, we got a nice error message in the application logs. However on ias10G I cannot figure out where to set this variable and I cannot find any error messages.
    Can anybody please help me out a bit?
    Cheers,
    Martijn

    Hi Andy,
    Thanks for your reply. However, I have not yet been able to get it working.
    I have verified that the java version is indeed (this is what the oc4j logfile shows when I supply the -showversion parameter)
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
    Classic VM (build 1.4.1, J2RE 1.4.1 IBM AIX build ca1411-20030930 (JIT enabled: jitc))The relevant fragment of the opmn.xml:
              <process-type id="oc4j_cif_mh" module-id="OC4J">
                   <module-data>
                      <category id="start-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true -Xmx75m -Xms75m -showversion"/>
                         <data id="oc4j-options" value="-properties"/>
                      </category>
                      <category id="stop-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true"/>
                      </category>
                   </module-data>
                   <start timeout="900" retry="2"/>
                   <stop timeout="120"/>
                   <restart timeout="720" retry="2"/>
                   <port id="ajp" range="3301-3400"/>
                   <port id="rmi" range="3201-3300"/>
                   <port id="jms" range="3701-3800"/>
                   <process-set id="default_island" numprocs="1"/>
                </process-type>Finally, your JSP passes the test. I can access it. But still no uix image generation. Are there any logfiles I can check for error messages on the failing image generation? May it be a web cache problem?
    Thanks in advance

  • Export and Edit in PS gets stuck on one image

    Each time I start Lightroom I can export an image to a file from either the library or develop modules fine but if I then select a second image and export it to the same folder it exports the first image again after giving me the error message that the file already exists. I have now found that this exact problem is happening when I use the Edit in Photoshop tool. It gets stuck on the first image even though I have selected a different one.
    This problem has only just occurred and I cannot understand why. Has anyone an idea of what may be wrong?

    My guess, also: That selection is actually of two photos, not just the one you highlighted. LR uses the concept of Selected and More Selected, and I haven't figured out all the permutations.
    <br />
    <br />
    <span style="color: rgb(102, 0, 204);">John "McPhotoman"</span>
    <font br="" /></font> color="#800000" size="2"&gt;~~ John McWilliams
    <br />
    <br />
    <br />
    <br />MacBookPro 2 Ghz Intel Core Duo, G-5 Dual 1.8;
    <br />Canon DSLRs

  • Dynamic image in the template builder plug-in does not work

    Hi all,
    The documentation says:
    Direct Insertion
    Insert the jpg, gif, or png image directly in your template.
    +...This works obviously+
    URL Reference
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
    +...This works too when I hardcode an url as url:{'http://www.google.com.tr/images/firefox/mobiledownload.png'}+
    Element Reference from XML File
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
    +...This, however, does not work.+
    I use Apex' report query tool and My query is like
    select 'http://www.google.com.tr/images/firefox/mobiledownload.png' IMAGE_LOCATION from ... (a single result set for my template)
    the xml data is generated with an IMAGE_LOCATION tag. I load it to word template plug-in. The Url successfully displays in the report if I make it a plain-simple field.
    But when it's in the image format->web->alt text as url:{IMAGE_LOCATION} no image displayed.
    I need to keep this design procedure simple so a simple word user could design a report via using just template builder plug-in. I don't wish to explore the xsl-fo area...yet.
    Could you tell me why I can't get this url:{IMAGE_LOCATION} to work?
    Regards
    PS: My BI version: 10.1.3.4.1
    Edited by: oeren on Jun 8, 2011 12:28 AM

    Oeren,
    I stumbled across this little tidbit buried in the BI Publisher forum: Dynamic Images in rtf
    Glad you are up and running!
    Joshua

  • How to display a dynamic image file from url?

    Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
    //PlayJpg.java:
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class PlayJpg extends Applet implements Runnable {
    public static void main(String args[]) {
    Frame F=new Frame("My Applet/Application Window");
    F.setSize(480, 240);
    PlayJpg A = new PlayJpg();
    F.add(A);
    A.start(); // Web browser calls start() automatically
    // A.init(); - we skip calling it this time
    // because it contains only Applet specific tasks.
    F.setVisible(true);
    Thread count = null;
    String urlStr = null;
    int sleepTime = 0;
    Image image = null;
    // called only for an applet - unless called explicitely by an appliaction
    public void init() {
                   sleepTime = Integer.parseInt(getParameter("refreshTime"));
              urlStr = getParameter("jpgFile");
    // called only for an applet - unless called explicitely by an appliaction
    public void start() {
    count=(new Thread(this));
    count.start();
    // called only for applet when the browser leaves the web page
    public void stop() {
    count=null;
    public void paint(Graphics g) {
    try{
    URL location=new URL(urlStr);
    image = getToolkit().getImage(location);
    }catch (MalformedURLException mue) {
                   showStatus (mue.toString());
              }catch(Exception e){
              System.out.println("Sorry. System Caught Exception in paint().");
              System.out.println("e.getMessage():" + e.getMessage());
              System.out.println("e.toString():" + e.toString());
              System.out.println("e.printStackTrace():" );
              e.printStackTrace();
    if (image!=null) g.drawImage(image,1,1,320,240,this);
    // called each time the display needs to be repainted
    public void run() {
    while (count==Thread.currentThread()) {
    try {
    Thread.currentThread().sleep(sleepTime*1000);
    } catch(Exception e) {}
    repaint(); // forces update of the screen
    // end of PlayJpg.java
    My Html file looks like here:
    <html>
    <applet code="PlayJpg.class" width=320 height=240>
    <param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
    <param name=refreshTime value="1">
    </applet>
    </html>
    I only get the first frame picture for ever by my html.But the jpg file is dynamic.
    Why?
    Can you help me?
    Thanks.
    Joe

    Hi,
    Add this line inside your run() method, right before your call to repaint():
    if (image != null) {image.flush();}Hope this helps,
    Kurt.

  • Dynamic Image Displays Blank When Using In Visual Studio Project

    I am trying to simply display a dynamic image in a report. I am using Crystal Reports XI Release 2.
    I have two different environments: Local via Progress where reports are called using Crystal Viewer ActiveX, and over the web where reports are called from Open Laszlo and Visual Studio project.
    The image is set to a blank image as default, and Graphic Location Forumla loads the image from the database (site.logo_location + site.logo_filename) which results in an image http:
    www.vetinfo3.com\a.jpg.
    When I run the reports locally using the ActiveX control, it works just fine and displays the image.
    When I run over the web using OpenLaszlo, it displays a blank.
    Troubleshooting
    We are using Visual Studio 2005, which is bundled with an older version of Crystal that doesn't support dynamic images.
    To address this, I loaded Crystal XI Release 2, which updated the version in Visual Studio and enabled the Graphic Location formula field on the dev machine.
    I verified the Graphic Location field was set correctly.
    This caused a Version error, so we loaded cr_net_2005_mm_mlb_x86.zip on server and specified the Version in web.Config.
    No errors now, but when I build and publish the code, the image still displays as blank.
                From Fiddler
                   GET http://www.vetinfo3.com/mdsol1/CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_c5d6a923-293b-4f1e-8739-4e698f83b087.png
                   Creates C:\Documents and Settings\Curtis\Local Settings\Temporary Internet Files\Content.IE5\PWRUX2XW\CrystalImageHandler[1].png
                   Blank Image
    According to issues within Visual Studio, they say the fix to this is to add the <httpHandler> in web.Config, but it is already there; added when we add the viewer to the project:
    In web.Config I have some questions about this line:
        <httpHandlers>
          <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        </httpHandlers>
    There are more service packs for Crystal XI Release 2:
    crXIr2sp2_net_server_install.zip
    crXIr2sp3_net_server_install.zip
    crXIr2sp4_net_server_install.zip
    I have not loaded these yet, but the readme files do not indicate they fix any dynamic image issues.
    I am out of ideas on this; does anyone have any ideas?

    What about if you take OpenLaszlo out of the picture? E.g.; use one of our samples from here;
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    I'd recommend vbnet_web_simplepreviewreport
    Also, see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80] article.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Dynamic Images in PDF Report

    Hi,
    I want to create Badges from employee table (ID, NAME, JOB_TITLE, PHOTO). I downloaded and installed a demo application "USING DYNAMIC IMAGES IN PDF REPORT". It works fine with smale images < 20K. I'm getting the following error for images > 20K :
    "ORA-06502: PL/SQL: numeric or value error: raw variable length too long"
    it seems like a buffer problem.
    could you pls help to solve this problem
    Thanks,
    Ribhi

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • Dynamic Images in Crystal Reports

    I have a report with Dynamic Images. I am able to run the report but once I try to export it or try to browse through the pages I get the following error:
    Application popup: Crystal Reports - [Inventory Graphics Report.rpt]: crw32.exe - Application Error : The exception Integer division by zero.
    (0xc0000094) occurred in the application at location 0x2c03a410.

    Hi Don,
    I have read your response 10 times, but I don't really understand it.
    "Your only option is to use the Insert OLE Object or picture into the report" - fine, but how is this achieved from a dataset?
    "CR will not display BLOB fields as pictures" - fine, but maybe I used the word BLOB badly. The dataset column datatype is "byte[]". Will CR display byte[] columns as pictures?
    "You can use a database field to point to which picture file to use, then you won't be using up valuable memory space importing the images into your data set. And the Logo's now dynamic...." - this seems to suggest that the database field is a string storing the file location on disk. Yes? I don't care about memory space in this case and I'm happy to load a binary file into a byte[] column if there is a way of displaying it.
    So, if I understand correctly, you're suggesting the dataset contain a table.row.column which stores the filelocation. How do I convert that to display as a picture (dynamically)?
    Robert

Maybe you are looking for

  • DBMS_SQL

    Hello, I want to write a Procedure that selects the name from the employee which employee-number I give over. But I have one question. How can I give out the ename. Normally if I write a select statement in PL/SQL I must add the INTO-Clause to store

  • "Failed to open page" keeps happening and happening!

    [ Edited by Apple Discussions Moderator; Please start a new topic about your technical issue. ] I updated to Safari 2.0.3 with OS 10.4.5 Now, repeatedly, when I go to all sorts of web pages, I get the dreaded "fail to open page" message. Almost unive

  • Creating a preset title with animation

    Hello all, I'm trying to create a title (or lower 3rd/name strap to be precise) which can be set up for use on other machines running PPro CS5. I designed and created everything in After Effects, thinking I could save this as a title preset for Premi

  • Reinstall iTunes - will my "how-many-times-played" statistics be saved?

    I am about to reboot my computer. I will delete everything and then reinstall windows, iTunes etc. Of cause i will make a copy of all my mp3 tracks, but is it possible for me to save the statistics of how many times my songs have been played? Is the

  • Create Web Services Through Eclipse

    Hi, Any one can help me , I am creating the web services and facing below error. I am new to create web service. Apr 25, 2010 7:59:02 AM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal pe