Flex :: Test Latency Of Messages?

Aug 14, 2011

I have a system where clients connect via http streaming channels and use Producer and Consumer classes to dispatch and receive messages. I need to test the latency of messages in a way that adequately simulates real-world usage when the server is under load. I have 3 ideas for how this may be accomplished. Has anyone tried and succeeded or failed with these methods?

View 1 Replies


Similar Posts:


Flex :: Test Spark Components In FlexUnits Visual Test Environment

Sep 17, 2011

I'm trying to test a custom Flex 4 skinnable component, using the FlexUnit UIImpersonator class. If I run my tests from a FlashBuilder Spark only project everything works fine. If I try to test from a project with the mx component set on the classpath I get a "getElementIndex not available in non Flex 4 projects" error.Can I unit test spark components in FlexUnits visual test environment while still having the mx component set on the classpath?

UIImpersonator delegates it's method calls to a "testEnvironment".The implementation used for this "testEnvironment" is decided by the VisualTest EnvironmentBuilder class and the FlexEnvironmentBuilder class. If the FlexEnvironmentBuilder class can find the "mx.core.Container" on the classpath it returns a MX environment, else a Spark environment. Only the spark environment has valid implementations for Flex 4 relevant method calls on the UIImpersonator - like the addElement method.

View 1 Replies

Flex :: Access The Test Name Of A FlexUnit 4 Test?

Jan 21, 2010

In FlexUnit 1 it is possible to access the name of the currently-running test using the TestCase.getName() method because all tests subclass TestCase. In FlexUnit 4, however, there's no base class for tests; the tests are identified by annotations. So, how can I replicate the getName() functionality in FlexUnit 4?

View 2 Replies

Media Server :: Live Video/audio Chat Application - Latency Time Using FMS 3.5 And FLEX

Dec 9, 2010

I've build a live video/audio chat application. All works fine only the issue is latency of 5 secs. I'm using FMS 3.5 and FLEX.

View 1 Replies

Flex :: Configuring Error Messages In Application?

Dec 27, 2009

I'm trying to create a Flex based internet application with an EJB layer in the server. This layer provides the XML used by the flex application. It uses the Cairngorm architecture.Currently, on an error I call the handler function defined in all the command files. How can I centralize this?My idea is to create a XML file that contains all the error messages and the types of error message eg:- Warning, Error etc. In the error handler, I will call the error handling function and pass a unique id which in turn will display the error message defined in the xml config file. Do I need to load this XML file in the Model layer of the application itself and store them as say global variables?

View 3 Replies

Flex :: Internationalization - How To Localize Validator Messages

Jun 21, 2009

I'm working on a flex 3 application which will initially support only one language (which is not English) but may need to support English and other languages later. So I'm using the standard localization technique, with resource bundles. Now, somewhere I use the validators like EmailValidator which have some error messages displayed, these are in english and come with the flex sdk. How do I localize those messages?

View 1 Replies

AS3 :: FlashDevelop (Flex) And Localized Compiler Messages

Oct 20, 2009

I am completely new to the whole FlashDevelop/Flash/etc toolchain, but wanted to do some experimenting. I installed FlashDevelop and Flex SDK on my laptop, and thinks worked out just fine, except for one thing: the compiler messages are localized! Messages like "gebruik van een niet-gedefinieerde eigenschap" (Dutch.. sort of) are limiting my productivity. I don't recognize them because they look nothing like what I'm used to in any other programming environment, as a proper sentence they make even less sense than English error messages, and I certainly can't google them properly. Now I've already seen there are a couple of xml files and java/mxmlc/fcsh/etc configs I can tweak, but nothing so far helped.

[Code]...

View 3 Replies

Flex :: Prevent RemoteObject From Batching AMF Messages Together?

Jan 10, 2010

I am using Google AppEngine, in conjunction with PyAMF to provide RemoteObject support. In my Flex code I make several RemoteObject method calls at once which tends to batch the AMF Messages into a single HTTP request. Most of the time this is fine but AppEngine applies some strict per request limits (in this case I am hitting a DeadlineExceededError - max 30 seconds). A number of service methods are expected to take upwards of 10 seconds and if these are batched by the RemoteObject into 1 HTTP you see where this is going. Now you could say refactor your service calls and that is also going on but not really the question being asked here. Is there a way to prevent Flex RemoteObject from batching AMF requests for situations like this? I have done a fair amount of Googling on the subject and come up with bupkis. It seems to me that I would need to implement a custom version of mx.messaging.channels.AMFChannel or something of that nature, which seems waay too hardcore for a feature like this

View 3 Replies

Flex :: Parsley Logging - Messages In 4.5 Project

Sep 1, 2011

i'm looking for a possibility to log messages in my flex 4.5 Project. This should cover errormessages in remoteClasses, errorHandler or messages typing by hand. After reading a lot of webpages, the solution from parslay looks good. i want to switch to this framework anyway. the benefit is the possibility to configure the logging behavior at runtime. but i don't understand the documentation. perhaps because I'm brandnew in parsley. Also google has no fitting result.

