Showing posts with label Adobe Flex. Show all posts
Showing posts with label Adobe Flex. Show all posts

Tuesday, June 23, 2009

Blueprint

Welcome to the preview release of project "Blueprint." Blueprint is a plugin for Adobe® Flex® Builder™ 3 and Adobe Flash® Builder™ 4 that allows users to query for Adobe Flex and Adobe Flash code examples found on the Web directly inside of the development environment. The purpose of this preview is to assess the level of community interest in this type of customized search interface for code examples.

Blueprint Screenshot


With Blueprint, Flex and Flash developers can now query for sample code just as easily as they use auto-complete. Blueprint brings the power of the entire Web inside of the Flex Builder 3 Development environment and provides sample-centered search results that allow the user to quickly look through many different examples from many different websites including documentation, blogs, and forums.

The Blueprint preview is prerelease software that is not supported by Adobe and may contain bugs. We welcome your feedback, so please use the feedback link below to request features, make comments and report problems. Please also note that this is a research project and there is no assurance that there will be a shipping version of Blueprint.


source:http://labs.adobe.com/technologies/blueprint/

post signature

Acrobat.com Tables

Acrobat.com Tables

Welcome to Acrobat.com Tables, a better way to work with others on data and information — such as task lists, schedules, contacts, sales numbers, etc. — that are typically created and shared in spreadsheets or simple databases. Built on the Adobe® Flash® Platform, Acrobat.com Tables looks and behaves like a desktop application but operates inside a web browser. Sign up now.

With Acrobat.com Tables, you can:

  • Easily work with others on the same table at the same time. With simultaneous editing, no one is locked out of the table while others are making changes.
  • Simplify collaboration. No need to combine multiple versions, e-mail spreadsheets back and forth, or worry about version control, because everyone has access to the latest information, online, all the time.
  • Personalize the display of shared data. Use private views to display the information that is important to you, without affecting others who may be viewing or working with the same table.
  • Access your data and information from anywhere. Your table is always available online so you and your team can share a data set and add to it regardless of where you are located.

source:http://labs.adobe.com/technologies/tables/

post signature

Sunday, June 14, 2009

How to write Firefox extensions in Flex!

Introduction.. 1

Boil some water - extension basics. 2

install.rdf – extension information for Firefox. 2

chrome.manifest – connects the extension declaration to our component 3

overlay.xul – our hook to the browser UI 3

overlay.js – our first entry point. 4

historia.xul - our extension UI 4

Test your infrastructure. 4

Add 1 cup of Flex. 5

AppUtil 5

Salt and Pepper - Passing Data between Firefox and Flex. 9

HistoryUtil 9

Comm... 11

Historia.html wrapper (Flex app) 12

Histotria.mxml 13

Bon appétit 14

Appendix: Navigation Tab – overcome Firefox security restrictions. 15

Changes needed for navigation tab. 15

Download

source: http://strawberrypixel.com/flex/articles/fire-flex/firefox-extension-flex.htm


post signature

Wednesday, June 10, 2009

Flashden: Flex Calender Icon

Flashden: Flex Calender Icon

-Flex calendar icon which will automatically get date from system clock

-flex swc included easy to add to ur project

- Re sizable vector format

-Include flash (fla)+class (as3) as well

-Can be used also in flash projects

-Customizable color property and reflection property


http://hotfile.com/dl/5835244/1b2bc27/flex_calendar_icon.rar.html

OR

http://rapidshare.com/files/242705385/flex_calendar_icon.rar.html

post signature

Monday, June 8, 2009

Adobe BrowserLab

Welcome to the limited free preview of Adobe® BrowserLab, the latest Adobe hosted service for web professionals.*

BrowserLab provides web designers exact renderings of their web pages in multiple browsers and operating systems, on demand. BrowserLab is a powerful solution for cross-browser compatibility testing, featuring multiple viewing and comparison tools, as well as customizable preferences. Since BrowserLab is an online service, it can be accessed from virtually any computer connected to the web. Also, Adobe Dreamweaver® CS4 software users have access to additional functionality such as testing local and active content.

Limited Free Preview

The BrowserLab free preview is available to a limited number of users, while we monitor its performance. Please visit our service status page for updates.



post signature

Adobe BrowserLab

