Flash :: Unit Testing Frameworks Or Libraries?
Feb 5, 2011What are the best unit testing frameworks or libraries for AS3 programming? Specifically for projects that do not involve Flex, only Flash.
View 1 RepliesWhat are the best unit testing frameworks or libraries for AS3 programming? Specifically for projects that do not involve Flex, only Flash.
View 1 RepliesI've been trying to setup a working method for unit testing flex libraries using Flex Builder. i have tried setting up a standard flex lib project and using Ant to compile and run the units tests. But this means that when something does go wrong and I want to use the flex builder debugger I cannot do so.
So my next plan is to setup the library as a normal as3/flax/air app as I can use the concept of a main class to run the unit tests. I can then compile the actual library code using Ant.
I could also setup a separate companion project who's sole task is to run units tests on the lib. But this is a little awkward as each library now requires two projects to manage. How do other people develop flex libraries and use unit tests to test/develop/debug the code?
I want to profile and unit test my application in Flash Builder 4 Standard. Adobe says I need to upgrade to the Premium version but I can't pay the money they want right now.Are there any alternatives for unit testing and profiling?
View 2 RepliesWhat methods do you use to unit test event handlers, particularly if they require information from the event (such as mouse coordinates, or the target of the event)? Is the most common practice to just refactor the behavior into a method that does the lifting while the handler just extracts information from the event, or are there effective ways to simulate event dispatch in FlexUnit or Fluint?
View 1 RepliesI'm looking for a reliable mocking framework for ActionScript. I've been using mock-as3, but I'm annoyed with what I feel is a hack-ish solution for triggering events. There are other a few other reasons why I'd like to have some options, but not sure if I necessarily need to go into them. I've also looked into Mock4AS, but the interface appears to be cumbersome.
View 3 RepliesI have a flex application written using PureMVC framework.Now,I want to write tests.We are using FlashBuilder 4.Is FlexUnit sufficient for testing? Are there any issues you have faced while writing tests?
View 1 RepliesI am developing an AS3 application which uses a Singleton class to store Metrics in Arrays. It's a Singleton because I only ever want one instance of this class to be created and it needs to be created from any part of the app. The difficulty comes when I want to unit test this class. I thought adding public getters and setters would enable me to unit test this properly and would be useful for my app. I have read that changing to a Factory pattern will enable unit testing or using Inversion of control. This would of course make it more flexible too. I would like to know of people's thoughts on this matter as there are SO many conflicting opinions on this!
View 1 RepliesI am writing a small flex application that will, eventually, call PHP services to perform its work. In the meantime, however, I would like to have it use local data in XML form to allow me to develop the Flex part independently of the data service.
What is the best way to do this? I want to emulate a service like this:
[Code]...
And invoke the service using issuerService.send(), populating my results as expected. How do I do this as though it were a RemoteObject instead, but keep my data local?
I have a flex application build with actionscript 3 on flex builder with unit testing on it using flexUnit4. I want to build this project on my cruise control and i don't know how?
View 3 RepliesIs it posible to create a partial mock using mockito-flex?
View 1 RepliesI want to override flash.display.Loader and to dispatch my own Event with a my owntarget.contentHow can i override Event.target?Property is read only"
View 2 RepliesPretty straightforward. Open source is good, but organization and documentation is better. Actionscript 3 is a must, I don't really want to start working with the older versions. I guess that's the crux of my problem using Google, because there are vast quantities of how to do thing "the old way" out there, but I'm having trouble getting solid AS3/Flash9+ stuff.
View 6 RepliesI basically need to scale an object up when the user rollsover the button which I have created dynamically already and I need to make sure the object is fully scaled up before I can allow the user to scale it back down again.Ive tried putting 2 tweens (x and yscale) into a function but not sure how to check if the tweens have finished. Im assuming if I check the function is complete it wont take into consideration the tweens may still be running.
View 0 RepliesRecently i got this error
SecurityError: Error #2148: SWF file file:///C:/Users/SUN/Desktop/TriStateCheckBox2/bin-debug/index.swf cannot access local resource file:///C:/Users/SUN/Desktop/TriStateCheckBox2/bin-debug/framework_4.5.0.20967.swf. Only
[code].....
I've just been tasked with finding automated actionscript frameworks. Can anyone offer the best out there? I'm just beginning to write the code for my project. Is it better for me to keep my MXML and AS in separate files so I can more easily integrate with any frameworks....or does it even matter?
View 2 RepliesTheres a new (beta) version of the AS3 language reference with all Adobe frameworks included which can be included or filtered out at will:ery useful in terms of documentation!...Of course it also makes it apparent how ugly and inconsistent the different framework names are. flash
View 2 RepliesWhat are the steps to change your default suite when running unit tests in Flash Builder 4 with PureMVC?
View 2 RepliesIs there a commonly used framework for AIR that handles mapping objects to and from the built-in SQLite database? An Annotation-based ORM framework that is to AIR what Hibernate is to Java? Background We have an AIR application that runs offline. I need to save/restore complex objects to/from the SQLite database. Some of these ValueObjects contain references to other ValueObjects. For example, an Order object contains a Customer object which contains an Address object.
Ultimately, I'd like to add metadata to my objects, like an [Entity] tag and have persistence "just work," with minimal configuration. I could roll my own ORM solution, effectively writing "Hibernate for AIR" myself, but SURELY someone has already done this. I've read related posts like Best practices for developing AIR Application with SQLite that advocate creating DAO's, Builders and Services. That's a fine solution but, of course, no one wants to reinvent the wheel if it's not 100% necessary.
[Code]...
My company is willing to reffactor its biggest and heaviest project introducing some kind of framework. Are there good online source/issue/blogpost with comparison of these 3 frameworks - Robotlegs, Swiz and Mate?
View 4 RepliesI have a pure AS3 project. I use Ant to build it. Here is a part of my ant script:
<target name="mxmlc">
<exec executable="${flex.home}/${mxmlc}" failonerror="true">
<arg line="-compiler.include-libraries=${lib}"/>
<arg line="-compiler.incremental=false"/>
<arg line="-compiler.optimize=true"/>
[Code] .....
The problem is that my resulting SWF is really big. When I checked what is inside I saw that it has mx.* libs from Flex. Why it is like this? How to kick mx.* from my SWF? In my code I don't use anything from mx.* library.
Are there any custom libraries available that allow me to code/publish in CS3 using some of the features of CS4?
EDIT: I say "some", because I understand that it is obviously nearly impossible to reimplememnt CS4 in CS3.
I've started using Shared Libraries and this subject peaked my interest... does Flash still have load timing issues with Shared Libraries? I found a few site online that mention that your Flash project will load but if it didn't have time to load your Shared Library, it simply won't load it and you are out of luck. Is this still true with the latest version of Flash? If so, how do I preload the library to make sure it doesn't happen?
View 1 RepliesThe following embed code works fine when I load swfobject.js locally. However, when I try to load the swfobject.js from Google Library APIs, the Flash movie fails to load. I know I'm using a valid key, and the swfobject.js file is definetely being loaded, but I get an "Uncaught ReferenceError: SWFObject is not defined (anonymous function)"
[Code]...
Is it possible to build a flex 4 application that references or uses the flex 4 libraries (or any libraries that are compatible) without the project compiling them into the main SWF of the project.
So in a nut shell, I have a project and I want to load the flex 4 library from the server, is this possible? I've seen articles on compiler settings. Could this be the solution to loading the library from the server?
I have got a little problem with ipmorting alivePDF library into my project. I've written something like that:
ActionScript Code:
import org.
alivepdf.pdf.PDF;
import org.alivepdf.layout.Orientation;
import org.alivepdf.layout.Size;
import org.alivepdf.layout.Unit;
[Code] .....
I would like to include Flash Live Media Encoder libraries (i.e. support for Flash Media Streaming) in an application I am developing. Ideally, this would be without having to install the FMLE Gui (though I can live with that); in a manner similar to WireCast or Tricaster. Could someone explain how one might go abount legally "bundling" FMLE 3.2 support etc.
View 1 RepliesMain features I am looking for are carausels and alert boxes.I have already seen Yahoo Astra. Are there any better or comparable libraries ?
View 1 RepliesI am looking for leads on an Open Source IK library for AS3.
My project involves simple 2D limbs with shoulder/elbow/wrist joints.
If I am unable to find anything I am going to try and write one, although my math is not anywhere near up to the task.
I'd like to port a Flash application to iPhone.I like flash for a lot of reasons and would prefer to use it for content generation. However there are a few downsides I am told, like at least 3.5 MB per app.So while using Flash would make it easier to extend the current pipeline to include iPhone content, I was wondering what other choices are there for dealing with vector assets. I'm looking to bring in assets from Flash (or illustrator) easily, be able to add placeholders that can be replaced, and package them so that they can be updated easily from iOS.
Will most likely end up outsourcing the app creation, but I would like to know what the choices are before deciding what route to go.
i need to make a loader on flash or a simple label who say "wait, the model is loading". This is the part of my script were i load the model, but how to control the loading process.
Code:
private function _onInit(e:Event):void {
_earth = new DAE();
_earth.load('model/hfarm.DAE');
[code]....