ActionScript 3 - Using Real Time Messaging Protocol In Flash

Jan 27, 2010

Flash can use the RTMP protocol to exchange data between a server and a client. How do you typically access this functionality in AS2 or AS3/Flex? For example to use sockets you use the XMLSocket (AS2) or Socket (AS3) classes. Does the server-side RTMP software use Sockets under the covers? or is it HTTP with tunneling?

The Real-Time Messaging Protocol (RTMP) was designed for high-performance transmission of audio, video, and data between Adobe Flash and a server. RTMP is now available as an open specification to create products and technology that enable delivery of video, audio, and data in the open AMF, SWF, FLV, and F4V formats compatible with Adobe Flash Player.

View 1 Replies


Similar Posts:


Flash 9 :: Animations Updating In Real Time

Aug 21, 2008

We're currently building a fairly big dynamic website, and I was wondering if there was a way to have an animation that updates and move in real time as there's action on the site. Ex. red bulbs light up each time a user posts something on the forum or whatever. It'd be all related to the mysql database.

View 1 Replies

Synchronized, Real Time Viewing In Flash?

May 30, 2009

I'm looking to create something within Flash that I've not yet seen done.It will be a shared, real-time interactive session. What I want to know is, is it possible to create an individual, private session within Flash that is synchronized between two or more computers? I am doing this for the medical profession, but I can also see this would have benefits in the gaming community as well. I'm trying to create something that two specific users can interactively share in real time.

For example,a coloring book.Two players,or as many as you want, log in together and share a private coloring session. They will be able to interactively see anything that the other person is coloring in real time.The other people would also be able to color and let everyone else see their work.

View 1 Replies

ActionScript 2.0 :: Real Time Flash Thingie

Jan 3, 2008

I want to do a flash that changes based on the time of day. For example to load right .swf on container MC at the right time of the day.

View 1 Replies

Possible To Create A Flash Character That Can Speak In Real Time?

Sep 28, 2010

