ActionScript 3.0 :: XMLSocket Loses Connection After 3 Seconds?

Oct 29, 2009

am getting now really crazy over this.I wrote a shockwave application that connects to a server (this one I wrote in PHP) via XMLSockets. My problem now is that exactly after 3 seconds the client disconnects automatically from the server.Maybe some of you could review my code to give me a hint where the problem is located - note that I use ExternalInterface and call the functions with JavaScript.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="setup();">

[code]......

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Xmlsocket With Wireless Connection?

Jan 19, 2009

i am using this code to connect to socket

Code:
function configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(DataEvent.DATA, dataHandler);
dispatcher.addEventListener(Event.CONNECT, connectHandler);
dispatcher.addEventListener(Event.CLOSE, closeHandler);
dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);

[Code]...

View 2 Replies

Java :: Flex Application Resets Connection When Using XmlSocket?

Mar 23, 2010

[URL]

I am using the same java server given there. and I am creating the XmlSocket in a flex air application. When I run my air application I get a java.net.SocketException connection reset at the java server.

Both are stand alone applications on my desktop.

Flex Code:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="init()">

[Code].....

View 1 Replies

ActionScript 2.0 :: XmlSocket - Multiplayer In Flash - Establish A Connection

Jan 24, 2009

I've been searching a long time to find a way to do multiplayer in flash. I came across xmlSocket. I'm trying it out really simple at first:

[Code].....

I've gotten all the policy stuff working. And this works perfectly while testing on my computer. If you're wondering, I have a python script listening on port 2950. Here's the python code:

[Code]....

Finally to the problem. No matter what I try, I can't seem to get these two applications to communicate when on different machines. When I try it, no messages even get through to python, it doesn't see anything trying to establish a connection. So I suspect it is having a problem on the flash side of things. Also, is there any way to have multiple flash apps communicating directly, rather than going through the server?

View 9 Replies

ActionScript 2.0 :: Establish A Xmlsocket Connection In Real Server?

Aug 31, 2011

I've designed a flash [as2 php xmlsocket] chatroom , it works fine in localhost but i don't know how to run on real website server.I've uploaded the files but when i run the flash it can't establish a connection.What server requirements i need for xmlsocket?

View 0 Replies

Professional :: Android Hero Denies XMLSocket Or Socket Connection?

Jun 16, 2010

I am trying to adapt an existing flash web chat application for the Android mobile phone and I am having this really annoying issue. The server is a custom based solution and can send back both binary messages or XML. So I can use either XMLSocket class or the Socket class to get data from the server. Everything works fine when deployed and I connect from the desktop but when I try it from the android mobile I get the infamous errors #2031, followed by #2048. Now the crossdomain.xml file is rock solid and works well for desktop. When the connect socket method runs I see that the server replies with the crossdomain file but I get the error when running on the mobile. Has anyone bumped into this? Is there some limitation from the mobile phone part. I wasn't able to find anything relevant for this issue, in terms of the phone not allowing Socket or SMLSocket connections

View 5 Replies

Java :: Flex To Failed Connection, Scrapbook Successful Connection?

Sep 13, 2011

Im trying to make connection from flex to java and from java to mysql. I managed to connect to java, but having error that class not found: com.mysql.jdbc.Driver. But i downloaded mysql.jar, included it added to library, and connection works when i testing it from clipse scrapbook. Dont know what to do, i spend last couple days on this.

Class.forName("com.mysql.jdbc.Driver");
String username = "username";
String password = "password";

[code]....

Basically the solution was simple. Everybody keeps saying to put jar into lib folder, so i done it, but i wasnt realised that i have to put into my servers lib directory, not app lib directory and this miserable mistake cost so much. Anyway i hope this will help for some newbie like me.In this particular situation im using red5, so i putted it into my red5 dist/lib directory and "surprisingly" its started to work.

View 1 Replies

Media Server :: End A Connection - Use To Add A Function That Kills The Connection?

Mar 16, 2010

we have a two way webcam + mic connection set up using FMIS. we use to add a function that kills the connection?

View 2 Replies

Android :: Getting Data In Seconds, Want To Calculate Hours, Minutes & Seconds

Jan 25, 2012

I'm getting a data which contains a certain number.

