AS3 :: Php - Get The Current Unix Timestamp?

Nov 15, 2011

I'm trying to get the current unix timestamp in AS3 via:

var date:Date = new Date();
var unix:int = date.time;
trace(unix);

For some reason I get:

2775219874

But when I use time() in PHP around the same time, I get:

1321330282

I don't understand? I could of course request the timestamp from PHP via URLLoader, but I'd rather get it working properly without needing this if possible.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: How To Convert Date To Unix Timestamp

Sep 25, 2009

In one of my Flash-applications the users can save sales they do, and one important thing is the date for the sale and the user have to have the possibility to select the date he want's to. Therefore I got three drop-down-meny to registrate the date of the sale: one for day, one for month and one for year. Is there any way I can convert these three into a Unix Timestamp? (I save the data via PHP intro MySql-database).

View 4 Replies

Actionscript 2.0 :: Find Time Elapsed From Unix Timestamp

Jun 24, 2009

I'm tryin to fiind the time elapsed from a Unix Timestamp.
 
[Code]...
So it's still returning the time from 1/1/1970.... Any way to make it return something like this: Mon Jan 02 01 1:2:35 GMT-0800 0000 or something like that so I can get the days, hours, minutes, and seconds elapsed.

View 5 Replies

Media Server :: How To Restart FMS Under Unix

Apr 5, 2010

How do I restart FMS under unix? I tried./fmsmgr server restartbut it returnsServer:restart command:Server service restart not found. Exiting.

If i type ./fmsmgr server
it returns
Server:fms command:NPTL 2.5Usage: ./server {start|stop|restart}

[code]......

View 1 Replies

Flex :: Connect UI To A Unix Backend Server?

Sep 23, 2011

Im working on a project with the following basic needs:

Need to invoke a Flex Webapp in a new Tab from another Webapp in Java/Jsp.This Flex UI must be connected to a unix backend to show the backend operations on the UI.The unix backend server has telnet operations and SSO

View 1 Replies

Actionscript 3 :: Convert File.modificationDate To UNIX?

Mar 7, 2012

On my Flex project, when I call a File's modificationDate property, it's being displayed as Wed Mar 7 20:14:07 GMT+0800 2012. how to convert that to a UNIX timestamp?

View 1 Replies

Get Timestamp Of A Live Stream Recording?

Aug 7, 2011

I'm recording a lot of live streams for archiving purposes. Is it possible to somehow (programmaticly) get the timestamp of a certain point of such record?

View 3 Replies

Actionscript 3 :: Date - Get Weekday From Timestamp?

Aug 14, 2011

How can I get the week day for 20110828 (28th of August 2011)? I've tried this, but it didn't work:

[Code]....

View 2 Replies

Flash8 :: Convert Timestamp To Readable Date?

May 12, 2009

I have a timestamp in the form "1239315541" and I need to convert it to a readable date.How can I do that ? Is there a function that I can use ?(I am using Flash 8 and ActionScript 2.0.)

View 3 Replies

Media Server :: Fix A 'Backward Timestamp' In FLV File?

May 5, 2009

I posted a discussion earlier on a video stream not playing past a certain time.  I ran FLVCheck on the video and it came back saying there is a backward timestamp in the video.  I recompressed it from the uncompressed video (AVI) and I got the same error again in the exact same place.

The error has to be in the uncompressed file, but I don't know how to fix it. Recompressing obviously doesn't help.  Anyone know how to fix a 'Backward timestamp'?

View 3 Replies

ActionScript 3.0 :: Upload Image Alongwith Timestamp?

Sep 12, 2010

I need to upload an image (byte array) and its timestamp to server which has jsp/servlet. But having trouble to transmit both in the same request.
 
In actionscript, I use URLRequest and URLLoader and upload the image without problem, however, I don't know how to upload the timestamp in the same request. I tried to build a ByteArray to contain both timestamp and the image, but I couldn't convert the Date.getTime() to byte[] correctly. The only function in ByteArray to input 8 bytes is writeDouble, but it doesn't embed the time correctly.

View 4 Replies

ActionScript 3.0 :: Duration & Last Timestamp Conflict On .Flv File

Dec 9, 2009

I have a video, it's 3:11 but it will only play until 2:41 then it will stop...... but when I fast forward to 2:42 or 2:43 it will play till the end..... how do I fix this file so it will work..... what do I do.

