Wednesday, November 30, 2005

Flex 1.5 - UPS Map Package Tracker by Rich Tretola

Using the new Yahoo maps beta Rich created a UPS package tracking application just in time for the holiday season. Flex uses web services with ColdFusion to handle the data and Yahoo Maps Flex API to render the address results to a map. Nice work Rich and Yahoo!


Click to open the Flex 1.5 application. Requires Flash® Player 7.




This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Tuesday, November 29, 2005

Flex 2 - SWF Over Socket by Theodore Patrick

This example provides a Flex 2 application and server for loading content directly into Flash Player 8.5 bypassing the browser cache by using flash.net.Socket directly. The content is rendered directly into the DisplayList through Loader.loadBytes.


Open Example SWF in a New Window

Obviously it is just a matter of time before AS3 Bytecode decompilers are available. Although there are very few options available, this new swf delivery model makes it much harder to obtain the actual SWF bytecode. This example loads a SWF, JPG, GIF, directly into the DisplayList through the Loader.loadBytes method. As the content is received as a ByteArray, it can be compressed with ZLib or encrypted. The decompiler will have to be able to understand your loading process and encryption just to be able to get access to your swf bytecode.

This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Monday, November 28, 2005

800 Free Licenses for MMUG Managers

Working with Macromedia, IFBIN released 800 Free Educational Licenses of "Flash By Example" and "Flex By Example" to Macromedia User Group (MMUG) Managers worldwide. The licenses will assist MMUG managers by providing the latest source examples of Flex and Flash for presentation and educational use. At IFBIN, we are very proud to support Macromedia User Groups and the individuals that maintain them. Personally, Macromedia user groups helped me learn Macromedia technologies and supporting their ongoing effort is important to IFBIN and to the Flash development community.

Macromedia User Group Information

If you have yet to participate in a Macromedia User Group, I strongly encourage you to join a group in your area. You will learn allot and make invaluable contacts within your local development community.

Special thanks to Edward Sullivan at Macromedia for working with IFBIN to provide these licenses for MMUG Managers.

Regards,

Theodore Patrick
IFBIN Founder and CEO

Friday, November 25, 2005

Free Friday - Flash - System.setClipboard by Peter Elst

This is a jewel of a method but many seem to miss it. System.setClipboard allows you to add a string onto the system clipboard from ActionScript. Seamless system integration via the clipboard. You can't beat that!


Open Example SWF in a New Window

This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Wednesday, November 23, 2005

Flex 1.5 - mx.charts.LineChart by Darron Schall

Darron created this example using the mx.charts.LineChart component. It provides 3 LineChart examples that provide comprehensive coverage of the LineChart component in Flex 1.5. IFBIN will be covering all chart controls in this series of examples.


Open Example SWF in a New Window


This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Tuesday, November 22, 2005

Flash 8 - BitmapData Drawing Functions by Keith Peters

These 13 examples provide drawing functions typical in most graphic tool sets specifically for drawing to BitmapData objects. This set includes functions for creating Circles, Curves, Lines, Ovals, Rectangles, Squares, Filled Circles, Filled Ovals, Filled Polygons, Filled Rectangles, Filled Squares and usage examples for all functions. The functions make it easy to draw data interactively into BitmapData objects and allow you to work at a higher level with BitmapData objects.


Open Example SWF in a New Window

Bitmap Circle
Bitmap Curve
Bitmap Curve Through Point
Bitmap Line
Bitmap Oval
Bitmap Polygon
Bitmap Rectangle
Bitmap Square
Bitmap Filled Circle
Bitmap Filled Oval
Bitmap Filled Rectangle
Bitmap Filled Square
Bitmap Filled Polygon

Amazing work Keith!

These examples are available with full source and documentation within Flash® by Example.

More to come.

Ted :)

Monday, November 21, 2005

Free Friday (Late) - Flex 2 - Comet Echo Binary Socket Server by Theodore Patrick

Comet Echo is the first binary socket server available for use with Flex 2 and Flash Player 8.5. The server is useful for protocol development, and chat based applications. The server supports all features of flash.net.Socket including AMF and ZLIB.

Any data sent to the echo server is broadcast to all connected clients on port 8000. Simply run the server, and open the modified "Zorn Chat" application within to see it working locally. The client will communicate over flash.net.Socket broadcasting AMF binary at the server. You can write your own clients for "Comet Echo" using Flex Builder 2 and AS3.


I presented at Spark Europe on flash.net.Socket and used this server in my presentation. I will be posting both of my presentations with audio later this week. Somewhere between 2 sessions and 2 panels, I found myself with very little time to post Thursday or Friday.

This example is available for free within Flex® by Example.

More to come.

Ted :)

Wednesday, November 16, 2005

Flex 2 - FlashVNC Alpha 1 by Darron Schall

FlashVNC provides a full VNC client for Flex 2. The client implements RFB protocol allowing Flex 2 to connect to any compliant server. The client support screen sharing and screen control over TCP/IP connections. The FlashVNC source code also contains a full DES encryption class.

Here are some images of FlashVNC working:
Flash VNC using NotePad
Flash VNC using MineSweeper
Flash VNC using Control Panel
Flash VNC using Explorer

Full Source code Available to IFBIN Flex By Example Customers

This example will be showcased at Spark Europe in Amsterdam by Theodore Patrick at the following sessions:

11/17/2005 - "Managing the DisplayList in AVM2/AS3"
11/18/2005 - "flash.net.Socket for Multi-user Applications in Flex 2"

congratulations to Darron Schall on a job well done. The quality of the development work on this IFBIN project was beyond the call. Darron and I discussed this project over a year ago at Flash in the Can in that it might be feasible. To see it working well is quite a milestone for the project and for the Flash Platform.

