ewertonbermejo / merapi

Automatically exported from code.google.com/p/merapi
0 stars 0 forks source link

actionscript can not process large size of array #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. implement a IMessageHandler
2. create handleMessage(IMessage message) function, return an string array with 
size 600
3. on actionscript site: do 'var tems:Array = message.data as Array;'
and tems is empty

What is the expected output? What do you see instead?
temps should not be empty

What version of the product are you using? On what operating system?
window xp, latest release

Please provide any additional information below.
i think there is same thread on the forum:
http://merapiproject.net/index.php?
option=com_fireboard&Itemid=58&func=view&id=274&catid=8#274

What type of application are you building?

desktop

Original issue reported on code.google.com by junmin.s...@gmail.com on 17 Dec 2009 at 11:25

GoogleCodeExporter commented 8 years ago
Hi

I'm having the same issue, even with an array with size 1.

Can you post your handleMessage() function code? 

What i'm doing is

On the Java side:

ArrayList<String> teste=new ArrayList<String>(); 
teste.add("teste");
teste.add("teste1");
teste.add("teste2");
Message testeMsg=new Message();
testeMsg.setData(teste);
testeMsg.send()

On AIR:

private function handleAnimalLoadResult(e:ResultEvent):void{
animais = e.result.data as Array;
}

Thanks,
Sonia

Original comment by sonia.ma...@gmail.com on 10 Aug 2010 at 8:43

GoogleCodeExporter commented 8 years ago
try:

animais = e.result.data as ArrayCollection;

Original comment by iwester...@gmail.com on 1 May 2011 at 2:40