Skip to main content
Inspiring
August 24, 2006
Question

communication between separate flash movies on the HTML Page

  • August 24, 2006
  • 2 replies
  • 273 views
I have a standalone swf player which loads an flv file from the html page. I would like to link it to a flash list box which will serve as the video list which will be populated from an XML file. Rather than use a dropdown textfield in a form I want to load the video player by selecting the item from the flash vide list. How can I communicate between the two movies? Can anyone lead me in the right direction?
This topic has been closed for replies.

2 replies

Inspiring
August 26, 2006
thanks blemmo!
but what if you don't have access to the receiving movie, FLA but only the swf who will receive the data by way of javascript. Can I set up the LocalConnection at the html level?
Inspiring
August 26, 2006
LocalConnection only works with 2 swfs, so you need the fla to use it.

If the receiving movie is manipulated via Javascript, you should be able to call the Javascript function from the other movie, with getURL() or the ExternalInterface class. I never used this, but it should be quite straight forward, I guess.

cheers,
blemmo
Inspiring
August 24, 2006
Check out the LocalConnection class, this should be what you need here. An example: http://www.actionscript.org/tutorials/intermediate/communication_between_two_movies/index.shtml.

cheers,
blemmo