Hero SDK - issue image source

This is my first post on the site, however, I found many solutions to the problems of navigation on these forums.

My problem is the following:

I'm trying to create a list using an itemRenderer and it generated just well and most of the functionality works very well.  The problem is the image.  Everything else works (IE. The product name, quantity, etc.) using {data. Name of the node in XMLList}

< s:Panel width = "200" height = "250" borderVisible = "false" chromeColor = "#2D455D" color = "#FFFFFF" cornerRadius = "10" fontSize = "16" title = "data.product_name}" >

< s:Image = "5" width = "75" height = "75" horizontalCenter = "0" source = "{data.image_source}" / > "
< s:Label x = '6' y = '88' color = "#000000" fontSize = "10" text = "retail price:" / >
< s:Label x = "10" y = "106" color = "#000000" fontSize = "14" text = "Our price" / >
< s:Label id = "retail_price" x = "70" y = "88" color = "#000000" fontSize = text = "${data.retail_price}" / "10" >
< s:Label id = "our_price" x = "70" y = "106" color = "#000000" fontSize = text = "${data.our_price}" / "14" >
< s:TextInput = "12" x = "145" height = "62" color = "#000000" text = "{data.image_source}" / >

< / s:Panel >

The image works fine if I put in a direct link (ie. ) http://www.somedomain.com/someimage.jpg ).  I did an Alert.show to make sure I was getting the correct link on data.image_source and I am indeed.  I can copy the alert message and paste it into a browser and the image comes back immediately.

Then after that I couldn't get this to work I decided to take a step back and just do a simple example.  Basically just tried to set an image source using an xml result.  I did in Flash Builder 4 and Flex 3 without any problems whatsoever.

However, in Flash Builder Burrito using SDK Hero can't seem to set the source of an image by using a value of xml at all.  I am baffeled by here and have tried everything I can think of to debug this without any result.

protected function get_panel_products_service_resultHandler(event:ResultEvent):void

{
panels_xml = new XMLList (event.result.product);

Image 1 - Direct link
Alert.Show ("BEFORE:" + my_img.source); RETURN FRONT: null
my_img.source = " " http://blog.internetnews.com/skerner/SMK/TestPilot.PNG "; "
Alert.show ("AFTER:" + my_img.source);  RETURNS AFTER: http://blog.internetnews.com/skerner/smk/testpilot.png . IMAGE

Image 2 - XML result
Alert.Show ("BEFORE:" + my_img2.source); RETURN FRONT: null
Alert.show ("XML Source of Image:" + panels_xml.image_source); RETURNS XML Source Image: http://blog.internetnews.com/skerner/smk/testpilot.png
my_img2.source = panels_xml.image_source;
Alert.show ("AFTER:" + my_img2.source); RETURNS AFTER: http://blog.internetnews.com/skerner/smk/testpilot.png . NO IMAGE
}

So basically even if the source print the same for each method to do the assignment, only my_img is displayed.  my_img2 has never at any time.

Any ideas?

Almost all XML and XMLList queries return an another XMLList.  Often, it becomes

Auto-converti in a string, but some components such as Image and BitmapImage

anything as a source will be so no auto-coercition takes place.

Try: my_img2.source = panels_xml.image_source.toString ();

Tags: Flex