Welcome to the limited free preview of Adobe® BrowserLab, the latest Adobe hosted service for web professionals.*

BrowserLab provides web designers exact renderings of their web pages in multiple browsers and operating systems, on demand. BrowserLab is a powerful solution for cross-browser compatibility testing, featuring multiple viewing and comparison tools, as well as customizable preferences. Since BrowserLab is an online service, it can be accessed from virtually any computer connected to the web. Also, Adobe Dreamweaver® CS4 software users have access to additional functionality such as testing local and active content.

Limited Free Preview

The BrowserLab free preview is available to a limited number of users, while we monitor its performance. Please visit our service status page for updates.



post signature

Acrobat.com Presentations

Acrobat.com Presentations Sign up now

Welcome to Acrobat.com Presentations, a better way to create, edit, and share presentations with others online. Built on the Adobe® Flash® platform, Acrobat.com Presentations looks and behaves like a desktop presentation application but operates inside a web browser. It's free, so sign up now.

With Acrobat.com Presentations, you can:

  • Easily create your own professional presentations online, using built-in tools and layouts.
  • Simplify working with others on presentations. Create, revise, and collaborate on the same presentation at the same time -- all online. No need to e-mail attachments back and forth or track down who has the latest version.
  • Meet your deadline with ease. With simultaneous editing, no one is locked out of the presentation while others make changes.
  • Access your presentations from anywhere. Your presentation is always available online so you can do last minute tweaks, present it from wherever you are, or deliver it offline by exporting to Adobe PDF

TryTry Acrobat.com Presentations now

source: http://labs.adobe.com/technologies/presentations/

post signature

Monday, June 1, 2009

Adobe Flash Catalyst Beta

Flash Builder 4 Standalone Installer

The following downloads will install prerelease versions of Flash Builder 4 for Windows and Macintosh. If you are not already using Eclipse, you will most likely want to use this installer. Please refer to the Release Notes for details on supported platforms.

English

Flash Builder 4 Plugin for Eclipse

The following downloads will install prerelease versions of the Flash Builder 4 plugin for Eclipse for Windows and Macintosh. Please refer to the Release Notes for details on supported platforms.

English

Flex Component Kit for Adobe Flash Professional CS4

The Flex Component Kit for Adobe Flash Professional CS4 allows you to create interactive, animated content in Flash Professional, and use it within Flash Builder as a Flex component. You can create your symbol in Flash Professional as you would normally and export it as a SWC, which can easily be loaded into Flash Builder. Imported Flash components are laid out naturally in a Flex container and since the Flash component is an ActionScript component, you can expect the same functionality within Flash Builder as when you are developing any other ActionScript component.

English

Flex 4 Test Automation Plug-in

The following downloads include a plug-in installer to enable Flex automated testing with HP QuickTest Professional and a short demonstration video describing how to test Flex applications with HP QuickTest Professional.

English



source: www.adobe.com

post signature

Flash Builder and Flash Catalyst Betas Now Available

Flash Builder and Flash Catalyst Betas Now Available

May 31st, 2009 by ryanstewart

Flash Builder Flash Catalyst LogoWe just dropped the bits for both the Flash Builder beta and the Flash Catalyst beta. These represent a big jump in how people are going to work with the Flex Framework and I’m happy to see the hard work of the teams now available to everyone. So grab the bits and start creating some Flash content. Important: If you installed the MAX public beta, check the bottom of this post for some instructions that will help you through some install problems that may come up.

Keep in mind that we’re still early for both Catalyst and Builder. We won’t have everything we want in Catalyst 1.0 but this beta represents a HUGE step over what some of you saw at MAX last year so we’re making a lot of progress. It’s snappy, it’s tightly integrated with the CS4 tools, and it opens up a whole world of design centric tooling for the Flex Framework. What makes this all possible are the fundamental changes to the Flex SDK for Flex 4. We’ve completely separated the logic from the look of a component which means designers and developers can collaborate without stepping on each others toe’s. We’ve abstracted the layouts so you can dynamically change the layout of components creating some very cool looking components. We’ve integrated Flash Builder with a lot of your favorite backend technologies so it’s easy to consume and generate services to connect to data.

I’ve created a screencast to help people check out the new features. It goes through the workflow of moving from a PSD to Flash Catalyst and on to Flash Builder when you want to bring in real data.

