Adding Images to the List component

Adding Images to the List component while using the FLV
PLayback
All, ( i can send you my source files if it would help)
I'm using the FLV Playback component and loading videos into
it from an external xml file. I also have a list component tied to
the FLV playback that when you click on one of the elements in the
list, it plays that movie.
QUESTION:
My question is how do I add an image to the list component?
Below is the xml file and the actionscript. I've added the image
attribute to the XML file as img="time_square.jpg" and added the
element of the array when calling/creating the list. Did I do this
right?
Any direction would be very much appreciated.

Adding Images to the List component while using the FLV
PLayback
All, ( i can send you my source files if it would help)
I'm using the FLV Playback component and loading videos into
it from an external xml file. I also have a list component tied to
the FLV playback that when you click on one of the elements in the
list, it plays that movie.
QUESTION:
My question is how do I add an image to the list component?
Below is the xml file and the actionscript. I've added the image
attribute to the XML file as img="time_square.jpg" and added the
element of the array when calling/creating the list. Did I do this
right?
Any direction would be very much appreciated.

Similar Messages

  • Apple replaced my hard drive (1tb seagate) and now I can't access my Microsoft office because the license was compromised. is this fixable? or will we be adding this to the list of lawsuits..

    apple replaced my hard drive (1tb seagate) and now I can't access my Microsoft office because the license was compromised. is this fixable? or will we be adding this to the list of lawsuits..

    You can reinstall MS using your install disk(s) and the original registration key(s).
    As for your threat, you might want to read the Software License Agreement as well as the Hardware warranty. They are available here:
    http://www.apple.com/legal/sla/
    Here is an excerpt from the SLA:
    8. Disclaimer of Warranties. YOU EXPRESSLY ACKNOWLEDGE AND AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE APPLE SOFTWARE AND ANY SERVICES PERFORMED BY OR THROUGH THE APPLE SOFTWARE (COLLECTIVELY “SERVICES”) IS AT YOUR SOLE RISK AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND EFFORT IS WITH YOU. EXCEPT FOR THE LIMITED WARRANTY ON MEDIA SET FORTH ABOVE AND TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE APPLE SOFTWARE AND SERVICES ARE PROVIDED “AS IS” AND “AS AVAILABLE”, WITH ALL FAULTS AND WITHOUT WARRANTY OF ANY KIND, AND APPLE AND APPLE'S LICENSORS (COLLECTIVELY REFERRED TO AS “APPLE” FOR THE PURPOSES OF SECTIONS 8 and 9) HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH RESPECT TO THE APPLE SOFTWARE AND SERVICES, EITHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES AND/OR CONDITIONS OF MERCHANTABILITY, OF SATISFACTORY QUALITY, OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY, OF QUIET ENJOYMENT, AND NON-INFRINGEMENT OF THIRD PARTY RIGHTS. APPLE DOES NOT WARRANT AGAINST INTERFERENCE WITH YOUR ENJOYMENT OF THE APPLE SOFTWARE AND SERVICES, THAT THE FUNCTIONS CONTAINED IN, OR SERVICES PERFORMED OR PROVIDED BY, THE APPLE SOFTWARE WILL MEET YOUR REQUIREMENTS, THAT THE OPERATION OF THE APPLE SOFTWARE OR SERVICES WILL BE UNINTERRUPTED OR ERROR- FREE, THAT ANY SERVICES WILL CONTINUE TO BE MADE AVAILABLE, THAT THE APPLE SOFTWARE OR SERVICES WILL BE COMPATIBLE OR WORK WITH ANY THIRD PARTY SOFTWARE, APPLICATIONS OR THIRD PARTY SERVICES, OR THAT DEFECTS IN THE APPLE SOFTWARE OR SERVICES WILL BE CORRECTED. INSTALLATION OF THIS SOFTWARE MAY AFFECT THE USABILITY OF THIRD PARTY SOFTWARE, APPLICATIONS OR THIRD PARTY SERVICES. YOU FURTHER ACKNOWLEDGE THAT THE APPLE SOFTWARE AND SERVICES ARE NOT INTENDED OR SUITABLE FOR USE IN SITUATIONS OR ENVIRONMENTS WHERE THE FAILURE OR TIME DELAYS OF, OR ERRORS OR INACCURACIES IN THE CONTENT, DATA OR INFORMATION PROVIDED BY, THE APPLE SOFTWARE OR SERVICES COULD LEAD TO DEATH, PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE, INCLUDING WITHOUT LIMITATION THE OPERATION OF NUCLEAR FACILITIES, AIRCRAFT NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL, LIFE SUPPORT OR WEAPONS SYSTEMS. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY APPLE OR AN APPLE AUTHORIZED REPRESENTATIVE SHALL CREATE A WARRANTY. SHOULD THE APPLE SOFTWARE OR SERVICES PROVE DEFECTIVE, YOU ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES OR LIMITATIONS ON APPLICABLE STATUTORY RIGHTS OF A CONSUMER, SO THE ABOVE EXCLUSION AND LIMITATIONS MAY NOT APPLY TO YOU.
    9. Limitation of Liability. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT SHALL APPLE BE LIABLE FOR PERSONAL INJURY, OR ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES WHATSOEVER, INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, LOSS OF DATA, BUSINESS INTERRUPTION OR ANY OTHER COMMERCIAL DAMAGES OR LOSSES, ARISING OUT OF OR RELATED TO YOUR USE OR INABILITY TO USE THE APPLE SOFTWARE AND SERVICES OR ANY THIRD PARTY SOFTWARE OR APPLICATIONS IN CONJUNCTION WITH THE APPLE SOFTWARE, HOWEVER CAUSED, REGARDLESS OF THE THEORY OF LIABILITY (CONTRACT, TORT OR OTHERWISE) AND EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OF LIABILITY FOR PERSONAL INJURY, OR OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS LIMITATION MAY NOT APPLY TO YOU. In no event shall Apple's total liability to you for all damages (other than as may be required by applicable law in cases involving personal injury) exceed the amount of fifty dollars ($50.00). The foregoing limitations will apply even if the above stated remedy fails of its essential purpose.

  • Image on the list

    Hi all.
    Is that possible for me to put image in the JList?
    If yes, how do I add?
    Thanks guys.
    Budi

      // Display an icon and a string for each object in the list.
    class MyCellRenderer extends JLabel implements ListCellRenderer {
         final static ImageIcon longIcon = new ImageIcon("long.gif");
         final static ImageIcon shortIcon = new ImageIcon("short.gif");
         // This is the only method defined by ListCellRenderer.
         // We just reconfigure the JLabel each time we're called.
         public Component getListCellRendererComponent(
           JList list,
           Object value,            // value to display
           int index,               // cell index
           boolean isSelected,      // is the cell selected
           boolean cellHasFocus)    // the list and the cell have the focus
             String s = value.toString();
             setText(s);
             setIcon((s.length() > 10) ? longIcon : shortIcon);
               if (isSelected) {
                 setBackground(list.getSelectionBackground());
                setForeground(list.getSelectionForeground());
             else {
                setBackground(list.getBackground());
                setForeground(list.getForeground());
            setEnabled(list.isEnabled());
            setFont(list.getFont());
             return this;
    String[] data = {"one", "two", "three", "four"};
    JList dataList = new JList(data);
    dataList.setCellRenderer(new MyCellRenderer());

  • Adding image for the selected Tree leaf???

    Hi All,
             I am working with flex tree component in which i have to add
    an arrow image for the  selected leaf node. I tried to do this using itemclick event
    but cant make it. can you help me out in doing this???
    Note: I have written custom Tree and TreeItemRenderer...
    -Sundar

    Thanks for ur reply Grizzzzzzzzz,
                                                    is there a way to identify the selected leaf from within MyTreeItemRenderer(Extends TreeItemRenderer)?
                                                   If this is possible,i can add the image to the selected leaf of the tree.
    Right now i am assigning images to all the leaf nodes of the tree as follows:
    public  
    class MyTreeItemRenderer extends TreeItemRenderer
    * Override to draw a line in case current item is a leaf.
     override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):
    void{ 
    // Call super method 
    super.updateDisplayList(unscaledWidth, unscaledHeight);
    if(super.data){
    if(TreeListData(super.listData).hasChildren){
    // logic for parent node comes here
    else{ 
    //Adding leaf Image
    //Logic to add images to leaf 
    myImage.source = leafImage;
    myImage.x =
    super.label.x;
    //The above code adds images to all leaf nodes. CAN I ADD THIS IMAGE ONLY TO THE SELECTED LEAF NODE???
    //HOW TO FIND THE SELECTED LEAF NODE FROM HERE??? SO THAT SELECTED LEAF WILL BE ADDED WITH THE IMAGE???
    //The above code adds images to all leaf nodes. CAN I ADD THIS IMAGE ONLY TO THE SELECTED LEAF NODE???
    //HOW TO FIND THE SELECTED LEAF NODE FROM HERE??? SO THAT SELECTED LEAF WILL BE ADDED WITH THE IMAGE???
    THANKS,
    SUNDAR 

  • Adding images to the stage

    Hello,
    I am currently working on a photo gallery which reads an XML file and load all picture from it. I am doing all by AS3 by adding bitmapdata to the container by loader object. What I want to do is when I add these images they behave like a button, by enabling hand cursor and pointing to a specific frame or an URL when I click on it. How should I proceed with the script to do so ? (Create a button or a movieclip which can be clicked and all this on a dynamic way)
    Thank you all guys !

    Hey kglad,
    Thank you...that helped !

  • Text and images in the same component?

    Ok... a lil help please :
    into what component can i put text and images at the same time
    as in...
    example, what component could contain data like this :
    Hello this is me <imageofmyself> and this is my house <imageofmyhouse>... bye all !
    thanks in advance,
    Jonathan, a.k.a. Kyraz

    You could use a Swing HTMLPANE or draw it all onto a
    BufferedImage and display that (code posted under 2D graphics thread).
    MArk

  • Adding Images to the folders

    Hello All,
    Kindly let me know how I can attach an image to the Content Management folder and show the image along with the folder name on the portal? Do I have to use different UI?
    Any Ideas or suggestion. I wanted the way just like http://service.sap.com homepage with images.
    Regards,
    Praveen

    Hi Preveen,
    the "Entrypoint Exlorer" layoutset came in SP2 with Patch5. I think you can create yourself such a layout set in KM configuration.
    For this do the following:
    1. Create a Collection Renderer: Configuration -> Content Management -> User Interface -> Settings -> Collection Renderer Settings -> New
    Use the following settings (some parameters might not exist in your SP version):
    Name                    EntrypointsCollectionGridRenderer
    Description               The entrypoint categories renderer
    Collection Renderer          CollectionGridRenderer
    Breadcrumb Visibility Style     invisible
    Width Adjustment Mode            standard
    Height Adjustment Mode          compact
    Number of Rows               5
    Row Spacing               15
    Number of Columns          3
    Column Spacing               15
    Column Spacing Mode          minimum
    Property for Sorting          no_sorting
    Vertical Alignment          standard
    2. Create a Resource Renderer: Configuration -> Content Management -> User Interface -> Settings -> Resource Renderer Settings -> New
    Use the following settings (some parameters might not exist in your SP version):
    Name                    EntrypointsResourceRenderer
    Description               Resource renderer for entrypoint categories
    Resource Renderer          ResourceRenderer
    Image Width               48
    Image Height               48
    Image Setting               replace
    Primary Text Style          HEADER2
    Secondary Text Style          LEGEND
    Child Folders' Style          off
    Visible Properties          rnd:image(alignLeft/[1-2;1]/contentLink/space-right=10),rnd:displayname([1;2]/alignLeft/alignTop/contentLink),description(useLinkData/alignLeft/alignTop)
    Command Display               off
    Resource Command Group          Not set
    Folder Command Group          Not set
    Link Command Group          Not set
    3. Create a Resource Renderer: Configuration -> Content Management -> User Interface -> Settings -> Layout Set -> New
    Use the following settings (some parameters might not exist in your SP version):
    Name                    EntrypointsExplorer
    Description               The entrypoint categories layout set
    Enabled for presentation settings     YES
    Layout Controller          SimpleLayoutController
    Collection Renderer           EntrypointsCollectionGridRenderer
    Resource Renderer           EntrypointsResourceRenderer
    Commands for the details menu     Not set
    Now, you should have an 'Entrypoints Explorer' LayoutSet to choose from, so you can follow my first post.
    Best regards,
    Robert

  • Adding Images in the Interactive Form

    Dear All,
        How to add a image in the standard SAP Deliver interactive forms for the PCR.
    Can i able to change the logo which is available in the system to the custom logo.
    So that will it get reflected in the all the standard screen using the logo.
    Thanks
    Yogesh

    Hi Yogeshwaran,
    After u create a UI element for the Image. set the URL for the UI element value in ur coding for the Value Attribute which is bound to the Image UI element.
    After setting the URL, save the URL in the back-end table so that next time the form is loaded the Custom logo is displayed
    Hope this helps u
    Regards,
    Poojith MV

  • Adding image in the header?

    hi
    I would like to know how I could add an image in the report on the left hand side of the header section.
    And do I need to include the image in the path or where?
    Please help me out
    Thanks

    Go to file import images and import the image and then place it adjust to the size you want thats it.
    Cheers
    Rao

  • Adding time to the FLVplayback component

    Hi everyone, Im using the FLVplayback component for a project im doing. I want to add the time elapsed and time left on the controls. I dont really want to create my own controls, as im happy with the flv playback component. The FLVs playing in the component are external and are loaded into it via as3
    Is there a quick and easy way of doing this?
    Cheers
    Dan

    I have managed to find some code for this component, but im getting some errors which im having trouble to de-bug;
    1118: Implicit coercion of a value with static type Object to a possibly unrelated type Function. vidPlayer.addEventListener("metadataReceived", listenerObject);
    1118: Implicit coercion of a value with static type Object to a possibly unrelated type Function. vidPlayer.addEventListener("playheadUpdate", listenerObject);
    Please would someone take a look and let me know what im doing wrong?
    Thanks
    code:
    var listenerObject:Object = new Object();
    var fullDuration = null;
    listenerObject.metadataReceived = function(eventObject:Object):void {
        fullDuration = prettyTime(vidPlayer.metadata.duration);
    listenerObject.playheadUpdate = function(eventObject:Object):void {
        var paTime = vidPlayer.playheadTime;
        if(fullDuration != null){
    //updates the text box with the instance name timeCode_txt on the root timeline.
    //best to use a monospace typeface like calibri for the textbox font.
            time_txt.text = prettyTime(vidPlayer.playheadTime) + " / " + fullDuration;
    vidPlayer.addEventListener("metadataReceived", listenerObject);
    vidPlayer.addEventListener("playheadUpdate", listenerObject);
    function prettyTime(timeinSeconds):String{
        var seconds:Number = Math.floor(timeinSeconds);
        var minutes:Number = Math.floor(seconds / 60);
        var hours:Number = Math.floor(minutes / 60);
        //Storing the remainder of this division problem
        seconds %= 60;
        minutes %= 60;
        hours %= 24;
        //Converting numerical values into strings so that
        //we string all of these numbers together for the display
        var sec:String = seconds.toString();
        var min:String = minutes.toString();
        var hrs:String = hours.toString();
        //Setting up a few restrictions for when the current time reaches a single digit
        if (sec.length < 2) {
            sec = "0" + sec;
        if (min.length < 2) {
            min = "0" + min;
        if (hrs.length < 2) {
            hrs = "0" + hrs;
        //Stringing all of the numbers together for the display
        var time:String = hrs + ":" + min + ":" + sec;
        //Setting the string to the display
        return time;

  • Adding images to the header & footer in Pages for the iPad

    How do I add images i.e. logos into the header and footer in Pages for the iPad.

    I do not beleive Pages for iOS allows insertion of images into the header or footer, just the background of the page body. It can however be placed behind the header. (Tools icon (wrench - upper right of screen) > Document set up

  • How to add new images to the list of old images to ipod using itunes

    I have around 1000 images in my ipod right now. I want to add some more images tinto it. I just have the latest phots in a folder in my PC. When i try to sysnchronize my ipod with a folder to add the new phots i am getting a warning message stating "All my photos will be replaced with the new folder". But the problem is i don't have my older photos in my folder.
    Will my older photos be deleted when i sysnchronize with a new folder?
    How can i add my latest phos alone?
    Can somebody help and answer my questions?

    Somebody please help me

  • ADDING IMAGES TO THE DASHBOARD

    I would like to add our company logo to the dashboard.
    How should I go about it?
    Thanks.
    Winny.

    One should not modify the Oracle Style. If something goes wrong you should have something to revert back to. Also, i am not sure whether modifying the Oracle Style is supported. You need to create a custom style(copy the oracle style as metioned in the blog entry above) and make the changes there.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Need help displaying images with List component for Flash CS4 (ActionScript 3.0)

    Hi folks:
    I am an inexperienced user of Flash CS4 Pro (v10.0.2). I am attempting to use the List component with ActionScript 3.0 to make a different image display when a user clicks each item in a list.
    I did find a tutorial that showed me how to make different text display using a dynamic text box and the following ActionScript:
    MyList.addEventListener(Event.CHANGE, ShowSelectedItem);
    function ShowSelectedItem(event:Event):void {
        ListText.text=MyList.selectedItem.data;
    ...where My List is the instance of the List component and ListText is the dynamix text box. In this case, the user clicks an item in the list, defined by the label value in the dataProvider parameter of the List component, and text displays as defined in the data value in the dataProvider parameter.
    However, as I mentioned to start, what I really want to do is make images display instead of text. Can anyone provide me the steps to do this?
    I appreciate your help (in advance)!!
    Cindy

    Hi...thanks for responding! I was planning on using images from the Library, but if there is a better way to do it, I'm open. So far, I just have text in the data property. This is part of my problem. I don't know what I need to put in the data value for an image to display. Do I just put the image file name and Flash will know to pull it from the Library? Do I need to place the images on the stage on different frames? I apologize for the "stupid user" questions, but as you can tell, I'm a newbie.
    Appreciate your patience and any help you can offer!
    Cindy

  • Is there a way to add images to the collection used in Photomerge Style Match?

    When one uses the menu: Enhance->Photomerge® Style Match, there will be six images displayed to choose from. The path to them is (Mac):
    /Application/Contents/Resources/models/ While this menu is only available in Expert mode, you end up in Guided when you choose it. I assume, therefore, that there is actually an Action or at least a script.
    Simply adding an image wouldn't work, which I confirmed. Even rebuilding the MediaDatabase.db3 didn't help. But there must be more than just the simple jpeg that the app uses to perform the effect... or maybe not! ;-) All I'd like to know is if there is a way to add images to the list of choices.
    Thanks!

    What version of photoshop elements and mac os x are you using?
    Once your in the Style match screen you add images using the Green Plus button
    (the screenshot is from photoshop elements 12)

Maybe you are looking for

  • What is encrypting on my time machine backup

    i just bought a 1T lacie external hard drive i chose to encrypt the the back up not sure why..it just seemed to be the prudent thing to choose it is still encrypting the data after 7 hrs what's going on can i change this should i change this why & wh

  • Call a transaction code in dynamic action

    Hi How can we call a transaction code in a dynamic action. TC XD01 is populated when changes is happen in IT0006 subtype 03. Regards WS

  • 'Undeliverable Mail' SPAM

    I have recently started to get a fair amount of 'Undeliverable Mail' SPAM. Anyone else getting this? imac G5 20; 1gig RAM; 160HD; airport; bluetooth keyboard & mouse; bose companion 3 speakers   Mac OS X (10.4.8)  

  • I am unable to access my ipod

    please tell me how to access my ipod and i want to

  • Blurry Pictures in Premiere

    Hello, I have created a slide show in Photoshop Elements 10. I clicked on output to send it to Premiere Elements 10 because my pictures were blurry/pixilated when I viewed them in full screen preview, but they were not blurry/pixilated in the screen