This content has been marked as final. Show 4 replies
I haven't really tried anything like that... but its probably because of this:
There is a 40 kilobyte limit to the amount of data you can pass as parameters to this command. If the command returns false but your syntax is correct, try dividing the LocalConnection.send() requests into multiple commands, each with less than 40K of data.
I don't think so...
I send small(10x10 pxs) square and it doesn't work(...
Yes I guess if its that small it should be OK... within the 40k limit. I'm not all that familiar with localconnection so I'll let others who know more respond.
I just saw that 40k limit in the documentation and thought that it could be a showstopper for general use for most bitmaps (I guess you could split up the data and pass it in chunks and reassemble it, but doesn't sound like fun!). Anyhow I'm sure someone will know something about it.
No, its not about the limit, its about the complex type of the object being sent. Flash uses references for complex objects when they are passed to functions as arguments. When using LocalConnection the SWF you send the BitmapData has a different memory address space than the receiving SWF so you get an undefined.
Try it for yourself. Use 3 tier approach of LocalConnection:
SWF1 <-----> SWF_GATEWAY <-----> SWF2
1) non-working scenario:
SWF1 sends BitmapData to SWF_GATEWAY that in turns sends it to SWF2, it will not work.
2) working scenario:
SWF1 sends BitmapData to SWF_GATEWAY that in turns sends it back to SWF1, it will work.