August 21st, 2008
Problem Summary? One day, I looked through a project converted from java by java2as (a tool used to convert java codes to actionscript codes). I found some interesting codes which looked like the below:
1: label1:
2: while(true)
3: {
4: for each(var j:int in arr)
5: {
6: tracevalue.text += (j.toString()+” “);
7: if(j == 30)
8: {
9: break label1;
10: }
11: }
12: }
Pay attention to the words I marked red. It is interesting, right?
Well, I am eager to share this trick with the others, so I write a demo to show the usage of it
Demo |
Download Full Project
Read the rest of this entry »
Posted in Flash | No Comments »
August 21st, 2008
If you’re a java programmer, you may familiar with JUnit. Today, software testing is becoming more and more important. A good platform needs good testing tools. Now, Adobe release the unit test tool on flex named FlexUnit. So, let’s try it, and gives you a direct-viewing understand.

I’ll suppose the reader, you familiar with Flex and AS 3.0(or AS 2.0), and any knowledge about software testing is unnecessary. This demo can be ran in Flex Builder 3.0.
Download Full Source
Read the rest of this entry »
Posted in Flash | No Comments »
August 21st, 2008
Problem Summary? Once I need to get the host, protocol, port, parameters from a given URL with Action-Script. I googled for a class named HTTPUtil developed by members of flexpasta.com, and got some tips about URLUtil of Flex SDK. However, HTTPUtil is used to resolve information from the URL of the page the SWF file embed in. URLUtil is useful, but a little complex. I need a simple method to resolve a given URL, and use the resolved information directly without extra processing.
Solution Summary: I decide to write a class named URLParser myself to satisfy my requirement using regular expression of action-script.
Demo |
Download Full Project
Read the rest of this entry »
Posted in Flash | No Comments »
August 21st, 2008
Problem Summary? When I compile a project including thousands MXML and AS files with Flex Ant, I got an error message as below displayed in the Console panel of Flex Builder:
- java.lang.OutOfMemoryError: Java heap space
- at java.util.HashMap.resize(Unknown Source)
- at java.util.HashMap.addEntry(Unknown Source)
It seems that the memory usage of my JRE reaches its limitation — as we know, Flex Builder is running in JRE. Here is a simple way to solve this problem. It‘s just changing the preferences settings of Flex Builder.
Solution Summary: There are two useful arguments of JRE to control the memory usage:
- -Xms define the minimum usage of memory by JRE
- -Xmx define the maximum usage of memory by JRE
I just set –Xmx to 1024m to satisfy the usage of compiling such huge Flex project.
Read the rest of this entry »
Posted in Flash | No Comments »
August 21st, 2008
Problem Summary? Once I want to display a series article of Flex performance from InsideRIA(www.insideria.com) in my blog. I recognized that the amount of the articles is increasing. I should keep the links dynamically. However, I am not the provider of the blog system, so I cannot modify the codes to meet my requirement. Luckily, I can embed SWF in my blog articles. So, I just need to develop a simple RSS reader in SWF format.
Solution Summary: I do not want to parse the RSS myself. It’s a hard work to deal with. I tried to find some open source library of RSS parsing in programmed by action script 3.0. Googled for many, I got the syndication library(http://code.google.com/p/as3syndicationlib/) at last.
Use the syndication library to parse Atom and all versions of RSS easily. This library hides the differences between the formats so you can parse any type of feed without having to know what kind of feed it is.
The detailed information will be found in the project home(http://code.google.com/p/as3syndicationlib/). Then, I started to develop my own RSS reader
Demo |
Download Full Project
Read the rest of this entry »
Posted in Flash | No Comments »
August 21st, 2008
A while back I had posted a pack of worn edges on my portfolio site for people to download and use in their designs. Lately, I have noticed that some of them are showing up in designs featured on CSS galleries. Seeing this made me think that they might actually be useful. So, in an effort to make them available to more people, I am posting them here on DesignReviver.
Here are a few examples of how people are using them:
How to Use
The edges are contained in one PNG file. Within Photoshop, you can use it to make a selection of the edge you want, and then copy it into your design. From there you can fill it with a color or texture.
Download Worn and Torn Edges

Posted in Graphics | No Comments »
August 21st, 2008
Photoshop Actions are extremely useful in both saving time as well as learning new features that you may not know. They can be used to help standardize your final project better, cut down on repetitive tasks, and to assist you in a bit of creative inspiration. We have collected a handful of great (and free) downloadable PS Actions in this article and also included a nice tutorial on creating your own Actions.
This is a guest post by Omar the Radwan.
Photoshop Actions Downloads
Additional Photoshop Actions Downloads
Photoshop Actions Tutorial
Posted in Graphics | No Comments »
August 21st, 2008
There is definitely not a shortage of web design blogs floating around the web, and it’s easy to understand why. Web designers can utilize skills that they already have to get a good looking blog up and running with relative ease. Out of these blogs there are a handful that really stand out in terms of useful content.
Here are some of the most useful web design blogs out there. I’ve excluded big blogs like Smashing Magazine and A List Apart, since most web designers, more than likely, already follow them.















Posted in Graphics | No Comments »
August 21st, 2008
CSS is a technology that web designers use everyday, but yet it is something that most struggle with as well. Whether it’s keeping stylesheets for large sites manageable, or creating image effects that are cross browser compatible, there are plenty of things to cause frustration. This article is an attempt to provide you with a few resources that might help you with your CSS woes or introduce you to a few tricks you didn’t know about.
Organization

A detailed and well written post about how to write a well structured CSS file.

Rob Soule of Viget Labs shows you how to organize your style sheets using CSS Edit, a powerful CSS editor built exclusively for the mac.

A set of practical tips for organizing your style sheets.
Tabs and Buttons

A tutorial on creating expandable CSS tabs.

Learn how to create rounded corner buttons with only One Image and One CSS file.


Learn how to create a clean set of buttons with CSS and an icon set.
Working with Images

Decorate your images and photo galleries without editing the source images.

A simple technique for placing text over an image.

Learn how to create a cool resizing thumbnail effect.

Posted in Graphics | No Comments »
August 21st, 2008
Now, that was supposed to be a catchy headline. I hope it was catchy enough to get you start reading this. If you are a beginner willing to learn about Adobe Illustrator, this short video might be kinda revealing for you.
So, as always in my video tutorials, make sure your …


Posted in Graphics | No Comments »