Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem in Refreshing Flex Image Component Source

Posted on 2008-10-29
2
Medium Priority
?
4,637 Views
Last Modified: 2012-06-27
I have a Flex application for show some images, when I load dynamic contents, for a differents source (like xml from php), not problem with image component content.

My application have a module for change image source for groups and subgroups of images files, this image of group is use like album front.

When I change image file (only content not the name) from a filereference, flex application reload or reassign the source to image component, but the image component show old content.

The old and new content have the same file name, I know what this a problem with internet cache, so I need know if possible force to image component reload or reprocess the source with the same file name.

Example by pseudocode:
original content from xml: imgView.source = @image //("albums/album1/photo0001.jpg")
run and load filereference and get new content, but with the same name, the filename (albums/album1/photo0001.jpg) is overwrite by php code.
reassign image content: imgView.source=null, imgView.source = ""albums/album1/photo0001.jpg" show the old content (old image file) not the new content in same file.

Is possible force to image component reprocess source content for get new image from the same file name?. Use of Bitmap analysis can help me?
0
Comment
Question by:Myshka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Gary Benade earned 500 total points
ID: 22844487
Hi, try this

imgView.source = "albums/album1/photo0001.jpg" + "?" + new Date().time;

This will add the current timestamp in milliseconds to the image url making it unique and ensure a fresh load

Gary
0
 

Author Closing Comment

by:Myshka
ID: 31511503
Good tips.
Very thanks
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question