Convert Fist Letter in String to Uppercase With AS3

Tuesday, August 10th, 2010
var Title : String = "bLoG";
Title = CapitalizeFirstLetter(Title);
//Ouput: Blog

function CapitalizeFirstLetter(Str:String):String
{
	var converted:String = (Str.substr(0,1).toUpperCase() + (Str.substr(1,Str.length)).toLowerCase());		

        return converted;
}

Redirecting domains to www with .htaccess file

Monday, August 2nd, 2010

If you have Linux server on your web site, you can easily redirect your “domain.com” to “www.domain.com” with .htaccess file. Every Linux based servers have .htaccess file. However, because of the “.”, it’s a hidden file. So, you can’t view unless you set your ftp client’s “view” property to “show invisible files”. You can turn on “show invisible files” with most of the ftp clients such as FileZilla, Transmit and etc…Even if you enable “show invisble files”, can’t you see the file? So there is an easy way. Just create by yourself in one of the text edit software such as Textedit or Notpad.

1- Open a blank document file with Notepad or Text Edit.

2-

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

**change domain.com and www.domain.com with your domain name.

3- Save the file as .htaccess without any extension.

4- Upload the file to your server with your ftp client

that’s all. Now check your browser and it’ll work. If you type onto your browser “http://domain.com”, it will be redirected to “http://www.domain.com”

Convert AS3 Timeline Codes to Document Class Easily

Friday, July 23rd, 2010

Here is a great tool that you can convert Flash Timeline codes to the document classes. It works perfectly. The only thing you do is, just copy timeline code into the empty textarea below, then put a name for your document class. When you press “submit” button, a php script generates your document class code at once. Thanks to Zevan Rosser for this converter tool. By the way, he is a smart coder. Many of Zevan’s codes are too short, but also functional. You should check his blog also for some kind of unique tutorials.
AS3 Timeline Code to Document Class Converter

With keyword in Action Script 3.0

Monday, July 12th, 2010

I’ve been programming with as3 for two years and everyday I come across with a new stuff :) Today, I was checking a as class and encountered with “with” keyword. There is no magic about “with” keyword. But, it allows you to write cleaner codes. Here is a little example how it works;

with (graphics)
{
	clear();
	beginBitmapFill(_bitmapdata);
	moveTo(0, 0);
	lineTo(pWidth, 0);
        lineTo(pWidth, pHeight);
	lineTo(0, pHeight);
	lineTo(0, 0);
	endFill();
}

50 Powerful Time-Savers For Web Designers

Friday, July 2nd, 2010

the following text and links are taken from http://www.smashingmagazine.com web site.

“Being a web designer is not easy. Not only do we need to have a good understanding about visual design, typography, information architecture, psychology and a plethora of other disciplines; in our work, we need to take care of so many details, so that our job becomes more and more time-consuming, requiring dozens of tools, attention span and an effective workflow for beautiful, timely and functional results.

And this is where small time-savers become handy. Be it a handy checklist, batch installer, dummy image generator or converter from Excel spreadsheet to HTML — all these things can save us a couple of minutes every day, making our work easier and more efficient. And this is why we keep collecting them for Smashing Magazine’s readers. Whether you like lists or not: this one will probably help you find those little nuggets out there that will help you avoid headaches and stress. Below we present useful time-savers for web designers.”

http://www.smashingmagazine.com/2010/06/28/50-powerful-time-savers-for-web-designers/

Flash Event Framework Tutorial

Sunday, June 20th, 2010

http://active.tutsplus.com/tutorials/actionscript/a-close-look-at-the-actionscript-30-event-framework/

How to export pattern from Photoshop as a single jpg file

Thursday, March 11th, 2010

A few days ago, I were working on web-site. I used a photoshop pattern on the background for the design part. My aim was to use background image as a pattern file on web site. So, I could reduce the file size of the web page and avoid from resizing events of user. As is in every fucking project, I stucked on..The problem was, exporting original pattern image from photoshop as single jpg file. Here is my solution :D . Hope it helps some action scripter. Next tutorial is probably realted with “how to make patterned background from a single image file on Action Script”.

1- Create a new file with transparent background

2- Select “Pattern Stamp” tool

3- Select desired pattern from upper toolbar

4- Paint your canvas with “Pattern Stamp” tool. Then click to load “pattern manager” in order to get exact resolution of a single image of the selected pattern.

5- Here is the tricky part :D , to get the resolution, put your mouse cursor onto your pattern and wait about 3-4 seconds, an information bubble will appear which tells you resolution of a single image…

6- Click “Done” and Select; Image-> Canvas Size

7- Set your size and align cropping point to top-left corner of the canvas.

8- Here is our single image file grabbed from a pattern

As3 multiloader class

Tuesday, January 26th, 2010

Loading multiple files with queueloader class in as3. here is a tutorial that how it works..

Mulltiple Image Loading in as3

Thursday, December 17th, 2009

I’ve been working on a Flash web site for a week. It has nearly finished. However, there some loading time problems at the gallery sections.At first, I tried to load thumbnails one by one, then I changed my mind. Because, there are only 8 thumbs at one time that will be loaded. So, it’s better to load these 8 images at one time and make a single loader. I encountered with Arthur Debert’s awesome as3 class which is called Bulk Loader. Bulk Loader is totally designed for multiple loading purpose. By the way, thanks to  him for his class. I want to share this wonderfull class with you. I have no time for a tutorial. At this point, I can recommend you to check Nick Handerman’s post about this multiple loading issue. Thanks to Nick for his tutorial and source files.

Embedding Swf file with SWFObject

Monday, December 14th, 2009
Get Adobe Flash playerPlugin by wpburn.com wordpress themes