Is it possible to create a flash character that can speak in real time?I want to create some characters that use the speech from my pc microphone (e.g. as I speak into my mic the character uses my voice to speak.

View 1 Replies

Flash 9 :: When Creating Shape -- Show Real-time W/H?

Oct 28, 2008

One thing that's really frustrating me about Flash is that the info panel doesn't display real-time width or height values.So if I'm drawing a rectangle, I can't just draw it out as do in Photoshop to say 400 X 200. I'll need to set this manually after I draw a small box.

View 2 Replies

ActionScript 3.0 :: Real-time Data Loading Flash?

Oct 16, 2009

I have created real-time data loading flash file. I'm loading realtime data in dynamic text filed using variable. From JavaScript, I'm pushing the data into those dynamic text fields with 10 seconds interval.

Now I want to animate the dynamic text fields when the new data load into the text filed.

View 5 Replies

ActionScript 3.0 :: Flash Autofill Polygon In Real Time

May 25, 2011

I am creating a game where I have some red balls on the screen and some blue balls on the screen and I would like to draw a polygon around all balls of the same color and have this polygon automatically fill as soon as the polygon shape is closed. How to achieve this as I haven't really done much with the drawing API before. My current code will allow me to draw a polygon and for it to fill when I release the mouse but what I would like it to do is automatically fill as soon as the shape is closed.

Here is my code so far
Code:
var graphix = new MovieClip();
addChild(graphix);
var points:Array = [];
stage.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
[Code] .....

View 2 Replies

Actionscript 3 :: Flash Player 10 Real-time Audio Playback?

Jul 13, 2009

I'm trying to playback some sample data through the new real-time audio capabilities of Flash Player 10. I started with the example given at the bottom of this page on livedocs, which seems to work fine and plays a crystal clear tone.I assume that the two writeFloat's in the example write to the left and right audio channels respectively and that the data being written is 32 bit (because of the float).

However. I seem to be having trouble converting my old 8 bit audio data to a format that is understood by this interface. When I playback my sample data I can vaguely hear the sound I'm expecting but it is massively distorted. My sample data consists of raw 8 bit samples that ranges from 0..255 where 127 is silence.

I've been trying different conversion formulas but I seem to be missing some vital information regarding this conversion.

UPDATE:The correct formula turns out to be:

f = (sample.data.readByte() - 127) / 255

View 2 Replies

Flash :: Real Time Transcoding Of Multiple RTMP-Streams?

Nov 18, 2010

Here is my problem: We are broadcasting sportevents live to the internet via flash media encoder.At the event locations we mostly have just 2 mbit upstream. So at the moment we are streaming with about 1mbit rate.But we need also streams for mobile-devices and a stream for users without fast internet. So we want 2 more streams with lower-bitrates,but we can't get this through the 2mbit...I am looking for a solutiuon which can transcode about a 1mbit(and may be in the future a 1.5mbit) livestream in to two (or more)lower-bitrate streams.The solution should be scalable,because sometimes we have 7 events at one day on different locations,so there could be 7 input-streams.I've searched the net for hardware transcoders, but didn't find a stable solution and I've tested also transcoding with ffmpeg, but it seems to get problems with timing and key-frames for bitrate switching.

View 3 Replies

PHP :: Flash Browser Game - Real Time Data Exchange

Feb 16, 2011

I am developing a non-real time browser RPG game (think Kingdom of Loathing) which would be played from within a Flash app. At first I just wanted to make the communication with server using simply URLLoader to tell PHP what I am doing, and using $_SESSION to store data needed in-between request. I wonder if it wouldn't be better to base it on a socket connection, an app residing on a server written in Java or Python.

The problem is I have never ever written such an app so I have no idea how much I'd have to "shift" my thoughts from simple responding do request (like PHP) to continuously working application. I won't hide I am also concerned about the memory and CPU usage of such Server app, when for example there would be hundreds of users connected. I've done some research. So, considering the fact I don't need real time data exchange, will it be wise to develop the server side part as socket server, not in plain ol' PHP?

View 1 Replies

Flash :: Create A Accurate Chronometer Matching Real Time?

Sep 23, 2011

I'm working in an educational software, mostly developed using Flash AS3, and we have a chronometer which shows different values through different users. Example: Two users starting the chronometer at same time, but along some minutes of usage, they have different values.

The current implementation uses Timer class, causing this to happen, obviously due the different average speed of each computer.

View 1 Replies

ActionScript 3.0 :: Flash Debugger Watch Expressions In Real Time

Sep 23, 2010

I am looking for a watch expression debugger for Flash AS3 (not flex). I have found this: demonsterdebugger but the refresh is not in real time (like the trace does), it has a lag of 3 seconds. It is important because i am developing a flash box2d game so I need the coordinates while playing.I've tried also KapInspect with the Digiex pluging, but it gets down the framerate and it is embebbed. So it is not good for me. Can you please tell me one good debugger? I am using Flash Builder 4 (it has not whach expression inspector)

View 1 Replies

ActionScript 3.0 :: Flash Real Time Refraction And Reflection Of Light

Nov 3, 2010

I'm attempting to code a system to handle real-time refraction and reflection of light in 2 dimensions (on an x, y Cartesian plane, basically) and I'm hitting my head against the wall even figuring out where to start on this. My concept for how this should behave goes like this: There is an object that shoots a ray of light (a laser beam or something) toward a target object. When the ray intersects with the surface of the target, somehow I need to find the normal vector to the surface of the shape at the point of intersection and apply some equations from first year physics to alter the path of the ray appropriately. The same refraction effect takes place as the ray exits the object. At the moment, I'm grasping for straws. I'm not even sure what kinds of objects exist in Flash's libraries that will work for me with this. The existing libraries for shapes won't let me create lenses like I want to, and I'm not sure what I'll need to make for an adequate "light" projectile or line to take on this behaviour.

View 11 Replies

ActionScript 3.0 :: Flash - Pulling Data From A Database In Real Time?

Aug 15, 2011

I am a pretty big newb- my challenge is get a flash page to look to a database and check for updates constantly (in the realm of 1update/second) then pull new data as it is added.

View 1 Replies

Real Time - Draw Candle Graph Using Open Flash Chart?

Nov 24, 2010

I want to draw stock price in real time as a candle graph. I get open flash chart from someone and it looks good at drawing. I don't know how to update the candle graph in real time (using Ajax?), and is it a good way? I use Python a lot. But I cannot find tools as easily to use as OFC.

View 3 Replies

Flash - Modify Sound In Real-time With SampleDataEvent For Audio Within NetStream?

Jan 27, 2011

I'm streaming audio using NetConnection and NetStream. I know that you can modify sample data in real-time with the Sound object, however I cannot find the SampleDataEvent for audio playing with the NetStream object. Is there a way to pass the audio from the NetStream object to a Sound object and modify the sound at that object instead?

View 2 Replies

Publish Real Time Video Stream Of IP Camera To Flash Media Server With Flash?

Jul 22, 2010

Does flash provide an api to deal with remote stream like IP camera does?

View 2 Replies

Real Time Date And Time Tween?

Aug 16, 2011

I'm working on creating a new look for my portfolio and had a concept.I would like have one movie clip tween in real time 365 frame increments, while another moves in real time minute or second increments.Along with this, I would like to be able to override the passage of time by scrolling an associated scrollbar.The two tweens would be independent of one another.

View 1 Replies

Flash :: Html - Movies In Inactive Browser Tabs Pause Or Don't Execute In Real Time

Apr 7, 2010

I'm noticing some unexpected behavior. Some time in the last few months, a change in either Firefox, the Flash player, or both, has made it so that Flash movies that are in inactive browser tabs no longer execute in real time. They appear to still execute, but only in bursts, and not in a predictable way. This is a problem because I develop a Flash-based (Actionscript 2.0, Flash CS3) multiplayer game that maintains a network connection and allows players to chat, etc.

[Code]...

View 2 Replies

Webcam - Retrieve Real Time Video Stream (from Web Camera) From Flash Media Server In A Browser?

Jun 12, 2010

How does the url of FMS real time video stream look like?

View 1 Replies

ActionScript 3.0 :: Masking In Real Time?

May 30, 2009

I'm currently using the Graphics library to draw bands of color across an image (bitmap).So, I draw a square of colored bands, and mask it with the bitmap image. Unfortunately, when I use a mask (or even set the blend mode to .LAYER, OR use a shader filter) the FPS drops to un-usable levels.Is there some way that I can draw the bitmap shape I want without killing the FPS? I was thinking that I could like, draw the bitmap on top of the sqaure of Graphics, and then make a certain color transparent.

View 7 Replies

Javascript :: Create A Web Real Time App?

Mar 13, 2010

I want to create an application like this:

[URL]

What is the most efficient way to create this real time application ?Flash ? Long polling ? Http Streaming ? or anything else ?

View 3 Replies

Php :: Real-time Streaming Of An MP4 File

Apr 8, 2011

Is it possible to play the video (mp4) in real time using some flash player? What I mean by in real-time is that player would receive data on the fly, not from alredy saved file but e.g. php script (which sends appropriate content-type header) THAT IS DOWNLOADING AND 'ECHO-ing' THE FILE AT THE TIME PLAYER PLAYS IT - like e.g. some kind of live stream.

View 3 Replies

Professional :: Drawing In Real Time In A Film

Aug 1, 2010

Drawing in real time in a film

View 6 Replies

PHP :: Flex - Output Of C File In Real Time?

Oct 31, 2009

I have a C executable (named myprogram). When I run it by ./myprogram I get some output statements on the standard output of my Linux shell. I used run.php to get access to whatever is being printed to the standard output:

#run.php
<?php
$output = shell_exec('./myprogram');
echo $output;
?>

Then I called an HTTPService having id="service" to access this run.php file and I also set the text attribute of a TextArea to {service.lastResult}. When I run my Flex app, the interface kind of halts for a moment and then the TextArea displays all the 20 lines at once. But if program is run from Linux shell they appear one by one. Is there a way by which I can display a line as soon as it gets printed to standard output? This will then make the TextArea show the output in real time.

Or is Flex unable to do this? Rather how can a PHP program achieve such effect i.e. showing, whatever is being printed on standard output, concurrently in the browser in real time? Myprogram outputs 20 lines each after some microseconds. I want only the first line of standard output to appear in TextArea of Flex or in the browser (but in real time) while the program may then continue running the program.

View 3 Replies

Php :: Real-Time Communication Between Flex Application?

Nov 19, 2010

I have a Flex/AIR application communicating with a PHP server application. Recently my client requested real-time-like connectivity between the applications to replace what we currently have; refresh buttons which have to be clicked to refresh data.So effectively the server needs to push data to the client when something changes. I can write the code that detects when something changes, but I'm not sure about the push side of things.

View 4 Replies

Php :: Play Mp4 Videos In E.g. Flowplayer In Real-time

Apr 8, 2011

How to play mp4 videos in e.g. flowplayer in real-time (streaming) - without downloading it fully first?

View 2 Replies

ActionScript 3.0 :: Save Image / Pdf From Swf In Real-time?

Jan 23, 2009

I am looking for the script to save image or pdf from swf in real-time.

View 0 Replies

ActionScript 2.0 :: Change Text Value In Real Time?

Aug 23, 2009

I have made a shopping cart. And in it I have a quantity text field that the user can change. If the user is changing that value the hole total price thing is changing. My problem is that I lose my self in that part where I have to modify the total price/all products.

View 9 Replies







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