I need to find how many hours, minutes and seconds it stands for.

for example:

I'm getting the number 248 which means:

00 hours : 04 minutes : 08 seconds

View 3 Replies

ActionScript 2.0 :: Flash Counts Down Faster Than Seconds . How To Get It To Seconds

Jun 10, 2010

When i use time varaible and then minus the time. Ive noticed that flash does not count down in seconds, but the speed of light. My maths are not very strong so how can i get flash to count in seconds

var time =60;
sprite.onEnterframe = function(){
time -=1; ( this counts faster than seconds)
}

View 5 Replies

ActionScript 2.0 :: Start A Sound At X Seconds And Stop At X Seconds?

Jun 10, 2007

I'm trying to figure out how I can make the sound file that I load into Flash start at x seconds and end at x+30 seconds.So basically, I just want a 30 second sample to play starting at a specific time position. Does anyone have any advice on how to do this or have links to somewhere I can read up on it?

View 4 Replies

Actionscript 3 :: Convert Seconds To Minutes And Seconds

Apr 2, 2012

I'm working with the youtube API and I'm getting the current time on the video as seconds.What I want to do is to convert them into this: MM:SS.I've tried to google and try different things by myself but nothing seemed to work and be efficient.

View 4 Replies

ActionScript 2.0 :: Convert Seconds To Minutes:Seconds?

May 23, 2006

I am currently using the following code to display the secconds of a FLV being played:
ActionScript Code:time_txt.text = Math.round(_root.video_mc.videoZ.playheadTime*100)/100;I need to change this to display MM:SS (minutes:seconds) rather than just seconds and decimals.The javascript people here at work suggested something like this:

