ActionScript 3.0 :: Convert Swf To Flv At Run Time?
Feb 20, 2009
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.
How 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??
i 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
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.
I'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"?
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.
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...
When 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?
I 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;
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.
Both of these are saved in files with the name same as the classes.
Both are saved a folder which also contains an fla file name hello.fla.So,when test the movie(hello.fla),after choosing the document class as WavyBall,I get these errors: 1046: Type was not found or was not a compile-time constant: Ball.
Source: var Ball:Ball; 1120: Access of undefined property stage. Source:Ball.x=stage.stageWidth/2; 1120: Access of undefined property stage. Source:Ball.y=stage.stageHeight/2; 5000: The class 'WavyBall' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.What is wrong?
I have a fairly complex animation movie clip within my main timeline in a Flash file. When you click a button, it plays the movie clip, then goes back out to the main timeline. The first time the movie clip runs, it plays choppy and slow, but if I play it two or more times, it plays correctly (smoothly). Is there some actionscript I need to preload the movie clip, or some other solution to the first-run slowness?
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.
I added in my application universal time, and I gave start and stop time. The process is going smoothly, but if I change my system (local) time, the entire time will be changed. Is there any solution to solve this problem?
I am working on a site that has a clock but it displays in military time, is there a way to change it to regular time. The following is the Action script:
I've loaded a video into the FLVPlayback component and I'm looking for a way to get the total time and the time played so far and output them to two text fields so the end result would look something like "00:12/00:50".
Right now I'm defining the video by the components inspector but I'm eventually hoping to define this bit by actionscript as well.
im making a flash upload thingy for my site, it has options to set the expiry time of the file, each time has a button which needs to be made from an array (which comes forma php script, not really relevent)... here is my code..
ActionScript Code: if (vars.options == undefined){[code]....
i know the x values are too small but they should still all appear on the stage right ?, only the final item in the array appears...i think i might be replacing the previous one with the new one.
Im using the FLVplayback component for a project im doing. I want to add the time elapsed and time left on the controls (just like how the player on the tutorials on this site works). I dont really want to create my own controls, as im happy with the flv playback component.
i've a countdown flash and am reading the currentDate from client side ( user clock on windows ). i need to read the time from html for example and save it on var then strat time from it example: HTML Code: