Prev | Current Page 806 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

When you use
LocalConnection , it is possible to open a bridge between a Flash movie executed in the Flash Player
and a movie embedded in a page Table 15-6.
It is possible to close the communication prematurely using the closeConnection() method.
LocalConnection has not been very well implemented and can be quite slow. If you don ??™ t have to
work with Flash prior to version 8, FlashJsConnection is always a better choice.
Table 15-5
FlashJsConnection Creational Method Description
flashConnect(objId:String) Used to create a connection between two Flash movies
inside a web page context. The objId argument is a string
identifier that corresponds to the id attribute of the HTML
element that embeds the Flash movie that acts as server.
Table 15-6
LocalConnection Creational Method Description
connect(name:String,
?allowDomains:Array)
Used to create a connection between two flash movies.
The first argument identifies the connection by name. If
the communication must happen in Flash movies received
from different web domains, those domains must be
specified in the optional allowDomains argument.


Pages:
794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818