Skip to main content
Participant
April 29, 2020
Question

Control external swf

  • April 29, 2020
  • 2 replies
  • 1930 views

Hi

I'm trying to figure out how I could control an external swf from another.

Say I've got one running on one computer and I press a button, is it possible that another swf on another computer could be controlled from the first one?

Ice looked everywhere for information but it make not be possible

This topic has been closed for replies.

2 replies

Colin Holgate
Inspiring
April 29, 2020

ActionScript 3 has localconnection, which is designed for this sort of thing. It's not trival, but there is documentation that includes example code:

https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/LocalConnection.html

Participant
April 30, 2020

I've been looking into that but don't think it would do what I want. Basically I want to make a menu for a shop that displays on the tv, the second one would be exported as an apk to a tablet that had buttons that controlled the menu so you could select each section rather than the tv just looping.

Colin Holgate
Inspiring
May 16, 2020

A different approach, if you have a server that both can connect to, would be to write a text file on the server that the TV is frequent checking. That could be a file server, it wouldn't have to be an Internet server, but could be too.

Legend
April 29, 2020

Another SWF on another computer? You'll need some sort of client/server setup for that. The sending SWF would have to post a message to the server, which would have a task listening for that message, which would then dispatch it to the IP address of the computer with the other SWF as a push notification. It would all be rather complicated.

Participant
April 30, 2020

I had a feeling it was going to be rather tough to do. Thank you