Re: [Flashcoders] External Interface with looped parameters

2010-06-06 Thread Ashim D'Silva
The last 2 weeks were crazy and I completely lost track of this so I apologise for not responding to the answers (cheers though!). We couldn't find a solution so we used an array instead, but the idea was this. I have: var objs:Array = [1, 2, 3, 4, 5]; // arbitrary length defined by the number

Re: [Flashcoders] External Interface with looped parameters

2010-06-06 Thread Anthony Pace
What you are suggesting, is almost the same as I suggested, except that you are avoiding the xml object and instead using a string; however, because of how a string is converted when passing the data, I wouldn't recommend it for anything too complex. On 6/6/2010 7:13 AM, Ashim D'Silva wrote:

Re: [Flashcoders] External Interface with looped parameters

2010-06-06 Thread Juan Pablo Califano
Whenever you need to pass a variable number of arguments, check Function.apply().It generally will be the answer to your problem! If I understood your problem correctly, this should do what you want: var args:Array = [0,1,2,3,4,5]; var jsFunctionName:String = someJsFunction; var

Re: [Flashcoders] External Interface with looped parameters

2010-05-28 Thread Anthony Pace
If you want an array from javascript to actionscript somewhere in your class put something like:

[Flashcoders] External Interface with looped parameters

2010-05-26 Thread Ashim D'Silva
This seems fairly impossible but if there's an awesome way to do it I'll be heaps grateful. I receive a function name and a set of parameters via XML analytics function namewebtrends/name params param98780/param

Re: [Flashcoders] External Interface with looped parameters

2010-05-26 Thread kennethkawam...@gmail.com
You can pass any number of parameters with ExternalInterface.call() method - or are you talking about something else...? -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 26 May 2010 08:07, Ashim D'Silva as...@therandomlines.com wrote: This seems fairly impossible but if there's an awesome

Re: [Flashcoders] External Interface with looped parameters

2010-05-26 Thread Glen Pike
On 26/05/2010 09:33, kennethkawam...@gmail.com wrote: You can pass any number of parameters with ExternalInterface.call() method - or are you talking about something else...? I think he means a variable number of parameters. Can you pass an object like an array?

Re: [Flashcoders] External Interface with looped parameters

2010-05-26 Thread kennethkawam...@gmail.com
You can count them in the receiving function, e.g. arguments.length in JavaScript. (Then may be I misunderstood again ;) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 26 May 2010 09:39, Glen Pike g...@engineeredarts.co.uk wrote: On 26/05/2010 09:33, kennethkawam...@gmail.com wrote: