Toplam 3 sonuçtan 1 ile 3 arasındakiler gösteriliyor.

Konu: Flash CS5 ActionScript Yardım Acil!!!

  1. #1
    ACEMİ ER
    Üyelik tarihi
    Aug 2005
    Bulunduğu yer
    bursa
    Mesajlar
    2
    Forum Katkısı:
    0

    Standart Flash CS5 ActionScript Yardım Acil!!!

    Arkadaşlar bir ödev için acil yardımınıza ihtiyacım var. Aşağıdaki kodların açıklamasını yazabilirmisiniz.

    İlgilenen arkdaşlara şimdiden teşekkür ederim.

    MovieClip.prototype.playTo = function(destino) {
    this.onEnterFrame = function() {
    if (this._currentframe < destino) {
    this.nextFrame();
    } else if (this._currentframe > destino) {
    this.prevFrame();
    } else if (this._currentframe == destino) {
    delete this.onEnterFrame;
    }
    };
    };
    boton_less.onRollOver = function() {
    this.playTo(10);
    };
    boton_less.onRollOut = function() {
    this.playTo(1);
    };
    boton_more.onRollOver = function() {
    this.playTo(10);
    };
    boton_more.onRollOut = function() {
    this.playTo(1);
    };//function of efect buttons

    //============== Class tweener in http://code.google.com/p/tweener/ ===========
    import caurina.transitions.Tweener;
    //============== Class tweener in http://code.google.com/p/tweener/ ===========


    boton_less.onPress = function() {
    if ((MC_content._height <= 100) || (MC_content._width <= 100)) {
    Tweener.addTween(MC_content,{_width:50, time:1, transition:"easeOutBounce"});
    Tweener.addTween(MC_content,{_height:50, time:1, delay:0.5, transition:"easeOutBounce"});
    boton_less._visible = false;
    } else {
    Tweener.addTween(MC_content,{_width:MC_content._wi dth - 50, time:1, transition:"easeOutBounce"});
    Tweener.addTween(MC_content,{_height:MC_content._h eight - 50, time:1, delay:0.5, transition:"easeOutBounce"});
    boton_more._visible = true;
    }
    };

    boton_more.onPress = function() {
    if ((MC_content._height >= 250) || (MC_content._width >= 250)) {
    Tweener.addTween(MC_content,{_width:300, time:1, transition:"easeOutBounce"});
    Tweener.addTween(MC_content,{_height:300, time:1, delay:0.5, transition:"easeOutBounce"});
    boton_more._visible = false;
    } else {
    Tweener.addTween(MC_content,{_width:MC_content._wi dth + 50, time:1, transition:"easeOutBounce"});
    Tweener.addTween(MC_content,{_height:MC_content._h eight + 50, time:1, delay:0.5, transition:"easeOutBounce"});
    boton_less._visible = true;
    }
    };

  2. #2
    ACEMİ ER
    Üyelik tarihi
    Dec 2012
    Mesajlar
    1
    Forum Katkısı:
    0

    Standart Cevap: Flash CS5 ActionScript Yardım Acil!!!

    MovieClip.prototype.playTo = function(destino) {
    this.onEnterFrame = function() {
    if (this._currentframe < destino) {
    this.nextFrame();
    } else if (this._currentframe > destino) {
    this.prevFrame();
    } else if (this._currentframe == destino) {
    delete this.onEnterFrame;


    bu kısımı açıklayabilecek biri var mı?

  3. #3
    YÖNETİCİ
    Üyelik tarihi
    Apr 2009
    Bulunduğu yer
    Erkan-ı Harbiye
    Mesajlar
    6,878
    Forum Katkısı:
    0

    Standart Cevap: Flash CS5 ActionScript Yardım Acil!!!

    movieclıp calıstıgın destıno fonksıyonunu calıstır.
    Destıno fonksıyonu ıse eger currentframe destınodan kucukse bır oncekı frame gıt, eger currentframe destınodan buyukse bır sonrakı frame gıt eğer eşitse bu frameyı sıl

    hatırladıgım kadarıyla boyle olması lazım

Konu Bilgisi

Users Browsing this Thread

Şu anda 1 üyemiz bu konuya göz atıyor. (0 kayıtlı üye ve 1 misafir.)

Bu Konuyu Paylaşın !

Bu Konuyu Paylaşın !

Yetkileriniz

  • Konu Acma Yetkiniz Yok
  • Cevap Yazma Yetkiniz Yok
  • Eklenti Yükleme Yetkiniz Yok
  • Mesajınızı Değiştirme Yetkiniz Yok
  •  
Garantili SEO - Moradam