Binding keyframe of custom componet to data

I have created a custom mxml component that has 3 text fields
and an embedded swf. The embedded swf has 20 key frames, each of
which is a different icon.
I display multiple copies of this custom component in a
repeater using an ArrayCollection as the data provider.
What I want to do is be able to display the relevant keyframe
based on a field in my ArrayCollection that corresponds to the file
type
For example if the value of extensionType is "jpg" I want the
embedded swf to display a keyframe with the label "jpg"
Here is the code of my custom component
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="450" height="44" cornerRadius="15" borderStyle="none"
backgroundColor="#ffffff" themeColor="#ff0000">
<mx:Script>
<![CDATA[
[Bindable]
public var fileNumberTxt:String ="1";
[Bindable]
public var fileNameTxt:String ="File Name";
[Bindable]
public var fileSizeTxt:String ="120k";
]]>
</mx:Script>
<mx:Text x="10" y="16" text="{fileNumberTxt}" />
<mx:Text x="114" y="16" text="{fileNameTxt}" />
<mx:SWFLoader x="60" y="2" width="40" height="40"
source="@Embed('assets/icons.swf')" />
<mx:Text x="314" y="16" text="{fileSizeTxt}" />
</mx:Canvas>
And here is my Array Collection
<mx:ArrayCollection id="scfDummyData" >
<mx:Object fileNumber="1" fileNameValue="project plan"
fileSize="12k" extensionType="doc" />
<mx:Object fileNumber="2" fileNameValue="essay"
fileSize="122k" extensionType="doc" />
<mx:Object fileNumber="3" fileNameValue="project"
fileSize="18k" extensionType="jpg"/>
</mx:ArrayCollection>
I am using Zinc to allow the user to drop files from their
system onto my application. When they do this, I update my
ArrayCollection.
I just can't figure out how to bind the label of the embedded
swf to the extenstionType variable in the ArrayCollection.
Any help much appreciated
Thanks
Paul

Can anyone identify what I am doing wrong below. Basically my
ArrayCollection has a value for imagePath that relates to the
symbol that needs to be displayed in a custom component.
The code for the custom component is below the
ArrayCollection code. I think I am really close to getting this
sorted but just can’t quite figure it out.
Currently it is always displaying the DOC symbol
<mx:ArrayCollection id="scfDummyData" >
<mx:Object fileNumber="1" fileNameValue="project plan"
fileSize="12k" extensionType="doc" imagePath="JPG"/>
<mx:Object fileNumber="2" fileNameValue="essay"
fileSize="122k" extensionType="doc" imagePath="JPG" />
<mx:Object fileNumber="3" fileNameValue="project"
fileSize="18k" extensionType="jpg" imagePath="DOC" />
</mx:ArrayCollection>
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="450" height="44" cornerRadius="15" borderStyle="none"
backgroundColor="#ffffff" themeColor="#ff0000">
<mx:Script>
<![CDATA[
[Bindable]
[Embed('assets/icons.swf', symbol='icons2')]
public var JPG:Class;
[Bindable]
[Embed('assets/icons.swf', symbol='icons3')]
public var DOC:Class;
[Bindable]
public var fileNumberTxt:String ="1";
[Bindable]
public var fileNameTxt:String ="File Name";
[Bindable]
public var fileSizeTxt:String ="120k";
[Bindable]
public var imagePath:Class = DOC;
]]>
</mx:Script>
<mx:Text x="10" y="16" text="{fileNumberTxt}" />
<mx:Text x="114" y="16" text="{fileNameTxt}" />
<mx:SWFLoader x="60" y="2" width="40" height="40"
source="{imagePath}" />
<mx:Text x="314" y="16" text="{fileSizeTxt}" />
</mx:Canvas>