Similar Questions

  • Imaging Source DFG/SV1 acquisition card is not correctly recognized in LabVIEW 2009

    I have an Imaging Source DFG/SV1 frame grabber/capture card (I think that this example uses a Bt878 chip) that I am using with LabVIEW 2009 (Fall edition 2009 academic Site license), including elements of acquisition of vision (NEITHER Vision, NOR-IMAQ (4.3) OR-IMAQdx (3.4), etc.). I have all the latest sources of imagery support drivers and software for the Board of Directors (http://www.theimagingsource.com/en_US/products/grabbers/dfgsv1/ drivers: v6.0.3.0, IC Software v2.1 and IC Imaging Control v3.1) with drivers being compatible DirectShow. The DFG/SV1 is detected in MAX under devices NOR-MAQdx / DFG/SV1 / cam0 and I can grab and preview images, however to 320 x 240 resolution, I have a higher resolution camera and know that the jury is capable of greater resolution using IC software manufacturing and also via TWAIN with ImageJ software drivers. Interesteingly, if I try to acquire an image of the card purchase using the Vision Assistant, the DFG/SV1 card is not recognized as a card acquisition, but listed under IEEE 1394 or GigE peripheral, revealing with it being direct device that I can't understand. Despite this I can acquire images, but I am limited to 320 x 240 format and change the type of image (RGB, UYVY etc) causes an error. Once again, oddly enough, I can use "enter and select mode example VI" which should only be compatible with IEEE 1394 cameras.

    I'm not sure why LabVIEW is not seen this card properly, I contacted Imaging source who were also intrigued by the fact.

    Any information on how this could be resolved would be much appreciated.

    Thanks in advance.

    Hi OCastell,

    With this Council Imaging Source, the only interface supported with drivers of NI Vision Acquisition is through using IMAQdx DirectShow interface. It is possible that their DirectShow driver does not properly support all of the capabilities of their Council. Given that ICR software and TWAIN support can be routed to a different implementation of one of the DirectShow support, you can see the different features available. Unfortunately, you probably go through Imaging Source to determine why their DirectShow driver does not support the full resolution. You can confirm that it isn't IMAQdx this limiting trying other software such as Windows NetMeeting or AMCAP DirectShow and see what capture resolutions are listed.

    Because the DirectShow interface is managed by IMAQdx driver, it will not be detected as a framegrabber IMAQ using the IMAQ driver. This is expected since it fits in the same category as firewire and GigE Vision cameras and is supported with the IMAQdx driver instead.

    The "Grab and select the Mode" example VI isn't really specific FireWire, although he was certainly intended to highlight the various video modes that generally expose FireWire cameras. Since the DirectShow devices are similar and have several selectable video modes, it's why he's probably working. In any case, IMAQdx abstracts usually differences between all supported camera types and in general a single VI can run on all cameras IMAQdx-taking in charge unless you rely on buses or the camera-specific features.

    Regarding Vision Assistant marking the camera as 'IEEE 1394 or GigE', I think it's just an aesthetic issue (which may already be fixed in new versions). When IMAQdx was out, these are the supported types of cameras and so Vision Assistant was trying to say clearly what driver was used for the type of device. Now that IMAQdx supports a multitude of new interfaces (including DirectShow and some IP cameras) that the label is inaccurate.

    Finally, looking at the specs for this capture card, it looks like a standard reference BT878/848 model and then you could try potentially replace your Imaging Source driver with one here:

    http://BTWinCap.sourceforge.NET/

    I used this with a with IMAQdx BT878 capture card and can get it to capture an image full resolution (but of course, your results may vary...). It goes without saying that this solution using DirectShow is much more limited than using an industrial camera on 1394/firewire or a framegrabber IMAQ.

    Hope this helps,

    Eric

  • Component image source tag does not work in iOS devices

    Hello

    I want to put the url of the image in the source of the component of the image tag. I am currently using 12 c (12.1.3.0) JDeveloper.

    His works very well in Android devices, but does not not in the iOS Devices.

    Here's my amx page code:

    < amx:listView var = value ' row' = "#{bindings.youtubeFeeds.collectionModel} '"

    fetchSize = "#{bindings.youtubeFeeds.rangeSize} '"

    selectedRowKeys = "#{bindings.youtubeFeeds.collectionModel.selectedRow} '"

    selectionListener = "#{bindings.youtubeFeeds.collectionModel.makeCurrent} '"

    showMoreStrategy = 'autoScroll' bufferStrategy = 'viewport' id = "lv2.

    inlineStyle = "background - color:rgba (0,0,0,0.3);" margin-bottom: 10%; ">

    < amx:listItem id = "li2" >

    < amx:panelGroupLayout id = "pgl5".

    inlineStyle = "margin: 0;"  Padding: 4%; padding-top: 2%; padding-bottom: 2%; ">

    < amx:tableLayout id = "tl3' width = '100% ' inlineStyle =" width: 100%; ">

    < amx:rowLayout id = "rl3" >

    < amx:cellFormat halign = "center" id = "NF3" valign = "middle".

    inlineStyle = "width: 45%;" >

    < amx:image source = "#{row.thumbURL}" id = "i5" inlineStyle = "width: 100%;" / > "

    < / amx:cellFormat >

    < / amx:rowLayout >

    < / amx:tableLayout >

    < / amx:panelGroupLayout >

    < / amx:listItem >

    < / amx:listView >

    I also tried with the static url from java code parameter

    youtubeFeeds.setThumbURL ("http://iconbug.com/data/9f/507/7539a8d9ee940f052a34a4eaae4775a1.png" "");

    and through binding, I showed that in listView component. But same question does not not in the iOS Devices.


    Yes, its working very well. This image is in a picture file in a project itself.

    "< amx:image id ="i121"source="/images/bg.jpg "inlineStyle =" width: 100%; " height: 100%; "/ >


    Same thing I want to do this the image url.

    Any help will be appreciated.


    Kind regards

    Siddharth


    a. you only see the image in preview if encode you this url in amx?

    b. can you try to add *. iconbug.* whitelist and try. (You can do this MAF - application.xml-> Security-> remote URL whitelist)

    Kind regards

    Deepak

  • How to check the image source for the image which is losted?

    Hello world

    How to check the image source for the image which is losted?

    If the image source already exists, I can read the PlaceItem.file.fsName.

    But if remove the image of the source, read the PlaceItem.file.fsName will report the error: there is no file associated with this element

    Thank you

    If (app.documents.length > 0) {}

    var sourceDoc = app.activeDocument;

    sourceName = sourceDoc.name var;

    artItem =]

    for (i = 0; i < sourceDoc.pageItems.length; i ++) {}

    artItem [i] = sourceDoc.pageItems [i];

    If (.) TypeName artItem [i] == 'PlacedItem') {}

    If (.imageColorSpace [i] artItem == undefined) {}

    Alert ("the file is the link, but I don't know whether or not the source image is losted");

    }

    }

    }

    }

    Use try/catch to catch the error

    if (app.documents.length > 0) {
        var sourceDoc = app.activeDocument;
        var sourceName = sourceDoc.name;
        artItem = []
        for (i = 0; i < sourceDoc.pageItems.length; i++) {
            artItem[i] = sourceDoc.pageItems[i];
            if (artItem[i].typename == 'PlacedItem') {
                if (artItem[i].imageColorSpace == undefined) {
                    try {
                        var fname = artItem[i].file.name;
                        alert("file name: " + fname);
                    }
                    catch (e) {
                        alert("The file is linking ,but source image is lost");
                    }
                }
            }
        }
    }
    
  • Time warp by image source?

    How to use this?

    I want a portion of a clip to expand at some point, I know I can use other than temporal methods. But I want to try different settings I see associated with time. The documentation says set by source is to set a time where an image is supposed to happen. Large. How do I do that? If I type an image number in the control of the source image, it does? How can I specify which frame occur at a specific time?

    I have the 2nd step backward. And the clip doesn't change length as I thought, he does.

    Image source seems to be the frame that is moved. Executives before the source image dilate or contract. After the source image frames moving uniformly without expanding or contracting. But the length of the composition remains the same.

    So, if you move the image source ahead in time, the end of the clip becomes truncated.

    If you move the source image backwards in time, the last image of the end of the clip is duplicated to fill the length of the composition.

    Various tutorial videos I watched all explained that, but it did not register in my mind.

    Once things appeared to work, by looking at the graph editor has helped me understand what was going on.

    If your point is not 0, when you activate first timewarp, the compose window shows image 0, while the chassis number of your publication is always the image in the sequence points. This shows that the source image is the framework that will be moved to the location of the playhead.

    That's what I did:

    Set in point and out point images and create a publication.

    Lengthen or shorten the composition in proportion with where you move the source image. You can do this before or after setting the keyframes.

    For example, here's what I did to set a point in the clip of contracting and shorten the composition:

    The point 219 and out value - point to 338

    Create a composition of selection.

    Change composition settings so that the length goes from 120 to 90.

    With the playhead to 219, activate timewarp

    Expand the scope of the effect in the composition Panel. Expand timewarp.

    Together to adjust the time of the source image

    Activate the animation (click on the stopwatch). A keyframe is created.

    In the image source field, type 219 and press to enter.

    Move the playhead to 240

    Click the diamond icon in the image source line to create the central key frame.

    Type 270 in the image source field, and press ENTER.

    Move the playhead to 308

    Set a keyframe and enter 338 as the source image

    At this point, the out point is still 338. So, if you forgot how to add or subtract you can can go to the out point to find the number of source image.

    The composition has now been distorted.

  • vSphere SDK for Perl source code available?

    Hi all

    I'm looking for "vSphere SDK for Perl source package" which should contain the source code for the vSphere SDK for Perl as indicated in the documentation.

    Could if it you please let me know where I can find it?

    Thanks in advance for your answers.

    Best regards

    Christophe

    vSphere SDK for Perl bindings are located inside the installer, just download it from here http://www.vmware.com/support/developer/viperltoolkit/ and extract the contents and you will see. MP files that are client-side stubs.

    Is there a specific use case that you try to resolve request to get the source code? Here is one several links that VMware offers that is automatically generated from the vSphere API WSDL audience

  • Is it possible to designate what hero in slideshow image loads first?

    So I have a slideshow with the photos on the side and heroes of the images next to them. I want that hero image that corresponds with the high sticker, left to load first loading of the page. Is it possible to designate which? For now, looks like a random picture of the charges and there is no way to specify.

    Hi designerchica1109,

    By default, slide show load the top left thumbnail (when thumbnails are stacked).

    In case there is some confusion about the order, I suggest to turn on the meter of widget flyout Menu and there you can check the number associated image.

    First, it loads the first frame. You can rearrange the order of thumbnails to fit your needs.

    I hope this helps.

    Kind regards

    Akshay

  • Use different 'fx-border-image-source"to the first tab and remaining tabs

    Hello

    I'm using something like this
    . Tab {}
    -fx-padding: 0px 5px - 2px 5px;
    0 0 0;
    -fx-background-color: transparent;
    -fx-text-fill: #c4d8de;
    -fx-border-image-source: url("images/tab5.png");
    -fx-border-image-slice: 20 20 20 20 fill;
    -fx-border-image-width: 20 20 20 20;
    -fx-border-image-repeat: stretch;
    -fx-font-size: 22px;
    }
    . Tab: selected {}
    -fx-border-image-source: url("images/tab-selected5.png");
    -fx-text-fill: #333333;
    /*
    -fx-background-color: red; * /
    }

    to customize the appearance of the tab of a TabPane.

    That has worked well. But I need to use a different set of images for just the first tab. Does anyone know how?

    Thank you.

    After you add the tab to a scene pane active, searching the first tab of the scene, it is id the first-tab value and style of the first tab via css.

    import javafx.application.Application;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.layout.*;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.*;
    
    public class ThumbTabPane extends Application {
      public static void main(String[] args) { launch(args); }
      @Override public void start(Stage stage) {
        // create some tabs.
        TabPane tabPane = new TabPane();
        Tab tab1 = new Tab("Sites"); tab1.setContent(new Rectangle(400, 200, Color.LIGHTGREEN));
        Tab tab2 = new Tab("Favorites"); tab2.setContent(new Rectangle(400, 200, Color.LIGHTSTEELBLUE));
        Tab tab3 = new Tab("Loves"); tab3.setContent(new Rectangle(400, 200, Color.PINK));
        tabPane.getTabs().addAll(tab1, tab2, tab3);
        tabPane.setMaxSize(Region.USE_PREF_SIZE, Region.USE_PREF_SIZE);
    
        // layout the stage.
        StackPane layout = new StackPane();
        layout.getChildren().add(tabPane);
        layout.setStyle("-fx-background-color: cornsilk; -fx-padding: 10;");
        Scene scene = new Scene(layout);
        scene.getStylesheets().add(ThumbTabPane.class.getResource("stylishtabs.css").toExternalForm());
        stage.setScene(scene);
        stage.show();
    
        Node node = scene.getRoot().lookup(".tab");
        node.setId("first-tab");
      }
    }
    
    // file stylishtabs.css
    .tab {
      -fx-border-image-source: url("http://th33.photobucket.com/albums/d73/siewsammuk/th_icon_cool.gif");
      -fx-border-image-slice: 20 20 20 20 fill;
      -fx-border-image-width: 20 20 20 20;
      -fx-border-image-repeat: stretch;
    }
    .tab:selected { -fx-border-image-source: url("http://www.panic.com/blog/wp-content/themes/panic/images/icon_smile.png"); }  
    
    #first-tab.tab { -fx-border-image-source: url("http://roi.ltcdn.com/roidsn/en/main/icon_6.jpg"); }
    #first-tab.tab:selected { -fx-border-image-source: url("http://pensacolatodo.com/icon_images/icon_wordpress.gif"); }
    
  • Using the key "relative to" whenever I try to edit an image source

    Dreamweaver CS4 on Windows 7.

    When you change an existing existing image on a web page in Dreamweaver by double-clicking the existing image on the page to open the Source Panel to select the Image, I have to toggle the ' Relative to ' (the Site root / Document) button for each image.

    In other words, say that when you use Design mode, I want to replace img1.jpg with img3.jpg and IMG2.jpg with img4.jpg, the steps I have to take are:

    1 double-click on img1.jpg on the page to open the Panel select Image Source.

    2. Select img3.jpg.

    3. click on the relative to the button at the bottom of the Panel and change it so she is on (root Site, let's say) to the other option (Document).

    4, and then click OK.

    5 double click on img2.jpg on the page...

    6. Select img4.jpg

    7. Select the other option (the SIte root) in the Relative to the drop-down list

    8. then click OK

    9. Repeat for each image whose source is changed.  If one is from the root of the Site, the other must be relative to the Document, then the next time I have to select the root of the Site, etc..

    If I don't select the other relative to the option, the path of the source image will not change when I click OK.

    Default site definition link is located in the Document.

    It has been like this for weeks now, and it starts to get boring.  Any ideas?

    From memory, this could be a bug not resolved with DW CS4 and Windows 7

    http://www.SevenForums.com/software/37749-compatibility-problem-Dreamweaver-CS4.html

    It affects only jpg and GIF? i.e. are PNGs OK?

  • ADF - image source Set with JavaScript

    Hello.

    I have a layout grid panel with multiple lines and cells.

    Each cell contains a text and a picture, all surrounded by a command binding.

    My output text have the value #{MyBean.valueMyBean}

    My image have the source /directory1/directory2 / # {MyBean.valueMyBean} .jpg

    What I want is that whenever I click on that image, image and its corresponding output text takes the same value (simulating the selected item)

    I want to do with JavaScript, because when I do it with partial triggers there is a delay, and it does not work for the needs.

    Could you help me put who implemented?

    I don't have an idea to change the source of an image with JavaScript.

    You can join af:clientListener for the image and call the javascript function that will be:

    -find the component target, something like: var targetImg = AdfPage.PAGE.findComponent (clientId);

    -change the property 'source', something like: targetImg.setSource ("new source");

    Here you can find more information about adf api client-side: http://docs.oracle.com/cd/E24382_01/web.1112/e16181/af_arch.htm#ADFUI10042

    Dario

  • Not able to select .jpg to fill selector background image source property s &lt; style &gt; embeded, window closed until I can choose my .jpg to fill in the url field.

    Not able to select .jpg to fill selector background image property of the source s < style > embeded, window closes before I can choose my .jpg to fill in the URL field in the background-image property. Any suggestions? Thank you!

    Manually, enter it in code view.

    background - image: URL (yourimagepath.jpg);

    It could be a code error, DW requires a valid code / clean for many of its functions to work properly. Run http://validator.w3.org/nu and The Service of Validation CSS W3C validators and clean the detected problems. If that doesn't help, clear the cache program or restore preferences can help.

  • When you use multiple process files can I rename the Image Source

    Hi Forum

    I would like to rename all my Images (about 1800) for a standard naming such as IMAGE_1 system, etc. IMAGE_2. It's because they had the file ID different a lot over the years and this has become messy. I tried the process of multiple Images in the editor of 13 elements, but it doesn't seem to work for the following reasons:

    (1) if I choose the source folder to update the button rename is off? So it appears this function is disabled when it is used against the same folder of image location.

    (2) if I chose a new location, then I lose my whole face of people marking information.

    Any ideas how to solve this problem?

    Concerning

    David

    This is a job for the Organizer.

    Select your files (if they are in an album, you can sort them as you want).
    While they are highlighted, use the menu file/rename (shortcut Ctrl Shift N) and enter the starting string.

    Edit:

    I forgot to say that the change of name of the Organizer will keep all your organizing info, like tags etc.

  • vSphere SDK for Perl source package - linux

    I'm looking to install vSphere SDK for Perl from source on my linux 64-bit system. The download, I work with is at http://downloads.vmware.com/d/details/vcli_perl4_64_os_s/ZHcqYmR0KnBidGR3. Is this correct? This package contains is .so and .pm, and I'm not sure what to do with them. The docs for vSphere SDK for Perl installation insinuate that there should be a Makefile.PL or somesuch. What I am doing wrong?

    That link you provided is just the OSS components mobilized by the VI Perl SDK and the vCLI.  It is not a complete installation or the other.

    You'll want to use the download link on the home page of this forum for Linux Perl SDK Setup.

    Keep in mind, when you say install source, the VMware Perl SDK is just not compiled perl modules.  The rest of the Perl SDK package's dependencies (LibXML, Crypt::SSLeay, Class::MethodMaker, etc.).

    You will find the Makefile.PL and some scripts installer in the bits of the package.

  • How to refresh the value of image source

    I have an element of the image in a page fragment. When the page opens the source of the image is set to the URI of a gif file

    What I want, is to update the URI into another image, the value of a bean property once managed Exchange.

    The image component is bound to a property of the managed bean, pageAnimationImage.

    I'm new to ADF and tried to set the trigger part when the value of the property is set and also the true clientComponent of the image
    AdfFacesContext.getCurrentInstance () .addPartialTarget (pageAnimationImage);

    I searched this forum and other blogs but could not find anything related.

    I would really appreciate if anyone has a suggestion or point me to a related case.

    TIA

    Use an EL to get the URI of the image as
    The bean code:

        public String getImageURI()
        {// change the uri depending on your logic
            String uri = "/images/image1.gif";
            if (other_property_is_true())
                 uri = "/images/image2.gif";
            return uri;
        }
    

    Page code

                  
    

    You must always send the ppr to the immage after your property changes.

    Timo

  • SEO and image Source

    Hello everyone

    I recently noticed my source image files all have a question mark at the end of their.

    Example of

    ALT = "" 27 Joint piece Baklava a half Tray 30oz "src="/images/products/baklava-sweets/27-Piece-Mixed-Balava-Half-tray.jpg? " Action = thumbnail & width = 382 & height = 382 & algorithm = fill_proportional /.

    It is at the end of each .jpg file.

    My questions are

    1. is it like that or y at - it something wrong

    2. in any event it hurt my seo efforts

    3. in the affirmative, it is changed easily?

    Hello.

    1. it seems that the site you have created for you, or if you use a template it uses miniature rendering functionality to make these images. Who is supposed to be like that Yes.

    2. it does not damage your SEO

    3. you can, but you would need to change the page layouts and how this site was created to be used. You don't need to.

Maybe you are looking for