Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 2

The Flex-IFrame component allows developers to embed an html page inside a Flex application. Visit the project's home page for more informations.

5.0
 
  0 reviews  |  1 user  |  10,523 lines of code  |  1 current contributor  |  Analyzed 9 days ago
 
 

About Reflex UnitReflex Unit is a testing framework for Flex 2 and Flex 3 applications. It is designed to be a drop-in replacement for Flex Unit (although minor code changes will be required). Reflex Unit offers the following features: Testing framework uses reflection, eliminating the need to ... [More] manually declare each test method. Simply specify the name of a class containing testable methods (see documentation for more) and they will be automatically added to the TestSuite. Test cases are not required to extend a base testing class. Using Reflex Unit, test methods may be defined within the classes they are testing. Tests may optionally implement an ITestCase interface (or extend the included TestCase class) to be notified of setup and teardown events. Multiple asynchronous tests may execute in parallel. By default, Reflex Unit will only execute one test method at a time. However, using the available metadata markup, methods may be tagged to run in parallel for faster overall testing times. Multiple output styles and formats are included by default, including: ConsoleViewer - A simple debugging application that prints the status and result of each test method CruiseControlLogger - An XML logger for use with Cruise Control FlexViewer - A graphical debugger application providing feedback about: test status, errors/failures, & execution time; (try available demo) Reflex Unit will also soon include an Eclipse plug-in to run tests, view results, and jump directly to a source code view for failed assertions. More information to come shortly! [Less]

0
 
  0 reviews  |  0 users  |  16,794 lines of code  |  0 current contributors  |  Analyzed 5 days ago
 
 