Similar Messages

  • Contract custom fields header data is not getting Saved(SRM7.02)

    Hi Experts,
    I have created a custom tab on the Header screen of SRM contract and that tab has 10 custom fields..Also, meta data custom fields properly binded to the custom webdynpro screen..But the problem here is when the data is filled on the custom tab screen and press SAVE button, after reopening the contract the custom field values are getting disappered. Version SRM7.02
    Thanks for quick response..
    Thanks,
    Krishna.

    Hi Experts,
    Please reply
    Thanks,
    Krishna.

  • Report to fetch the text information from customer master sales data

    Dear Experts,
    We have come up with a requirement where the business want a report/list of the customers for whom a particular text is not maintained in customer master -sales data.
    There are many Z text id are configured and are maintained in Sales data- extras- text. In addition, business also need some key fields from the customer master such as name, city, delv plant, payment terms, sales off, sales grp etc.
    I could not get any standard table where the text is maintained with the customer numbers. Table STXH can give the customer numbers for a particular text id type but what is maintained against the given text id is not fetched from the table.
    So we need the valuable inputs to realize the requirement.
    As an proposal, we are aiming to develop custom Z report with the FM READ_TEXT to get the text information with the customer no ( object type KNVV and text id ). But for the additional information, what should be the actual logic for fetching the data. say if this FM is used, what should be the sequence of the logic and ideal selection parameters.
    In addition, we aim to use BAPI BAPI_CUSTOMER_GETDETAIL2 to fetch some of the customer ifnormation but many fields are not found in this . can we use some other bapi which can provide the complete general/sales data of customer ( delv plant, sales off, sales grp, custo grp, incoterms, payment terms etc)
    Kindly suggest accordingly.
    Many thanks in advance.

    Hi Dharmendra Kumar,
    I guess the best would be to check in ABAP General forum on the READ_TEXT sequence/ logic etc..
    For customer details, the available BAPIs are:
    BAPI_CUSTOMER_GETDETAIL
    BAPI_CUSTOMER_GETDETAIL1
    BAPI_CUSTOMER_GETDETAIL2
    However, you might have to check classes in SE24 to find any existing classes and its method yo give you all the information of a customer. Also check this thread: [BAPI for customer details like in IDoc DEBMAS;
    Regards,
    Raghu.

  • How to use the bind variable in custom.pll

    Hi,
    How to use the bind variable in custom.pll.Its through error.
    any one gem me.
    very urgent.
    M.Soundrapandian.

    Hello,
    Please, ask this kind of questions in the e-business forum.
    Francois

  • How do you add a custom label to dates in contacts.....

    How do you add a custom label to dates in contacts- I have multiple birthdays in contact group and want to change label through customise to add additional birthday- unless another way to add second birthday to contacts and identify each one?????? or way to link contacts with same address phone number etc but id birthdays?????

    You have some contacts with more than one birthday?
    To add a custom label for a date, select Edit for an existing contact. Select Add Field. Select Date. Scroll up with the Info window above the date selection and select Other for the new date selection. Select Add Custom Label and then select this label for the new date field for the contact.
    As far as linking dates with multiple contacts, the answer is no to that.

  • Customer master-general data-attribute-creation

    Hi,
    I would like to use the attribute 1 to 10 fields in customer master general data to fill up relavant to customer . i have seen some SCN postings regarding activation of those fields technically.
    i want to create some data in the attribute same like customer group 1 , while creation of customer master , i shall select the drop down and save it
    what is the menu path/transaction code for that please
    Thanks and regards,
    Pratheep

    Hi
    Check this menu path and also check below document in which Suhaib Bin Aziz has explained how to find SPRO path from front end screen.
    How to find SPRO Path from any Particular Screen
    Thank$

  • No view of the changes of Customer /Vendor master data

    Hi Experts,
    I have a problem, when I run the standard report to view the changes of customer/vendor master data, I don't find the change relative to a bank account .
    I found in the report the technical field that the user has changed, but I haven't found the text of the data in the tab "bank account".
    Can you help me, please?
    Thanks in advance.
    Best regards
    Giampaolo

    Dear Ram,
    thank you for your answer , but my problem is still present. If I want to see the modify of the Customer/Vendor Master Data  for the Payment transaction Data  details, I don't try this information in the TCODE FD04.
    Do you know a different report or TCODE that I can use?
    Thank you in advance.
    Best Regards
    Giampaolo

  • Change Customer master Address Data using Structure biadd2 in report rfbide00.?

    hello
         i want to change Customer  Master Address Data using using RBIDE00 report program but when i execute the report it will accept input from batch file
    but the same is not getting updated in  customer master .
    please  help me to resolve this issue .
    thanks & regard
    laxmikant soni

    Found the answer from SDN - not possible unless using some BUS.
    RFBIDE00 - Address data issue
    Thread closed.

  • Regarding    opening Balances  for customer  as   on date

    hi
    Experts..
      hw  to caluclate the  opening balances for  customers as on date.
      wt is  the procedure &  please    give the  tables names  and send needed stuff.
    Thanks & Regards
    Spandana

    hi..
    Use the BAPI 'BAPI_AR_ACC_GETOPENITEMS'.
    it will give you opning bal for customer.
    example:
    DATA: GT_LINE TYPE TABLE OF BAPI3007_2,
          WA TYPE BAPI3007_2.
    CALL FUNCTION 'BAPI_AR_ACC_GETOPENITEMS'
          EXPORTING
            COMPANYCODE = bukrs
            CUSTOMER    = kunnr
            KEYDATE     = date
          IMPORTING
            RETURN      = lt_bapireturn1
          TABLES
            LINEITEMS   = gt_line.
    table gt_line  will have the details of the open items for the customer.
    regards,
    Padma

  • Customer and vendor data

    Hi Colleagues,
    Can you please let me know all the related tables where customer and vendor data resides.
    Regards
    Anuj

    Hi,
    Customer data tables
    KNA1     Customer master
    KNB1     Customer / company
    KNVV     Customer sales data
    KNBK     Bank details
    KNVH     Customer hierarchy
    KNVP     Customer partners
    KNVS     Shipment data for customer
    KNVK     Contact persons
    KNVI     Customer master tax indicator
    Vendor data tables
    LFA1     Vendor master
    LFB1     Vendor per company code
    LFB5     Vendor dunning data
    LFM1     Purchasing organisation data
    LFM2     Purchasing data
    LFBK     Bank details
    Pls reward suitably..
    Best regards,
    S.Karthick

  • Date type-specific Customizing missing for date type ACTActPln

    Hi all.
    I'm using a Web Service obtained by copying the CRM 7.0 built-in WS APPTACTCRTRC.
    I'm using it to create Appointments using an Adobe Interactive Form.
    It goes everything fine (a Date is created in the system, with all the input data properly set) excepted the dates...
    The WS uses two TIMESTAMPS, TIMESTAMP_FROM for StartDateTime and TIMESTAMP_TO for EndDateTime, whereas the GUI transaction to create Dates accepts dates and times in separated fields.
    Going in Debug I can see that the execution ends with the following error, referred to the involved entity (CRM_APPOINTMENT):
    Date type-specific Customizing missing for date type ACTActPln
    CRM_APPOINTMENT uses date profile 0000000001 with three possible date types: ORDERACTUAL, ORDERPLANNED and ORDERPROPOSED and I cannot find anywhere date type ACTActPln (just to add it in customizing).
    Is anyone able to enlight me?
    Thank you in advance!
    Alessandro
    PS I've years of experience in Java programming but I'm quite new to the SAP world. Maybe the problem is not a problem at all, but it seems to me as such. Even if it has a trivial solution, please let me know. Thx!

    Hi,
    Well I was about to write that you should enter date in decimal format. but you already did that as mentioned in How to set a date in a Form where the bound date format is a decimal?
    In response to following from above thread (copied for others to understand my response)
    Hi all.
    I'm successfully using the LiveCycle Designer and I've managed to remotely create Appointments using a CRM Web Service (a mere copy of APPTACTCRTRC).
    The only problem I'm encountering is that I'm not able to set the dates/times (start and end of the appointment).
    Dragging each of the two fields from the WSDL based Data Connection I obtain a Decimal Field limited to 15 digits.
    How can I write a date and time in such a field?
    I've tried with a retroverse date as YYYYMMDDHHmmss (for example, 20100301124500) but it does not work
    (the appointment is indeed created, but with the start date and time fields filled with
    the current date/time and the end date and time fields filled with the current date and time plus 10 minutes).
    The retroverse date above is only 14 digit long, so, maybe, this is the problem.
    But, given the field definition, I'm not able to fill a blank space between the date and the time.
    I'm not able to put a dot either.
    What should I do?
    Any suggestions?
    Thank you in advance.
    Alessandro
    15 digit in UTC time format here is fraction of second so you should enter 201003011245000 (add one more zero).
    14th Oct 2010 16:00 should be written as 201010141600000, so just try it and and see if it works, I guess if you do not supply end time then by default it will be starttime + 10 min but this is just guess.
    Regards,
    Gourav

  • Customer purchase order date allow 01.01.0511 in sales order ??

    Hello All,
    In sales order,Customer purchase order date (filed name BSTDK) 01.01.0511 was maintained.
    the date format 01.01.0511 will allowing in this field in SAP in teh slaes order.
    or this is typo error.??
    VBKD-BSTDK  is having DATS  data type.   
    rec
    if we use same date 01.01.0511 on the POs, system will give error message
    "Delivery date outside period covered by factory calender DE (DE-germany) with message no:ME078".
    so how to cor

    Hello All, 
    In sales order,Customer purchase order date (filed name BSTDK) 01.01.0511 was maintained.
    the date format 01.01.0511 will allowing in this field in SAP in teh slaes order.
    or this is typo error.??
    VBKD-BSTDK  is having DATS  data type.   
    if we use same date 01.01.0511 on the POs, system will give error message
    "Delivery date outside period covered by factory calender DE (DE-germany) with message no:ME078".
    so how to correct the date  01.01.0511 in VBKD-BSTDK ??

  • How to set a default date for a custom field of Date type in project server 2010.

    hi,
    can somebody help  me.
    How Can i set the default date for a custom field of date type in project server 2010 ?

    Dear Rohan,
    You can set default value to custom field thru Lookup table. Assign lookup table to custom field and set default value to some lookup value (Note: check the “Choose a value to use as a default when adding new item” checkbox).
    Regards,
    Avinash kumar | Blog:http://avigr8.wordpress.com | If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

  • Sales order Customer Requested Delivery Date

    Hi Experts
    We are getting date difference of Customer Requested Delivery Date in MD04 and Product View for one customer.
    Scenario:
    Created Sales order by giving CRD date as 26.07.2010 and In APO Product View the same sales order shows 25.07.2010.
    Please advice.
    Thanks
    Kanth

    Hi Kanth,
    Please check your settings under transaction /sapapo/cp3
    Also check sap notes 423626, 394113
    Regards
    R. Senthil Mareeswaran.

  • Report that lists Customer balance, Due date, & Invoice date.

    Hello Gurus,
    I would appreciate your help on the following question. Points available.
    Is there a report I can run in SAP that can show me the <b>Customer Balance, due date, and Invoice date</b>?
    Is there anything besides FBL5N?
    Thanks in advance!

    Please note a customer balance is the total outstanding against a customer, normally totalled at a Company Code level.
    Due dates and invoice dates are at line item level, where as Balance is the total of the line items.
    If you run a balance report you wont get line item data and if you have a line item report it wont give you balance details.

Maybe you are looking for

  • Why is my home sharing no longer working?

    I have used itunes home sharing before.  Every since the recent iTunes updates, I can no longer get the home sharing to work.  Computers are "authorized" and "home sharing" is on for both computers.  The computer that I am trying to pull music to (Ma

  • Splitting the Line items in Transaction LB02........

    Hi Frnds,             I would like to know how to proceed further....afetr entering into standard transaction LB02, the user wants to split the line items depending on the quantity what he has enterd in the custom screen which i developed.           

  • Outlook 2003 Calendar syncing bug fixed!

    Since Apple has refused to acknowledge this major bug in Itunes 7.7 - iPod Touch 2.0, I decided to solve the problem myself. As you all know. The new Apple software and firmware upgrades have destroyed the syncing of Outlook Calendars with both the i

  • Apple TV lost audio to Netflix after update today and advice or fix

    Updated software on Apple TV, return to my Netflix movie audio missing

  • Sound Output Keeps Resetting

    Hi, I have speakers that are connected to my Mac Pro via line out, but the output device keeps automatically resetting to the internal speaker for some reason.  Resetting the PRAM didn't work.  For the record, I'm running 10.7.5.  Anybody know what t