Live view from java to flex - blinking image

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 there is a way to use channels of streaming or some way to pass the set of images in live view to flex and show them in the interface of flex from java.
Thank you very much!
Agustina

I have this same problem in an SWF that I have an external image loading into. In another SWF, I don't have this problem. In one instance, the image is at the start of the movie clip and at the other it's on the last frame of the movie clip. My only suggestion would be to load as many of the images as you can off-screen and then put listeners on the images to know they are loaded before you show them. You can do that by:
this.addElement(image);
image.addEventListener(FlexEvent.UPDATE_COMPLETE, imageLoaded);
private function imageLoaded(event:Event):void{
//image is loaded...

Similar Messages

  • How to move a money value from java to Flex

    According to
    http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDo cs_Parts&file=00001103.html
    I can pass a Double, Float, Long, Short, BigDecimal or the primative equivalent types from java to Flex and they will be converted into a number.
    My testcase says that only BigDecimal actually shows up on the Flex side.
    Am I missing something or is there a problem in BlazeDs/Flex somewhere?
    Bill Tims
    P.S. If you would like my sample code, I'll be glad to post it.

    Pete
    After looking at it I see why you were confused. Here is the Java object, the receiving Flex object, and the debug info from the SystemOut.log out of JBos 4.2. All of this is using Java 1.6 and Flex 3.0. I'm using the December, 2008 BlazeDs jar files.
    The variable bCd is being serialized as BCd. If I change it to bcd, everything works fine. We also tested this with php->flex and that works fine, which suggests the problem is in Blaze.
    public class Test2 implements Serializable{
    private static final long serialVersionUID = 1805176418478176484L;
    private String abc = "abc";
    private String bCd = "bcd";
    public Test2() {
    public String getAbc() {
    return abc;
    public void setAbc(String abc) {
    this.abc = abc;
    public String getBCd() {
    return bCd;
    public void setBCd(String cd) {
    bCd = cd;
    ============================================================
    package jdbcTables.businessdelegate {
    import mx.rpc.soap.types.*;
    import org.slsot.mis.jdbc.*;
    [RemoteClass(alias="org.slsot.mis.value.inquiry.Test2")]
    [Bindable]
    public class Test2
    public var abc:String;
    public var bCd:String;
    } /* Test2*/
    =============================================================
    12:24:22,084 INFO [STDOUT]-btims [BlazeDS]03/03/2009 12:24:22.084 [Endpoint.General] Channel endpoint slsot-amf received request.
    12:24:22,084 INFO [STDOUT]-btims [BlazeDS]03/03/2009 12:24:22.084 [Endpoint.AMF] Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/4)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
    operation = "callFunction"
    source = null
    destination = "accessor"
    timestamp = 0
    headers = (Object #1)
    DSEndpoint = "slsot-amf"
    DSId = "nil"
    clientId = null
    timeToLive = 0
    messageId = "9530B236-243F-4965-4252-CD944C3430F1"
    body = (Array #2)
    [0] = "Test"
    [1] = "test2"
    [2] = (Array #3)
    12:24:22,084 DEBUG [Accessor]-btims Begin Test.test2()
    12:24:22,099 DEBUG [Security]-btims t2=org.slsot.mis.value.inquiry.Test2@1b89df3
    12:24:24,678 DEBUG [Accessor]-btims End Test.test2()
    12:24:24,678 INFO [STDOUT]-btims [BlazeDS]03/03/2009 12:24:24.678 [Service.Remoting] Adapter 'java-object' called 'org.slsot.mis.Accessor.callFunction(java.util.Arrays$ArrayList (Collection size:3)
    [0] = Test
    [1] = test2
    [2] = java.lang.Object[] (Array length:0)
    12:24:24,693 INFO [STDOUT]-btims [BlazeDS]03/03/2009 12:24:24.693 [Service.Remoting] Result: 'org.slsot.mis.value.inquiry.Test2
    abc = abc
    BCd = bcd
    12:24:24,693 INFO [STDOUT]-btims [BlazeDS]03/03/2009 12:24:24.693 [Endpoint.AMF] Serializing AMF/HTTP response
    Version: 3
    (Message #0 targetURI=/4/onResult, responseURI=)
    (Externalizable Object #0 'DSK')
    (Typed Object #1 'org.slsot.mis.value.inquiry.Test2')
    abc = "abc"
    BCd = "bcd"
    1.236104664693E12
    (Byte Array #2, Length 16)
    (Byte Array #3, Length 16)
    (Byte Array #4, Length 16)

  • Live view from Aperature Tethering

    I just installed the onsoftware tethering app, and it works great, but noticed that you can get live view from it, and was wondering if you can do that from Aperature tethering on the Nikon D90?
    that would make tethering for me a lot more useful.

    It's extremely unlikely[*] that the Aperture 2 tethering feature currently supports Live View. That's the most proprietary part of the recent cameras that have this feature, and I know that Nikon introduced a whole new version of their own Camera Control Pro software to support it.
    * I couldn't say no, because I've honestly not tried it, but I'm 99.9% certain it's not there. It's not been documented/touted as a feature.

  • Issues in mapping objects from java to flex - using flex4

    Hi,
    I have a class in java which i want to send to flex4 using BlazeDS as middleware. There are a few issues that i am facing and they are:
    When sending the object across (java to flex), the properties with boolean data type having value as true gets converted to properties with value as  false. Even after setting the value to true it still comes as false on flex side. Can't understand why this is happening.
    When sending the list of object containing property with boolean data type, the object on flex side does not show those properties at all. As of there were no boolean properties in that object.
    Last but not the least, When sending List<ContractFilterVO> contractFilterVOs to flex using remote call, the result typecasted to ArrayCollection does not show the holding objects as ContractFilterVOs but as plain default Object though having all the properties send, except the boolean one mentioned in above points. Basically it is not able to typecast the objects in arraycoolection but the same objects gets typecasted when sent individually.
    In all the above points i am using Remote Service through BlazeDS for connectivity with Java. I have done a lot of this stuff in Flex 3 but doing it for the first time in flex 4, is there anything that Flex 4 needs specific. Below is the pasted code for reference purpose.
    Flex Object
    package com.vo
         [RemoteClass(alias="com.vo.ContractFilterVO")]
    public class ContractFilterVO{
         public function ContractFilterVO(){
         public var contractCode:String;
         public var contractDescription:String;
         public var isIndexation:Boolean;
         public var isAdditional:Boolean;
    * Rmote Part of code
    var remoteObject:RemoteObject = new RemoteObject();
    remoteObject.destination="testService";
    remoteObject.addEventListener(ResultEvent.Result,handleResult);
    public function handleResult(event:ResultEvent):void{
         var contarctFilterVOs:ArrayCollection = event.result as ArrayCollection; //Point 2&3 probelem, if list sent form java
         var contarctFilterVO:ContractFilterVO= event.result as ContractFilterVO; //Point 1 probelem, if only single Object of type ContractFilterVO sent form java
    Java Object
    package com.vo
    public class ContractFilterVO implements Serializable 
         public function ContractFilterVO(){
         private static final long serialVersionUID = 8067201720546217193L;
         private String contractCode;
         private String contractDescription;
         private Boolean isIndexation;
         private Boolean isAdditional;
    I don't understand what is wron in my code on either side, it looks syntactically right. It would be great anyone could help me point out my mistake here. Waiting for right solutions...
    Thanks and Regards,
    Jigar

    Hi Jeffery,
    Thanks for your reply, it did solve my query @ point 3 as well as point 2 where the objects in arraycollection were not geting converted and boolean properties did not appear when list of an objects were received. And hey, i did have public functions for properties defined java class, just forgot to mention here in post, sorry for that.
    The solution you gave was right, but than what if i have a VO which has multiple List of objects coming from Java, than i would have to create an instance of each type of object on flex side this is too tedious, is'nt it? Is there any better solution... out there.
    And jeffery do you some tricks up your sleeve for this Boolean issues to that i am facing in point 1... Still struggling with this one...
    Anyone out there would be more than welcome to point my mistake, if any and provide tips/tricks or solutions...
    Thanks again to Jeffery...
    Waiting for more solutions sooner...
    thanks and Regards,
    Jigar

  • Live view in DW 5.5 - no images display

    Any help on this?
    My DW 5.5 fails to display images (graphics) in the Live View mode.  They display properly in the Design mode and in a separate live browser session after I save the files.
    I can't remember if I made any changes to the DW options but I don't think so.
    This development is mainly just an inconvenience
    Thanks in advance,
    Tom

    It happens on all pages of the site on which I was working (and recently created).  The Live view on this site worked fine when I originally created it (using DW 5.5).  I needed to make some modifications to the base layout so started a 'new site'.  Live View on the new site worked for a while then failed to display graphics correctly.
    I tried re-creating the site cache (as noted reply 1) without success.
    I thought maybe there was an error in the code somewhere so I created a fully new site in a new directory (I have a test server on my home network where XAMPP is running).  For this new site, I created 1 new html page, added one <Div> and inserted an image in the <Div>.  When I click on Live View, the same thing happens.  The Live View shows the image block but only displays a 'question mark' in the center.  I would thus say it doesn't seem to be an error in the page code itself!  Yes, the graphic files are present in the folder pointed to in the code (obvously, since they display in the 'design' view).
    Since I still had the site created using David Power's tutorial (Check Magazine) that also had jpg and gif files displayed, I reloaded that old site.  The 'Live View' worked perfectly.
    The page and graphics display correctly and fully when using the preview/view in browser option of DW and when loaded into a browser outside DW so, as I said initially, this problem is mostly an inconvenience; but, I would like to get it corrected!
    As a note, I have never attempted to open or otherwise address DW's basic files.
    Thanks,
    Tom

  • Send error from Java to Flex

    I need to throw errors from Java and to receive them in Flex.
    My idea is using xml with error id and message, and maybe the Flex
    component which should show the error.
    Is there any other way to do it? Another interaction between
    Java and Flex?
    Thanks in advance
    Tuli-O

    XML wrapping error info written to response when java code
    throws and having a common component on the flex to handle this
    situation -- maybe on the fault event.

  • Live view from my Canon 7D to my Macbook or iPad2?

    I have a Canon 7d and a Macbook and an iPad2. Can I attach my 7D to my Macbook or iPad and see a live view as if I were looking at the back of my 7d? This is so I can see my subject on my macbook or iPad live as if I were in live view on the back of my 7d

    Which OS are you on? As long as you're not on Lion, you should be able to do it.
    You can accomplish this by using the USB cable that came with your 7D and EOS Utility. To download this app click here.

  • Image Slider not appearing/visual in live view/Browser

    I updated a link to my image browser and once I hit refresh, everything seemed fine. I checked my rework on live view, and the whole slider (including images and buttons) were no longer visual. (You could not see them.)
    |
    <!--==============================header=================================-->
      <div class="header">
          <div>
            <div class="nav">
                <nav> 
                    <ul class="menu">
                        <li class="current li-none"><a href="index.html">     Home     </a></li>
                        <li><a href="about.html">About</a></li>
                        <li><a href="portfolio.html">     Media      </a></li>
                        <li class="li-left li-none"><a href="products.html">     Products     </a></li>
                        <li><a href="news.html">News</a></li>
                        <li><a href="contacts.html">     Contact     </a></li>
                    </ul>
                </nav>
          </div>
            <header>
                <h1><a href="index.html"><img src="images/logo234.png" alt=""></a></h1>
            </header>
            <div id="slide">       
                <div class="slider">
                    <ul class="items">
                        <li><img src="images/slide-1.jpg" alt="" /></li>
                        <li><img src="images/slide-2.jpg" alt="" /></li>
                        <li><img src="images/slide-3.jpg" alt="" /></li>
                    </ul>
                </div>
                <ul class="pags">
                    <li><a href="#"><strong></strong></a></li>                <!--[This is the image I updated/changed]>
                    <li><a href="#"><strong></strong></a></li>
                    <li><a href="#"><strong></strong></a></li>
    >
                </ul>   
            </div>
        </div>
      </div>  
    <!--==============================content================================-->
    |
    I checked in browser and you could also not see them there, either. The ONLY thing I changed was the link to the image. Here is the code, please let me know if you can help out at all.
    Joe

    Jon,
    I have not uploaded the page yet, because this issue came up and I did not want a non-functional part of the site available online yet. However, I have done the following:
    -Checked the link and that it is correct with no typo's, etc.
    -Checked the Javascript (there are no issues there, either.)
    I am going to download the original page from the server and compare once again to see if there are differences.
    I will post updates.

  • Certain images not appearing in Live View?

    Hello,
    I recently upgraded my Dreamweaver CS5 and have noticed that certain images are no longer appearing in Live View. When Live View is unclicked, both of the images appear in both Design View and Preview in Browser; however, when Live View is clicked, the question mark appears for new images that were not used in Dreamweaver previous to the update. Does anyone know a fix to this? I have already tried to uninstall/re-install the software. Thanks for your help.

    What is the exact code path to images?
    How big are your images (filesize)?  Did you optimize them for the web in your graphics editor before inserting them into your web page?  Are they saved as RGB and not CMYK?
    Nancy O.

  • ROI in real view from camera

    Hello 
    Is a possibility to create  a  rectangle on live view from camera and set it to ROI ?? ( i need the break in program, when i select the rectangle the program should be continiued) . I used select rectangle or IMAQ construct ROI but both of them take a picture. I need to do this on live view . 
    Best Regards 

    Are you displaying the image in an Image Display Control? If so, you can display ROI tools (Right click on the control, then select Visible Items>>ROI Tools>>Visible).
    You can then select a tool and draw an ROI in the display control that shows live image.
    To access the ROI from the diagram, right click on the indicator of the image display control. Select Create>>Property Node>>ROI.
    Hope this helps.
    Christophe

  • Why page looks fine in Design view but not live view?

    I am new to DW. I created a page that looks fine in design view but now I cant get it to show up in live view or the browser preview. Can some one give me some areas to troubleshoot. Most of the code is from a previous page I created that still looks fine in every view. I am not sure what I could be doing different in setting up this site.

    Thanks for taking the time to reply to question. Aftr taking a break. I came back realized I inserted the stylesheet before I changed site settings. I just needed to remove the forward slash from my stylesheet declaration. FYI for anyone else new to DW: if stuffs not showing  in Live View and Browser Preview eg background images, Go to Manage Sites and check your site setting for Links relative to: You may have switched between document and site root. Thus breaking your links to images or in my case the entire style sheet.

  • Page looks fine in live view but not fine in safari

    my index.html page looks okay in live view, but when i open it in safari some of my text is unformated. My CSS page is correct so the problem lies in my code. I have attached the html file, any help will be appreciated. Thank you!

    Thanks for taking the time to reply to question. Aftr taking a break. I came back realized I inserted the stylesheet before I changed site settings. I just needed to remove the forward slash from my stylesheet declaration. FYI for anyone else new to DW: if stuffs not showing  in Live View and Browser Preview eg background images, Go to Manage Sites and check your site setting for Links relative to: You may have switched between document and site root. Thus breaking your links to images or in my case the entire style sheet.

  • How to view the "Live View" in Final Cut?

    Hi!
    I bought the Canon 550d yesterday, and after 30 minutes of use, I realized that the only way to get what you want in terms of focus is to just do it manually.
    The only problem is - I need to capture my own face, which means that I can't see anything on the camera screen.
    So, I saw that some youtube video makers have their "live" view in final cut, which I thought was brilliant, but I have no idea how to do it.
    So here's my question - how do I "view" the live view from my camera in FCP?
    Thanks for the help

    LiorP wrote:
    ...  some youtube video makers have their "live" view in final cut, …
    So here's my question - how do I "view" the live view from my camera in FCP? …
    most yt-makers don't use FCPX, but designated tools like ScreenFlow which offers such an 'effect'. Like in this short advice I made for a friend ...
    for Importing a live-feed, read advice here
    http://help.apple.com/finalcutpro/mac/10.0.4/#ver41814595
    … but that does NOT guarantee , that your Canon delivers a live-feed, your Mac can acknowledge ...

  • Populate combobox grid view from sql server

    hello,
    is it possible to populate combo box from entries in sql server database
    also is it possible to populate grid view from entries in database including image files stored in binary format
    regards,

    Yes and yes.

  • Server/Data Push Form Java to Flex.

    Hi All ,
       In my application ( Flex3 + Java Struts) i am using RPC (HttpService) calls only . Recently i read the article about
      DATA PUSH FROM JAVA TO FLEX WITHOUT PAGE REFRESHING USING SERVER PUSH.
    Can anybody tell me more about this , how to use this in my application.
    Thanks in Advance....

    Did not worked that much with those but I know there are some embedded example
    that comes along with the blazeDS download.
    The DB is embedded but you can have a rough idea. alsoe there are some
    turtorials and odcs for both of them, Google is your friend. Also google for
    James Ward's blog and Christophe Coenraets, they have posts about this.
    C

Maybe you are looking for