ActionScript 2.0 :: Create A Local Connection Between Two Swfs?
Jan 29, 2009In AS2, and creating a local connection between two swfs, what do the commands "comeBack" and "section" do?What's there place in the process?[code]...
View 1 RepliesIn AS2, and creating a local connection between two swfs, what do the commands "comeBack" and "section" do?What's there place in the process?[code]...
View 1 RepliesWhen I try loading 2 swfs that use a local connection to communicate I get this error
ActionScript Code:
SecurityError: Error #2070: Security sandbox violation: caller file:///C:/Users/Siggy2xc/Adobe Flash Builder 4.5/Mass Media CG/bin-debug/swf/controlPanels/animation/Test.swf cannot access Stage owned by app:/Mass_Media_CG.swf.
[Code].....
How can I allow the 2 swfs using a local connection to communicate?
All of the tutorials I have found re: local connections seem to outline 1 swf sending info & the other swf receiving. Is it possible to have two swfs using exactly the same action script for their variables to effect each other? I've got two swfs with 2 different sets of buttons who react the same way on roll over. Once a button is selected it remains highlighted. I want to know if I can have a button in swf 1 highlighted but un-highlight when a button in swf 2 is selected?
View 3 RepliesI have got Flash CS5 and i create AIR desktop application. I would like to create and edit sql lite local air database. I know i should use SQLStatement and sqlConnection. Could someone give me any advice about doing that. Maybe some tutorial or something what let me to do that.
I don`t know should i create that database sql lite file earlier and include it to air project or should i create that database in dynamic way by as3? How can i get and edit data from this database? How can i save that local database if it included in air project (i would like to that database file would be inside of air project)?
Is it possible to access local swfs using a remote swf
View 1 RepliesI want to create the following: Suppose I have 2 swfs open in an HTML doc. The first sfw has 3 buttons: red, green, blue. When I hover over these buttons, I want the words "red", "green", "blue" to appear respectively in the second swf.
I found out that I can use "local connection" to to this, but it's too advanced for me.
Basically, I need some help from mac users. I've made a portfolio site at: URL... and I'm using the 'Local Connection' function for communication between the thumbnail menus and the displayed images.However, I discovered that this wasn't working on macs... and after some digging, I found out that I should add the statement:[code]So, I added this, but I have no way to test whether it's now working or not as I don't have access to a mac. Is it right?
View 3 Repliesi have a very complex object, i wanted to pass on the object from AS2 to AS3 through Local connection. Looks like it doesnt accept more than 40k. Right now i am splitting the object and merging from AS3. i knew this is not so efficient enough. Is there any way i can share the object without splitting or any efficient way to achieve this.
View 3 RepliesIs it possible to connect to the same Local Connection more than once?
What if I have a Flash signature with same flash movie on the page 3 times and I click on the button on the first movie. Can the other 2 movies do the same action the first movie is doing?
I thought thats what LocalConnection was for but when the second movie tries to LocalConnection.connect it says the connection is already connected.
I am really getting stuck with the 'Local Connection' action script vibe. All the tutorials show adding text from one swf and it appearing in another, but to this day i still cannot find a way of rolling over a button and it triggering the rollover on a button in anther swf.
My theory is that if it is possible to add text to another swf...surely connecting buttons is possible..
We're loading a AS2 SWF into a AS3 Container. Then we want the AS2 SWF to run a function in the AS3 container...Is this possible without a local connection?
View 2 RepliesI have 3 Flash banners on 1 page that run through a synched animation together. At the end of the animation, there is a replay button in each of the 3 banners. I want the replay button when clicked in any of the banners to call a replay function in all 3 banners. Is there any easy way to do this? Using localconnection?
The banners are already using a local connection for the syching of the animation, if that helps.
I am using 2 swf movies to comminicate text like in the following example[URL]it all works well, accept, the text dosn't scroll up in the recieving movie. How would i make it do that?
View 1 RepliesI need to check to see if the connection is already open, and if so, remove it so I can reconnect (sending a new variable on the new connection).[code]...
View 9 RepliesI want to be able to pass the mouse click / evt with local connection[code]...
View 1 RepliesI have three swf's using local connection to communicate. Basically a top and bottom navigation communicating with a main module. All this works fine and looks a little like this:
Top_Nav:
[AS]
Actions.LINKFunction = function(){
outgoing_lc = new LocalConnection();
[code]....
As I mentioned this all works fine. Where I am having trouble is that there is one link that takes the user to an eCommerce area of the site that lacks the main module. It only has the top and bottom navigation. So the navigation is basically broken once the user heads to this area. By putting a getURL into the top nav function I can easily get back to index.html, but I can't figure out how to send the functions once the page has loaded. Basically looking for a way for the functions to execute after the new html page has loaded. So the user hit's the LINK button, the page index.html is loaded along with the three swf's and instead on the default movie's loading in the main-module, the functions in the main module corresponding to LINK are run.
Ive used local connection before, it always comes up as a bit fishy, but the best reulst i got was following the emaple in the help file, but it only works when the files are online, and i need the receiving/listening SWF to be online..and the sending should be able to work both from localhost and a domain,
[Code]...
The following example sends a string to the previous SWF file and displays a status message about whether the local connection was able to connect to the file. A TextInput component called name_ti, a TextArea instance called status_ta and a Button instance called send_button are used to display content
[Code]...
LocalConnection objects can communicate only among SWF files that are running on the same client computer, but they can be running in different applications--for example, a SWF file running in a browser and a SWF file running in a projector.
I have an mp3 player(AS3) loads in external mp3. I am trying to attach the flash local connection script to the mp3 script so that I can have the mp3 pop up in a smaller browser and it be controlled by the main homepage.
here is an example, [URL] select track 4, you will see it starts playing but also another small window pops up but its behind the main browser. this is then controlled with a 'Stop' and 'Play' function on the main home page.
thats what I am trying to create:
ok;
I have an example working for the flash local connection where you can drag a ball and it also moves in the smaller pop up window, see here: [URL]
So I have that working and I have the mp3 working, but I need to put both togther and cross over the flash local connection script and incorporate into the mp3 script.
What is the best way for me to send script information, I don't want to flood the thread with AS. You can download the flash lconnection files and the mp3 player from here!
[URL]
How do i send a text file between air applications using local connection?Sender AIR
private var conn:LocalConnection;
public function init():void
{
[code]......
I am creating a local app that is going to be a swf file. Is there anyway to check if the user has internet while they are using my app. I tried this, it works great if testing the movie from flash, however, It does not work when running the swf file independently. I'm guessing this is because it is strictly intended for air app.[code]...
View 3 RepliesI am using a local connection to share data between 2 apps. The receiver has a function that runs every time new data is sent. I need to run another function every time that function runs, how can i do this?
View 2 RepliesI have 2 swfs loaded that use a local connection to communicate, they work fine when loaded on the same window but when I load them on separate windows it gives me the following error.
ActionScript Code:
Main Thread (Suspended: SecurityError: Error #2070: Security sandbox violation: caller file:///C:%5CUsers%5CSiggy2xc%5CAdobe%20Flash%20Builder%204.5%5CMass%20Media%20CG%5Cbin-debug%5Cswf%5Canimation%5CTest.swfcontrol cannot access Stage owned by app:/Mass_Media_CG.swf.)
I want to make an offline desktop app. that stores my company's customers and their data in an XML file, just like a database. so that I'm able to load, edit (create new customers, add to their data) and save it into the XML file which is stored locally. i then want to make a Local Connection to the XML file somehow, so that others in the company can do the same from their PC.. Can anybody tell me if this is possible at all? (making a flash app that writes XML files to any location on a PC that only has network.. edit XML files through Local connection function in flash).
View 3 RepliesI have an Web based flash games and what I need to do is "I need to restrict the login browser to make one PC can run one login at a time".
Let say,While the player is using the games , then if he open another browser and want to play at the same time.The game cannot permit to play the game at the same time on this same pc.
So can I use to control that by using Local Connection?
I have an swf that needs to communicate with another. It just needs to pass 1 variable (a number) to the other. And the receiving swf will then act according to the number.
However, I noticed when I sometimes refresh the page, localConnection does not always work. When I'm clicking the sending swf, the receiving swf does not act...at all. As if nothing happened.
Is it a HTML problem? Ive selected Flash Player 7 for swfobject's parameters. Anyone have any solutions or possible alternatives to doing this?
Like I said, I just need to give the receiving swf ONE variable. And I dont want the sending one to write to a PHP file and receiving one to always load that PHP file for updates...thats not nifty enough.
I am creating a local connection to play an as2 movie, which works.... the first timehah.Observe the link below:http://isokon.net/clientPost/scripts/AVM2_to_AVM1.swf(test the above file by playing the banner, then killing it, then loading a new one and attempting the play method again...)I've tried closing the connection before reusing it, but it says the connection is not open... traces a successful send each time.here is the link to the abstracted FLA: http://isokon.net/clientPost/scripts/AVMCommBug.zip
HTML Code:
var bannerContainer : Sprite = new Sprite();
var connectID : LocalConnection;
[code].....
I need to put togther regarding flash local connection? I have an mp3 player(AS3) loads in external mp3. I am trying to attach the flash local connection script to the mp3 script so that I can have the mp3 pop up in a smaller browser and it be controlled by the main homepage.
[Code]...
here explain how to use local connection. the explanation on Macromedia was very useful as it only showed how to transfer text fields. How do i send a variable from one movie in one html file to another movie in another html file.
View 4 RepliesI seem to have a problem with re-playing my movie clip buttons for a second time.
it is a little bit more complicated than that as it is over two SWFs (I have attached both flash files).
The idea is that when on the 'home' page movie clip buttons can be used when both SWFs are running. This works from the original loading, but once navigated to another page/section and then returning to 'home', the buttons on the menu1 file stop reacting.
very frustrating as i know it is probably some very simple thing that will fix it, like a _root or a this. or a play rather than stop somewhere, but I've tried for 2 days and I still can't seem to figure it out.
Also, if anyone knows how i can reduce the amount of repeated actionscript I would be eternally gratefull.
What I'm trying to achieve is a basic theatre Box Office application, to show the public the location of the seats that they have bought.
I've got 2 flash apps. One on the clerk side which takes the seats in a csv format and then uses local connection to send the data. [code]...