How to populate ComboBox with images?

Hello, I was just wondering if it is possible to populate a
ComboBox with images or icons? If it is possible, I want each item
to have both a picture and text. Any help on this matter would be
great!

I'm using Flash AS3. I currently have the code working for
the tileList component. I load the "label:", "source:" and "data:"
from a php script. It works great! Tried to do the same method for
the comboBox with no luck. I have spent lots of time searching the
web for help on this, but unfortunately AS3 is still relatively new
and much differant from previous versions of actionscript, so it is
hard to find any good examples. Although the help and examples for
AS3 is pretty extensive on adobes website, it seems that I can
never find the help and examples that relate to any problems I
might encounter.

Similar Messages

  • How to use recursion with images

    Ok, for this program I'm trying to recursively repeat an image 3 times with varying widths and heights, and I don't know how to do that with images. With rectangles and other shape objects it's easy because all I had to do was override the draw method, but with images I'm not sure what to override to allow me to repeat the drawing of it with a different height and width. Any help would be greatly appreciated.

    Would I be able to work that in with recursion? Currently I have a JPanel with the paintComponent method being overridden, and I've tried setting up the paintComponent method to call itself to repaint the image, but I've realized everytime I resize the application's window paintComponent gets called again making the images go out of site. Is there a way to override the drawImage method to allow me to change the width and height of the image without causing the panel to repaint itself?

  • How to populate DataGird with data returned from php page?

    Hi, I'm new in Flex, I try to populate DataGrid with data from PHP, My code is
    <mx:HTTPService 
    id="personRequest" result="getPerson(event)" url=http://localhost/searchPerson.php useProxy="false" method="POST" showBusyCursor="true" resultFormat="e4x">
    </ mx:HTTPService>
    <mx:DataGrid 
    id="searchResult" dataProvider="{???what to paste here???}" y="30">
    </mx:DataGrid>
    private  
    function getPerson(evt:ResultEvent):void { var res:XMLList = evt.result..dane as XMLList;searchResults =
    new XMLListCollection(res); 
    output from PHP
    <person>
    <dane>
    <name>ABC</name>
    <street>XLXXLX</street>
    </dane>
    <dane>
    <name>DEF</name>
    <street>YAYAYAY</street>
    </dane>
    </person>
    If I set the dataProvider as "searchResults" it doesn't work. I probably have to set as dataprovider any ArrayCollection , but I don't know how to convert my XMLListCollection to it.
    Could anyone help me populate Datagrid with
    name | streer
    ABC, XLXXLX
    DEF, YAYAYAY
    Best Regards,
    Mariusz

    Thanks for your reply, but I'm afraid it doesn't work :-( Could you browse my code and check what I'm doing wrong???
    full mxml code:
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="personRequest.send()">
    <mx:Script><![CDATA[
         import mx.rpc.events.ResultEvent; 
         [Bindable]
         public var searchResultsXML:XML;  
         private  function getPerson(evt:ResultEvent):void 
          {          searchResultsXML = (evt.result
    as XML);
              trace(searchResultsXML);     }
    ]]></mx:Script>  
    <mx:HTTPService 
    id="personRequest" result="getPerson(event)" url=http://localhost/searchPerson.php useProxy="false"
    method="POST" showBusyCursor="true" resultFormat="e4x"></mx:HTTPService>
    <mx:DataGrid  id="searchResult" dataProvider="{searchResultsXML.dane}"></mx:DataGrid>
     </mx:Application> 
    trace statement returns:
    <person>
    <dane>
    <id>1</id>
    <nazwisko>Topczewski</nazwisko>
    <imie>Mariusz</imie>
    <imie2/>
    <miejscowosc>Bia?ystok</miejscowosc>
    <ulica>Nowogródzka</ulica>
    <dom>7B</dom>
    <lokal>25</lokal>
    </dane>
    <dane>
    <id>1</id>
    <nazwisko>Topczewski</nazwisko>
    <imie>Mariusz</imie>
    <imie2/>
    <miejscowosc>Bia?ystok</miejscowosc>
    <ulica>Sybiraków</ulica>
    <dom>15</dom>
    <lokal>27</lokal>
    </dane>
    </person>

  • How to load folder with images php with oracle

    Hi i want to upload from my php form folder with images what should i fix in my php code for 1 image?
    <?php
    define("ORA_CON_UN", "obrazy");
    define("ORA_CON_PW", "miksas1");
    define("ORA_CON_DB", "//localhost/orcl");
    if (!isset($_FILES['lob_upload'])) {
    ?>
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"
    enctype="multipart/form-data">
    Image filename: <input type="file" name="lob_upload">
    <input type="submit" value="Upload">
    </form>
    <?php
    else {
    $conn = oci_connect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
    // Insert the BLOB from PHP's tempory upload area
    $lob = oci_new_descriptor($conn, OCI_D_LOB);
    $stmt = oci_parse($conn, 'INSERT INTO FOTKI (FOTKAID, FOTKA) '
    .'VALUES(:MYBLOBID, EMPTY_BLOB()) RETURNING FOTKA INTO :FOTKA');
    oci_bind_by_name($stmt, ':MYBLOBID', $myblobid);
    oci_bind_by_name($stmt, ':FOTKA', $lob, -1, OCI_B_BLOB);
    oci_execute($stmt, OCI_DEFAULT);
    // The function $lob->savefile(...) reads from the uploaded file.
    // If the data was already in a PHP variable $myv, the
    // $lob->save($myv) function could be used instead.
    if ($lob->savefile($_FILES['lob_upload']['tmp_name'])) {
    oci_commit($conn);
    echo '<p>Obrazek załadowano</p>';
    else {
    echo "Couldn't upload Blob\n";
    $lob->free();
    oci_free_statement($stmt);
    oci_close($conn); // log off
    ?>

    The first thing I'd suggest you fix is the forum to which you posted the question.
    The name of this forum is "Oracle Database General Questions." That is questions about the database ... not questions about PHP.
    Look further and you will find the correct forum.

  • How to email photo with image number

    How do you attach the image number below the photo when emailing? Before I upgraded, iphoto attached it automatically.

    First set iPhoto to use Mail in emailing photos (in the iPhoto/General preference pane). Then select your photos and use the Share ➙ Mail option. The following window will pop up:
    Check the items you want tio display under the photos in the email window and use the Compose Message button. This is what you'll get in the Mail  window:
    OT

  • Populate combobox with multiline field

    Is there a way to get an array of a multiline text field and put this array in a combobox?
    I think i have to use the split() function, but i dont know how to do this.
    I'm trying to find an easy way to populate a combobox.

    This topic shows how you can split the value of a multiline text field's value at carriage returns: http://forums.adobe.com/thread/789976
    You can then use the setItems field method to populate the combo box with the items: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.752.html

  • How to replace string with image( Say Smiley).........????

    Hello To All Experts !!
    I wanna looking for some help in displaying image in my text area when should i type ":)" in text field.....
    I got some program through forums....
    import java.util.*;
    import javax.swing.ImageIcon;
    public class TokenizeSmiley {
        private static final HashMap SMILEYS;
        static {
            SMILEYS = new HashMap();
            SMILEYS.put(":)", new ImageIcon("images/1.gif"));
            SMILEYS.put(";)", "<wink>");
        public static void main(String[] args) {
            String text = "Hello!! :) How are you ;)";
            StringTokenizer st = new StringTokenizer(text);
            String token;
            while (st.hasMoreTokens()) {
                token = st.nextToken();
                if (SMILEYS.containsKey(token))
                    token = (String)SMILEYS.get(token);
                System.out.print(token + " ");
    }but it is showing <smile> and <wink> as it is given...i tried to give path of image ...but it is nt fetching then also.....
    Plz help in this....
    Message was edited by:
    Damz@del

    So your data is stored in XML. So what? You haven't asked a question about the XML or how to format it or how to access it. You asked a question that had nothing to do with XML at all. It's as if you said "My data is stored on a Windows computer so I will call Microsoft's support line to ask them this question."
    And I can't even suggest a suitable forum because a "text area" could be an AWT component or an HTML component. But I do suggest you ask in the right place.

  • How to compress pdf with images

    Hi,
    How can we compress pdf size using Acrobat SDK?
    Also can we downsample pdf image elements?
    Waiting for your important ideas.
    Thanks & Redards,
        Avinash

    Hello, lrosenth:
    I want compress pdf with c#.
    More details:
    1.      Use in ASP.NET web site
    2.      pdf files user uploaded with big image
    3.      Compress pdf size using Acrobat SDK
    As you said “When you do the PDDocSave, be sure to specify all the various compression options including full save.”
    Could you tell you how to set the options with C# by program?
    Waiting for your important ideas.
    Thanks & Redards,
        KevinLi

  • How to populate node with in node

    Hi,
    I have scnerio to populate a node which has Header and items.
    For example Sales Order.
    -> Order
    !-> Order No.
    |-> Items
    -> Item_No
    -> Material No
    -> Quantity
    -> Price
    Order cardinality is 1..n
    Order can have more than one item, so cardinality is 1..n for item.
    How I can populate Order node, with a single order No. and multiple items.
    Cheers,
    Senthil

    HI Senthil,
    Since one order can have more than one items, the best way is to create a node (<b>Order</b>) with cardinality 0.N or 1.N (Since it can contain 0..N records). Then each Order records will be having one OrderNo, so create a context atttribute(<b>OrderNumber</b>) inside node Order. For each Order(ie. for each Order No.), since there is more than one items, create a node(<b>Items</b>) inside Order with cardinality as false, sothat u will be able to create more than one Items Element for a particular Order element. Inside this Items node, u can create context attributes like <b>ItemsNumber</b>, <b>Price</b>  etc. Then use the code below, which is similar to the code I posted. That code craeates 5 Order records(with order number myorder1,2,etc), with each OrderNo. will be having three Items entries(with itemnumber myitem1,2,3 and Price myPrice1,2,3)
    IPrivate<View>.IOrderNode parentNode=wdContext.nodeOrder();
    IPrivate<View>.IOrderElement parentEl;
    for(int i=0;i<5;i++)
    parentEl=parentNode.createOrderElement();
    parentNode.addElement(parentEl);
    <b>parentEl.setOrderNumber("myorder"(i1));</b>
    for(int j=0;j<3;j++)
    IPrivate<View>.IItemsNode childNode=parentEl.nodeItems();
    IPrivate<View>.IItemsElement childEl=childNode.createItemsElement();
    childNode.addElement(childEl);
    <b>childEl.setItemsNumber("myitem"(j1));</b>
    <b>childEl.setPrice("myPrice"(j1));</b>
    Regards
    Fahad Hamsa

  • Designer beginner's question: How to populate form with XML web service output?

    sorry, here is yet another Adobe Designer beginners question: <br /><br />My form uses a webservice data connection which returns <br />an xml-string like this: <br /><br /><?xml version="1.0" encoding="utf-16"?> <br /><CurrentWeather> <br />  <Location>Sion, Switzerland (LSGS) 46-13N 007-20E 481M</Location> <br />  <Time>Apr 26, 2007 - 09:50 AM EDT / 2007.04.26 1350 UTC</Time> <br />  <Wind> from the WSW (240 degrees) at 15 MPH (13 KT):0</Wind> <br />  <Visibility> greater than 7 mile(s):0</Visibility> <br />  <SkyConditions> partly cloudy</SkyConditions> <br />  <Temperature> 80 F (27 C)</Temperature> <br />  <DewPoint> 46 F (8 C) </DewPoint> <br />  <RelativeHumidity> 30%</RelativeHumidity> <br />  <Pressure> 29.88 in. Hg (1012 hPa)</Pressure> <br />  <Status>Success</Status> <br /></CurrentWeather> <br /><br />What is the simplest and recommended way to extract the <br />element fields to my form? <br /><br />Thank you very much an kind regards, <br />Hans Grund

    The question is still unanswered!
    Let me give some details and break up the problem
    in more specific questions:
    - In Designer 8.1 I click new data binding --> wsdl -->
    http://www.webservicex.net/globalweather.asmx?wsdl
    A message box comes up and says "cannot load wsdl file"
    ==> 1. Question:
    Why maybe refuses Designer to load the http-wsdl,
    although this option is explicitly allowed?
    - When I save the wsdl to a file, Designer loads it
    without any problems. The web service uses two input parameters
    (CountryName and CityName) and returns an xml-string GetWeatherResult)
    like the one in my first posting. I drag these fields from the binding view to my form, and it runs ok!
    - THE PROBLEM IS, THAT I NEET TO EXTRACT THE ELEMENT FIELDS
    FROM THE RESULT XML-STRING!
    ==> 2. Question:
    How to extract xml element fields from wsdl output into a form?
    - I tried with eclipse and XmlSpy to build a modified wsdl file
    with structured output definition, so that the specific element fields
    show up in the data binding view and are usable to my form,
    and the modified wsdl maps consistently to the web service result string.
    So far without success: In the PDF -preview or Reader-
    when the wsdl-binding is executed and the web service output
    should show up in the result fields, just nothing happens.
    ==> 3. Question:
    Can this strategy to provide a "modified wsdl" possibly succeed,
    and how?
    ==> 4. Question:
    Is is possible -and how?- to check whether an xml string
    is valid as web service output against the wsdl-definition?
    ==> 5. Question:
    How to debug a web service connection with Designer?
    - Finally I tried to find a way to load the result xml-string
    into a local var in the script editor and parse it, much like:
    var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.load(DataSet.MyForm.GetWeatherResult.rawValue);
    ==> 6. Question:
    Is it possible -and how?- to use a framework like dotnet?
    How to utilize SAX or DOM in Designer?
    Many thanks and appreciations for your help!!

  • How to replace string with image( Say Emoticons )??

    Hello Friends !!
    I am working on chat messenger and want some help in "How to access Emoticons when somebody typed :), ;), :)) and many more strings.....?"
    Is there any sample code to do that job or any function to perform such task??
    Thanks in Advance....

    use event listener... found match, load image instead of text on the fly.

  • How to populate formbean with ONLY updated values?

    Is there a way to populate the formbean with ONLY updated values in Java Struts?
    Ex: Out of 50 fields displayed on GUI, If lets say user modifies 20 fields, I need to capture only those 20 fields into the form bean.
    The reason i am looking for such function is to avoid the overhead of updating all the 50 fields into the database everytime even if one field is modified.

    Normally, you update the entire record if one of the fields is changed. However, if you display more than one record, only those records have have changed should be updated. The reason you dont update all records is because if the performance hit on updating records that didn't change, among other things (see optimistic conurrency topic at http://msdn.microsoft.com/en-us/library/bb399373.aspx)
    I don't think you should bother coding to only capture those fields that have changed in one record. It complicates your code and makes it difficult to read. Also, performance gain on not reading unchanged fields is offset by performance loss on the logic to manage such a task. Also, your update sql statement will be overly complicated and will have to be dynamically built rather than a single simple update sql statement that updates all fields.

  • How to populate fields with no values in a report..?

    Hi Gurus,
    We have a query, which is filtered with some 60 GL Accounts. Some of these GL account has no values or activity since long back. But we need to display it in the report for some reasons. Since it doesnu2019t have any value, its not coming up in the report. Only the accounts with values are coming up.
    Is there any way I can bring these accounts in the report with 0 as values...? Any help is highly appreciated.
    Thanks
    Uan

    Hi,
    please try to do wth the help of Query property .
    in query property set property -  display zero as
    First try display zero as A .. if its working fine then put the value which you want to show or else put 0 .
    Alsoclick on structure and checkif 0 is supress .. if yes uncheck that .
    regards,
    Aparna

  • How to populate SNDPRN with different values in Development and Production?

    Hello experts,
    I have to fill the field SNDPRN in the message mapping with a different value in Development and in Production. As I am new to PI, I used a simple solution - but it is rather ugly: I set a constant value in the mapping in development and a different one in Production. However, I would like to know if there is any solution to have a condition in the mapping like:
    IF system is Development, set SNDPRN as Constant1.
    IF system is Production, set SNDPRN as Constant2.
    (And eventually IF system is Test, set SNDPRN as Constant3)
    Thanks in advance for your help,
    Luis

    Hi Luis,
          You can go with the parameterized mapping , where you can provide different values for SNDPRN in interface determination for development and production.
          At point of time if you want to change the values it requires only a change in the configuration.
          Please refer the below links for reference;
    Parameterized Mapping Programs - Enterprise Services Repository - SAP Library
    http://scn.sap.com/people/jin.shin/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-parameterized-message-mappings
         We are following the same approach for some of our interfaces.
    - Muru

  • How to add audio with images

    Hello,
    I'd like to add some audio files to my website without attaching images to them -- I can't seem to get rid of the grey 'drag image here' box that appears each time I drag audio to the page. Any ideas?
    Thanks!

    The picture bin only shows in iWeb. When you publish only the control bar will be displayed.
    OT

Maybe you are looking for

  • Generating a Report on web in Maximized state

    Hi, I'm generating a report on web.It is generating in PDF format. But it is not displaying in maximized state. I've to click on maximize button and have to maximize it. I used the following code to maximize it. Add_Parameter(pl_id, 'MAXIMIZE', TEXT_

  • Login issue in CSM

    Hi All, After adding the ACS in CSM ,I am unable to login the CSM with the ACS username and password and also the admin username and password. Now i removed the csm server in ACS even then same status.How to login the csm ?

  • ThinkPad Bluetooth Laser Mouse won't reconnect

    Hello, I have a ThinkPad R500 running Windows 7, and am using a ThinkPad Laser Bluetooth Mouse. I also have a Kensington Micro USB Bluetooth adapter. Previously this combination worked great.  Mouse worked fine and would stay paired with laptop, even

  • Suggestions for New Firmware to X6.

    Word suggestion to be included when typing message or text. Can include 2 or 3 desktops. Can integrate the file location of Gallery(Sounds and videos) with Phone/Mass Storage device. Can give new icons/Colors for each number [MOBILE (Home/Business)]

  • Integration with Websphere 5.0 (EJB 2.0) problems

    Hello all, Although a bit new to JDO, I have been trying to integrate Kodo 2.4 with Websphere 5.0 (using EJB 2.0). I have been basically binding a PersistenceManagerFactory into JNDI via start-up servlet, however got the exception bellow when I tried