Archive for January, 2007
Creating custom classes
A simple class example
class Cube
{
private var length:Number;
private var height:Number;
private var width:Number;
//constructor
function Cube ( length:Number, height:Number, width:Number )
{
this.length = length;
this.height = height;
this.width = width;
}
function getVolume( ) : Number
{
return length * ( height * width);
}
} //end class
//create a Cube object
var myCube = new Cube( 3,3,3);
Now, you can access or set properties using the dot syntax
myCube.length = [...]
Filed under: Flash! | Leave a Comment
Using the Color class
To use a color class, you must first create an instance using the constructor. It takes in 1 paramater: the movie clip it should modify.
var myCol:Color = new Color( shirt_mc );
myCol.setRGB(0x FF3300); //Accepts in a hex value
E.g. btn.onRelease = function ( )
{
var R:Number = random(256); //generates values between 0 to 255
var G:Number [...]
Filed under: Flash! | 2 Comments
Built-in Classes
Capabilities Class (Top level)
This class contains information about the user’s computer, such as screen resolution and whether it can play sounds.
E.g. var horizontalScreen:Number = System.capabilities.screenResolutionX;
ContextMenu Class (Instances)
It is the menu seen in Flash player when you right-click. Used in conjunction with instances of the ContextMenuItems class to create customized menus.
E.g. //creates an instance of myCustomMenu
var [...]
Filed under: Flash! | 1 Comment
Flash Basics 101
OK, while what I’ve written here might not be really the basics for Flash, I’ve decided to make my virgin post a personal one. It covers syntaxes and structures which I tend to look them up a lot.
The Conditional (tenary) Operator
var myMood:String = ( money > 1000000 ) ? “Happy” : “Sad”;
which is equivalent [...]
Filed under: Flash! | Leave a Comment
Ayaka : special footage
Part 1 of 3
Part 2 of 3
Part 3 of 3
Filed under: 絢香 Ayaka | Leave a Comment
Kanashii Story
Work & Personal commitment being the roots of my troubled mind, or at least to say, for the past few months. They soon found ways to overpower me.
Depression got into me last weekend. Oh yes, and did I mention that I had some rather unpleasant experiences with people last week.
It has been quite some time [...]
Filed under: Daily Life entries | Leave a Comment
Ayaka – First Message
First Message
Release 01.11.2006
Please bear in mind that these songs are for evaluation purposes only. Please purchase the original CD to support the artist.
Tracks
01. Start to 0 (Love)
02. Real voice
03. Sha la la
04. ブルーディズ (Blue days)
05. I believe
06. Stay with me
07. Melody
08. 君のパワーと大人のフリ (Kimi no PAWA- to Otona no Furi)
09. 永遠の物語 (Eien no Monogatari)
10. 時を戻して (Toki [...]
Filed under: 絢香 Ayaka | Leave a Comment
Saving Youtube videos
1) Go to YouTubia.com
2) I have an Ayaka vid here, [http://youtube.com/watch?v=nPM-XFu3bDQ]
3) Copy and paste into the textfield where you see a “Download” button next to it.
4) The downloaded file (getvideo) does not have a file format. To set the file format,
¬ Go to [My Computer] -> [Tools] -> [Folder Options ...]
¬ Hit on [View] tab, [...]
Filed under: Tip bits | Leave a Comment
Ways to get your blog noticed
Here are some simple things you can do to get your blog noticed quickly:
Submit your blog to all of the directories listed on Pingomatic which allows you to ping a few services all at once.
Submit your blog to Pingoat which allows you to ping over 50 blog ping services all at once.
Sign up for an [...]
Filed under: Tip bits | Leave a Comment
Workaround for SendSpace
Should you encounter problems like the one below,“Sorry, the free service for your country is unavailable. Please try later or upgrade to sendspace Max™ to get instant, fast downloads without the country download limit.”
Here is the trick to get direct link from sendspace in just 4 steps works 100%
1. Go to http://www.hideu.net
2. Paste sendspace url [...]
Filed under: Tip bits | 3 Comments