FluxUnitFluxUnit is a Behavior-Driven Testing Framework for Flex 3. It is as direct a port as I was able to make of Nick Kallen's Screw.Unit Javascript testing framework, plus a couple of additions (and more to come, including mocks and stubs if possible). It has a lot in common with RSpec, a ... [More] testing framework for Ruby. FluxUnit is available both on GoogleCode at http://code.google.com/p/fluxunit, and on GitHub at http://github.com/itfische/fluxunit/tree/master. Screw.Unit is available at http://github.com/nkallen/screw-unit/tree/master, if you are looking for an excellent Javascript testing framework. Getting StartedFluxUnit consists of two Flex projects: FluxUnit: the actual library for testing FluxUnitSpecs: Two example testing suites, one for a simple example, and the other for testing FluxUnit itself Setting up the projectsFluxUnitSpecs needs to be in the same root directory as FluxUnit to compile. If you are using FlexBuilder or Eclipse with the FlexBuilder plugin, you should create two new projects, one called FluxUnit, the other called FluxUnitSpecs. You should set the directories for these projects to /path/to/fluxunit/FluxUnit and /path/to/fluxunit/FluxUnitSpecs, respectively. Once you have done this, you will need to update the path to FluxUnit.swc in your FluxUnitSpecs project. Go to FluxUnitSpecs' project properties, click Flex Build Path, select the Library Path tab, click on FluxUnit.swc and delete it, then click the "Add SWC..." button and navigate to /path/to/fluxunit/FluxUnit/bin/FluxUnit.swc. FluxUnitSpecs should now build. To use FluxUnit, you will generally include the FluxUnit.swc library file in your Flex project, either by placing it in your libs directory, or by including it through the Flex Build Path | Library Path tab of your project's properties as described above for FluxUnitSpecs. Creating a Test SuiteOnce included, you should create a new Flex application called something appropriate, such as TestSuite.mxml. Make this file one of your compiled applications in your project's properties. The base mxml will look something like this: That should already compile, but it won't do anything interesting. Creating a spec classNext, you should create a spec class. For example, if you have a class called Foo, you might create a file called FooSpec.as in a directory called specs. In this case, FooSpec.as would start out looking like this: package spec { import flux_unit.Flux; public dynamic class FooSpec { public function FooSpec() { var self:FooSpec = this; new Flux(this).Unit(function():void { with (self) { } }); } } }Note that this is a dynamic class. If you try to pass in a non-dynamic class object to new Flux(), it will fail. Once you've created this, you should make your TestSuite.mxml's init function look like this: private function init():void { Flux.setRoot(body); new FooSpec(); Flux.Run(); }This should all compile, and you should be able to run this application (at least in a browser). It won't produce much of interest yet, though. Creating specsNow you are ready to start adding specs to FooSpec.as. This is done by putting describes and its into the with block. For example: with (self) { describe("Foo", function():void { var foo:Foo; before(function():void { foo = new Foo(); } it("creates a Foo object properly", function():void { expect(foo).to_not(be_null()); } describe(".bar", function():void { it("returns baz", function():void { expect(foo.bar()).to(equal(), "baz"); }); }); after(function():void { foo.cleanup(); } } }Different approaches to calling the FluxUnit functions in a spec classDue to an issue with the Flex compiler, only dynamically called methods compile correctly inside of a with -- if you try to call a property inside of the with block it will give you a compile error. This additionally causes problems with access to static members of a class. For example, trying to call: Foo.bar();inside of the with block will give a compile time error saying that Foo may not be defined. In this case, you can say: public function FooSpec() { var self:FooSpec = this; self.foo = function():Class { return Foo; }; with (self) { ... foo().bar(); ... } }If you don't want to jump through that particular hoop, you can write your specs without the with block, but you will need to prefix all of the describes, befores, afters, its, expects, eventuallys, and the matchers (equal, etc.) with "self.", e.g.: self.describe("Foo", function():void { var foo:Foo; self.before(function():void { foo = new Foo(); } self.it("creates a Foo object properly", function():void { self.expect(foo).to_not(self.be_null()); } ... });Alternatively, if you are testing a library in a different project, you can just turn off strict type checking in your test project's Flex Compiler settings. I think it will compile correctly without having to use either the with block or putting "self." before all the properties, but you probably don't want to do this for your main project. However, I have not tested this myself. Testing Asynchronous CallsIf you are testing callbacks to functions, you will need to create your functions using eventually(). For example: describe("setTimeout", function():void { it("sets a timeout with a callback", function():void { setTimeout(eventually(function():void { expect(true).to(equal(), true); }), 3000); }); });eventually() properly wraps the function you pass to it so that it hooks in to the before and after system and the display system. Such specs remain marked as pending until the callback succeeds, fails, or times out. To make a callback timeout, you can do the following: describe("setTimeout", function():void { it("sets a timeout with a callback", function():void { setTimeout(eventually(function():void { expect(true).to(equal(), true); }), 3000); }).but_times_out_after(2000); });In this case, it will be marked as failed, but when the callback returns and succeeds, a note will be added that it passed, but too late. If you normally need to pass arguments to your callback, you can still do this -- eventually correctly passes all arguments it receives through to the callback. For example: describe("foo.getResponse", function():void { it("eventually expects foo to respond with bar", function():void { foo.getResponse("Where can I buy a beer?", eventually(function(response:String):void { expect(response).to(equal(), "bar"); })); }); });Adding MatchersAs in Screw.Unit, the matchers system is extensible. Here is an example, assumed to be in matchers/smell.as: import flux_unit.Flux; Flux.Matchers['smell'] = function():Object { return { match: function(expected:*, actual:*):Boolean { return actual == 'smell'; }, failure_message: function(expected:*, actual:*, not:Boolean):String { return 'expected ' + actual + (not ? ' to not smell' : ' to smell'); } } }A matcher is a function that is attached to the Flux.Matchers object. It returns an object that has two function properties: match and failure_message. match performs any needed comparisons between expected and actual and returns a boolean. failure_message creates a message stating how exactly the match failed, including whether it was used in a negation (i.e., if it was called using the to() function or the to_not() function). As in the example, you can create matchers that ignore the actual value that is passed. This is the case for matchers like be_null(). For example: expect(foo).to_not(be_null());To include the 'smell' matcher above in your code, you would add the following line to your init() function in your main mxml file: include 'matchers/smell.as';Bug Reports, Contributing, etc.This software is developed and maintained by Ian Fischer. You can reach me at ian.fischer@post.harvard.edu. If you have bug reports or would like to contribute, please contact me there. That's it! [Less]

0
 
  0 reviews  |  0 users  |  1,178 lines of code  |  0 current contributors  |  Analyzed 10 days ago
 
 

Papervision is a bitch to learn because the documentation is very sparse and/or of low quality. This project contains several examples that I have constructed in order to study the functionality of Papervision3D.

0
 
  0 reviews  |  0 users  |  1,097 lines of code  |  0 current contributors  |  Analyzed 5 days ago
 
 

For all the Flash IDE haters out there... This is the utility library for you! If you base your Flash projects out of Flex Builder or FDT as pure actionscript projects, you'll find some or all of the utilities in this library helpful.

0
 
  0 reviews  |  0 users  |  2,778 lines of code  |  0 current contributors  |  Analyzed 5 days ago
 
 

Air application that organize and update your swc files

0
 
  0 reviews  |  0 users  |  0 current contributors  |  Analyzed 1 day ago
 
 

Why don't we have an Open Source Flash CMS system which is akin to the power of not ugliness of drupal or joomla? eCommerce, Scheduling, etc. Why are the Flash CMS's all coupled so tightly where you essentially use templates and not a simple transport layer like XML? We've seen ... [More] intense improvements in penetration statistics, the iPhone app store allowing third party non safari mobile browsers, and the advancements of ActionScript 3.0. Here is what I propose (Keep in mind SEO, XML being able to be used by Flash and by something like jQuery for non-flash-enabled browsers). 1. The application stack is LAMP, with PHP 5+. I am choosing PHP 5 over 4 because of the vast improvements in the object oriented architecture. Most servers allow for it. 2. I have the basic classes for [Less]

0
 
  0 reviews  |  0 users  |  0 current contributors  |  Analyzed 2 days ago
 
 

This project attempts to crate a faster way to generate boiled steps to create a new project for Flex Builder. The notorious way of next, next, finish and configuration for work with services things. Anyway, this project is simple, did you work with Ruby on Rails? how faster is to generate project ... [More] structures fast and easy? That's the main goal of this project, to help you developer that needs time and wants to use your time coding not configuring things. Enjoy! [Less]

0
 
  0 reviews  |  0 users  |  7,610 lines of code  |  0 current contributors  |  Analyzed 4 days ago
 
 

Flex Development ToolsA collection of tools for developing Adobe Flex / Air applications. Flex Console Flex Console is a log reader build with Adobe Air that works with the Flex logging framework. It features: Fully compatible with the mx.logging.* framework. Receive log messages via ... [More] LocalConnection. Quickly filter log messages by log levels or packages. Provides Logger template class for quick and easy implementation. Click on the latest FlexConsole-x.x.x.air to install. [Less]

0
 
  0 reviews  |  0 users  |  11 lines of code  |  0 current contributors  |  Analyzed 9 days ago
 
 

This tool is an Eclipse editor plugin to provide source code formatting for Adobe Flex code (i.e. Actionscript and MXML). I've provided a set of formatting options which hopefully covers the most popular coding conventions.

0
 
  0 reviews  |  0 users  |  94,463 lines of code  |  0 current contributors  |  Analyzed 5 days ago
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.