Useful app!
Posted 11 months ago
Xross Communication
The Xross Communication demonstrates how to pass variables from SWF to SWF (LocalConnection), SWF to JavaScript and JavaScript to SWF (ExternalInterface).
In the example I use only Strings, other types like Array and Object (only LocalConnection) can also be passed from one file to another.
AS3 files by me:
Posted 11 months ago
I have a question before I buy. Localconnection only allows for one data connection at a time. Does this work around that or not? Also they have to be on the same domain right? So I can’t have a web page with one SWF and have some user add data and have it show up on another SWF file because they will not be on the same domain? Sorry if this is a noob question, but I think anyone buying this file will want to know if there are any limitations.
Posted 6 months ago
Hey flashdendell,
I don’t think this is a noob question.
LocalConnection allows you to create as many channels as you want. Each SWF is allowed to create a channel or subscribe to a channel. The channels can be accessed from a browser, another browser window(same domain only), or directly from your standalone flashplayer.
I uploaded two examples to demonstrate how it works: demo1 demo2 flashden domain
If you open all these links next to each other, you’ll see that only demo1 and demo 2 can affect each other. They cannot affect the swf on the flashden domain. (the demo1 and 2 now only work in one way depending on the order of opening them, this is because they both try to set up the same channels)
I hope this illustrates the limitations, if not please let me know.
Posted 6 months ago
Hey Aleixo,
this can be done in AS2 using the Flash/JavaScript Intergration Kit. SWF Object works the same for AS2 and AS3 .
Posted 4 months ago
Wow, this is pretty sleezy… all you’ve done is packaged up and charged money for something that is available for free http://www.communitymx.com/content/article.cfm?cid=0922A
Well done!
Posted 15 days ago