Flash Catalyst Tutorial

There are a lot of resources to make sure you get up to speed quickly using the new tools. Here’s a good list:

If you’re having trouble uninstalling the MAX preview and installing the public beta, give these steps a try:

  • Uninstall Catalyst
  • Download the Mac version of the Repair tool from this page: http://www.adobe.com/support/contact/licensing.html
  • Run the Repair tool with the default options.
  • After the Repair is complete, re-install Catalyst and enter the SN when prompted by the installer.

source: http://blog.digitalbackcountry.com/2009/05/flash-builder-and-flash-catalyst-betas-now-available/

post signature

Saturday, May 23, 2009

Java and Flex Integration Bible

Java and Flex Integration Bible

Matthew Keefe, Charles A. Christiansen, "Java and Flex Integration Bible"
Wiley | ISBN: 0470400749 | March 3, 2009 | 552 pages | PDF | 8.8 MB

Providing you with invaluable information for delivering rich, cross-platform Internet applications within the enterprise and across the web, this book shows you how to fully integrate Java and Flex. Pages of examples, step-by-step instructions, and from-the-field techniques guide you through the creation of your first Java/Flex applications.



Download Links:
Download from RapidShare

Download from DepositFiles

Download from Uploading.COM

Download from Easy-Share



post signature

Thursday, May 21, 2009

Top Ten Flex Tools and Resources


When developing Flex and/or AIR applications there are a handful of tools that really make the difference between a good project and a great project. They are all very valuable and provide stability and clarity for the RIA development process; or at least they have for me. From Unit Testing to SVN utilities to frameworks and libraries I’ve found the following ten items to be very useful and helpful. I’d even go so far as to say these are critical for quality Flex RIA development; but as Les says: “It’s just a matter of opinion.” ;)

Cairngorm
Cairngorm is the lightweight micro-architecture for Rich Internet Applications built in Flex or AIR. A collaboration of recognized design patterns, Cairngorm exemplifies and encourages best-practices for RIA development advocated by Adobe Consulting, encourages best-practice leverage of the underlying Flex framework, while making it easier for medium to large teams of software engineers deliver medium to large scale, mission-critical Rich Internet Applications.
http://opensource.adobe.com/wiki/display/cairngorm/Cairngorm

Download:
http://download.macromedia.com/pub/opensource/cairngorm/cairngorm2_2_1-bin.zip


Flex Unit

FlexUnit is a unit testing framework for Flex and ActionScript 3.0 applications and libraries. It mimics the functionality of JUnit, a Java unit testing framework, and comes with a graphical test runner.
http://opensource.adobe.com/wiki/display/flexunit/FlexUnit

Download:
http://download.macromedia.com/pub/opensource/flexunit/flexunit0_9.zip


Subclipse

Subclipse is an Eclipse Team Provider plug-in providing support for Subversion within the Eclipse IDE. The software is released under the Eclipse Public License (EPL) 1.0 open source license.
http://subclipse.tigris.org/

Eclipse update site URL:
http://subclipse.tigris.org/update_1.6.x


Eclipse

Eclipse is a multi-language software development platform comprising an IDE and a plug-in system to extend it. It is written primarily in Java and is used to develop applications in this language and, by means of the various plug-ins, in other languages as well - C, C++, COBOL, Python, Perl, PHP and more.
http://www.eclipse.org

Download:
http://www.eclipse.org/downloads/


ASDoc

ASDoc is a command-line tool that you can use to create API language reference documentation as HTML pages from the classes in your Adobe® Flex® application. The Adobe Flex team uses the ASDoc tool to generate the Adobe Flex Language Reference.
http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_1.html


Flex Ant Tasks

The Adobe® Flex® Ant tasks provide a convenient way to build your Flex projects using an industry-standard build management tool. If you are already using Ant projects to build Flex applications, you can use the Flex Ant tasks to replace your exec or java commands that invoke the mxmlc and compc compilers. If you are not yet using Ant to build your Flex applications, you can take advantage of these custom tasks to quickly and easily set up complex build processes for your Flex applications.
http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_1.html

Installation:
http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_2.html#224215


Degrafa

Degrafa is a declarative graphics framework open source licensed under MIT.
http://www.degrafa.org

