ActionScript 3.0 :: Using LocalConnection And The Localhost?

Aug 17, 2009

I have had some success using LocalConnection between SWFs.I can have a connection function between a preloader SWF and its child, and another connection work between two SWFs present on the same webpage......most of the time.

If I run my SWFs in a webpage from my localhost (ie my local testing PC) a particular LocalConnection will fail about 50% of the time. If the same SWFs are run on a remote server (ie the inernet) the LocalConnection works 100% of the time.SWF 'A' is sending to SWF 'B'Bizarrely, the LocalConnection going the other way, from SWF 'B' to SWF 'A' works 100%.

All the other LocalConnections I have used all work 100% of the time.I have tried adding a listener to the eventStatus which reports when the connection fails.I have also tried allowDomain(), although Im not sure it is neccessary since all the SWFs are hosted from the same domain anyway.Why should a LocalConnection behave differently depending on where the SWFs are hosted?

View 1 Replies


Similar Posts:


Flash :: LocalConnection Between Swf Sending Delay & LocalConnection Sniffer Tool

May 6, 2011

The first one (FLEX application) sends a message on a dedicated LocalConnection to a second one (Flash application). The Flash then answers by sending a message on another dedicated LocalConnection. This message is not directly received by the FLEX and the delay is at least 30s, up to 1 or 2 minutes! It seems the issue only occurs with Flash Player >= 10 and it never occurs with Chrome.

I didn't find anything on the web concerning a similar issue nor something in Flash Player release notes. Did someone already have this kind of problem?

By the way, is there any tool that can be used to sniffer LocalConnection communications?

Additional information:

swf are located in different frames swf are embed with swfobject I tried to delay the Flash sending, I tried to create another LocalConnection dedicated to this call but I always had same result: for all calls, the FLEX method is called after the same delay. I also put a timer in FLEX to periodically log to see if there is no background process delaying the method processing but everything seems fine

View 1 Replies

ActionScript 3.0 :: SWF Can't Connect Localhost

Jul 15, 2010

What is the problem the localhost doesn't connect with localhost in fla its working well but SWF

View 2 Replies

LocalConnection In Mac Browsers

Feb 21, 2008

I have a relatively simple localConnection between three swfs: one swf is an image gallery; another swf controls the playback of the image gallery; and the third displays xml-driven captions from the image gallery.Everything works flawlessly in a PC environment, on all browsers, using AS 2, flash player 9. But when I test in a mac environment, the captions will display on load, but it will no longer show if you refresh the page; only a cache clear and refresh will bring it back, but the same issue will happen again. The navigation doesn't work at all, ever (though the swf is loaded and visible).

View 4 Replies

Flash :: LocalConnection And DOM

Nov 29, 2009

I have a Flash object on my site, which has this code:

this.ld = new LocalConnection();
this.ld.allowDomain("*");
ExternalInterface.call("alert", this.ld.domain);

It alerts my domain successfully. However, what I want is to access the HTML DOM through this using LocalConnection and not ExternalInterface directly.

View 1 Replies

Flash :: Working On Localhost Not Online

Jul 10, 2009

I have a problem with a video gallery I integrated into my site...the flash works fine on my local machine and displays videos fine but when uploaded on the server it does not load and everyone gets the message as if we did not have flash installed on the machine[URL]

View 4 Replies

ActionScript 3.0 :: Cannot Access XML File On Localhost?

Dec 7, 2009

Typing either localhost or 127.0.0.1 in any browser on a Macintosh (os 10.5) does not give access to the host computer.The following Actionscript code generates the following error:

var XMLURL:URLRequest = new URLRequest("http://localhost/quoteRotator/quotes1.xml");
Error opening URL 'http://localhost/quoteRotator/quotes1.xml'
Error #2044: Unhandled io error . . .

[code].....

View 8 Replies

Professional :: Load A Login.swf From Localhost?

Mar 1, 2010

