Flex :: Convert Time From CEST To UTC?
Oct 13, 2011How I can convert "23-08-2012 00:00:00 CEST" to UTC format in flex?
View 1 RepliesHow I can convert "23-08-2012 00:00:00 CEST" to UTC format in flex?
View 1 RepliesHow to convert UTC time into date time format in flex. I am using sdk 3.5. for example I have current date time in UTC format as 1309522586000 (milliseconds) and I want to convert it to friday jul 1 2011. How can I do this??
View 1 RepliesHow to convert date and time to CDT time Zone in flex4.
View 1 Replies i need to change GTM into local time i have time in below format :Mon, 07 Nov 2011 16:45:42 GMT
so i want to change 16:45 in according to local time zone because my application run into different time zone.
My query is can we convert swf to flv at run time. I donot want to use any third party converter. it is simillar to jpeg encoder in AS 3.0. You can save the image in AS3. Simillary i want to save my flv.
View 2 Repliesi set up a function to check and display the duration of my video in a dynamic text field. It works fine but I am trying to have it display as min and sec.(00:00). What would be the best way to do this?
Here is my code so far:
var playProgressTM:Timer = new Timer(100,0);
playProgressTM.addEventListener(TimerEvent.TIMER, playProgressHandler);
function playProgressHandler(evt:TimerEvent):void
[code]...
I am getting time storm from my server, But its not in continuous value Its ******* like [00:00:02,00:00:03,00:00:04,,00:00:06]this, so i want to convert my time storm as millisecond and stored in one array.But i am getting problem with after every 60 second.so how can i convert my every time storm as millisecond.
View 1 Repliesi have to covert 242 seconds into minutes and seconds do any one know how to convert it
View 9 RepliesI'm doing a simple hex converter with a input window(hex) and output window(dec)
Currently i'm using a simple script on a button to covert the hex to dec
on (release) {
outputBox = parseInt(inputBox, 16);
}
This is ok if you want to convert one hex number at a time, what i want to do is input lots of hex values (in the input window) and convert them to dec (to the output window) in one go.
Is there a built-in or freely available actionscript functionthat would convert time from digits to words. For example, "9:30"becomes "half past nine"?
View 4 Repliesim trying to check time, but check to see if the time is within a range.
for example, check to see if time is between 12:50pm, and 30 minutes later (1:20pm)
also, i want to be able to calculate that difference (12:50 + :30 = 1:20)
and also how to hande getting the time range? ie. (currentTime >12:50 && currentTime < 1:20)
I composed this function to convert a number to a time format (HH:MM:SS.T):
PHP Code:
function convert_sec_HHMMSST(_arg:Number):String {
var hr:int;
var hrText:String;
[Code]....
It works. But I'm thinking it could be optimized for performance. How would you pare it down?
Over the weekend i put together an MP3 player in Flex and just managed to figure out the SoundSpectrum.
It is working as expected.
I am facing problems when it comes to using a bitmap.
Right now, my "Analyser" class pulls the data from SoundMixer.computerSpectrum.
I then use that data with the drawing API to create a simple analyser. You know, just spikes.
Here is the code for that part:
Code:
private function update(e:TimerEvent): void
{
SoundMixer.computeSpectrum(ba, true);
var n:Number = 0;
[Code]....
Ok using common sense here, I am telling flash to take a snapshot of the Analyser and draw it to the bitmapData.
However, i cant seem to get this working. I am not using the dispose() method to clear the bitmap so id expect to see a mess of points (similar to if i removed the g.clear()) but nothing happens.
I'm making a game where the player moves around a map, where the player can walk and where they can't is decided by the color of the pixel they are trying to move onto, which I get using the Bitmap.getPixel method.
What I'd like to do though is when the map image is loaded process it into a sprite or something which I can then use the DisplayObject.hitTest methods on. So I have an array of colors whcih the user can walk on, is there way I could go through each pixel and build something that would let me do that?
I am trying to do a calculation which will eventually (hopefully) yield the total length of time it will take to download a certain size file over different broadband speeds.
//amount_total is the total file size (GB)
//multiplied by 1024 to give me total megabytes
mb = Number (amount_total*1024)
//15 is time (s) to download 1MB
[code]....
So, I am left with a total time of eg: 4.5 hours.i would like a standard number I can use across my movie to convert 4.5 hours to 4hrs 30, or 4.30 for simplicity.If I have 0.5 hours as a total, it would be much easier for the user to read it .30 hours.
does anyone know a formula that can convert the current time/day to the day of the year or seconds?
like 30th May sld be the 150th day of 2007 etc..
I have a static text in a swf file... Now i want to access that static text and convert in to a dynamic text during the run time... How to access the static text availbale in the swf file.... And then after accessing how to convert the static text to a dynamic text in flash AS 2.0.. Is it possible to do this one.. If yes means then give me a idea to do this one...
View 5 RepliesWhen loading an external mp3, you can retrieve the total length of it, adn the current position etc right? If I want to get the total length of it, it gives me the result in miliseconds, which is fair enough.What's the formula to convert miliseconds into "real" time?
View 3 RepliesI have song times stored in a MySqual DB in time format: 4:22 I assume this is a string... What does the code look like that that will convert this into seconds so I can use it in my timers? var seconds:number = (everything left of the column x 60) + everything right of the column;
View 3 RepliesUsing the ArcGIS Server Flex API, is there a way to convert mouse coordinates on the screen or the a map control to spatial coordinates in the map? It seems like there's functionality to convert map points to screen points, but a function for converting in the other direction seems weirdly absent.
View 2 RepliesI've read on the net that there is the flex component kit for flash that allows me to convert flash symbol to flex component or container.
I tried installing Flex_Skins_12_05.mxp that suppose to enable these features in flash cs4 but under the commands tab i can't see any commands related to flex conversion.
appropriate plugin to install in flash cs4 in order to convert it's symbols to be usable with flex ? t
In a Flex/AIR application, I need to create snapshots (like big thumbnails) of local PDF files (one per page, if indicated).Ideally, I would like to do it all on the client side (PDF is a public specification, albeit a REALLY COMPLICATED one).I have read about an "Adobe plug-in" but I cannot find a specific piece of software that makes the HTMLLoader.pdfCapability report anything but ERROR_CANNOT_LOAD_READER. I hope to load the PDF and then move the bitmap data to an Image in order to save it.
View 4 RepliesIn Flex, it's easy to convert the XML to Object and to ArrayCollection by using var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(); decoder.decodeXML( xml );
But is there a good way to convert ArrayCollection to XML.
I have this item renderer MyRenderer.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" implements="mx.core.IDataRenderer" >
<mx:Script>
<![CDATA[
[code]....
Now when debugging I get the error that MyRenderer cannot be converted into classfactory.
the equivalent of this in flex [code]basicaly this ia a api in which i need to send the user credentials and a xml file containing the data(new_activity)for the credentials i tried to add it as a header authencation and encoding it to base64.[code]
View 2 RepliesI have a flex component that is using mostly mx and actionscript code. I am using it fine in my AIR application, however, I need to be able to use certain Air libraries within this component, so I need to make it Air 'aware' or compatible. For example, I need to get a reference to the current active window, so it looks like I need to use NativeApplication.activeWindow. But when I type this in to my component actionscript class, it does not know about NativeApplication. So it seems I have to do something to that project to enable Air classes, unless there is another approach?
View 2 RepliesI 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]....
how to get the charCode from the character but I cant seem to find out how to get the character from the charcode.
Basically I am I am listening for the KeyDown event on a TextInput.
I prevent the char from being typed via event.preventDefault();
Later I need to add the text-char to the TextInput.
I can get the charCode via event.charCode so if I can turn that into a string I can save it for later user.
Why I need it
Basically I am making a TextInput, that that I can set to display default text in it. When A user types into it, I want to remove the default text first then add the user typed text.
Currently I am either removing it all, or ending up with both.
In the following XML[code]...
How do I use e4x to extract the urls and push them in an array with the least possible code?
What is the best way to convert a string to DateTime? The format of the string is dd/mm/yyyy hh:mm:ss.
View 1 Replies