Template Categories

templates categories Automobiles
templates categories Business
templates categories CSS Templates
templates categories E-Commerce
templates categories Education
templates categories Fashion
templates categories Greeting Cards
templates categories Hotels
templates categories Jewelry
templates categories kids
templates categories Models
templates categories Music - Films
templates categories Night Club
templates categories Real Estate
templates categories Restaurant
templates categories Software
templates categories Sports
templates categories Travel
templates categories Web-design
templates categories Wedding

Tutorial Categories

tutorial categories AJAX
tutorial categories CSS
tutorial categories Dreamweaver
tutorial categories Flash
tutorial categories FTP - File Transfer
tutorial categories HTML Emails
tutorial categories Javascript
tutorial categories Microsoft Excel
tutorial categories Microsoft Windows
tutorial categories Microsoft Word
tutorial categories MySql
tutorial categories Photoshop
tutorial categories Php
tutorial categories Windows Movie Maker
tutorial categories Xhtml / Html

Flash - Create old pixel effect

BELOW IS THE EXAMPLE OF WHAT WE ARE GOING TO CREATE.
In this tutorial I will show you how to create pixel effect
Create a new flash document and set the dimensions as per your image.
Create a new symbol (Ctrl+F8), select movieclip from the options box and name it image_MC. You will now be inside the movieclip.
Add your image. So go ahead and import your image to stage and centerize it.
On the main stage select the movieclip, press (F9) to open the actions panel and add the following script.
onClipEvent (load) {
numY = 40;
numX = 200;
numPerFrame = 120;
currSquare = 0;
choices = new Array();
for (i=0; i<numX*numY; i++) {
choices.push(i);
}
_root.createEmptyMovieClip("mask", 0);
this.setMask(_root.mask);
function drawSquare(x, y) {
with (_root.mask) {
moveTo(x, y);
beginFill(0x000088);
lineTo(x+5, y);
lineTo(x+5, y+5);
lineTo(x, y+5);
endFill();
}
}
}
onClipEvent (enterFrame) {
if (currSquare<numX*numY) {
for (i=0; i<numPerFrame; i++) {
j = random(choices.length);
t = choices[j];
choices[j] = choices[choices.length-1];
choices.pop();
x = t%numX;
y = Math.floor(t/numX);
drawSquare(x*5, y*5);
}
currSquare += numPerFrame;
this._alpha = currSquare/(numX*numY)*100;
}
}
Hope you enjoyed this small tutorial on how create pixel effect in flash
travel to india - kerala travel to india - Goa forums gatewa2internet ... myspace & home page gatewa2internet ... myspace & home page