Wednesday, November 08, 2006

The best quality Flash

Recently stumbled upon a good piece of FYI at Quality, by default, is set to quality="high" in Flash. Setting the quality to "best" is a good allows even higher quality to be used. Especially for bitmapped images, this quality difference upgrade can get rid of aliasing, jagged edges, when your images are scaled or rotated.

<param name="quality" value="best">
<embed quality="best">

Monday, October 30, 2006

Using MVC in Flash

MVC (Model-View-Controller) is a very useful programming design pattern in Flash development, but as experienced programmers know, its integration varies from implementation to implementation and programmer to programmer especially because the Flash community is such a diverse one of designers who program and developers who design.

MVC is great in small applications but large application require a programmer to be flexible and practice some ingenuity. Modified approaches such as including abstraction layers for application specific logic keep the MVC architecture cleaner and leaner.

Basic Concept
Model - Creates a programming abstraction for an applications data.

View - Inputs/Outputs an application's data. The model-view interaction allows data to have centralized management.

Controller - Processes data received from inputs and translates data to allow integration with model.

Monday, July 10, 2006

Enter the scene ActionScript 3.

Enter the scene ActionScript 3.
ActionScript 3 seems to be the talk of the town these days in the Flash community. FlexBuilder 2 and the alpha version of Flash 9 Professional are out and great changes have been made to the ActionScript 3 language including runtime debugging and a host of changes to the ActionScript programming model and the Flash API.

Event Listeners.
AS3 incorporates a stronger event handling model over the previous AS2. This new event model has been consistently integrated into all of the built in objects in Flash 9 and includes triggers for changing the default behavior for some previously internal events. One of the strongest improvements is the ability to run event listeners in the scope of an object other than the event dispatching object. Another strong improvement is the ability to create weakly referenced Listeners, allowing less error prone clean up and better garbage collection.

Regular Expressions.
Of course another great improvement is the implementation of a regular expression engine. Regular expressions allow text searching and will enable better validation. Complex text applications will be much easier to write and more efficient.

AS3's new method for handling XML, dubbed E4X is much cleaner as opposed to the previously verbose in the previous approach for handling XML. E4X's approach is consistent with ActionScript's method for accessing objects and properties.

External API.
AS3 now provides a replacement for the fscommand, an external API in the form of a class called ExternalInterface, with which to access the container hosting Flash something previously implemented using a host of solutions varying across browsers, platforms and environments.

Overall, I've only graced over the surface of the new Flash API but I am excited. Good things to come, I can guarentee it.

Friday, January 06, 2006

Debian 3.1 Dell d800 Wireless

For the Intel® PRO/Wireless 2200BG Driver for Linux (e.g. - ipw2200). Add to your /etc/apt/sources.list

deb stable main non-free contrib

Remember to run the update:
# apt-get update

Add a couple of packages. I upgraded my kernel to 2.6.8-2 through the Debian package.

# apt-get install kernel-headers-2.6.8-2-686
# apt-get install kernel-image-2.6-686
# apt-get install dhcp3-client

Set it to watch all interfaces using the keyword "auto". Set it to watch hotplug devices "all". Also in /etc/network/interfaces make sure only lo is brought up.
# apt-get install ifplugd

# apt-get install wireless-tools
# apt-get install ipw2200-source

Put your firmware in /usr/local/lib/firmware. Grab the firmware from here:

Extract the ipw2200 driver in /usr/src

# tar -zxvf ipw2200-source.tar.gz
# cd modules/ipw2200/driver
# make KSRC=/usr/src/kernel-headers-2.6.8-2-686 install
# depmod -a
# modprobe ipw2200

Thursday, January 05, 2006

Debian 3.1 on Dell d800

I just got Debian 3.1 Sarge on my Dell d800. The problem was my wide screen display it just wouldn't take. I had to install the Nvidia drivers and edit the XF86Config-4 file.

XF86Config-4 (WSXGA laptop screen):

Section "Monitor"
Identifier "Generic Monitor"
HorizSync 28.0 - 107.0
VertRefresh 30.0 - 130.0
ModeLine "1680x1050" 147.1 1680 1784 1968 2256 1050 1051 1054 1087 +hsync +vsync
ModeLine "1600x1024" 198.8 1600 1712 1888 2176 1024 1027 1030 1075 +hsync +vsync
ModeLine "1440x900" 130.0 1440 1452 1572 1896 900 901 904 937 +hsync +vsync
ModeLine "960x600" 60.0 960 968 1048 1264 600 601 603 625 +hsync +vsync
Option "DPMS"
... And of course ...

Modes "1680x1050" "1600x1024" "1440x900" "800x600" "640x480"

My d8000 is equipted with the GeForce FX Go5650. You can get the you can grab the Nvidia driver,, from the Nvidia site. It's the Linux IA32 driver.