Posts tagged Interconnecting
Interconnecting Flex modules
May 5th
Adobe Flex 3 has a very interesting component : LocalConnection. The idea behind is that the modules (which runs on client side) might change some data. The exchanged data is not limited at all to simple forms, but can be from a simple String to a XML or Arrays.
Few things must be known from the start, but as any technology, only after you learn it everything becomes easy.
- First of all, the communication can be restrained to a certain domain, let’s say by example www.radupoenaru.com .
- You can’t have bidirectional communication from a single LocalConnection. One module acts as a server and another one as a client.
- Server module opens a connection to which client connects. If the client loads but the server don’t, then an error occurs in client module.
- Be very careful to the name of the procedure called by server – should be the same in server as in client module. More >