i have realy pain start with af3 when i was fine with as2.one of my probleme is i load a login.swf from localhost .
 
Probleme1. i test on my pc "wamp" then i test on a remote server let call it  "Lamp". my code in main swf (As3.swf)  look a something like this.

var chemin = new URLRequest( "http://localhost/As3_login.swf" ) ;cadre.load ( chemin );cadre.x = 40;cadre.y = 100;addChild(cadre);

what happen is in localhost test everithing does the job but when i upload on my distant server "Lamp"  as3.swf and As3_login.swf,the main swf (As3.swf) don't load the As3_login .swf that is on my distant server "Lamp" .in fact it try load the swf that is on my local "wamp" server (my own hard disk).so if i close my "wamp" what happen is As3.swf from "Lamp" load then it can't load As3_login.swf.seem totaly ilogique to me since when localhost isn't local?

Probleme 2. the code above addChild(cadre) add the As3_login.swf from here all is finel) .now the probleme is i have a button cancel on the As3_login.swf and i want this button remove what we loaded previously(itself then).i tryed a lot of thing like.how to remove a loaded child from the child itself???

View 2 Replies

Move From Localhost To Web Server Environment?

Nov 12, 2009

Are there any Air + Zend Amf examples that use a real world web server and not localhost?

Basically I cannot get an Air or Flex application connected to a remote mysql db to work once deployed. How can I successfully move a finished application to a normal web server (website).

When testing everything works no problem but as soon as I deploy the gateway.php (regardless of where i put it on my web server) will not connect. I've even tried flash builder 4 auto generated code and still no luck

View 1 Replies

Use PHP In Adobe Flash Builder 4 On Localhost?

Dec 8, 2010

I would like to use my localhost database and some PHP in my Flex projects (using Flash Builder 4). I've searched on the web for some good tutorials, but couldn't find one. The only decent I found was this one, but I ran into a problem when trying to install ZendFrameWork.

Does anyone knows a good place to start learning using PHP into Adobe Flas Builder 4?

View 4 Replies

ActionScript 2.0 :: Can't Use A Localhost And Refreshing Data In A Swf

Apr 21, 2010

I cannot seem to get a swf to get refreshed data from an external txt file on a localhost (I am using Xampp on a mac), whereas the very simple dynamic textboxes that I have load the data easily from my regular hard drive folder.

View 3 Replies

ActionScript 3.0 :: SWF Doesn't Connect With Localhost

Jul 7, 2010

my problem is SWF doesn't connect with the localhost the .fla working ok when in press ctrl+enter but when i export movie its won't work what is the problem

[Code]...

View 6 Replies

ActionScript 3.0 :: Remote SWF And Localhost Connection?

Jul 14, 2010

Can I connect to localhost socket from a "remote swf"?

If I open URL like "www[DOT]myremoteswf[DOT]html" with an swf inside and I have a application on my pc with a socket server, can I connect both?

View 1 Replies

ActionScript 2.0 :: Website In The Server, Not In Localhost?

Apr 25, 2011

problem with a website that when I see in local mode everything is ok but when upload it to the server something is wrong , if you go toin the Menus section if press the photo and then try to expand it, not expand properly, so you have to press again to view it correctly. I know that the problem is in the actionscript but I don know how to fix it

View 3 Replies

ActionScript 3.0 :: LocalConnection - Communicate From One SWF To Another

Apr 23, 2009

I'm having a little issue with LocalConnection - trying to communicate from one SWF to another. From my main SWF I've loaded an external SWF of same dimensions ( effectively replacing the main SWF). What I wanted was then to re-load the main SWF, but rather than have the main SWF play from the start, I wanted to go to a specific frame instead (I used a frame label called "myMarker"). Thought LocalConnection was the way to go to achieve this. Gave it a shot and it all works well locally BUT when uploaded to server it doesn't work, but throws the following error:-

[Code]..

View 1 Replies

ActionScript 3.0 :: LocalConnection Limitations?

