Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6737849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:17:49+00:00 2026-05-26T11:17:49+00:00

i am trying to simulate a live view using a canon Camera. I am

  • 0

i am trying to simulate a live view using a canon Camera.

I am interacting with the cam using the CanonSDK, i get an image every a short period in order to simulate a video frame by frame. This works fine, i am using java to do the backend and send the images trough BlazeDS to flex.

The problem is not getting the image, the problem is that when i load a new image using something like:

image.source=my_new_image;

the new image is loaded but it produces a short white blink and it ruins the video…

So i would like to know if the is a way to update an image on flex avoiding the blinking problem, or if i could make a video streaming from java and pick it up with flex…

Thanks in advance!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:17:49+00:00Added an answer on May 26, 2026 at 11:17 am

    The easy way is to use a technique called double buffering, using two Loaders – one for the image which is visible, and one for the image which is being loaded and is invisible. When the image has completed loading it becomes visible, and the other one becomes invisible and the process repeats.

    In terms of efficiency, it would be better to at least use a socket connection to the server for transferring the image bytes, preferably in AMF format since it has little overhead. This is all fairly possible in BlazeDS with some scripting.

    For better efficiency you may try using a real-time frame or video encoder on the server, however decoding the video on the client will be challenging. For best performance it will be better to use the built-in video decoder and a streaming server such as Flash Media Server.

    UPDATE (example script):

    This example loads images over HTTP. A more efficient approach would be to use an AMF socket (mentioned above) to transfer the image, then use Loader.loadBytes() to display it.

    private var loaderA:Loader;
    private var loaderB:Loader;
    private var foregroundLoader:Loader;
    private var backgroundLoader:Loader;
    
    public function Main()
    {       
        loaderA = new Loader();
        loaderB = new Loader();
        foregroundLoader = loaderA;
        backgroundLoader = loaderB;
    
        loadNext();
    }
    
    private function loadNext():void
    {
        trace("loading");
        backgroundLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);
        backgroundLoader.load(new URLRequest("http://www.phpjunkyard.com/randim/randim.php?type=1"));
    }
    
    private function loaderCompleteHandler(event:Event):void
    {
        trace("loaded");
    
        var loaderInfo:LoaderInfo = event.target as LoaderInfo;
        var loader:Loader = loaderInfo.loader;
        loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loaderCompleteHandler);
    
        if (contains(foregroundLoader))
            removeChild(foregroundLoader);
    
        var temp:Loader = foregroundLoader;
        foregroundLoader = backgroundLoader;
        backgroundLoader = temp;
    
        addChild(foregroundLoader);
    
        loadNext();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to simulate a particle system using OpenGl but I can't get it
I am trying to simulate linux command ls using linux api from c. Looking
I am trying to simulate a session using FactoryGirl / shoulda (it worked with
I am trying to simulate a keypress for enter key in selenium using the
I'm trying to simulate a click on an anchor tag using jQuery. I've been
I am trying to simulate an asynchronous file upload using an iframe. Here is
I´m trying to simulate a table using only CSS and DIV. The problem is
Hi I am trying to simulate the rowspan property on css using divs and
I'm trying to simulate a socket client using simple perl program. socket client: #!/usr/bin/perl
I'm trying to simulate a keypress with the below code... jQuery('input[name=renameCustomForm]').live('keyup', function (e) {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.