Put A Library Graphic in a Dynamic Field

Here's what I've got:
* In the Library, I have a movieclip which has a dynamic field.  Let's call the MC: "Foo" and the field "BlahField".
* In the Library, I have 3 small ball graphics which I'll call "IconA", "IconB", and "IconC".
I read data from an external file and depending on what I find, I'll use ActionScript to add a Foo movieclip to the stage.  Now, I want to some text in the BlahField, but--depending on the data--I also want to put one of the icons in the field as well.  For the sake of this example, let's say I need IconA
Using ActionScript how do I put the IconA image in Foo.BlahField.text (remembering that I want to pull the image from the Library).
Foo.BlahField.text = ???? + <data from file>;
Thanks,
---Damian

I really appreciate the help.  But still no love.  This is what I did this time:
I cleared out the old attempts.
I re-imported "BlueOrb.png"
I created a new MovieClip symbol which I called "IconA"
I placed BlueOrb on the crosshairs of the new MovieClip and closed it.
I went to the Library, right-clicked the IconA movieclip symbol and chose properties.
In the Symbol Properties window, the Name: field says IconA
I made sure there were checks in Export for ActionScript and Export in frame 1.
In the Class field, I see IconA, and added _Class to the end.  So the class is now: IconA_Class.
The Base class: remains flash.display.MovieClip
I clicked OK to close the window.
I checked my field.  It is dynamic and is set to render HTML.
I then did the following tests:
Foo.BlahField.htmlText = <img src='IconA_Class' >Huzzah!";
Foo.BlahField.htmlText = <img src='IconA_Class()' >Huzzah!";
Foo.BlahField.htmlText = <img src='IconA' >Huzzah!";
Foo.BlahField.htmlText = <img src='IconA()' >Huzzah!";
...still the Huzzah! showed up, but not the image.

