Animation, Actionscript and let us flash.

Powered by Blogger.

Blog Archive

Search for any Flipkart item.

3

Sunday, 17 May 2015

Code here:


import flash.events.Event;

list.addEventListener(Event.CHANGE, func);
function func(e:Event)
{
ul.source = e.target.selectedItem.data;
}

Sunday, 21 December 2014

How to make a simple paint application in Adobe Flash - 1

 

How to make a simple paint application in Adobe Flash - Part 2


How to make a simple paint application in Adobe Flash

In this tutorial I will be showing you how to make a simple paint app in Adobe Flash. For making this simple paint application in flash you need to make 2 files for that.First file will be the flash file titled as 'name_of_file.fla' and the second file will be 'file_name.as'. Here fla stands for flash and as stands for actionscript. I have made 2 files available to you as ' paint app.fla ' and ' Ellipse.as '.You can download the file with the links given below.But it will be awesome if you write the code yourself and understand it first by watching these two videos.


Code for paint_app.fla file

import flash.events.MouseEvent;

stage.addEventListener(MouseEvent.MOUSE_DOWN, beginDraw);

function beginDraw(e:MouseEvent)
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, startDraw);
}

stage.addEventListener(MouseEvent.MOUSE_UP, endDraw);

function endDraw(e:MouseEvent)
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, startDraw);
}


function startDraw(e:MouseEvent)
{
var drawing:Ellipse = new Ellipse;
addChild(drawing);

drawing.x = mouseX;
drawing.y = mouseY;


}


Code for Ellipse.as file

package  {
import flash.display.MovieClip;
public class Ellipse extends MovieClip{

public function Ellipse(w:Number = 10, h:Number= 10, color:Number = 0x00FF00) {

graphics.beginFill(color);
graphics.drawEllipse(0,0,w,h);
graphics.endFill();

}

}

}

Download links will be available soon. (Site is in Beta mode)

Saturday, 20 December 2014

First Hands on Windows 10, Tips and Tricks! Whats New (Beta mode)

 

Windows 10 will be releasing soon, here is the Preview version of windows 10 and some of the amazing features and tips and tricks on what's new in it.

Hot keys in Command Prompt

To select all - CTRL + A
To find in console dialog - CTRL + F



















Thursday, 13 November 2014


Amazing Easter Eggs and Ok Google Now voice commands


The Blog is in Beta mode.

"Who Are You?"
Make Me a Sandwich"
"Lions, and Tigers, and Bears..."
What's Your Favorite Color?"
 "Beam me up, Scotty!"
"Who's on First?"
What is the Airspeed Velocity of an Unladen Swallow?"
"What is the Nature of the Universe?"
"Up, Up, Down, Down, Left, Right, Left, Right"
"When Am I?"
"What Does The Fox Say?"



    Searching for "askew" or "tilt" using Google will cause the search results to be displayed at a slight angle.
    Searching for "Atari Breakout" and then clicking Images will start a game of Breakout using the image results as bricks. When one wins it searches something else randomly and plays again.
    Searching for "Do a barrel roll" or "z or r twice" will cause the search result to rotate 360 degrees when showing. This is often connected with Nintendo's Star Fox games.
    Searching for "zerg rush" causes a bunch of Google "o"s to attack the result page and eventually destroy it; the user can, however, fight back by tapping on them. After destroying the results, the "o"s then arrange themselves into two capital 'G's, representing the acronym for "good game".
    Searching for "Bletchley Park" will cause the title of the info card to appear as if it was being deciphered by Google. This is a reference to the fact that Bletchley Park, in Milton Keynes, Buckinghamshire, was the central site of the United Kingdom's Government Code and Cypher School (GC&CS), which during the Second World War regularly penetrated the secret communications of the Axis Powers.
    Searching for "kerning" will increase the spacing between every letter in the word kerning by 1 pixel whenever it shows up in the search results page. Conversely, searching for "keming" (a common example of unfortunate kerning) will decrease the spacing between letters of the word when it shows up in the search results page.
    Searching for any actor's name followed by "bacon number" returns the Six Degrees of Kevin Bacon value.
    Searching for "Recursion" will result in Google asking if the user meant "Recursion."
    Searching for "Conway's Game of Life" produces the Life simulation described by Conway. If you look closely, you can see it spell Google.
    Searching for "how much wood would a woodchuck chuck if a woodchuck could chuck wood" using "Search by voice" produces a vocal response of another tongue twister "A woodchuck would chuck as much wood as a woodchuck could chuck if a woodchuck could chuck wood".
    Searching for "Kwanzaa" returns a green, Kwanzaa background. This easter egg is no longer available
    Searching for "Festivus" places a Festivus pole in the left side of the window.
    Searching for "Santa Claus" or "Christmas decorations" places an animation of a snowy landscape with Santa Claus and his reindeer riding across the top of the search results. On Christmas Eve, a map will appear where Santa is currently located.
    Searching for "anagram" results in the search engine asking "Did you mean: nag a ram" ("nag a ram" is an anagram of the word "anagram")
    Searching for "Google in 1998" results in a 1998 Google search screen appearing in place of the current Google search screen. Clicking on the first result will bring the user to the Wayback Machine's version of Google from 1998. However, clicking I'm Feeling Lucky will go to a page showing google's history in depth.
    Searching for "Google Pacman" has a playable version of the game appear on the screen.
    Searching for the film star Jason Isaacs returns "Hello to Jason Isaacs", a reference to the BBC Radio 5 live film review program with Mark Kermode and Simon Mayo.
    Searching 'who are you' using the voice recognition search causes the voiceover to say 'searching for oneself may take a lifetime. But a good place to start is classic rock.'
    Searching for "beam me up, Scotty" using voice search produces a vocal response that says "I cannot do it, Captain, I do not have the power." in an impersonation of the character Mr. Scott from Star Trek.
    Searching for "What does the fox say?" using voice search produces various vocal responses from the song of the same name by Ylvis.[1]
    Searching for "same sex marriage", "Drag queen" or "gay rights" will cause the navigation bar to turn into rainbow polygons.
    Searching for "Webdriver torso" will cause the google logo to change to look like a webdriver torso video.
    Searching for "marquee html" or "<marquee>" will cause the number of results caption to scroll sideways continuously, similar to the effect of the marquee HTML element.
    Searching for "blink html", "<blink>", or "blink tag" will cause bold text in the search results to repeatedly flicker between visible and hidden, similar to the effect of the blink HTML element.

Typing Google Pirate and then clicking 'I'm feeling lucky' causes Google to uses pirate words.

Wednesday, 8 October 2014

How to make Cyanide and Happiness Character in Adobe Flash

How to export Flash files as movie and quick time error fixed

How to animate using ActionScript Tweens and Easing Class




Tween Class Code for the 15th Tutorial - 

import fl.transitions.Tween;
import fl.transitions.easing.*;
var Tween_rec:Tween = new Tween (rec, "alpha", None.easeOut , 1 , 0 , 2, true);


// Generally var Tween_variable = new Tween (object_name, "property", None.easeOut, startpos, endpos, number_of_secs, boolean=true or false).

A total of 7 arguments.
Try for yourself.

Life