[Code]...

View 1 Replies

Actionscript 3 :: Enable Trace Messages From Flex SDK?

Oct 14, 2011

I've configured Flash Debug player to log trace messages from my Flex application to the flashlog.txt file.I can see trace() messages from my own code, thats ok.

However, would also like to see also trace messages from Fle SDK. I use Flex SDK ver. 4.1, and, for example, I would like to have trace message trace("app initialize app"); which is placed in function initialize() in mx/core/Application.as file in the SDK.

What I need to do? Should I recompile SDK somehow or is there a compiler switch to enable this? I'm a beginner in Flex, so I'm sorry if this question sounds silly.

View 1 Replies

Flex :: Syncing BlazeDS Messages Across Two Webservers?

Mar 5, 2012

I have a Flex/BlazeDS webapp (pseudo content management system) with a Java backend running on 2 Weblogic 10.3 servers for load balancing and HA purposes.Basically, I'm using AMF polling to update my app such that when a user opens a document from the search results, the corresponding row will display a locked icon across all user displays that currently have that document on the screen.

The problem I have is that if a user connected to Server A opens up document X, the locked icon will only appear on the screens of other users connected to Server A. The displays of users connected to Server B will not be updated. Is there any established paradigm or best practice to ensure that the locked update will propagate across all servers?

View 2 Replies

Flash :: Flex Applications - Strip Trace Messages?

Nov 9, 2010

how can I strip trace() messages from a flex and flash applications? I write flash and flex applications and i use a lot of trace messages for debugging, but when i product the actual swf i want it to be stripped from any trace messages.

View 6 Replies

Flex :: Create Custom Error And Notify Messages?

Mar 6, 2011

I want to create custom error and notify messages, but i don't know which element should I use. In the message there should be icon and text I tried to use Label but don't know how to build custom label the one I need. Is there a resource on how to create a custom label or tip how to do it?

View 1 Replies

C# :: Show Progress Messages In Flex From Initiated Batch Process?

Sep 29, 2009

I have Flex call a C# dll which starts a long batch process (10 minutes). This process is actually a PERL program which periodically outputs progress messages. I want to be able to stream these messages back to a text area in Flex.

View 1 Replies

Flex :: Get Informative Compile Error Messages When Using Flexmojos-maven-plugin?

Jun 10, 2010

I'am using flexmojos-maven-plugin to build my Flex module. So on the compile phase I'm getting org.apache.maven.plugin.MojoExecutionException: Error compiling!with no information on where (at what source file) the error happens and what is nature of the compile error.

View 2 Replies

Flex :: TypeError: Error #1034: Type Coercion Failed: Cannot Convert Object@1456c7b9 To Mx.messaging.messages.IMessage

Nov 21, 2010

Im trying to connect a Flash client to BlazeDS. There has been some success with this from others using the vanilla BlazeDS setup. However I'm using the new Spring BlazeDS Integration from springsource and running aground. The flash client actually seems to be working in that I can see the correct data in the body of the returned object, but for some reason unknown it fails casting as an IMessage. It fails in PollingChannel.as on this line with the subject line error

var messageList:Array = msg.body as Array;
for each (var message:IMessage in messageList) <--

On application load I register a whole bunch of classes like so

registerClassAlias( "flex.messaging.messages.RemotingMessage", RemotingMessage );
registerClassAlias("mx.messaging.messages.IMessage", IMessage);
etc..

my code is basically

var channelSet:mx.messaging.ChannelSet = new mx.messaging.ChannelSet();
var channel:mx.messaging.channels.AMFChannel = new AMFChannel("my-amf", "http://localhost:8400/SpringA/messagebroker/amf");
channelSet.addChannel(channel);

[code]....

I have a flex client which works 100% with same destination/channel.

View 2 Replies

ActionScript 3.0 :: Way To Detect Latency

Apr 21, 2011

I need to calculate the latency means time difference between the two user machines the scenario is: 1. App 1 publishes stream 2. App 2 play the stream published by App 1 Now in App 2 I need to show the time difference between the App 2 and App 1 time. Say if current time on App 1 is 10:46:30 and on App 2 it is 10:50:20 then need to display the difference. How to send the time value to App 2 from App 1 as time zones for the two users may be different.

View 1 Replies

Flash :: Low-latency Audio Synthesis?

Apr 7, 2012

When synthesising sound using the SAMPLE_DATA event of the Sound class, the Flash documentation recommends writing out as many samples as possoible up to 8192. On my system the sound cuts out unless I write at least 4192 samples each event. That's a full tenth of a second, which is going to be user-noticeable.

I may have the option of buffering things up ahead of time, but this is a major annoyance for my application.Is there any way of getting lower latency audio output?

View 1 Replies

Professional :: Buttons Don't Work When Test Movie/Test Scene?

Aug 4, 2011

My buttons only work when I click on them on the stage while having the "enable simple buttons" option on. They do not work if I try to "test movie," "test scene" and publish it to a SWF. Nothing responds whenever I am in these modes. I am using Adobe Flash Professional CS5 Actionscript 2.0.
 
