Reload the same Image every second

Has anyone load an Image and refreshed it automatically?
What I would like to do is....
1. Load Image on document creation.
2. Refresh the image every 100 ml secs
3. Its the same image.... another app that we wrote writes
over the original
thanks in advance
This doesn't work at all
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
initialize="initTimer()">
<mx:Script><![CDATA[
import flash.utils.Timer;
import flash.events.TimerEvent;
public function initTimer():void {
// The first parameter is the interval (in milliseconds).
The
// second parameter is number of times to run (0 means
infinity).
var myTimer:Timer = new Timer(1000, 0);
myTimer.addEventListener("timer", timerHandler);
myTimer.start();
public function timerHandler(event:TimerEvent):void {
var url:String = "
http://localhost/frame.png";
var urlReq:URLRequest = new URLRequest(url);
framePNG.url= sURL; //to avoid caching
framePNG.send();
]]>
</mx:Script>
<mx:Image id="framePNG" />
</mx:Application>

OK - my guess is that it was to randomize the url to prevent
caching. As much as I don't like the workaround, try something like
this: take away your sURL and make it correctly load the image
once.
Once this is working, try to set the url like this:
var url:String = "
http://localhost/frame.png?dummy="
+ (new Date()).time;
trace(url); // Just so you can make sure it changes every
time
What this is doing is changing your url every time it's
requested so it's never found in the cache. Perhaps the cleaner way
of doing this is correcting your server so the headers set
immediate expiration.

Similar Messages

  • I am getting a pop up on my iPhone 4S asking password of my iCloud even though I feed the password but still keep on asking the same thing every second so I am not able to use my iPhone.

    I am getting a pop up on my iPhone 4S asking password of my iCloud even though I feed the password but still keep on asking the same thing every second so I am not able to use my iPhone.at various times it asks different passwords.

    Curretly, there is an iCloud blackout.  It started this morning around 2AM California time (Pacific), 5AM New York (Eastern).  A lot of people have been having issues all day, including me.  No iCloud services are online.  Even Find My iPhone is down.

  • Whenever I access my Hotmail inbox to open a new mail it starts reloading the mail after every second unless i switch it to full view?

    whenever I access my Hotmail inbox to open a new mail it starts reloading the mail after every second unless i switch it to full view. Kindly help me to solve this continuous problem.

    I confirm this is a known bug and Microsoft are working on a fix. They plan to fix this before Firefox 4 reaches release candidate phase.
    A workaround is to change a preference in Firefox:
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''html5.enable''' and double-click on it to change its value to '''false'''
    If you do this, remember to set the preference back to true by double-clicking on it again when Firefox 4 release candidate is made available, the bug should be fixed by then.

  • Reloading the same image into a JPanel

    I have a multi user app.. one user can edit an image in one GUI and i want the other user to be able to refresh somehow a JPanel that they have in their GUI to reload the image file.
    any help, would be appreciated.
    thanks

    Send a signal from one user's frame to the other's to reload the image. Then just call setIcon as you did before.

  • I updated Firefox, now every time I click on the Dock image my Mac reloads the disc image on my desktop and tells me this is the first time I've tried to open the program. What's going on? This is very annoying.

    I contacted Sony, who spent 90 minutes trying to help me fix this, to be told it is a problem with the program, not the computer. I have deleted every trace of the program then reloaded it, three times, with the same results every time. This all started when I added a bunch of 'extras' from Mozilla. These 'add-ons' remain in the program when it is reloaded, so they may be the problem.

    Make sure that Firefox gets installed properly.
    Open the Firefox disk image (DMG) file and drag the Firefox program to the application folder on your hard drive.<br />
    You shouldn't double-click the Firefox application to run it from the disk image, but drag it out of the DMG folder instead.
    *https://support.mozilla.org/kb/Installing+Firefox+on+Mac
    *http://kb.mozillazine.org/Installing_Firefox#Mac_OS_X

  • Drawing - more people the same image

    Hello,
    is there any way that two or more pepole can draw the same image? (if the first person draw a line, the second person will see the drawed line).

    Please elaborate on what you try to do here. Is this going in the direction of a distributed collaboration software or something like that? In any case, the short answer is yes in every case, but I can't tell you how to do it unless I know a bit more about what you're doing.

  • Adobe Media Encoder for Premiere Pro CS4 stops working on the same frame every time...

    I currently have Adobe Premiere Pro CS4 and have never had these issues exporting before. My timeline is less than 3 minutes long, but it does deal with multiple big files. It rendered perfectly and it plays perfectly in the timeline. When I try to export it using Media Encoder, however, it freezes at the same frame every time (which is actually only a few seconds in!) and then crashes, so that I have to force quit. I have tried exporting it as many different codecs and the problem persists... same frame. I tried creating a new project entirely and whipping together a few titles and exporting that to see if it just won't export anything at all. The new project exported just fine, however, which I suppose is good news. But yeah, my work on that other project is very important to me and I reallllly want to export it. Please help!

    Hi Jim! Thank you for your reply. I think you are right -- and that it lies in the audio somehow!
    It turns out that if I choose to only export the video, and uncheck audio, it will export very well and smoothly. That's great news for me!
    However, now I am trying to work out how to get the audio exported without issues. I actually had the idea of just playing the audio in the timeline and recording it via Stereo Mix, but my Windows 7 driver has Stereo Mix disabled, so it's back to square one. Any ideas of what I can do about the corrupted audio not exporting, which works fine when played in the timeline?

  • I want to take an image that's from my files, no cropped and be able to set up action(s) where I can drop that image behind an 8x10 frame overlay, then the same with a 5x7 frame overlay, then the same image behind a memory mate overlay that's an 8x10 size

    So is there a way to do this using the images right from the camera, where I don't have to crop three different sized images and drag them into the overlays?  I can set up an action for each, but cropping the same image 3x is a pain in the ***..!

    There are.  I did not write you need to learn scripting and write your own scripts.  As I wrote most Photoshop will never write a script.  However I would write every Photoshop user will at times use a Photoshop script to do some automated process for them. 
    I wrote the it would be very hard to do what you want to do would a straight Photoshop action.  Actions on their own can not use logic.  An action would need to to it by brute force.
    However in Photoshop CC Adobe added conditional action support.  With this support it is now possible to create a group of actions to process some conditions.  Like you can separate Landscape from portraits have an Action for processing  landscape images and an other for processing portrait images.
    Size is still hard to deal with for you can have landscape's the are extremely wide to landscapes that are square and portraits the are extremely narrow to those that are almost square.
    Image the extreme aspect ratio will not fill a 8:10 or 5:7  area it resized to 10 and 7 and creating crops the have 8"10 and 5:7 will have images compositions where most of your image content has been discarded.
    Camera images do not have extreme aspect ratio the usually have  3:2 or 4:3 aspect ratios there are exceptions.  When you have print made the are 5x7 and 8x10 by printers  the prints you receive from the printers are center crops from your image files.
    It is very easy to make center crops if aree images have the same aspect ratio and orientation to begin with.  Now with CC you can have seperate actions to the two orientations.
    A general solution would need handle arbitrary aspect ratios the resulting center crop may well not have a satisfactory image composition for source image with extreme aspect ratios.
    Photoshop ship with several scripts users use all the time to process their image.  You may have used some yourself. Do any of these sound familiar to you. Conditional Mode Change, ContactSheetII, Delete All Empty Layers, Export Layers To Files, ExportColorLookupTables,  Fit Image, Flatten All Layer Effects, Flatten All Masks, generate, Image Processor, Layer Comps To Files, Layer Comps To PDF, Lens Correct, Load DICOM, Load Files into Stack, Merge To HDR, Photomerge, Script Events Manager and Statistics.
    My action package as I wrote contains more the a dozen script I wrote to be used in actions to add logic into the actions.
    It would also be extremely easy to create a Photo Collage Template PSD that contains a background layer that has your two frames the 8x10 and 5x7 and also have two alpha channels to map the locations of the images.  That can be batch populated with my script  BatchPicturePackage.
    Photo Collage Toolkit
    Photoshop scripting is powerful and I believe this package demonstrates this A video showing a 5 image collage PSD template  being populates with images:
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    Size the photo collage templates for the print size you want - width, height and print DPI resolution.
    Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
    Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
    Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.
    There are twelve scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    PCTpreferences.jsx - Edit This File to Customize Collage Populating scripts default setting and add your own Layer styles.
    Documentation and Examples

  • Loading the same image multiple times

    I'm trying to dynamically load a single image multiple times
    into flash. Basically I want to end up with two movieclips mc1 and
    mc2 that contain the image. I'm currently using the Loader
    component (connected to the ProgressBar) to dynamically load the
    image. It works fine for loading the image once but I'm really not
    sure how to go about creating a second movie clip with the image.
    Here's my code for loading the first image:
    var mc1:MovieClip = new MovieClip();
    var listener:Object = new Object();
    listener.complete = function(eventObj:Object){
    nextFrame();
    imageLoader.addEventListener("complete", listener);
    mc1 = imageLoader.content;
    imageLoader.load(imgURL);
    But everything I've tried to load mc2 with that same image
    has failed. I've tried 'mc2 = imageLoader.content', 'mc2 = mc1',
    'attachMovie', 'duplicateMovieClip', calling imageLoader.load()
    twice on the imgURL, and creating a second Loader component and
    loading the image again. All of these methods have invariably
    failed. Most of them can load mc1 alright and sometimes mc2 even
    shows up on the stage but in the AS mc2 is always undefined.
    Can anybody point me in the right direction for loading
    multiple copies of the same image? It really shouldn't be that
    hard, should it?

    Well I figured out a solution. Turns out Flash doesn't allow
    you to duplicate dynamically loaded content like an image in a
    movieclip. But there is a little class called BitmapData that will
    do precisely what I was looking for. Here's the link I got this
    info from:
    http://www.senocular.com/flash/source.php?id=0.174

  • How can I save to the same map every time when printing pdfs?

    How can I save to the same map every time when printing pdfs?
    Finder points to the document map even when I chose a different map recently.
    I often print series of pdfs from the print dialog box, I'd like to choose the map to save to and then have all subsequent pdf prints automatically directed to the same map until I decide otherwise.

    that link seems to be broken right now:
    403 Error - Forbidden  - No cred, dude.

  • How can I make different catalogs from the same image

    How can I make different catalogs from the same image where that image has been changed in some way between the catalogs. For instance if I wanted to have a catalogs for cropped images and have 3 catalogs one for 4x6 , 5x7 and 8x10 cropping. When I tried this , if I changed a file in one catalog that same image in the other would change also.

    Do not confuse the creation of the crops and the display in collections per crop ratio.
    Of course one virtual copy (VC) per crop ratio is needed. If the same image should be cropped in all 3 mentioned ratios there would be 3 VCs.
    The OP asked how to have/see a set of same-crop-ratios.
    After having created the virtual copies for whatever crop ratio he wants, the way to display this result in the fashion asked for is via smart collections, provided they can be found. Without a plugin the naming of the VC with the crop ratio applied is a straight way to achieve that.
    IF the wish is to get new crops automatically added. (See my answers 2+3)
    IF the wish is to creat static collections per crop ratio for a certain set of images, I'd go as follows:
    1. Select all images you want to have cropped in that way,.
    2. With this selection click on the + to add another collection and fill the dialog box like this:
    Then navigate into this newly created selection and perform the 4x6 crop - according to taste individually or by synchronizing the first crop.
    Cornelia

  • How Do I put in the same image for multiple songs on iTunes

    Hi,
    I know if I click on the song on "info", I am able to change the album image. Is there a way for me to select multiple songs and do a bulk change with the same image?
    Thanks.

    Yes.
    Select multiple songs, get info and paste the artwork.
    Or select multiple songs and drag the artwork to the artwork window at the lower left of iTunes.

  • How to treat multiple instances of the same image

    In my W/F I use Lightroom as my catalog and main edit tool but also create (using capture NX) tiff images to be edited in PS and also create jpegs in different formats for web browsing or slideshows.
    To my knowledge, while LR provide a powerful version tool to maintain different edits of the same image, it doesn provide anything to manage different processing  stages of the same image.
    Does anybody face the same issue ? How do you manage ?

    It sounds like you have two requirements:
    1. That different processing stages in time be saved
    2. That different output versions be tracked and updated
    It seems like #1 can be managed using virtual copies or History snapshots, depending on what you need.
    #2 should be automatic on export. When you export, you can set an export folder, which can also be saved as a preset. If you have one export preset for PSDs and another for JPEGs, you simply save an export preset for each output. In addition, you can select "Add to this catalog" so that Lightroom automatically tracks the separate folders where it exported the PSDs and JPEGs. When you want to export, you just select the right preset and everything is put in the right place for you and you can see where they went.
    You might also look into the Publish Services feature since it can do all of the above, and also can automatically track when you change the source image and let you know which exported files (like PSDs and JPEGs) need to be updated. Then you just click one button and they're all updated in their folders.

  • How do I relink multiple instances of the same image, in Illustrator CC?

    Is there a feature, like InDesign, where links automatically relink if they're in the same folder?
    Currently I have to search through the file structure multiple times even if the linked image is the same.
    Surely Illustrator should relink all instances of the same image and give the option search for any additional missing links in the same folder?
    I'd love to be pointed in the right direction, or if anyone has a script they've written to solve the problem, do let me know.
    Cheers

    try the script (version 3) in this post,
    Remember last folder location lost with Mac Lion updates

  • How to manage multiple sizes of the same image?

    I recently took up LightRoom for all the good things it does. One of the things I need to do, however, is to create and manage multiple sizes of the same image needed for different purposes. I always found this cumbersome. I totally expected that the LR library would offer a solution for this but I looked and I didn't see anything. Sure you can export and resize in the process but then you're on your own. Am I missing something? Isn't there a better way? What does Adobe have in mind for best practices and how do you handle this?

    I can't speak for 99jon, but when I need multiple sizes, I export at the desired sizes, and then make use of the exported photos (upload, e-mail, whatever) and then delete the exports. Thus, there's really no need for me to keep track of the photo at this specific size, knowing that if I ever need it again -- unlikely -- I can regenerate it with the export pre-set, so I put no effort (zero!) into keeping track of photos at different sizes.
    The idea of adding it back into the catalog doesn't get me excited, and I would advise against it. I don't need this, and I don't see the benefit of keeping this particular size export for the long-term. As I said, I can always recreate it — but maybe you have such a need to keep these exports long-term and recreating it at a later point in time doesn't meet your needs? Can you explain?
    By the way, you can't resize a virtual copy, so that won't work here. The only time you can resize is on export.

Maybe you are looking for