Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-21-2009, 07:04 PM   PM User | #1
wac
Regular Coder

 
wac's Avatar
 
Join Date: Sep 2002
Location: Cary, North Carolina, USA
Posts: 359
Thanks: 2
Thanked 0 Times in 0 Posts
wac is an unknown quantity at this point
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
wac is offline   Reply With Quote
Old 01-21-2009, 08:44 PM   PM User | #2
wac
Regular Coder

 
wac's Avatar
 
Join Date: Sep 2002
Location: Cary, North Carolina, USA
Posts: 359
Thanks: 2
Thanked 0 Times in 0 Posts
wac is an unknown quantity at this point
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
wac is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:27 AM.


Advertisement
Log in to turn off these ads.