This is the code that I put in for the buttons:
 
[Code].....

View 5 Replies

ActionScript 3.0 :: Movie Works In Flash Test But Not Html Test?

Aug 30, 2009

i have a movie that has worked fine in past during Html test but ive been doing some dubugging using the flash test latly and it runs fine here but when i go back and try to test in Html mode no errors come just the movie never fully starts (starts up about as much as if there was an error).

View 5 Replies

Media Server :: Lower Latency Via The Client?

Sep 29, 2009

Is a latency of 94 - 109 high or low....if its high how do I lower it via the client I don't have control over the server at this point in time.

View 2 Replies

Media Server :: Settings For Audio Latency

Oct 21, 2010

I can't find the setttings for have a least latency as possible, either the video quality is bad or the latency is up than 5 secondes...What should i do?

[Code]...

View 7 Replies

Actionscript 3 :: Game Network Latency Compensation?

Mar 5, 2012

I am developing a simple fast-paced 2 dimensional real-time multiplayer game in Flash. Players can only shoot and walk in point to move fashion. I use TCP socket connection (AS3 doesnt offer UDP).All I want is to synchronize players' actions so Player1 could see the same on its screen as Player2,Player3... or just see close representation (position,taking damage,etc).

I know movement vector coordinates and I can easily interpolate on them using latency. However,I can not figure out an effective way to determine how much time (T1) did it take the state update to travel client1-server-client2 and then make corrections to client2's screen based on T1.(You know, ping times may fluctuate quite a bit).I need a way to do the above-mentioned, i need way which is as fast and as accurate as posssible but not extremely sophisticated. (what algorithm should i use?

View 1 Replies

Actionscript 3 :: Low-latency Audio Streaming In Flash?

Mar 6, 2012

Suppose there is a live WAV stream that can be reached at a certain URL, and we need to stream it with as little latency as possible. Using HTML5 <audio> for this task is a no-go, because browsers attempt to pre-buffer several seconds of the stream, and the latency goes up accordingly. That's the reason behind using Flash for this task. However, due to my inexperience with this technology, I only managed to get occasional clicks and white noise. What's wrong in the code below?

var soundBuffer: ByteArray = new ByteArray();
var soundStream: URLStream = new URLStream();
soundStream.addEventListener(ProgressEvent.PROGRESS, readSound);[code]....

View 1 Replies

ActionScript 3.0 :: Sound Latency On Windows But Fine On Mac?

Jul 23, 2009

I have a project that plays several sounds and triggering interaction on key presses. On mac everything is fine - the animation and the sound gets triggered simultaneously. However, when I port it to windows (either as a swf or exe projector), there seems to be a .5 second delay in the sound. I have to load the sound files from a local filesystem. I've tried pre-loading all the sound so I can just play the sound object when needed, but the latency is always there.

View 1 Replies

ActionScript 2.0 :: Sound Latency Bad In Windows Good On Mac

Oct 4, 2010

In the game there is a backing groove played by triggering one movieclip to play. The user triggers short sounds from buttons embedded in drag and drop movie clips to play along with the backing groove.

On Safari or Firefox on mac the timing is absolutely fine.

On IE on Windos XP there is enough latency to make it unplayable.

View 0 Replies

ActionScript 3.0 :: Rendering Latency In A Simple Animation?

Nov 28, 2010

I used to code with "Processing" so maybe I keep the same habbit when I code in AS3. I'm not really sure how to animate in a good way using Enterframe. I made a not so complex animation and I am suprised that there is a very bad latency when I run it. Maybe there is something I don't understand when I write Graphics.

At each Enterframe, I write a black rectangle with a 0.3 alpha to progressively erase old lines and just after I draw new lines.

Are these these Graphics lines and Graphics rectangles stay in memory? Do I have to delete it when they visually disapear from the stage?

Code:
package
{
import flash.display.MovieClip;
import flash.events.Event;

[Code].....

View 4 Replies

ActionScript 2.0 :: Test Movie Works But Test Scene Does Not

Mar 19, 2009

I have two scenes in my flash file and in scene 1, first button takes you to frame 2 where movie clip is -works

on (release) {
gotoAndStop("scene1",2);
}
second button takes you to frame 3

but on scene 2 that performs same function as scene 1, the first button

on(press){
gotoAndStop("scene2",2);
}

instead of going to frame 2 goes to frame 3. and the second button goes correctly to frame 3.that happens when i test scene! when i test movie all buttons work properly.

View 1 Replies

Detect Latency When Playing Live Video Streams From FMS?

Sep 25, 2010

Because of network latency,there will always be latency, how to know how many seconds the latency is with ActionScript?

View 2 Replies

Flash :: Measure Ping Latency In Red5 Mediaserver?

May 24, 2010

Only thing I found is QoS statistic in NetConnection.info, but it does not contain any kind of latency values.

In red5 API "IConnection.getLastPingTime()" exists, is it accessible over standard Flex API or I need to poll it by RMI calls?

View 1 Replies







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