ActionScript 2.0 :: Local Connection - 2 Swfs Sending / Receiving Same Variable?

Feb 11, 2007

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 Replies


Similar Posts:


Flex :: Sending A File Between AIR Applications Using Local Connection?

Feb 2, 2011

How do i send a text file between air applications using local connection?Sender AIR

private var conn:LocalConnection;
public function init():void
{

[code]......

View 2 Replies

ActionScript 2.0 :: Create A Local Connection Between Two Swfs?

Jan 29, 2009

In 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 Replies

ActionScript 3.0 :: Local Connection Between 2 Child Swfs?

Aug 5, 2011

When 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?

View 0 Replies

Php :: Sending And Receiving Data?

Feb 28, 2012

Not getting data back into flash from php that queries mysql data, think the problem is with my as3 code here?The php works, the as3 posts to the php ok, its the returning of the variables to as3 that I am unsure about and seems to be the problem?

public static function MineData():void{
var myRequest:URLRequest = new URLRequest("login.php");
var myLoader:URLLoader = new URLLoader();

[code].....

View 1 Replies

ActionScript 2.0 :: Sending/receiving Data From An API?

Aug 4, 2009

We are thinking of adding a feature to a main page of a flash site that I will be building shortly, but it requires sending data out to an API where it will be processed and send back to Flash.The form will need to post a number of variables to a URL and then interpret the response code.. is this possible in AS2?

View 9 Replies

Actionscript 3 :: Sending And Receiving Data From Flash To PHP?

Jul 29, 2011

I know this is frequently asked, but I have looked all over the internet to find the mistake I'm making with the code I've used to send and receive data from AS3 to PHP and viceversa.Can you find the mistake? Here is my code:

AS3:
import flash.events.MouseEvent;
import flash.net.URLLoader;

[code].....

View 3 Replies

ActionScript 2.0 :: Sending And Receiving Variables In Flash To Php?

Nov 6, 2010

I am trying to get an xml to load from an external site using a PHP proxy. I have been able to achieve this with the url of the xml hard coded in the PHP though I now wish to get the flash to send the url as a variable to the PHP though I am unsure how to do this.

[Code]...

View 3 Replies

ActionScript 3.0 :: Flash.net.Socket Sending But Never Receiving Data?

Jul 20, 2011

I'm trying to make a barebones, simple flash client communicate ANYTHING to a server over a regular socket. I setup the listeners:

socket = new Socket();   socket.addEventListener(Event.CLOSE, closed); socket.addEventListener (DataEvent.DATA, onSocketData); socket.addEventListener(Event.CONNECT, connected); socket.addEventListener(

[code].....

View 1 Replies

ActionScript 2.0 :: Starting With XML Sockets - Sending And / Or Receiving Data

Jul 18, 2004

I've begun playing with Flash and XML Socket Servers and I thought I started taking to it easy, I was able to connect and disconnect to a socket server I wrote and Unity but I seem to be having problems sending and/or recieveing data. I wrote a small amount of code to try it out:

[Code]...

It seems to be connecting fine but when I click and I try my send,

View 2 Replies

ActionScript 2.0 :: Access Local Swfs Using Remote Swfs?

Jan 5, 2010

Is it possible to access local swfs using a remote swf

View 1 Replies

ActionScript 3.0 :: Socket Connection - Sending Data Without Any Errors?

Mar 18, 2009

I use a socket connection to share data between flash and VB. I check the connection in VB and send a message when my flash is connected. My VB tool then sends the data continuesly (about every 40 milliseconds or slower) to flash. Works fine. Now I have to send some data back from flash to VB. I can send the data without any errors in Flash but it never arrives in VB.

View 3 Replies

Data Integration :: Securely Sending Connection String To Swf?

Oct 15, 2006

ok so when i need to connect a swf to some sort of data source on the server be it XML, a .NET DLL, a CFC or what ever so that i can load data from a database or what ever, everyone is always saying that i shouldn't hard code the connection string into my actionscript as anyone can get it and do malicious things with it. So how should i load the connection string into flash. if i put them on the server in an XML file or somthing like that then i still need to put a connection string into the actionscript in order to load in my main connection strings into the actionscript.

Basically i need to know how to load an external string into a swf without anyone else being able to get hold of that string for them selves. i am developing an app for somone and i need it to connect to a database and i need it to be secure. i have everything sorted except making the connection string to the database unstealable.

View 1 Replies

CS3 Local Connection To Control External Swf

Nov 10, 2009

I 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.

View 1 Replies

ActionScript 2.0 :: Flash8 Local Connection On Mac

Dec 29, 2010

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 Replies

ActionScript 1/2 :: Local Connection Limit?

Oct 12, 2010

i 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 Replies

ActionScript 3.0 :: Connect To Same Local Connection More Than Once?

Feb 27, 2010

Is 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.

View 3 Replies

ActionScript 2.0 :: Rollover Buttons On Local Connection

Jan 30, 2009

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..

View 4 Replies

ActionScript 3.0 :: Run Function From Child SWF Without Local Connection?

Sep 20, 2010

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 Replies

ActionScript 1/2 :: Call A Function Using Local Connection?

Feb 2, 2010

I 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.

View 3 Replies

ActionScript 1/2 :: Local Connection Between Text And Scrollbars?

Feb 2, 2012

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 Replies

ActionScript 3.0 :: Check To See Local Connection Is Open?

Jan 10, 2009

I 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 Replies

ActionScript 3.0 :: Pass Arguments Through Local Connection?

Nov 22, 2010

I want to be able to pass the mouse click / evt with local connection[code]...

View 1 Replies

ActionScript 2.0 :: Local Connection Across HTML Pages?

Oct 9, 2006

I 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.

View 1 Replies

ActionScript 2.0 :: Local Connection - Use Localhost <-> Webdomain?

Mar 24, 2007

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.

View 4 Replies

Xml - Sending Data From MXML File To JSP File (and Receiving) Using HTTPservice?

Jul 9, 2011

I want to retrieve data from a Database and display inside a datagrid in a Flex web application. The way I'm thinking of doing it is :

Send the Query data from .mxml file to the .jsp page using HTTPService. In the .jsp, connect to the database and retrieve the data using select statements. send the results back to the .mxml using HTTPService.

I know what to use but I have an ambiguity. In the (.mxml) I use xxx.send() to send the data. What do I use in the (.jsp) to send it back ? I know that I should store the results in an XML in the .jsp file, but how to do that ?

View 1 Replies

ActionScript 3.0 :: Flash Local Connection Incorporating Into A Mp3 Player

Mar 22, 2010

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]

View 7 Replies

ActionScript 3.0 :: Create Connection With SQL Lite Local Database (AIR)?

Jan 4, 2012

I 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)?

View 4 Replies

Flash :: Check Internet Connection Running Local Swf

Jun 7, 2011

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 Replies

ActionScript 3.0 :: Using A Local Connection To Share Data Between 2 Apps?

Jun 23, 2011

I 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 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved