Diwali is a festival of Lights. On the precious moment of Diwali I wish you Happy Diwali and I pray that you get all your endeavors fulfilled as well as you get lots of gifts and sweets this Diwali.
Friday, October 28, 2011
Wednesday, September 21, 2011
Animated background for your movie project.
Flash is not only for the web. Using flash you can create application for broadcast and for third screen like mobile, iPhone and android. In this post I will show you some of the animated background which and all I was created during my learning time. For this animation I am not use any action script. Animation is timeline base.
If you want to see the story boarding for the animated back ground, then feel free to click this link. Click here to see the story boarding.
A city side animated scene :
A rainy day evening :
A scene from mountain :
A scene from river side :
A full moon day evening :
Final animation from my you Tube channel:
If you want to see the story boarding for the animated back ground, then feel free to click this link. Click here to see the story boarding.
A city side animated scene :
A rainy day evening :
A scene from mountain :
A scene from river side :
A full moon day evening :
Final animation from my you Tube channel:
Sunday, August 28, 2011
A simple photo gallery using Array and looping functionality.
Creating a slide-show is best practice for learn Array,
condition and looping structure. If you are familiar with all those
then you can do so many thing, inside action script.
This project is very straight-forward. I am creating a series of thumbnail images for the click event and another series of large image to display to the main content area. Very beginning I am hiding all the large images using a property called visible. And I am storing all the thumb images and the large images instance name inside two array called "imageArray" and "thumbArray". And I am looping inside the array using for loop statement.
This is a very simple example, If you are having little bit of AS 3.0 knowledge.
So, Hope you will get this post helpful. Feel free to copy the code for your experiment and have fun.
Example:
Source sode :
import flash.events.MouseEvent;
var imageArray:Array = [one_mc,two_mc,three_mc,four_mc,five_mc,six_mc,seven_mc];
var thumbArray:Array = [thumbOne_mc, thumbTwo_mc, thumbThree_mc, thumbFour_mc, thumbFive_mc,
thumbSix_mc, thumbSeven_mc];
//This for loop is for the mouse event.
//If you are repeating one type of function again and again, then
//loop structure is the right choice. So, you can easily itirate each of then very easily.
for (var i:Number = 0; i < thumbArray.length; i++) {
thumbArray[i].addEventListener(MouseEvent.ROLL_OVER, onOver);
thumbArray[i].addEventListener(MouseEvent.ROLL_OUT, onOut);
thumbArray[i].addEventListener(MouseEvent.CLICK, onClick);
thumbArray[i].mouseChildren = false;
}
function onOver(evt:MouseEvent):void {
evt.target.gotoAndPlay("rollOver");
evt.target.buttonMode = true;
}
function onOut(evt:MouseEvent):void {
evt.target.gotoAndPlay("rollOut");
}
function onClick(evt:MouseEvent):void {
clearPhotos();
var count:Number = thumbArray.length;
var index:Number;
for (var i:Number = 0; i < count; i++) {
if (evt.target.name == thumbArray[i].name) {
index = i;
}
}
imageArray[index].visible = true;
}
//This function is to clear all photo, when the movie will start.
function clearPhotos():void {
one_mc.visible = false;
two_mc.visible = false;
three_mc.visible = false;
four_mc.visible = false;
five_mc.visible = false;
six_mc.visible = false;
seven_mc.visible = false;
}
clearPhotos();
condition and looping structure. If you are familiar with all those
then you can do so many thing, inside action script.
This project is very straight-forward. I am creating a series of thumbnail images for the click event and another series of large image to display to the main content area. Very beginning I am hiding all the large images using a property called visible. And I am storing all the thumb images and the large images instance name inside two array called "imageArray" and "thumbArray". And I am looping inside the array using for loop statement.
This is a very simple example, If you are having little bit of AS 3.0 knowledge.
So, Hope you will get this post helpful. Feel free to copy the code for your experiment and have fun.
Example:
Source sode :
import flash.events.MouseEvent;
var imageArray:Array = [one_mc,two_mc,three_mc,four_mc,five_mc,six_mc,seven_mc];
var thumbArray:Array = [thumbOne_mc, thumbTwo_mc, thumbThree_mc, thumbFour_mc, thumbFive_mc,
thumbSix_mc, thumbSeven_mc];
//This for loop is for the mouse event.
//If you are repeating one type of function again and again, then
//loop structure is the right choice. So, you can easily itirate each of then very easily.
for (var i:Number = 0; i < thumbArray.length; i++) {
thumbArray[i].addEventListener(MouseEvent.ROLL_OVER, onOver);
thumbArray[i].addEventListener(MouseEvent.ROLL_OUT, onOut);
thumbArray[i].addEventListener(MouseEvent.CLICK, onClick);
thumbArray[i].mouseChildren = false;
}
function onOver(evt:MouseEvent):void {
evt.target.gotoAndPlay("rollOver");
evt.target.buttonMode = true;
}
function onOut(evt:MouseEvent):void {
evt.target.gotoAndPlay("rollOut");
}
function onClick(evt:MouseEvent):void {
clearPhotos();
var count:Number = thumbArray.length;
var index:Number;
for (var i:Number = 0; i < count; i++) {
if (evt.target.name == thumbArray[i].name) {
index = i;
}
}
imageArray[index].visible = true;
}
//This function is to clear all photo, when the movie will start.
function clearPhotos():void {
one_mc.visible = false;
two_mc.visible = false;
three_mc.visible = false;
four_mc.visible = false;
five_mc.visible = false;
six_mc.visible = false;
seven_mc.visible = false;
}
clearPhotos();
Tuesday, June 7, 2011
A real world project using mouse over and mouse out Event inside AS 3.0
Events takes responsibility for to do certain things. There are many Events inside Flash like Mouse Event, keyBoard and so many others. Using different type of Event you can create so many thing. For this post, I am using Mouse Event.
In this post I will show you how to create a simple real world project using Mouse Event. If you are creating any project something like this. Then this blog will help you a lot. To see the live preview click here.
This simple project one I created, when I was a AS 3.0 beginner.I gave all instance's name, in my way. So, see the code, modified your own way and Have fun.
source file for the project
In this post I will show you how to create a simple real world project using Mouse Event. If you are creating any project something like this. Then this blog will help you a lot. To see the live preview click here.
This simple project one I created, when I was a AS 3.0 beginner.I gave all instance's name, in my way. So, see the code, modified your own way and Have fun.
source file for the project
Subscribe to:
Posts (Atom)