Download:
http://www.degrafa.org/code/


as3corelib

The corelib project is an ActionScript 3 Library that contains a number of classes and utilities for working with ActionScript 3. These include classes for MD5 and SHA 1 hashing, Image encoders, and JSON serialization as well as general String, Number and Date APIs.
http://code.google.com/p/as3corelib/

Download:
http://as3corelib.googlecode.com/files/as3corelib-.92.1.zip


Flex SDK coding conventions and best practices

Coding standards for writing open-source Flex framework components in ActionScript 3. Adhering to these standards makes the source code look consistent, well-organized, and professional.
http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions


Flex Language Reference

The Flex 3.3 Language Reference provides syntax and usage information for every element in the ActionScript™ language. It documents all elements in Adobe® Flash® Player and Adobe® AIR™ that are officially supported by Adobe.
http://livedocs.adobe.com/flex/3/langref/



post signature

Tuesday, May 19, 2009

Flash Builder (formally Flex Builder)

Adobe has re branded Flex Builder as Flash Builder in order to remove confusion over the outcome of the tool. How do you feel about this? Do you think this name change will accomplish this goal or will it simply lead to additional confusion over what the purposes are for Flash CS4, Flash Catalyst, Flex SDK, and Flash Builder?

Creating a SWF

Creating a SWF

  • Use Flash Catalyst to create SWF which will run within the Flash Player
  • Use Flash CS4 IDE with AS3 to create SWF which will run within Flash Player
  • Use Flash Builder with the Flex SDK or AS3 to create SWF which will run within Flash Player

source: http://blog.everythingflex.com/2009/05/19/flash-builder-formally-flex-builder/

post signature

Kevin Lynch’s Flash Catalyst Demo At Web 2.0 Keynote

Now that some of the Flash Catalyst hype has died down some, this demo is sure to get some of its potential fans pretty excited all over again. Here is Kevin Lynch’s Keynote from the Web 2.0 conference where he shows how to build a full application using Illustrator, Flash Catalyst, Flex Builder, Flex and the Facebook ActionScript 3 API.

I know Flash Catalyst was meant to bring life to static comps with extreme ease, but WOW it looks like it is bringing a whole new level to “ease of use”. Hmmmm…I just wonder what that code looks like! Enjoy the video!

source: http://flashspeaksactionscript.com/kevin-lynchs-flash-catalyst-demo-at-web-20-keynote/


post signature

How to save files from Flex to your server with PHP

For my AMDawing I searched a lot for . And all the solutions that I found are too complex in my opinion. I saw all the examples with remote objects and AMFphp or ZendAMF.

Finally I found the solution at thinkerlog.com. I think it is the most straight forward solution. This are the basics:

First you make the URLrequest that requests the php file url. And then you use URLvariables to send all the variables to the php file. This is the code:

?View Code ACTIONSCRIPT
                        var request:URLRequest = new URLRequest("upload.php");
var vars:URLVariables = new URLVariables();

vars.name = this.creatorName.text;
vars.bindata = Base64.encodeByteArray(imageData);
request.method = "POST";
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, uploadPhotoHandler);
request.data = vars;
loader.load(request);

That is everything at the Flex side. Now the PHP file “upload.php”:

  if ($_REQUEST["bindata"] === NULL) {
echo "missing parameter.";
}else {
$img_data = base64_decode($_REQUEST["bindata"]);
$name = $_REQUEST["name"] === NULL ? "anonymousn" : $_REQUEST["name"];
$name = strip_tags($name);
$img_size = strlen($img_data);
if ($img_size < 1000000) {
$date = date("U");
$img_filename = "data/$name.$date.png";
unlink($img_filename);
$img_file = fopen($img_filename, "w") or die("can't open file");
fwrite($img_file, $img_data);
fclose($img_file);
echo "$date";
echo "$img_size bytes uploaded.";
}else {
echo "image too big.";
}
}

If you want an extended tutorial you have to go to thinkerlog.com


source: http://blog.arnomanders.nl/index.php/archives/how-to-save-files-from-flex-to-your-server-with-php/

post signature

FlexBuilder / Eclipse keyboard shortcuts that will change your life

FlexBuilder / Eclipse keyboard shortcuts that will change your life

