flashtr.com

  Component, ActionScript, OOP, Flash 9, CS3, Flash animasyon, buton, movie, grafik, google banner, google optimizasyon, MovieClip(root), xml
Site İçi Arama
flashtr.com Facebook'ta

Ana Sayfa >  Fundamental of Action Script > What is the Function? How can you use functions?

What is the Function? How can you use functions?

10.03.2011 11:11:11
What is the Function? How can you use it?

The Function is a duty you want to run. When you click a button (MouseEvent) or a period of animation’s the time (TimerEvent) the function can work. You can give more than one value for the function.

You can write a standard function as follows;

function nameOfFunction ():void
{
    trace("Hello")
}

nameOfFunction ()


if you want to send a value or values inside of the function you should determine type of  the value (String, Number or MovieClip).

function nameOfFunction (newX:Number):void
{
    trace(newX)
}

nameOfFunction (25)


if you want to calculate things (String or Number) to get back the result you should determine the class of the result instead of “void”.

function nameOfFunction (newX:Number):Number
{
    var newNumber = newX * 3
    return newNumber;
}

var figure:Number=nameOfFunction(25)
trace(figure)



"Aradığım burada değil" diyorsanız, sormaktan çekinmeyin.
Adınız
Soyadınız
E-Posta *    
Soru *  

Flash CS5 (1)

Fundamental of Action Script (1)

Temel Bilgiler (1)

Nerede ve Ne zaman Flash (3)

Flash’da ne nedir? (12)

Action Script 3.0 (63)

Flash CS3 (6)

XML (4)

Kitaplar & Eğitim Cd’leri (3)

Pdf Dökümanlar (1)

Flash Video - flv (1)

Hata Sebepleri (3)

Flash Siteler (2)

Grafik Dünyası (25)

Google (4)





Actin Script 3.0 nedir?  

google banner boyutları ve özellikleri  gadget banner kullanımı  flashVars'ı nerede nasıl kullanabilirim  clicktag kullanımı

movieClip renk değiştirme / tint  internet explorer (ie)'de hata verme sebebi   png ile jpeg/jpg arasındaki fark




Copyright © 2009 FLASHTR
Tüm hakları FLASHTR.com'a aittir. Kaynakların yazılı izni olmadan kullanımı yasaktır.

admin@flashtr.com