Feb 12, 2009

limits to number of SWFs that can establish local connection on MAC? The architecture is: One Manager ("server") and N number of other SWFs that communicate with the manager.When I embed more than 8 SWFs (manager + more than 7 dependents) and attempt to establish connection between them - only first 7 dependent swfs are capable to communicate with the manager on MAC (both Safary and FF). The rest are ignored. It doesn't seem to be an issue on PC where I went up to 20 and it worked (with some quirks of course). Is it a native behavior on MAC?

I did not check if number of connections is at stake (as opposed to number of swfs). There are 14 connections all together when 7 dependents are involved.

View 1 Replies

ActionScript 1/2 :: Alternative To LocalConnection?

Sep 23, 2009

I'm having huge bug issues with LocalConnection that nobody seems to be able to find errors in my code/files. So... I'm looking for an alternative. I need a main swf file to load an external swf including the ability to have it move from one frame to another. If this isn't a possibility, I can also just have the main swf hide/reveal a div or just an image in the html.

View 9 Replies

Actionscript 3 :: LocalConnection Var Into URLRequest?

Jun 29, 2011

i use LocalConnection between two swf in the same page.What i'm trying to do is to use a String sent from one swf to the other, as variable into my URLRequest...So i can trace "myVar" into the function chemin, but i didn't find how to use it into URLRequest

swf that receive the var :

var lc:LocalConnection=new LocalConnection();
lc.client=this;
lc.connect("callBig");[code]....

View 2 Replies

ActionScript 3.0 :: Using LocalConnection To Communicate?

Aug 19, 2010