by Mims H Wright

  • Control + O = Open an outline of functions within the current class to jump to.
  • Command + Shift + T = Jump to a type (class or interface). Only works when an .as or .mxml file is open.
  • Command + Shift + R = Jump to a resource. Includes classes and any other files (such as XML files)
  • Command + L = Jump to a line number
  • Command + Shift + C = Wrap / Unwrap selected text in a block comment (/* */)
  • Command + Shift + / = Comment / uncomment the selected line using an inline comment (//)
  • Command + Shift + D = Add ASDoc style comment
  • Command + D = Delete the selected text
  • Command + UP = Move the selected up
  • Command + DOWN = Move the selected text down
  • Command + Option + UP or DOWN = Duplicate the selected text above or below the selected line
  • Command + X = Make selected text ALL CAPS
  • Command + Y = Make selected text all lowercase
  • Command + Shift + R = Rename selected element (using refactor)
  • Command + M = Maximize / Minimize current view
  • Control + Tab = Jump to an open file editor
  • Command + Shift + L = Keyboard command list. Press it again to edit commands.
  • Command + F = Find / Replace dialog.
  • Command + Shift + G = Find any references to the selected element within your project
  • Command + Click or F3 = Jump to the definition of the selected element
  • Command + J = Find within document. Type the word you want to find then use up and down to skip between instances. Press ESC to cancel.
  • Command + Shift + P = Jump to matching bracket. e.g. jump from } to {
  • Control + H = Search (rather than find) allows you to search within the entire workspace.
  • Tab / Shift + Tab = Indent / Un-indent selected text.
  • Command + Option + Left / Right = Jumps to the location of the previous / next edit without undoing your change.


source: http://dispatchevent.org/mims/flexbuilder-keyboard-shortcuts/

post signature

FlexUnit 4 in 360 seconds

FlexUnit 4 in 360 seconds

About a year back I remember reading a blog post called JUnit in 60 seconds. At the time I pondered how great it would be to have these features in Flex. Little did I know that today I would be writing this post introducing the Flex world to FlexUnit 4.

So, first a little background. FlexUnit 4 is the name for an upcoming release of FlexUnit. It represents the best features of the FlexUnit project combined with the best features of the Fluint project. It is built on top of a newly created foundation designed to support the latest techniques used in the JUnit testing community, but written for the specific requirements and needs of the Flash Player. Top all that off with an extensibility layer that encourages developers to create new types of test runners and extensions while simplify the process of integrating the results into IDEs and continuous integration environments, and it should give you an idea why I am excited about this release.

If it sounds interesting to you as well, the public alpha of this upcoming release is now available as a turnkey test project you can download from the adobe open source site. I hope you will use it to learn and explore the new features, and to provide feedback about any bugs you find along the way. However, it is an alpha, so locations and names of classes, signatures of methods and even which features are supported are all subject to change before release. It is not be advisable to use this as your production testing system.

Speaking of features, let's jump in. There is a bit more content to go through than the original 60 second tutorial, so, I think you will need 4-6 minutes to get through it all. To keep things consistent, many of these examples are adapted right from the JUnit in 60 seconds site referenced above.

  1. Test Metadata
    Test cases are now marked with a piece of metadata named [Test]. Your tests no longer need any special name (prefixed with test, etc.) Also, the need for specific Test and Suite classes disappears. Your classes no longer need to inherit from any framework class. Here are a couple of sample tests.
    [Test]
    public function addition():void {
    Assert.assertEquals(12, simpleMath.add(7, 5));
    }

    [Test]
    public function subtraction():void {
    Assert.assertEquals(9, simpleMath.subtract(12, 3));
    }

    Because your test classes no longer inherit from a class in the FlexUnit framework, you will notice that the assert functions you used in the past (assertEquals, assertTrue) are now referenced as static functions of the Assert class; more on the new ways of asserting later in this post.

  2. Before and After
    Sometimes you need to setup your test environment (or fixture) for your tests. In the example above, you need to ensure your simpleMath reference exists before the tests are run. In previous versions of FlexUnit and Fluint you could override a setup() or teardown() method to accomplish this goal. FlexUnit 4 introduces Before and After metadata which accomplishes a similar goal. Any methods marked with Before will be run before each test method. Any methods marked with After will be run after each test method. This also means you can have multiple methods that run before or after the test.

    [Before]
    public function runBeforeEveryTest():void {
    simpleMath = new SimpleMath();
    }

    [Before]
    public function alsoRunBeforeEveryTest():void {
    simpleMath1 = new SimpleMath();
    }

    [After]
    public function runAfterEveryTest():void {
    simpleMath = null;
    simpleMath1 = null;
    }

    If you do choose to use multiple before or after, you can control the order that these methods execute using an order parameter. So, for example [Before(order=1)], [Before(order=2)].

  3. BeforeClass and AfterClass
    Methods marked with Before and After will run before and after each test method respectively. BeforeClass and AfterClass allow you to define static methods that will run once before and after the entire test class. Like Before and After, you can define multiple methods for BeforeClass and AfterClass and can control the order.
    [BeforeClass]
    public static function runBeforeClass():void {
    // run for one time before all test cases
    }

    [AfterClass]
    public static function runAfterClass():void {
    // run for one time after all test cases
    }

  4. Exception Handling
    Test metadata can also have an expects parameter. The expects parameter allows you to indicate that a given test is expected to throw an exception. If the test throws the named exception it is considered a success, if it does not, it is considered a failure. This prevents us from having to write tests wrapped in a try block with an empty catch.
    [Test(expects="flash.errors.IOError")]
    public function doIOError():void {
    //a test which causes an IOError }
    Or
    [Test(expects="TypeError")]
    public function divisionWithException():void {
    simpleMath.divide( 11, 0 );
    }

  5. Ignore
    Ignore metadata can be added before any test case you want to ignore. You can also add a string which indicates why you are ignoring the test. Unlike commenting out a test, these tests will still appear in the output reminding you to fix and/or complete these methods.
    [Ignore("Not Ready to Run")]
    [Test]
    public function multiplication():void {
    Assert.assertEquals(15, simpleMath.multiply(3, 5));
    }

  6. Async
    In previous versions of FlexUnit it was difficult to have multiple asynchronous events and to test code that was event driven but not always asynchronous. Fluint provides enhanced asynchronous support including asynchronous setup and teardown, but every test carried the overhead of the asynchronous code to facilitate this feature. FlexUnit 4 allows the developer to specify which tests need asynchronous support using the async parameter. When provided, the async parameter enables the full asynchronous support provided by Fluint for that particular test. When the async parameter is specified you may also specify an optional timeout for the method.
    [Before(async,timeout="250")]
    public function setMeUp():void {
    }

    [After(async,timeout="250")]
    public function allDone():void {
    }

    [Test(async,timeout="500")]
    public function doSomethingAsynchronous():void {
    //Async.proceedOnEvent( testCase, target, eventName );
    //Async.failOnEvent( testCase, target, eventName );
    //Async.handleEvent( testCase, target, eventName, eventHandler );
    //Async.asyncHandler( testCase, eventHandler );
    //Async.asyncResponder( testCase, responder );
    }

    In addition to the async parameter, there are several new Async methods, each of which can also take individual timeouts, handlers and passThroughData.

  7. Hamcrest
    Earlier I alluded to new assertions. Thanks to the hamcrest-as3 project we now have the power of Hamcrest assertions. Hamcrest is based on the idea of matchers which match conditions for your assertions. For example:

    [Test]
    public function testGreaterThan():void {
    assertThat( 11, greaterThan(3) );
    }

    [Test]
    public function isItInHere():void {
    var someArray:Array = [ 'a', 'b', 'c', 'd', 'e', 'f' ];
    assertThat( someArray, hasItems("b", "c") );
    }

    For more information on hamcrest:

  8. Suites
    FlexUnit 4 has a concept of test suites just like FlexUnit and Fluint. Test suites are just a collection of classes that represent tests or even other suites. A suite is defined by the [Suite] metadata. However, in FlexUnit 4, you also need to provide one additional piece of metadata called [RunWith] which instructs the test runner to execute the tests defined below using a specific class. The [RunWith] metadata forms the basis of the extensibility layer which will be discussed shortly.

    [Suite]
    [RunWith("org.flexunit.runners.Suite")]
    public class FlexUnitIn360 {
    public var t1:BasicMathTest;
    public var t2:MyTheory;
    }

    The test cases and any nested test suites, are simply defined as public variables. There is no need to instantiate them or mark them in any other way. FlexUnit's test suite code understands how to recursively parse this class and find the tests.

  9. User Defined Metadata Parameters
    It's often extremely useful to include additional pieces of information which are relevant to your development process when defining tests. So, for example, you might want to provide a detailed description of what a test is supposed to prove. This description could then be displayed if the test fails. Or perhaps you would like to note that a test relates to a give issue number in your bug tracking system. These custom parameters are stored by the framework when encountered during the test and can be used in reporting the success or failure later.

    [Test(description="This one makes sure something works",issueID="12345")]
    public function checkSomething():void {
    }

  10. Theories, Datapoints and Assumptions
    This is probably the largest single new feature as it introduces a whole new way of testing. A developer can create theories, which are 'insights' into the way a given test should behave or over a large, potentially infinite set of values. In other words these are tests that take parameters. The parameters are defined in properties, arrays or can be retrieved from functions or other external sources. A complete description of this feature can and will take a lot of documentation, however, if you are up for reading a bit of theory, this document will introduce the ideas . Here is a quick sample of using these new techniques:

    [DataPoints]
    [ArrayElementType("String")]
    public static var stringValues:Array = ["one","two","three","four","five"];

    [DataPoint]
    public static var values1:int = 2;
    [DataPoint]
    public static var values2:int = 4;

    [DataPoints]
    [ArrayElementType("int")]
    public static function provideData():Array {
    return [-10, 0, 2, 4, 8, 16 ];
    }

    [Theory]
    public function testDivideMultiply( value1:int, value2:int ):void {
    assumeThat( value2, greaterThan( 0 ) );

    var div:Number = simpleMath.divide( value1, value2 );
    var mul:Number = simpleMath.multiply( div, value2 );

    Assert.assertEquals( mul, value1 );
    }

    [Theory]
    public function testStringIntCombo( value:int, stringValue:String ):void {
    //call some method and do something
    }

    In this case, there are datapoints defined by static properties as well as method calls. The framework introspects the datapoints and uses this data combined along with any type specified in the ArrayElementType metadata. This information is used in combination with the theory method signatures to call each theory for each possible combination of parameters.

  11. RunWith
    FlexUnit 4 is nothing more than a set of runners combined to run a complete set of tests. A runner is a class that implements a specific interface and understands how to find, execute and report back information about any tests in a given class. Each time a new class is encountered, FlexUnit 4 works through a list of possible runners and attempts to identify the correct one to execute the tests contained in the class.
    The RunWith metadata allows you to override the default choice made by the framework and specify a different class to act as the runner. This feature allows developers to write entirely new types of runners, with support for new features, which can work directly with the existing framework and report their results back through the same interface.
    In the case of the suite, you are instructing the framework to run this class in a specialized runner that simply finds the correct runner for all of the classes it contains.

    [RunWith("org.flexunit.runners.Suite")]


  12. Adapters
    Using the flexibility of the multiple runners discussed above, the new FlexUnit 4 framework has legacy runners built in for both FlexUnit 1 and Fluint tests. This means that FlexUnit 4 is completely backwards compatible; all existing FlexUnit and Fluint tests can be run, and even mixed into suites with FlexUnit 4 tests without any code changes.

    Further, supplemental runners are in development for FUnit and several other testing projects

  13. User Interface Facade
    Lastly FlexUnit 4 provides a UIComponent testing facade which allows you to add or remove components from the display list. This allows you to accurately test component methods in a real runtime state. This feature creates a foundation for other projects to extend into areas of integration and functional testing without the need for extensive rewrites or modifications.

    [Before(async,ui)]
    public function setUp():void {
    //Create a textInput, add it to the testEnvironment. Wait until it is created, then run tests on it
    textInput = new TextInput();
    Async.proceedOnEvent( this, textInput, FlexEvent.CREATION_COMPLETE, 200 );
    UIImpersonator.addChild( textInput );
    }

If you made it this far, I hope you download the alpha and start playing with it immediately. If you have significant time to devote to serious testing and debugging of the framework, contact me and I will be happy to invite you to the ongoing private beta program.

Stay tuned for some exciting news and, if you have the opportunity, be sure to make it 360|Flex for my session about the new framework. Plus, you never know, 360 is an exciting place, we may just have more to tell you by that time.


source: http://blogs.digitalprimates.net/codeSlinger/index.cfm/2009/5/3/FlexUnit-4-in-360-seconds

post signature

Flex on Google Java App Engine

Yesterday I was presenting at GeeCON (Kraków/Poland) conference where I showed how you can build Flex apps that run and connect to Google Java App Engine. With my first example I did a simple servlet based RESTful service that was returning XML document to my HTTPService on Flex side.

At the end I demonstrated one of my examples that I previously wrote for Zend_Amf but this time I ported it to slightly modified version of BlazeDS that works with GAE. I used instructions from Martin Zoldano blog http://martinzoldano.blogspot.com/2009/04/appengine-adobe-blazeds-fix.html.

You can give it a try, the app is hosted here: http://flexnotes.appspot.com/

Google App Engine is really immazing technology, hopefully it will be able to run BlazeDS without hacking soon ;) I know GraniteDS and WebORB with their latest builds are already supporting it

source: http://www.riaspace.net/2009/05/flex-on-google-java-app-engine/

post signature

Gumbo will be Flash Builder 4

Gumbo will be Flash Builder 4 - but you already know that!

Looks like the proverbial cat is already out of the bag on this, but due to some technical difficulties last night this post never appeared. Alas, it sounds as though the reaction from folks has been positive! So, here's my take on the new name for the next version of Flex Builder.

It's been somewhat challenging to deal with one codename for both the upcoming version of Flex Builder and Flex SDK. We've been referring to both as Gumbo, but as you know the IDE and the framework are really two separate parts of the overall Flash platform. So today we're going to not only clarify these upcoming versions, but also bring some additional clarity to the products' naming.

The next version of Flex Builder will be named Flash Builder 4. It will be the same Eclipse-based IDE with a new name and lots of great new features. This is a name change to the commercial product only, and does not affect the Flex framework or Flex SDK. Flex is the open source framework at the core of the Flash Platform, including Flash Builder and Flash Catalyst.

What does this mean for you as a Flex developer? Just more amazing features in the next release. You're still a Flex developer. A person who uses Dreamweaver to create HTML content for a browser isn't called a Dreamweaver developer; he or she is called an HTML developer. It's the same with Flash Builder; you use the Flash Builder tool to write applications using the Flex framework or pure ActionScript for applications that will run in Flash or AIR. And Flex Builder 3 is still Flex Builder 3.

Of course, for me this release is about a lot more than a clarification on the branding. We have an incredible release on its way with killer features for designer/developer workflow, data centric development, and coding productivity and improved testing and deployment capabilities. You can experience it all for yourself with the upcoming Beta of Flash Builder 4 on Adobe Labs: watch for it this summer. I can't wait to see what you do with these releases! Tim


source: http://www.buntel.com/blog/index.cfm/2009/5/16/Gumbo-will-be-Flash-Builder-4--but-you-already-know-that

post signature

Tuesday, April 21, 2009

ADOBEFAMILY BLOGE LOCKED FROM GOOGLE

ADOBEFAMILY LOCKED FROM GOOGLE


This blog has been locked due to possible Blogger Terms of Service violations. You may not publish new posts until your blog is reviewed and unlocked.




post signature

Monday, April 20, 2009

Lynda.com - Creating a CSS Style Guide: Hands-On Training

alt


Lynda.com - Creating a CSS Style Guide: Hands-On Training

A website is just a website unless itЖs designed with a unique style.
Creating a CSS Style Guide: Hands-On Training highlights the importance
of a CSS style guide, which serves as an interface for the design team
and a communication tool for the client. Laurie Burruss calls on her
background as director of digital media at Pasadena City College and
takes an informative, realыworld approach to this topic. She shows how
Dreamweaver CS4 can be used to develop a coherent siteыwide emotion that
boosts brand identity. The course culminates with building a working web
style guide for professional use. Exercise files and a downloadable PDF
quiz accompany the course.


RS:

http://rapidshare.com/files/222637960/LCSS.part1.rar
http://rapidshare.com/files/222639604/LCSS.part2.rar
http://rapidshare.com/files/222638051/LCSS.part3.rar
http://rapidshare.com/files/222637398/LCSS.part4.rar


post signature