Solved

Problem in Refreshing Flex Image Component Source

Posted on 2008-10-29
2
4,612 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 125 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Video Playback in Flex Mobile App 4 1,537
Keep a player within a circular area 3 273
Issue running Flash Builder application in Google Chrome 2 942
Function to return shape (as3) 1 548
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…
Invest in your employees with these five simple steps to improve employee engagement and retention.

738 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