I need dozens of AS2 Flash swfs I wrote to communicate with an AS3 swf. My code below is on the "wrapper" AS3 swf, which loads the lesson1_activity3.swf AS2 swf. This is then further nested into an Adobe Captivate-generated swf (that's what the rdcmndNextSlide method is for).

This configuration works the first time you see the wrapper/child swf together, but if you navigate back to the slide, the child swf doesn't load. I'm guessing that Captivate has all the objects still stored in memory, so it thinks I'm trying to declare var again, which I can't do. Is that it? Does anyone see the issue with my code that would make it work the first time the wrapper is loaded, but not subsequent times?

[Code]...

View 0 Replies

ActionScript 2.0 :: LocalConnection Does Not Work?

Feb 18, 2004

ere's what i'm doing and it doesn't seem to work, 1st movie, a button:

[AS]
on (press) {
function () {myLocalConnection = new LocalConnection();
myLocalConnection.send("Incoming", "onRecieve", MyID);
myLocalConnection.close();};
[/AS]

where MyID is some variable

2nd movie, 1st frame:

[AS]
myLocalConnection = new LocalConnection();
myLocalConnection.onRecieve = function(theID){
_root.test.gotoAndPlay(theID);}[code]...

now that doesn't work so i'm wondering what is wrong...

View 2 Replies

ActionScript 2.0 :: Can't Get LocalConnection To Work

Jun 5, 2006

I have 2 swf... and it just deosn't want to work, the Receiver is supposed to play a video..

Sender:

Code:
buttonsLC = new LocalConnection();
b_005.onRelease = function() {
buttonsLC.send("lcMovBtn", "methodToExcecute");

[Code].....

View 8 Replies

ActionScript 2.0 :: 2 .swf To Communicate (Localconnection)

Jan 2, 2007

i've got 2 different .swf files on a html page, with 1 of e .swf being e menu and the other being the content_mc. I've been researching on localconnection but did not manage to find out how i could get e menu to send command to the content_mc to load the respective content upon being clicked (for example, when user click "services" in the menu, content_mc.swf will automatically be updated with the services content.

View 6 Replies

ActionScript 3.0 :: BitmapData Through Localconnection?

Feb 17, 2009

how i can pass a bitmap data through a local connection in as3.0 and get it on the other end intact ?

View 3 Replies

ActionScript 3.0 :: How Does LocalConnection Work

Dec 4, 2009

I have two SWFs happily sending messages back and forth to each other. I want to intercept those messages with a third SWF without editing the first two files at all.

View 8 Replies

Flash Not Loading - Works Fine On Localhost

Feb 11, 2010

Building a website and the navigation menu is flash (.swf file). The mnuLoader.swf file retrieves information from settings.xml file. Everything worked perfectly when I tested in localhost/website/page.html. When I upload to hosting server www.website/index.html the mnuLoader.swf displays but does not load (its like it can't find the settings or picture files and displays the same as when you are waiting for something to load etc).

I have tried changing the xml file path from relative to absolute and no change. All three files index.html - mnuLoader.swf - settings.xml are in the same directory and the mnu_imgs folder contains the img icons for the menu. I don't understand why it would work on localhost but not on the actual server? Also directly underneath on the website I have another flash banner (just looping text pretty much) that works fine both on localhost and actual server so am pretty sure is not an access issue etc.

The mnuLoader.swf is Flash 8

View 2 Replies

Media Server :: Change 'localhost' To Webserver

Apr 19, 2010

I tried some applications like vod and live with localhost.Now I'm trying to use some applications on my site. It's the first thing you need to do, but apparently it's so basic that I can't find information about it.Can someone explain me how to change the "localhost" to a webserver? In other words, how do I set up an application like vod on my site?

View 10 Replies

Media Server :: How To Change Localhost To PublicIP In FMS

May 28, 2010

Initially I had local ip (say 192,168.1.XX). Now I connected to public ip. I opened flash media server administrative console, it ios not allowing to use 'public ip' but allows to login as 'local host'. Because of this i am unabvle to test my streams. I need to publish this on cdn.
Earlier URL - rtmp:.//MY_LOCVAL_IP/vod/sample - works
but - rtmp://MY_PUBLIC_IP/vod/sampe - does not work

View 10 Replies

Professional :: .swf File Is Not Working With Localhost Address?

Sep 13, 2010

My .swf file is not working on localhost. But when we try to run it directly from the file location then it is running.

View 1 Replies

Zip File Created With PHP Shows On Localhost But Not On Server

Mar 21, 2011

I am trying to add to my site a feature that allows users to select a set of images in Flash (AS3) click a button and have my server create a zip file of all the images for them to download.

I have already wrote my code in flash and crated my php script and tested it on my localhost and everything works great. But when I upload the same files to my sever no zip files are created. Below is the code for both my flash and for my php.

Localhost server is using 5.2.17 and so if my Server hosted on 1&1

Flash Code To Send Info to PHP

Code:

function MakeZip():void
{
var variables:URLVariables = new URLVariables();
//variables.Image1=img1;
variables.ImageList=OrderItems;

[Code]....

View 5 Replies

Flash :: HTTP Requests Won't Work On Localhost

Jun 11, 2010

First off, I'm trying to fix something that I didn't build to begin with and the guy who's project it was assures me it was working fine when he left, although a version I haven't touched since he left seems to have the same issues. I'm also a bit new to programming in general so let me know if I've left out important information in my first post and I will try to add more info.

I have a flash application hosted on-line that acts as a client for a server application written in Delphi. Most of the communication is done using sockets, which work fine. Uploading data files and downloading results files is done using HTTP requests, which work fine as long as the user is making use of an instance of the server on another computer. However, if the user has the server application installed on their own computer and attempts to use it specifying localhost as the url, the socket communication still works, but the HTTP requests don't.

All the socket based communication works fine and, when it is not on the localhost, all the HTTP requests work fine as well, which is why this is so mystifying to me. I've tried changing the flash cross-domain policy file that the server dispatches to be completely permissive, all ports, all domains, all http-request-headers, and still no luck. The Flash app will sit waiting for localhost indefinitely most of the time until I close the server application, and then give this error message:

[Code]...

View 1 Replies







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