• Home
  • Hakkımda
  • LaydoProxy
  • LaydoUpload
  • Online Kim Var
Blue Orange Green Pink Purple

Archive for the ‘Actionscript’ Category

Oct 22

Actionscript 3 için oldukca basit bir preloading

Apr 24
MovieClip.prototype.vibration = function(staerke) {
        this.onEnterFrame = function() {
                this._x = Math.sin(a)*staerke+100;
                this._y = Math.cos(a)*staerke+100;
                a++>=10 ? a=0 : null();
        };
};
//usage;
mc3.vibration(1);
 
Apr 24

MovieClip.prototype.ZoomDiv = function (pDim, pTempo)
{
        this.onEnterFrame = function ()
        {
                if (this._xscale < pDim - 1 / pTempo)
                {
                        this._xscale = this._xscale + (pDim - this._xscale) / pTempo;
                        this._yscale = this._yscale + (pDim - this._yscale) / pTempo;
                }
                else if (this._xscale > pDim + 1 / pTempo)
                {
                        this._xscale = this._xscale + (pDim - this._xscale) / pTempo;
                        this._yscale = this._yscale + (pDim - this._yscale) / pTempo;
                }
                else
                {
                        this._xscale = this._yscale = pDim;
                        delete this.onEnterFrame;
                }
        };
};
ASSetPropFlags(MovieClip.prototype, "ZoomDiv", 1);

// Usage
mc3.onRollOver = function ()
{
        this.ZoomDiv (200, 6);
};
mc3.onRollOut = function ()
{
        this.ZoomDiv (100, 6);
};
 

Apr 24

Otomatil zoom için prototype

MovieClip.prototype.ZoomAdd = function (pOption, pDim, pTempo)
{
        if (pOption)
        {
                this.onEnterFrame = function ()
                {
                        if (this._xscale < pDim)
                        {
                                this._xscale = this._yscale += pTempo;
                        }
                        else
                        {
                                this._xscale = this._yscale = pDim;
                                delete this.onEnterFrame;
                        }
                };
        }
        else
        {
                this.onEnterFrame = function ()
                {
                        if (this._xscale > pDim)
                        {
                                this._xscale = this._yscale -= pTempo;
                        }
                        else
                        {
                                this._xscale = this._yscale = pDim;
                                delete this.onEnterFrame;
                        }
                };
        }
};
ASSetPropFlags(MovieClip.prototype, "ZoomAdd", 1);

// Useage
mc3.onRollOver = function ()
{
        this.ZoomAdd (true, 200, 6);
        // ZoomIn (true)
};
mc3.onRollOut = function ()
{
        this.ZoomAdd (false, 100, 6);
        // ZoomOUt (false)
};
 

Apr 24

Actionscript ile style verme ve text olusturma Creating TextField by AS

_root.createTextField("newField",1,100,100,300,300);

with (newField){
       
        background = true;
        backgroundColor=0×8888FF;
        border = true;
        borderColor = 0×000000;
        autoSize = "left";
        wordWrap = true;
        text = currentField.text
       
}

/* From Macromedia’s livedocs:

The default properties of a text field are as follows:

type = "dynamic"
border = false
background = false
password = false
multiline = false
html = false
embedFonts = false
variable = null
maxChars = null

A text field created with createTextField() receives the following default TextFormat object:

font = "Times New Roman"
size = 12
textColor = 0×000000
bold = false
italic = false
underline = false
url = ""
target = ""
align = "left"
leftMargin = 0
rightMargin = 0
indent = 0
leading = 0
bullet = false
tabStops = [] (Empty Array)

*/

newFormat = new TextFormat();

with(newFormat){
       
        color = 0×000000;
        font = "Verdana";
        bold = true;
        size = 10;
       
}

newField.setTextFormat(newFormat);

currentField.onChanged = function(){
       
        _root.newField.setNewTextFormat(_root.newFormat);
        _root.newField.text = this.text;
       
}
 

Apr 24

Flash’ın Kendi tween classının kolaylastırılmıs ve optimize edilmiş halı oldukca basit kulanıslı kb olarak yer kaplamıyor. Kulanım ornekleri ve link devamında..

Older Posts »

Laydo.net Webmaster Blog

  • Categories
    • .net c##
    • Actionscript
    • Ajax
    • araçlar
    • Attacking and Defense
    • CSS
    • Flash
    • flex
    • Grafik
    • html
    • Javascript
    • Joomla
    • Linux
    • LOST
    • MsSQL
    • muzik
    • Php
    • Programlarım
    • Sorun(HATA)
    • uçuk kaçık
    • Uncategorized
    • XBOX360
  • Recent Posts
    • Actionscript 3 Preloading
    • Server Değişikliği
    • Super Fıkra gibi oyku İspanyol ve Amerikalı
    • Zend Studio Yavaşlık problemi Zend studio too slow problem
    • Flash transparent Popup fixed sayfanın ortasında
  • Recent Comments
    • Merve on Dünya Telefon Ülke kodları Ülke Telefon kodları
    • Emre Kaya on Dünya Telefon Ülke kodları Ülke Telefon kodları
    • ekrem on Dünya Telefon Ülke kodları Ülke Telefon kodları
    • ekrem on Dünya Telefon Ülke kodları Ülke Telefon kodları
    • Mahir on Dünya Telefon Ülke kodları Ülke Telefon kodları
  • Etiket Bulutu

    ücretsiz proje yönetim ücretsiz proje yönetim siteleri 4.sezon 4.Sezon 11.Bölüm 11.bölüm Actionscript as2 banner bedava proje yönetim clicktag comindwork Flash flashbanner liquidplanner LOST Lost 4.Sezon 11.Bölüm Lost 4.Sezon 11.Bölüm altyazı Lost 4.Sezon 11.Bölüm full indir Lost 4.Sezon 11.Bölüm indir Lost 4.Sezon 11.Bölüm izle Lost 4.Sezon 11.Bölüm rapidshare Lost s04e011 altyazı Lost s04e11 Lost s04e11 full indir Lost s04e11 indir Lost s04e11 izle Lost s04e11 rapidshare Lost s04e11 türkçe altyazı officezilla online project manager online proje yönetim proj projectoffice proje onetim proje yönetim proje yönetimi proje yönetimi sitesi proje yönetimi sitesi karşılaştırma proje yönetim sistemleri s04e011 takip toggl web 2.0 web 2.0 proje web tabanlı proje yönetim uygulaması

    WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

  • .net c##
    • Bir makale Sitesi
    • C# platformu
    • Kaynak code Sitesi
  • linkage
    • 2402424.com
    • Bannerblo
    • ÇevirBak
    • DinoDream
    • ferruh mavituna
    • Harun Pekşen
    • İsmionemlimi.com
    • MSDN
    • Oğuzhan Çetinkaya
    • Turkce Lorem İpsum
    • Webgraf.Ru
    • WM-TR
    • www.eburhan.com
    • yeni mecra
    • zamazing


  • Home
  • Hakkımda
  • LaydoProxy
  • LaydoUpload
  • Online Kim Var

© Copyright Laydo.net Webmaster Blog. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top