Download the FlashVNC Client SWF

The FlashVNC Client must be run within the Standalone Debug Flash Player 8.5 available within the Flex Builder 2 Alpha. All testing and development of FlashVNC was done using the TightVNC Server. It is advised to not to use a VNC Server on a loopback IP address. Flash VNC is an alpha release and will be progressively updated to support faster RFB protocol stacks and eliminate bugs.

This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

FLASHVNC DISCLAIMER:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Tuesday, November 15, 2005

Flex 1.5 - MultiLine TabNavigator by Darron Schall

By default, a TabNavigator only draws tabs on a single row across. This example shows you how to create the effect of a TabNavigator having multiple rows of tabs with a little bit of scripting magic.


Open Example SWF in a New Window


This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Monday, November 14, 2005

Flex 2 - mx.rpc.soap.mxml.WebService by Simon Barber

This example provides a currency converter in Flex 2. The example uses the Current Converter web service at http://www.webservicex.net to convert currencies in a simple form. Also welcome Simon Barber to Flex By Example as an author!


Open Example SWF in a New Window


This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Friday, November 11, 2005

Free Friday - Flash 8 - flash.filters.BevelFilter.angle by LordAlex Leon

A simple usage example for the property flash.filters.BevelFilter.angle. This example isolates the use of the BevelFilter and the angle property. It is part of our effort to provide coverage of the entire Flash 8 API. Enjoy this Free Example!


Open Example SWF in a New Window



This example is available for Free with full source and documentation within Flex® by Example.

More to come.

Ted :)

Thursday, November 10, 2005

Flex 2 - Spam 'O' Matic by Guy Watson

Long ago IFBIN created a set of tools for customer acquision called Spam'O'Matic. Although never used, the tools make use of Regular Expressions in Flash Player 8.5 to collect email addressed from web pages. Since our evil plan was foiled yesterday, we are releasing this example to our subscribers.

We are kidding around! Lets get this straightened out:

1. We never use Spam of any kind.
2. We only blog examples.
3. 1 Example is Free every Friday.

New Rules for IFBIN Blog: 1 post per weekday!

Now back to our regularly scheduled example:

This example uses URLLoader to load the html source of the specified url and then uses regular expressions to parse out any email addresses found in the page, to display them in a list.


Open Example SWF in a New Window



This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Wednesday, November 09, 2005

Flex 2 - Why the Calculator Examples are Invaluable

Ralf created two calculator examples to show the differences in using MXML vs ActionScript for the view of his application. The difference in these two apps is the single biggest stumbling block in learning Flex development.

The key is that MXML is a toolset that allows for easy extension either through MXML or via ActionScript directly. MXML simplifies the layout once you grasp how the code binds together to make a working application. Or if you prefer you can always use ActionScript instead.

Hopefully these two examples will make the gap between ActionScript and MXML seem very obvious and allow you to transition into the world of Flex development.

Ralf, thanks for 2 invaluable examples using Flex.

Cheers,

Ted ;)

Flex 2 - Calculator View As ActionScript by Ralf Bokelberg

This example creates a little Calculator in AS3. The gui of the Calculator is created via ActionScript, so the main mxml file named CalculatorApplication.mxml is nearly empty. All it does is providing access to the Flex framework and calling the public static main method of CalculatorMain to start the application.


Open Example SWF in a New Window


This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Flex 2 - Calculator View As MXML by Ralf Bokelberg

This example creates a little Calculator in AS3. The gui of the Calculator is specified in a custom MXML component named CalculatorView. The main mxml file named CalculatorApplication.mxml is nearly empty. All it does is providing access to the Flex framework and calling the public static main method of CalculatorMain to start the application.


Open Example SWF in a New Window


This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Tuesday, November 08, 2005

Flex 1.5 - Complex Path Label Renderer by Darron Schall

This example demonstrates how to use the cell renderer API to "dot down" into a deeply nested object and display it's value in a list.



Open Example SWF in a New Window


This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Monday, November 07, 2005

Flex 1.5 - Using LuminicBox FlashInspector with Flex by Theodore Patrick

This example uses the LuminicBox FlashInspector within a Flex Application. LuminicBox uses LocalConnection to send Flash Objects to the FlashInspector swf file. The example provides integration with Flex 1.5 allowing you to debug Flex using just Flash Player.

Special credit to Pablo Costantini for creating LuminicBox FlashInspector! Great work Pablo, I use this daily with Flex development.



Open Example SWF in a New Window


This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Thursday, November 03, 2005

Free Friday (Early) - Flash - Camera.get by Stefan Richter

Today's Free Friday example is parts of a larger series of simple usage examples in Flash By Example. This example provides an example using the Camera Object and the Camera.get method.

Open Example SWF in a New Window

This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Flash 8 - Icon Engine 1.5 extends BitmapData by Theodore Patrick

This example ports the Icon Engine format to use BitmapData in Flash Player 8. Using BitmapData, the rendering of icons is over 60 times faster and the icons are reusable without rendering.



Open Example SWF in a New Window


This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Wednesday, November 02, 2005

Flex 1.5 - JXLPanel - MDI in Flex by Jesse Warden

This example presents a custom Panel supporting the Multiple Document Interface MDI model. The custom panel supports minimization and collapse along with custom icons. This example also shows use of mx.managers.PopUpManager.



Open Example SWF in a New Window


This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

Tuesday, November 01, 2005

Flex 1.5 - Property Binding and Canvas Positioning by Theodore Patrick

This example uses property binding to position mx:Buttons on an mx:Canvas. As the mx:Buttons x and y property binding targets change in value as the canvas is resized, the buttons will be repositioned dynamically on the mx:Canvas.


Open Example SWF in a New Window



This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)