ActionScript Code:
function strPad(str, places, pad, side) {
while (length(str) < places) {

[code].....

View 9 Replies

C# :: ASP .NET Loses Session Between Pages

Apr 20, 2011

I encountered a weird error, I lose sessions when moving between pages.

I lose Sessions because i use Flash (swf) menu to navigate between pages.

So when i navigate to a page using the Flash menu, I lose the session.

It doesn't let me answer my own question so here is the answer:

Thx for answering, but the problam wasn't the flash..

I just found out that the session was opened on http://WebSite.com/ And the flash was redirecting to http://www.WebSite.com/

So the session losts between domains, and not between pages because of flash :) I just made all my site use the www domain .

View 3 Replies

IDE :: Png Loses Transparency When Published As Swf?

Dec 22, 2008

I'm working on a project where I want to use a transparent png, and when authoring in Flash CS3 (using actionscript 2.0) the png image appears transparent just as it should. However when I test it the .swf file loses the transparency entirely. The png image was saved for web from photoshop as png-24.

View 1 Replies

Text Loses Style When Published?

Jul 10, 2009

I have a project that consists of 11 invisible buttons laid over a map of a building; when the user mouses over a "room," the name of the room appears. The building map is on an angle so I rotated and skewed the button text to match the map. All the text looks fine within each button symbol, but when published 4 or 5 of them lose their skew...the rotation seems to still be intact.

View 1 Replies

ActionScript 3.0 :: Loaded Swf Loses Its References?

Nov 6, 2010

I'm trying to get some things done but run once in a while, well at least, into some issues.Here is one:

I have an swf that is an image viewer/browser that has references on same level, an ImageProperties.xml and some folders full of small jpeg tiles.I actually have a few of these, each in its own folder.Above these folders I have another swf that is the main one, and I am loading from there the other ones with the code pasted at end of this post.

This works if I replace the URLRequest by just the name of the swf to load and I put the main swf with the loader function and the loaded one at same level. But if I leave URLRequest going one level deep "16/xxx.swf" and have the loader swf one level up then it loads the viewer but doesn't show the image.

[Code]...

View 6 Replies

ActionScript 2.0 :: SWF Loses All Interactivity When Loaded

Nov 9, 2004

My interactive .SWF that is called loses all interactivity when loaded, however, the .SWF works perfectly on its own. The .SWF that is called basically has 4 buttons that moves a set of 4 images 50 pix to left so it can be viewed when button is pressed.

View 1 Replies

IDE :: Disabled TextInput Loses TextFormat?

Mar 20, 2009

I have TextInput with formatting applied. I want the TextInput disabled after the user enters an answer. But disabling the field causes the formatting to disappear. Is there a way to maintain text formatting and still disable the input

Code:
import fl.controls.TextInput;
var myTextInput:TextInput = new TextInput();

[code]......

View 4 Replies

Dynamic Text Loses Format

Nov 5, 2009

I'm having some serious problems with my dynamic text fields. The case is, I format the dynamic text fields to have character spacing and line spacing both equal to 1. Everything seems fine in the SWF when the text is actually typed INTO the dynamic text field, but when I make it fetch text from Actionscript or an external XML file Flash player renders the text as if it had 0 character spacing and 0 line spacing.

View 1 Replies

ActionScript 2.0 :: .SWF Loses ALL Interactivity When Loaded?

Nov 9, 2004

my interactive .SWF that is called loses all interactivity when loaded, however, the .SWF works perfectly on its own. The .SWF that is called basically has 4 buttons that moves a set of 4 images 50 pix to left so it can be viewed when button is pressed.

View 1 Replies

Professional :: Roll Over Button Loses Some Of The Letters?

Feb 13, 2010

I included two images attached to this post to explain.I have a few buttons on my webpage that lose part of the letter when I roll over them. I am using a glow effect when I roll over the buttons and the buttons were not "broken apart" before I made them buttons, I dont know if that makes a difference.

[Code]...

View 5 Replies

Flash :: Swf Quicker Loses Sound When Exporting?

Feb 21, 2012

I am using SWF Quicker to edit a flash swf file, but whenever I export it, all the sound is gone. Even if I export it without making any modifications, all the sound disappears. I have tried using different versions of ActionScript (1.0, 2.0, 3.0) and different Flash Player formats, but every time there is no sound

View 1 Replies

ActionScript 3.0 :: External Swf Loses All Instance Names?

Aug 10, 2009

I load an external swf with some buttons into another swf.Now the buttons have lost their original instance names. A trace reveals their new names to be "button1", "button2", etcetera. If I run the external swf on its own, the same trace displays the original instance names.

View 7 Replies

ActionScript 3.0 :: Loading SWF File In XML - Loses Location?

Nov 24, 2009

So I have a .swf file that loads in xml and such. Now I want to have a flash file load that into it, but when I do the loaded .swf loses the location of its files to load?

So.
File A - the loader
File B - load swf
File C - load swf xml file

All sit in the same folder
if I open file B, it reads file C no problem
if I open A that loads in B, it loses location of C and it dont load the xml? I am on access network files.

View 0 Replies

ActionScript 2.0 :: Picture Loses Quality On Fullscreen?

Jan 2, 2010

using fscommand("fullscreen","true") in flash 8 I make my window switch to fullscreen mode, the problem is when in fullscreen mode some picture in the stage actually is trying to get bigger so it gets pretty ugly and loses quality, I want to make my whole window fullscreen but I want my images keep their sizes and not resize,what should I do?

View 1 Replies

ActionScript 2.0 :: Hitting TAB Loses Focus To The Browser?

Jun 8, 2010

Creating a flash project where I need to hit TAB in order for the playhead to go forward a frame. Then I need the user to hit a letter (for example hit 'a') to move forward again. Hitting the above keys is working,

As soon as the user hits TAB, flash seems to lose focus to the browser, and the user has to click on the swf on the screen before they can proceed.

View 0 Replies

ActionScript 3.0 :: Flash Loses Focus - How To Regain It

Sep 15, 2009

i have this problem. ive made this simple animated menu for a webpage, buttons do stuff on ROLL_OVER, and everything is great, but when menu is scrolled of screen and then goes back it loses focus and ROLL_OVER doesnt work until i click anywhere on my menu gotta finish this quick or they might want their money back

View 3 Replies

ActionScript 3.0 :: Why Menu Loses Dynamic Positioning

Jan 10, 2011

I am dynamically centering my menu movieclip using the code

Code:
top_menu.y = 0;
top_menu.x = top_menuXPos / 2;

[code].....

View 1 Replies

ActionScript 2.0 :: Minutes And Seconds From Seconds?

May 9, 2008

I have a video player and trying to make a time indicator of minute and seconds.

View 3 Replies







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