View 2 Replies

ActionScript 3.0 :: Stream.Time Returning Same Timestamp

Sep 5, 2011

1. When using Stream.time in actionscript server side, sometimes it returns the same timestamp. why it is returning the same output and any solution for the same.

2. When I am unpublishig the stream then re-publishing the unpublished stream timestamp does not get to reset to 0. I want to restart with 0 timestamp.

View 0 Replies

ActionScript 3.0 :: Adding Timestamp To XML File Address

Oct 12, 2011

I'm trying to add timestamp to the xml file address if the swf wil be loaded from the web server but it gives me a null object reference error depending on if there is timestamp() function call or not.

Here's my code that doesn't work as I was expecting:
ActionScript Code:
//...
public function init():void {
try {
xmlLoader = new URLLoader();
xmlLoader.addEventListener(IOErrorEvent.IO_ERROR, ioError);
[Code].....

When I load just addresses without the timestamp xmlLoader.load(new URLRequest(address)); it outputs everything I was already expecting when the timsetamp function call where involved, (as I was testing some considerable errors).
Code:
Class LoadXML/ address: start.xml
Class LoadXML/ address: play.xml
Class LoadXML/ address: end.xml
Class LoadXML/ io error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: file:///E|/flash/as3/projectName/lib/work/end.xml"]

View 4 Replies

ActionScript 3.0 :: XML Show Only A Part Of The Parsed Timestamp

Jun 30, 2009

The XML is listed as so (only a snippet of coarse):

[Code]...

now when parsing the DepartureDate="2009-06-30 15:00" the entire date is displayed, as should be. How can I set up my AS3 to only display the 15:00? The parsed path to the xml node is as follows:

[Code]...

View 1 Replies

Media Server :: Millisecond Timestamp Precision In FMS Logs?

Jan 19, 2010

Millisecond timestamp precision in FMS logs? This is for statistics monitoring.

View 1 Replies

Android :: H.264 Real-time Streaming Timestamp In NAL Units?

May 10, 2011

I'm trying to build a system that live-streams video and audio captured by android phones. Video and auido are captured on the android side using MediaRecorder, and then pushed directly to a server written in python. Clients should access this live feed using their browser, so the I implemented the streaming part of the system using flash. Right now both video and audio content appear on the client side, but the problem is that they are out of sync. I'm sure this is caused by wrong timestamp values in flash (currently I increment ts by 60ms for a frame of video, but clearly this value should be variable).

The audio is encoded into amr on the android phone, so I know exactly each frame of amr is 20ms. However, this is not the case with video, which is encoded into H.264. To synchronized them together, I would have to know exactly how many millisecs each frame of H.264 lasts, so that I can timestamp them later when delivering content using flash. My question is is this kind of information available in NAL units of H.264?

View 1 Replies

Media Server :: FMIS 3.5 Record Live Stream With Timestamp?

Sep 28, 2009

I have seen lots of different things about recording live streams (maybe too much, pieces everywhere but no one good source for the answers), but not what I am looking for...I want to setup recording of live streams on FMIS 3.5 where the file is named the stream name plus a timestamp (something like streamname-yyyymmddHHMMSS: myteststream-20090928101015).The people who use our site tend to start/stop several times (we are dealing with events that have breaks) and I want to be able to combine all the files with the same name into one big file on the server side afterwards using some utilities.I cannot find a tutorial that walks you through the different functions, the differences between them, and how recording is setup/works.

View 3 Replies

Flex :: Extracting Relevant Info. From Date / Timestamp In Adobe With Row Object

Jul 1, 2009

[code]The row object consists data for different columns of a datagrid. dp.push(row) pushes the data onto the datagrid.Columns with index 3 and 4 have type of "DATE" with whole time stamp being displayed. Is there any method in flex which will help me extract the monnth/day/year from date or timestamp for that matter.

View 2 Replies

Flash :: Which Video Player Can Give Exact Position (timestamp / Frame Index) Information

Dec 18, 2011

I'm looking for a Flash Video Player (something like JWPlayer) that I can embed in an html page, that provides a JavaScript API with a method to get the exact timestamp (aka position, or frame-count) for the current frame.

View 1 Replies

Media Server :: Backwards Timestamp FMS Server Error?

Aug 24, 2010

We have a very simple webcam recording/playback application we're using in a mission-critical user assessment application.Users are given the ability to record themselves using their webcam and microphone, then review their recording and submit it for graded review.The recording application appears multiple times per HTML page, and while we can record and play back video, we have large numbers of instances in our core.log of the following error

Server detected a backward timestamp from [####]to [####] in file: [filePath]

While these videos will play back with varying degrees of reliability, they will often "hang" for several seconds at the end of playback before sending the appropriate NetStream.Play.Stop and NetStream.Buffer.Empty events, and will sometimes hang indefinitely.Further, they report inaccurate runtime metadata, causing our playback indicator and progress/scrub bar to function erratically.In any case, the functionality and user experience of the recording tool is substantially degraded and must be fixed in order to successfully deploy this tool.

Disabling NTP services is not an option, and further does not appear to be the culprit, as these errors occur on a large number of recordings.As recordings need to be immediately available for self-review before submission, running flvcheck on each recording is also not an option.We have tried a variety of fixes, including waiting to unpublish until the buffer is empty,reconnecting after every recording, forcing FMS not to reuse connections, and using separate NetStream objects for recording and playback.Nothing has eliminated these errors.Adobe support referred us to Tier 2 support, and I am in the process of contacting them, but I'm looking to exhaust all my options before continuing.Is there any reliable solution to the backwards timestamp recording issue, or do we need to find a different media server application for our needs?

View 3 Replies

IDE :: How To Get Current Frame

Feb 23, 2008

Is there a way to grab the current frame number?

View 3 Replies

ActionScript 2.0 :: Find Out Current URL?

Jan 18, 2009

I've got two different domains and both of them direct to the same website. This website has a menu on top made in Flash (the rest is HTML, so the page must be reloaded everytime I click on an option or I need new content).

But this Flash movie has to show a different animation depending on the URL.

What can I do to find out the current URL in ActionScript?

View 2 Replies

Get The Current Frame Of A MovieClip?

May 16, 2011

how can I get the current frame of a MovieClip.It's an animation that just loops over and over when its opened with ctrl+enter.On the stage its just one layer and one frame, but when it's double clicked, it has its own timeline with 20 frames.

Actionscript Code:
//what i had but it shows frame 1trace(myMovieClipInstance.currentFrame);

display the current frame when it changes. So something with a while loop. Like while the movie clip is playing, display the current frame.

View 4 Replies

ActionScript 1/2 :: Delete Current Mc?

Apr 19, 2009

how can you delete the "current" mc?

the following scripts returns:
960 _level0.mc[type Function]960 _level0.mcundefined
function onframe(){  var mc = _root.createEmptyMovieClip('mc',

[code].....

View 1 Replies

ActionScript 3.0 :: Datatype Of Current SWF Var?

Aug 26, 2009

I am not sure what to datatype my currentSWF var. What is that?
function onCompleteHandler(loadEvent:Event) {
var currentSWF = loadEvent.currentTarget.content;
swfHolderMC.addChild(currentSWF);
}

View 3 Replies

ActionScript 1/2 :: XML Current And Next Item?

Dec 15, 2011

I have this code within the flash to load in the XML file. A list of buttons is generated from the XML list. How do I find out which is the current 'item' selected, and then how to select the next 'item' from the XML list

myXML = new XML();myXML.ignoreWhite = true;myXML.load("items.xml");myXML.onLoad = function(_status) {if (_status) {var clientList:Array = [];var clientRegistry:Object = {};tempxml = myXML.firstChild.childNodes;var space = 10;
for (var i = 0; i<tempxml.length; i++) {var clientData:Object = {};var item = all_items.list_mc.attachMovie("clip", "clip"+i, i);

[code]....

View 3 Replies

Starting From Current Y Position?

Sep 22, 2011

i have a text area that can be swiped using a touchevent....

var myText:TextField = new TextField();
myText.width = 300;
myText.x = 0;

[code].....

View 7 Replies

ActionScript 3.0 :: Get Current Browser Url?

Oct 16, 2009

I am new to AS3 and I have one task in which I have to read browser current url through actionscript.For example if some xyz website is using my flash player then I should be able to get that xyz website url and store it in our reporting database to get an idea about how many website are using our flash player.

View 2 Replies

ActionScript 3.0 :: Get The Value From The Current Page Url?

Jul 28, 2010

I need to get the value from the current page url, (the value is sent by javascript)?

View 4 Replies







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