In response to a common type of question in the Flash forums, Keith Gladstein has written a nice article on SWF to SWF communication. In it he provides annotated code examples for the following scenarios:
- How do you reference an object (movieclip, variable, function etc) in one SWF from another SWF?
-
How do you reference the main timeline of SWF2 from SWF1 when SWF2 is loaded into SWF1?
-
How do you reference the main timeline of SWF1 from SWF2 when SWF2 is loaded into SWF1?
-
How do you communicate between two SWFs (possibly in different domains) that are opened at the same time by the same user?
-
How do you communicate between one SWF opened at different times by the same user?
-
How do you send data to a SWF in a popup?
You can also find information about how to load one SWF into another SWF in this TechNote.
