Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
DaveHCYJ #1
Passing Multi Dimension Array to CFC from Flash
Passing a single dimension array works just fine, but is there a way to pass a
multi dimension array?
Your thoughts/help would be greatly appreciated.
Here is what I am trying just to test things out:
<!--- my cfc that dumps the variable to a file just so that I can see if it is
recieved --->
<cffunction name="test" access="remote" returntype="string">
<cfargument name="test" type="struct" required="yes">
<cfsavecontent variable="dump">
<cfoutput><cfdump var="#test#"></cfoutput>
</cfsavecontent>
<cffile action="write" file="c:\inetpub\test.htm" output="#dump#">
<cfreturn "true">
</cffunction>
My Action Script that triggers a WebServiceConnector when I click a button:
on(click)
{
_parent.testconnector.params = new Object();
_parent.testconnector.params.test = new Array();
_parent.testconnector.params.test[0] = new Array();
_parent.testconnector.params.test[0][0] = "test";
_parent.testconnector.params.test[0][1] = "test2";
_parent.testconnector.trigger();
}
that does not work, however if I change the code to the following it works
fine (as a single dimmension array):
_parent.testconnector.params.test = new Array();
_parent.testconnector.params.test[0] = "test";
_parent.testconnector.trigger();
DaveHCYJ Guest
-
Converting an XML Array to a multi-level array
I have an array assigned to a data grid such as: private var myIngredients:Array = new Array( <item ln1="Plain" sn="plain" ln2="(3 cups)... -
Initial dimension for a Flash Player screen
New to Flash 9. Is it possible to configure a Flash Player screen to start up with a defined height and width - I can't see any documentation... -
problem with \r\n and \n (when passing multi line string arguement)
When I call a webmethod from my application, the enter code is encoded as "\r\n" (which is default, Environment.NewLine), when this string... -
Multi-dimensional Array
Hi, Array-Question: Suppose you have an array like: <? $invoices=$taxrate; $invoices=a number; ?> -
sorting multi-array
hello, i have got a problem, tehere is an array: $x = array( array(15,55,array(1,2,3),3,5,array(1,2,5)),... -
DaveHCYJ #2
Re: Passing Multi Dimension Array to CFC from Flash
I have resorted to making a work around. Since Flash and Coldfusion can work
with named indexes as well as numbered (in the form of structures in cold
fusion), I have simply done this:
I was originaly needing array elements such as:
myArray[0][0][0] = "text";
myArray[0][0][1] = "text2";
etc.
Instead I use:
myArray["0.0.0"] = "text";
myArray["0.0.1"] = "text2";
and then in cold fusion I have a function that converts that one dimension
array into a proper 3 dimensional array
DaveHCYJ Guest



Reply With Quote