Similar Messages

  • Dynamic Fields and Images

    Hi Folks,
    I have to prepare some PDFs using indesign that will be used for Invoices. Our developers want to be able to add the logo and certain fields dynamically. I wanted to find out is there anything special i need to know to do to make the fields and logo updateable dynamically in the output PDF. What is this topic even under? Would it be a scripting thing? I tried Googling around to find answers but had no luck.
    Just to give you an example of what I mean by dynamic fields.... i might have a field title "Surname" with text box alongside. My developers should be able to insert the correct surname into that text box when displaying the PDF
    Thanks for your help community!

    is the PDF generated in indesign going be used as a graphic for the Management Information System (MIS) to put data over the top of, or are "the developers" attempting to use indesign as a database query tool?
    indesign's data merge has limited capabilities and using it as a "back end" to generate invoices is something that IMHO is beyond its scope.
    can the OP please give more information so that a more properly formed answer can be given?

  • Generate Dynamic fields in an Interactive Form

    Hello,
    I would like to know if it is possible to generate dynamic fields in an Interactive Forms ?
    Best regards,
    A.Henry

    Hi,
    Yes it can be implemented by using scripts.
    Here you can do the hide and visible things and once the field is binded in the interactive form that do not change.
    We can utilize the context node elements only once we can put into interactiveform only . we can not use as dynamically as Context attributes.
    What you are exactly looking for?
    Thanks,
    Lohi.
    Message was edited by:
            Lohitha M

  • Dynamic field in master page header?

    Is it possible to put a dynamic field in a master page header that will either pull from a hidden text field added to each subform (e.g., appID) or pull in the title of the subform itself?  I have a number of variable-sized subforms that need the same header and footer, with the only distinct element being a different number at the top.
    I've been looking for a standard variable or wildcard that can be used to dynamically reference an object at the same level in multiple subforms, but so far have not been able to find what I need.
    Hierarchy:
    form1
         masterpage
         subformApp1
         subformApp2

    Hi Sankar,
    Create on eattribute of type String and bind to title property of page header,
    and your WDDOINIT or any event write code to set title for PG header,
    You are using different buttons, use this code in your buttons and change text.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->Element_context.
      DATA lv_pg TYPE wd_this->Element_context-pg.
    * get element via lead selection
      lo_el_context = wd_context->get_element( ).
      data pg1 type string.
      pg1 = 'selected the record'.
      lv_pg = Pg1.
    * set single attribute
      lo_el_context->set_attribute(
        name =  `PG`
        value = lv_pg ).
    In button 1..
    lv_pg = 'Enter the entries'.
    * set single attribute
      lo_el_context->set_attribute(
        name =  `PG`
        value = lv_pg ).
    Cheers,
    Kris.

  • Dynamic field in select statment.

    Hello,
    I created a report in which i have two checkboxes in the selection screen. The first checkbox is for the option to bring or not, initial purchase requisitions (BANFN) from EKPO and the second is to bring initial or not, RFQs
    (ANFNR). I want the select statment to have this form:
    select ...
    from ekpo
    into g_table
    where ..
    and dynamic field = " ".
    Can this be done ?
    i tried to put it as a string but it didnt work. (data: dynamic field type string value "EKPO-BANFN")
    P.S i know that it can be by writing the same select code twice.
    I just wonder if this can be done by this way
    \Regards.

    Hey Nick,
    I have more conditions than the one i said before , should all be in the lv_where_clause ?
    check my code.
    DATA: G_CHBFLD type STRING.
    G_CHBFLD = 'P~BANFN = '' " '.
    FORM SELECT_DATA_EKPO_EKKO.
      SELECT  .....
          FROM EKPO AS P INNER JOIN EKKO AS K
            ON PEBELN = KEBELN
              INTO CORRESPONDING FIELDS OF TABLE GT_EKPOEKKO
                WHERE K~EBELN IN S_EBELN
                AND K~AEDAT IN S_AEDAT
                AND K~BSTYP IN S_BSTYP
                and ( G_CHBFLD ) .   -
    > //DEBUGER ")" is not a valid comparison operator. comparison operator.

  • Dynamic field labels in table control

    Hi experts,
        My requirement is to display dynamic field labels in table control can we do this. I am much aware
    that we can do it in alv_grid. Please let me know.
    Thanks in advance.
    Sri

    Hi Anubhab,
         Thanks. With your help i could able to solve the problem. Let me put this in some
    more detail.
    When we are pulling the field from a table to table control we need to make sure the fields should have a data elements. After pulling all the fields to a table control ,we need to drag out  and delete the current table control column headings and then drop in the (new) I/O fields into their place.  I then set the text on these new fields within the PBO.  If we try to drop the (new) I/O fields on top of the existing ones with out deleting it won't work.
    Thanks & Regards.
    Srikanth

  • Customize Proposal Dynamic Fields

    Hi
    I have a requirement like,
    When we include Quote Line Dynamic Fields in RTF Components, While generating the proposal i have to customize only the Quantity of Quote Lines.
    Example Like :
    <@PRPSTR001: Start Quote@>
    **QTY     Model #     Item Description     Unit Price     Line Total**<@PRPSTR003: Begin Quote Line@>
    *<@PRPQOT046:Line Quantity@>* <@PRPQOT043:Item Number@> <@PRPQOT044: Product Description@> $<@PRPQOT048:Line Unit List Price@> $<@PRPQOT052:LineTotal Selling Price@>
    <@PRPSTR004:End Quote Line@>
    Quote Sub Total (USD):      $<@PRPQOT027: Total Selling Price@>
    <@PRPSTR002: End Quote@>
    My Requirement is to only customize *<@PRPQOT046:Line Quantity@>*
    How can i achieve this?
    Can any body give idea on this..
    Awaiting for your response.
    Regards,
    Hari K

    You can add whatever you like to whatever field, although some have format restrictions. I have a set of tracks where I use year to store a serial number. I just have to remember that its a serial number in the year field. I also have coded data in the BPM field. I put album identifiers in "Grouping".
    Track tags are stored with most files and are intended to be compatible between platforms and hardware. I think if one were to allow renaming of all the track fields it would likely result in a big mess and probably iTunes would get flooded with more comments from people who couldn't get their track information to appear in the correct field (because they had completely messed things up, including all the tags with music downloaded from iTunes Store) than the one or two comments a week from people wishing customizable tags.

  • Assign component - dynamic field

    Hey experts,
    I want to do this:
    ASSIGN COMPONENT (wa_dd08l-fieldname) of structure  <wa_deleted> to <ls_id>
    but the (wa_dd08l-fieldname) is incorrect, I can't put there those parentheses.
    The <wa_deleted> is a dynamic field symbol and I need to get the ID from it, I have the fieldname of the ID in wa_dd08l-fieldname, but
    I can't use it in ASSIGN COMPONENT, so how could I get the value of the fieldname (wa_dd08l-fieldname) from <wa_deleted>?
    Regards,
    Robert    

    Why do you want to use the parenthesis?
    ASSIGN COMPONENT (wa_dd08l-fieldname) of structure  <wa_deleted> to <ls_id>
    ASSIGN COMPONENT wa_dd08l-fieldname of structure  <wa_deleted> to <ls_id>
    Max

  • I have itunes on old dell desktop and older ipod, bot Macbook air...when i plugged ipod into air to try to put music library on the Air itunes, i got a erase and sync message....will this put my itunes library on my new air?  thank you in advance!

    I have an old dell desktop and an older ipod with my itunes library....the dell desktop is not functioning as well and have not been able to sync a newer ipod to the library .....i now have a newer Macbook air....i would like to put my library on my Air i tunes....when i attached the ipod to the air to try to sync the ipod library onto the air itunes i received a message that said i was synced with another library and that if i wanted to sync with this library i would need to "erase and sync" ....got spooked as i dont want to lose the library/ or the music....question ----will this procedure put my existing library (which is all on my older ipod) onto my Macbook air itunes?...any help would be greatly appreciated...thank you in advance...

    No, it will sync the ipod to the content of the MBA which presumably has nothing on it (= erasing content of iPod and replacing it with nothing).
    Ideally:
    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    do not confuse moving your whole folder and library with moving just media files as in
    iTunes for Mac: Moving your iTunes Media folder - http://support.apple.com/kb/HT1449
    Quick answer if you let iTunes manage your music:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option key held down and guide it to the new location of the library.
    Macworld - How to transfer iTunes libraries between PC and Mac - http://www.macworld.com/article/46248/2005/08/shiftitunes.html
    Move an iTunes library from a Windows PC to a Mac - http://www.macworld.com/article/1146958/move_itunes_windows_mac.html
    if you absolutely must use the iPod:
    Post by Zevoneer: iPod media recovery options - https://discussions.apple.com/message/11624224 - this is an older post and many of the links are also for old posts, so bear this in mind when reading them.
    Commercial software utility for transferring songs from i-device to Mac - http://www.fadingred.com/senuti/
    http://support.apple.com/kb/HT1848 - just media purchased from iTunes Store

  • How to change Default document size for CC Library Graphics (InDesign)

    Good morning --
    I have just discovered the amazing uses of the CC Library setup in InDesign and would love to be able to use it as a tool to collaborate template galleries amongst coworkers.
    I work in an industry that offers many different templates for our Marketing pieces available to the sales team. What we have in place right now is about 50+ different templates in their own packaged files. Now, this isn't all that difficult to maneuver around, but the CC Library has made it so I can "drag and drop" templates into place. This drag & drop feature is easy enough for me to grasp, and with the proper training it should be with the rest of the team (should being the keyword). However, in some cases if you double-click on Library graphic it opens the file in it's own editable file with a custom document size of 8.5x11 Portrait (which I imagine to be the internal InDesign preset).
    My questions therefore are when I double click on the library "Graphics" can the document size be anything other than 8.5x11? Can each Graphic have it's own document preset?
    - If I open a file that is set for landscape, all of the "Graphic" falls off of the spread.
    - Some "eblasts" are much longer than 8.5x11 (sometimes as much as 8.5x20), thus knocking some of the "Graphics" into that weird space area.
    Please let me know if I am not being a clear enough.
    Thank you!
    Steve

    @Steve – you are totally clear what you are doing and what you like to do.
    But I fear an automatic setting that is creating the page size according to an asset's size does not exist right now.
    I can change the size of a new document beforehand, if no document is open and create a new size in the document's properties dialog with the keyboard shortcut alt + cmd + p (in my German InDesign on Mac OSX 10.7.5). But you have to know in advance what size that should be.
    Example: If I chose A3 instead of A4 (my default) when no document is open and double click an asset in a CC Library the asset will be placed in a one page document sized A3.
    1. Changing the size (no document is open) in my German UI of InDesign CC-2014.2:
    2. Double click and the result is according to the settings I made:
    Uwe

  • Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • I have Itunes on one computer in my home , have purchase 2nd laptop ,I want to put my Library on the new lap top , already downloaded Itune s. How to I go about it ?

    I have Itunes on one computer , purchased a 2nd laptop , I want to put my library a new laptop , I,ve already doenloaded Itunes , how/can do I do it ? Thanks

    This should help.  iTunes: How to move your music to a new computer
    In iTunes on the new laptop, go to the menu bar, click Store  /  Authorize This Computer.

  • Can I put my library on an external hard drive and use it between two computers?

    Can I put my library on an external hard drive and use it between two computers? I have two MBP; I will refer to one as computer A and to the other as computer B. I would like to be able to plug in my external hard drive, boot up iTunes, and if there were any changes made to the library previous to its last time accessed on this compluter, they show up on that computer, regardless of being imported on the other.
    A hypothetical example: I import three albums called 1, 2, and 3 on computer A over a week or so. I take the external hard drive and plug it into computer B. The entire library which was visible on A, is visible on B, including albums 1, 2, and 3.
    Is this possible? If so, what files need to be copied onto the external? I'm trying some different combinations, trial and error basically. Hopefully someone knows and can answer before I mess up my library. I also want to do this to free up space on my computer. All importing will be done from disc.

    iTunes/Preferences/Advanced : point your iTunes to the new location of the Library.
    Set "Share on local network" in the Sharing tab, and you or everyone on the local network can play your music.
    You make a backup first of the Library.
    Move the follwing to the new location:
    /Users/your username/Music/iTunes/iTunes Music
    have fun.

  • Get input for 100 dynamic fields in a single screen

    Hi all
    I got one requirement wherein i need to accept input for around 100 dynamic fields in a single screen. screen can scroll down if possible.
    Can anyone tell me whether it is possible. if yes please let me have the sample code.
    Thanks
    Ravindra Suvarna

    Ravi,
    Probably a TAB STRIP might help you.
    Seggregate your 100 fields logically, say 5 groups.
    Have a TAB STRIP CONTROL, with 5 tab strips and place 20 fields in each of the tabs. Each tab strip will have a sub screen.
    Regards,
    Ravi
    Note : Please mark the helpful answers.

  • Sum for Dynamic Fields in a Dynamic Table with Field Symbol

    Hi All,
    I currently have an report which I am looking to update with some totals.  The information is currently output in an ALV which is fed data from a dynamic table defined with a field symbol.  The modification that needs to be applied is a summation per currency code where each of the fields to be summed is a dynamically named field at runtime.  I am now just looking to see if anyone has any recommendations on how to obtain these totals it would be appreciated.  I have no problem doing the leg work in piecing the solution together but am just stuck on which approach I should be investigating here.  I have looked into several options but do to the fact that the totals are for dynamic fields in a dynamic table and it is a field symbol I am having some difficulties thinking of the easiest approach to obtain these totals.
    Below is a simple sample of what the report currently looks like and what we are looking to add.
    ====================================================================================
    As-Is Report:
    DETAILED DATA ALV
    Company Code  |  Plant  |  2006 Total  |  2007 Total  |  2008 Total |  CURRENCY
    0001          |   ABCD  |    1,500     |    1,200     |    1,700    |    USD
    0001          |   BCDE   |    2,300     |    4,100     |    3,600    |    GBP
    0003          |   DBCA  |    3,200     |    1,600     |    6,200    |    USD
    Addition 1:
    TOTALS PER CURRENCY
    Currency                |  2006 Total  |  2007 Total  |  2008 Total |
    USD              |    4,700     |    2,800     |    7,900    |
    GBP                       |    2,300     |    4,100     |    3,600    |
    Addition 2:
    CONVERSIONS TO USD
                                          |  2006 Curr   |  2006 USD    |  2008 Curr   |  2006 USD   |
    USD                       |  4,700 USD   |  4,700 USD   |  7,900 USD  |  7,900 USD  |
    GBP   (1.5GBP/1 USD)    |  2,300 GBP   |  1,150 USD   |  2,300 GBP  |  1,800 USD  |
    ====================================================================================
    Any recommendations will be appreciated.

    Hi,
    We cannot use the key word SUM in the loop at assigning statement.
    The way i see is
    When  you are creating the first dynamic internal table , create one more with  the structure below:
    Currency | 2006 Total | 2007 Total | 2008 Total |
    Then while populating the data into first itab,also move the contents to the second itab using collect statement.

Maybe you are looking for