Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    wac
    wac is offline
    Regular Coder wac's Avatar
    Join Date
    Sep 2002
    Location
    Cary, North Carolina, USA
    Posts
    359
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Complex calls using ExternalInterface

    Sorry, accidentally posted this in the flash forum and didn't know how to move a posting
    -------------------------------------------------------------------------
    I'm having a problem calling functions from C# to Flex ActionScript.
    I can successfully call functions with "simple" parameters (int, String, Boolean), but I'm having problems calling functions with parameters like ArrayCollection. I'm using the ExternalInterface classes at the adobe site
    http://livedocs.adobe.com/flex/3/htm...erface_10.html
    Wayne Christian

  • #2
    wac
    wac is offline
    Regular Coder wac's Avatar
    Join Date
    Sep 2002
    Location
    Cary, North Carolina, USA
    Posts
    359
    Thanks
    2
    Thanked 0 Times in 0 Posts
    On the Flex side, I'm getting the following exception.

    TypeError: Error #1034: Type Coercion failed: cannot convert []@94f85f1 to mx.collections.ArrayCollection

    The request passed to _flashControl.CallFunction is as follows

    ============
    <invoke name="setDecompTreeCollection" returntype="xml"><arguments><array><property id="0"><object><property id="id"><number>0</number></property><property id="name"><string>All CUSTOMER_AGE
    $6,175,043.81</string></property><property id="tooltip"><string>All CUSTOMER_AGE
    Sum of NEW_BUSINESS_VALUE $6,175,043.81</string></property><property id="cardinality"><number>6</number></property><property id="levelNumber"><number>0</number></property><property id="childLevelLabel"><string /></property><property id="dimensionSeparator"><string /></property><property id="linkLabel"><string>100.00%</string></property><property id="isExpanded"><false /></property><property id="parentId"><number>2147483647</number></property></object></property></array></arguments></invoke>
    Wayne Christian


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •