ActionScript 1/2 :: Server Request Based On Time?
Feb 3, 2011
I am sending a request to a server. If i didn't get a response i need to send a request once again after 3sec. Like this i have to check for 3 times. If 3 rd time also it fails i need to terminate the request by prompting a msg to customer.
View 1 Replies
Similar Posts:
Jul 14, 2011
when uing netsream.seek(), how can i make a new request to the server if the seconds parameter specifies a time outside of the currently buffered video data. I want to seek unloaded time
View 3 Replies
Oct 26, 2010
In my application, I need to call a server based file, and about 50% of the time receive the following error.
[Code]...
View 2 Replies
Aug 28, 2009
I'm trying to get the time from the server (php) and then display a different flash movie (via either a different swf or frame on timeline) accordingly.
Unfortunately I haven't found anything that relates to this using as3.
View 2 Replies
Mar 18, 2010
In one web page we use a flash upload control but becouse a flash bug in the upload event the session is lost as its posted back with a new session. We have thought of using a table with ip and old session id or a query string with the old session id in order to reassign it in the uploaded event...Knowing the old session id how can i reassign it to the client? (In C#)
View 2 Replies
Jul 22, 2011
I want to write application for facebook and vkontakte, which will consist of such main blocks as: SocialNetworkAPI (which include all work dedicated to social networks: posting to wall, get all user's info) and ServerAPI (which will send HTTP POST requests to my Java based server and receive data from there in JSON).
I am looking now to Adobe flash URLLoader
is there any good ServerAPI libraries, which I can use or rework to prevent rewriting standart code lines.
View 2 Replies
Jun 9, 2009
Is it possible to request some data in a Flash movie from PHP at run-time? Maybe my real-world implementation can clarify some things:
I use a Flash movie to store a Local Shared Object (because for some reason I need LSO's instead or regular PHP cookies). Now, when I load up a PHP file I want to somehow retrieve the data from the LSO at runtime, assign it to some variables, and use the variables through the rest of the script.
View 4 Replies
May 26, 2010
I want to have a variable which changes from time to time based on certain parameters.
For Example:
var poop:Number;
onEnterFrame = function(){if(donkey==1){poop = 2;}
if(donkey==2){poop = 5;}
}
But it doesn't work. I can't seem to change the value of "poop" with code. It only accepts a value that I place, ex. var poop = 2, but that doesn't let me change it.
View 2 Replies
May 23, 2009
I know I can call my server directly from javascript. However, I want to do this through a non-GUI SWF file. I'm fairly new to Flash but have gotten all the CS3 tools from work. Does anyone know of any examples on:
1. how to make a web request from within flash provided the URL, post content, and timeout
2. how to call a Flash API from javascript asynchronously
3. how to detect whether the browser being used can support my SWF (I don't want it to prompt to install Flash if they don't have it yet)
I'm actually hoping someone has already done this and has a sample already built.
View 7 Replies
Nov 30, 2010
i am sending a flash reqesut to a url when i make request from local computer its working but when i upload on my server its not working i think flash is not sending request from my server to another server
[Code]...
View 1 Replies
Mar 12, 2010
i want to develop video chat and there will be a admin and users. Admin can see their name on the screen and choose an user can start his/her cam play ?
View 2 Replies
Apr 20, 2010
I have a FMS 3.5 running a VOD service (on-line training based on videos) on what I call a "streaming server". The client loads the Player from a secure (separate) domain, and the Player then requests the SMIL files from the webroot of the Apache server (part of the FMS installation. The Player then starts the video which is streamed dynamically.
In order for the Player to get the SMIL files, it is making a crossdomain.xml request to the Streaming Server. When it get the response, it continues the process. PROBLEM: Sometimes, the crossdomail.xml response from the Streaming Server is SEVERELY delayed, with perhaps 5 minutes. So the end user experience is that it does not work.
I improved the situation by opening up more ports on the Windows Firewall of the Stremaing Server (now open for 1935,80,443,8134) and it works say 90%+ of the times. But there are still occations when there is no response.
View 7 Replies
Dec 21, 2009
I have created a client with Flex Builder which works in a browser but also in an Air windowed application. I must connect it to a server and it has to do asynchronous request related to changing data of the server.Because of the too much expensive cost of LiveCycleDS license, I was looking for other ways, maybe open source and i found the following solutions:
Adobe BlazeDS
Granite Data Services
WebORB Community Edition
I want to ask you which is the easy way to create the solution described above, expecially i want to use J2EE application server type.
View 1 Replies
Aug 20, 2011
I am creating a google scraper in Adobe AIR using the Flex 4 framework. I have run into a brick wall: Google forces a captcha after around 10 pages are read. Can anyone tell me how to get the page through a proxy server
[Code]...
View 1 Replies
Aug 30, 2006
am having this problem of sending XML request to an addresswhich starts with "https". The problem is I always get the errormessage "Error opening URL "https:......."", instead of the actualresponse which should be in XML format as well.The function I am using is "sendAndLoad()"requestXML and responseXML are objects of XML class . Whatfunction "sendAndLoad" above does is to post variables in the"requestXML" object to the specified URL "servelet_address". Theserver response is downloaded, parsed as variable data, and theresulting variables are placed in the responseXML object.However, as I stated above, I always get the error message.
View 2 Replies
Dec 12, 2009
send xml data to the server using HttpService request thr POST in Flex?
View 1 Replies
Sep 22, 2011
I want to make an auto-play for some flash-based web-game, but I don't know how to capture and monitor the request from the flash client to the server.
View 1 Replies
Feb 18, 2011
I have an app that makes api calls to a server to send and receive data using the URLLoader Class. There's nothing special about it, it's just a standard call that send variables and receives json. My app also hooks into the back/forward/address bar functionality using JS, for secondary navigation.
I've just been testing and have noticed that if i make a call, then press either back or forward (this is only an issue in safari, it works fine in firefox and chrome), the return call to flash never completes. I've checked Charles and i get this message,
Failure: Client closed connection before receiving entire response
The response itself is a 200, so the call completes on the server, but flash never gets the response? I don't think this can be a scope issue as the loader is queued and dealt with by a manager class, so even though the current view is destroyed, there's no link between that and the URLLoader itself.
View 1 Replies
Jan 20, 2012
I want to use RTMP based HTTP DVR functionality and HLS based IOS functionality, So I need to know how to MPP from my existing DVR app to the livepkgr app so that the stream being recorded at the DVR app can be used by the Flash and Stream MPP over to livepkgr app and can be used by the IOS HLS.
View 1 Replies
Jun 1, 2010
When Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.I just want my server side code to return different response format, depending on whether the request is made from browser/flex.
View 1 Replies
Apr 9, 2009
I have this clock code and would like to know what needs to be added or changed for it to reference the time off the server and not the local computer time (and preferably reference the server just once and not repeatedly). I already have a file on the server "time.php" that is providing the milliseconds. I know it should be fairly simple, but I just can't wrap my head around it.
[Code],,,
View 2 Replies
Aug 24, 2009
I'm testing Live streaming with FMSS. The stream is pushed to FMSS buy Adobe FMLE software. Streaming works fine until I reach 1300-1400 simultaneous connections.No matter what the encoding ratebit is (150kbps or 2000kbps) the stream is no longer play from time to time (5-8 seconds).
The CPU (2xIntel Quad) is loaded less than 20% and memory used is about 2 GB (there is plenty of memory installed 32G). The OS is RedHat 5.3 64bit platform. Network uplink maximum rate is 4Gbps.I disabled the Queue but the problem still persist.
View 1 Replies
Apr 13, 2011
I'm trying to reproduce a POST request that was captured from WireShark using PHP. This POST request was sent by a Flash (.swf) object, so it's a little bit complicated in configuring the header.It does not print out anything in the end, so there must be something wrong with PHP code that I could not see.Here is what WireShark captured:
POST /engine/ HTTP/1.1
Host: abcdef.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[code]....
The result is a blank page instead of response from server.
View 1 Replies
Sep 17, 2006
make a clock base on given time(server time) as title,
View 2 Replies
Jul 12, 2010
I have implemented application client-server with spring blazeDs message services using JMS message destination. The idea is a producer declared in Java send message using activeMQ and consumer declared in Flex receives them. I have configured the AMFChannel with a polling interval 0, but I have seen when the consumer subscribes to the destination in Flex, the time request can be of up to 3 seconds.
[Code]....
View 1 Replies
Jul 13, 2010
every login ,flash get server time from php. how can i update time and date in flash..?
View 3 Replies
Sep 16, 2005
obtain the time (by functions similar to getSeconds) of the server the flash file is hosted on, instead of the client who is viewing the movie?
Thing is, I have a very simple clock that displays the time in New Zealand (where I will be going), but it only display the time correctly for GMT+1 right now. If a client from New Zealand or US connects, they will see the wrong time :/
So right now i use:
Code:
newtime = timedate.getSeconds() + 3600*11;
timedate.setSeconds(newtime);
View 4 Replies
Mar 27, 2012
What I am trying to accomplish is two simple analogue world clocks (which I had already done using Jquery) but IE has turned out to be the biggest nightmare to get this working correctly in - so I am trying a different avenue.
I have written a small script to retrieve server times which is below:
var ldr:URLLoader = new URLLoader()
ldr.load(new URLRequest("http://chronos.csr.net"))
ldr.addEventListener(Event.COMPLETE, onLoaded)
function onLoaded(evt:Event){
[Code].....
do take into account DST as this was a slight pitfall I had even with JS (would have worked it out eventually but time is not on my side - excuse the pun).
View 1 Replies
Jul 22, 2009
I need to make an edit to a flash projector that was built some time ago that changes what is playing based on the time of day. It is used to advertise breakfast or lunch/dinner for a restaurant. Previously we had set it up so that the time change happened at 5 in the morning and 10 in the morning. The code is below. The restaurant wants to change the time switch to be on the half hour now.[code]
View 5 Replies
Dec 21, 2009
How to create some action script that will display either an image or a SWF based on the time of day ie. Day and Night and the seasons ie. Winter, Summer, Spring, Fall.
I know it has something to do with creating a file that is .as and making sure you have the correct class Id. Looked at a few tutorials on creating calenders and image galleries but can not figure out how to combine the two to just show the image or SWF.
View 3 Replies