Türkçe Forum - Girburaya.net

Geri git   Türkçe Forum - Girburaya.net > Webmaster > Programlama > Flash
Kayıt ol Yardım Üye Listesi Ajanda Arama Bugünki Mesajlar Bütün Forumları okunmuş kabul et

Flash Flash Hakkında Aradığınız Herşey.. Flash Kodları..

Yeni Konu aç  Cevapla
 
LinkBack Seçenekler
Alt 06-27-08, 05:21   #1 (permalink)
Image Hosted by ImageShack.us
Fenerbahçe
 
Zebani - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Dec 2007
Nerden: Cehennem
Mesajlar: 8.824
Tecrübe Puanı: 10 Zebani will become famous soon enough
Thanks: 136
Thanked 199 Times in 135 Posts
Standart Animasyonunuzu Canlandiracak Kodlar


İŞTE ÇIKMIŞ OLAN EN İYİ KOD; çünkü çok fazla işe yarıyor. Oyunlar için bir numaralı kod!

******İF**********KODU************* -----ERMANSOFT farkıyla-------

onClipEvent (enterFrame) {
if (this.hitTest(_root.cisim)) {
_root.gotoAndPlay("frame");
}
}


animasoyonda bir cimin üstüne bir cisim gelince
istediğiniz kareye gitmesini istiyorsanız. bunu kullanın.

*kodu üstüne gelinecek cisme ekleyin.
*'cisim' kısmı yerine üzerine gelicek olan cismin örnek adını yazın.
*'frame' kısmı yerine frame i yazın

-----------------------------------
-----------------------------------
**********PROPERTİES***************
-----------------------------------
-----------------------------------

----------------------------------------------------------
movie clipin belirli eksen yönünde gitmesi
------------------------------------------------------
AÇIKLAMA:
* _y += (_root.y=0)/speed; yerlerindeki; y=0 ve x=0 kısımlarına gidecekleri hız ve ekseni belirleyin. *
* _x += (_root.x=0)/speed; Örneğin; y=10 , x=15 , y+20 , x-40 gibi. y=0 ve x=0 iken cisim hareket etmez. *

onClipEvent (load) {
speed = 10;
}
onClipEvent (enterFrame) {
_y += (_root.y=0)/speed;
_x += (_root.x=0)/speed;
}

-----------------------------------------------------------
MOVİECLİPi döndürme 2.0
-----------------------------------------------------------
açılama:
hızını arttırmak için; speed kısmını azaltın.
yönünüdeğiştirmek için; _rotation+= (_root.rotation+50)/speed; kısmını
_rotation+= (_root.rotation-50)/speed; yapın.

onClipEvent (load) {
speed = 10;
}
onClipEvent (enterFrame) {
_rotation+= (_root.rotation+50)/speed;
}

------------------------------------------------------------------------------------------
NOT: Yukarıdaki kodları kendiniz; FLASHMX in properties kodları ile değiştirebilirsiniz.
----

,

onClipEvent (load) { movieclipi döndüren bu kodu; onClipEvent (load) {
speed = 10; şu biçimde----------------) speed = 10;
} değiştiriseniz, }
onClipEvent (enterFrame) { movie clip in yüksekliği onClipEvent (enterFrame) {
_rotation+= (_root.rotation+50)/speed; ile oynarsınız. _height+= (_root.height+50)/speed;;
} }

------------------------------
------------------------------
*********SON******************
------------------------------
------------------------------

--------------------------------------------------------------
üzerine gelince el işareti çıkmayan buton
---------------------------------------------------
AÇIKLAMA:
aşağıdaki kodu butona ekleyin ama butonununuzun instance name (örnek adı) mybutton olsun.


on (release, rollOver, rollOut, dragOver, dragOut) {
mybutton.useHandCursor = false;
}

-------------------------------------------------------------
animasyon sırasında kalemle çizim yapabilme (kareye ekleyin)
-------------------------------------------------------------

_root.onMouseMove = function() {
if (draw) {
_root.lineStyle(0, 0x000000, 100);
_root.lineTo(_root._xmouse, _root._ymouse);
}
};
_root.onMouseDown = function() {
draw = true;
_root.moveTo(_root._xmouse, _root._ymouse);
};
_root.onMouseUp = function() {
draw = false;
};

--------------------------------------------------------------------
EN BAŞTAKI KOD AYARLARIYLA İSTEĞE GÖRE; ---EN--İYİ--KOD---
1-Tiklenen yere istenilen hızla giden,
2-Tiklenen yere istenilen hızla hemen dönerek gitmekyerine kendi dönerek giden,
3-Mouseun peşinden giden ama önünü giderken mousea döndüren,
4-Mouseun peşinden giden ama önünü kendi çevresinde dönerekmose döndüren,
MOVİE CLİP.

Ayarları ilk '}' a kadar olan yerden yapılıyor.
1. seçenek için: clickmode =true turnmode = false
2. seçenek için: clickmode =true turnmode = true
3. seçenek için: clickmode =false turnmode = false
4. seçenek için: clickmode =false turnmode = true
olarak ayarlayın.
-------------------------------------------------------------------------

onClipEvent (load) {
// declare and set initial variables and properties
clickSpot_x = _x;
clickSpot_y = _y;
speed = 10;
clickMode = false;
turnMode = false;
}
onClipEvent (mouseDown) {
//
// set position of target spot when mouse is clicked
if (clickMode && _root._xmouse>125 && _root._xmouse<465) {
clickSpot_x = _root._xmouse;
clickSpot_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
// toggle button icon visibility
_root.curve._visible=turnMode;
_root.pointer._visible=!clickMode;
//
// deterimine whether target spot is the clicked spot or the mouse pointer
if (clickMode) {
gotoSpotX = clickSpot_x;
gotoSpotY = clickSpot_y;
} else{
gotoSpotX = _root._xmouse;
gotoSpotY = _root._ymouse;
}
//
// calculate angle of current position to target position
delta_x = _x-gotoSpotX;
delta_y = _y-gotoSpotY;
targetRotation = -Math.atan2(delta_x, delta_y)/(Math.PI/180);
//
// calculate the two methods of rotation
if (turnMode) {
if (_rotation<targetRotation) {
_rotation += 10;
}
if (_rotation>targetRotation) {
_rotation -= 10;
}
} else{
_rotation = targetRotation;
}
//
// move beetle toward the target and stop when it gets there
if (Math.sqrt((delta_x*delta_x)+(delta_y*delta_y))>sp eed) {
_y -= speed*Math.cos(_rotation*(Math.PI/180));
_x += speed*Math.sin(_rotation*(Math.PI/180));
}


}


-------------------------------------------------
MERKEZİNE YAKLAŞTIKÇA BÜYÜYEN MOVİE CİP
--------------------------------------------



onClipEvent (enterFrame)
{
mouse = _xmouse;
if (mouse<0)
{
mouse = -1*mouse;
}
scale = 200-mouse;
if (scale<100)
{
scale = 100;
}
if (scale>200)
{
scale = 200;
}
setProperty ("", _xscale, scale);
setProperty ("", _yscale, scale);
}



---------------------------------------------------------
tutup fırlatıla bilen fizik motorlu movie clip
------------------------------------------------




on(press){
startDrag("");
dragging=true;
}
on(release, releaseOutside){
stopDrag();
dragging=false;
}
onClipEvent (load) {
_x = Math.random()*30;
_y = Math.random()*30;
xspeed = 20;
rightedge = 550;
leftedge = 0;
yspeed = 20;
topedge = 0;
bottomedge = 400;
drag = .98;
bounce = .9;
gravity = 2;
}
onClipEvent (enterFrame) {
if (!dragging) {
_x = _x+xspeed;
if (_x+_width/2>rightedge) {
_x = rightedge-_width/2;
xspeed = -xspeed*bounce;
}
if (_x-_width/2<leftedge) {
_x = leftedge+_width/2;
xspeed = -xspeed*bounce;
}
_y = _y+yspeed;
if (_y+_height/2>bottomedge) {
_y = bottomedge-_height/2;
yspeed = -yspeed*bounce;
}
if (_y-_height/2<topedge) {
_y = topedge+_height/2;
yspeed = -yspeed*bounce;
}
yspeed = yspeed*drag+gravity;
xspeed = xspeed*drag;
} else {
xspeed = _x-oldx;
yspeed = _y-oldy;
oldx = _x;
oldy = _y;
}
}




----------------------------------------------------------
Yön tuşlarıyla SÜRÜLEN HIZLANINCA SÜRÜKLENEN MOVİE CLİP
----------------------------------------------------------



onClipEvent (enterFrame) {
// sağ ve sol dönüş
if (Key.isDown(Key.RIGHT)) {
_rotation += 10;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 10;
}
//
//
if (Key.isDown(Key.UP)) {
// hız - dönüş ve yön hesap parmetreleri
xSpeed += thrust*Math.sin(_rotation*(Math.PI/180));
ySpeed += thrust*Math.cos(_rotation*(Math.PI/180));
flames._visible = 1;
}
if (Key.isDown(Key.DOWN)) {
// hız - dönüş ve yön hesap parametreleri
xSpeed -= thrust*Math.sin(_rotation*(Math.PI/180));
ySpeed -= thrust*Math.cos(_rotation*(Math.PI/180));
flames._visible = 1;
} else {
// yukarı ok tuşu ile ilgili ek parametreler
xSpeed *= decay;
ySpeed *= decay;
flames._visible = 0;
}
//
// hız limiti
speed = Math.sqrt((xSpeed*xSpeed)+(ySpeed*ySpeed));
if (speed>maxSpeed) {
xSpeed *= maxSpeed/speed;
ySpeed *= maxSpeed/speed;
}
//
// haraket hesapları
_y -= ySpeed;
_x += xSpeed;
//

}
onClipEvent (load) {
// hız hesapları
thrust = 1;
decay = .97;
maxSpeed = 10;
}





--------------------------------------------
Mouse doğru dönen movie clip
-----------------------------------------


onClipEvent(load){

X = this._x;
Y = this._y;

}
onClipEvent(mouseMove){

Xm = _root._xmouse;
Ym = _root._ymouse;

Xdiff = Xm - X;
Ydiff = -(Ym - Y);

radAngle = Math.atan(Ydiff/Xdiff);

if (Xdiff < 0){
corrFactor = 270;
}
else{
corrFactor = 90;
}

this._rotation = -radAngle*360/(2*Math.PI) + corrFactor;
updateAfterEvent();
}




------------------------------------------
sürükleyip bırakma
--------------------------------------------------

on (press) {
startDrag(getProperty(_x, _y));
}
on (release) {
stopDrag();
}








----------------------------------------------
mouse ı yatay düzlemde takip
------------------------------------------


onClipEvent (enterFrame) {
_x = _x+_xmouse/5;
}


-------------------------------------------------------
mouseyı bi hızlı bir yavaş takip
-----------------------------------------------


onClipEvent (enterFrame) {
_x = _x+_xmouse/50;
_y = _y+_ymouse/50;
}


__________________

ßelкi Sαηdığıη Kαdαя Uкαlα,..
ßєlкidє Tαнмiη Edємiуєcєğiη Kαdαя Mütєναziуiм..
ßiяαz Sαкlıуıм,.. ßαzєη Yαѕαкlıуıм..
Kiмѕєуi Öяηєк Alмαм.. Kiмѕєує Öяηєк Olмαм..
Aякαмα ßαкмαм..' Aѕlα ' Dємєм ..' Kєşкє'lєяi Sєνмєм!!..
Elєştiяi dє Diηlєяiм, Nαѕiнαt dє..
Kiмѕє ßαηα Mαѕαl Aηlαtмαѕıη,
Çσcυккєη dє Sєνмєzdiм Zαtєη...
Zebani isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Alt 07-03-08, 05:43   #2 (permalink)
Uzman Üye
 
MuRi - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Jun 2008
Mesajlar: 1.020
Tecrübe Puanı: 2 MuRi is on a distinguished road
Thanks: 127
Thanked 28 Times in 27 Posts
Standart


elien saglık . .
__________________
[Linkleri Ve Forumun Tam İçeriğini Sadece kayıtlı üyelerimiz görebilir. GirBuraya.Net´in ÜCRETSİZ Üyesi oLmak için Hemen TIKLAYINIZ]


MuRi isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Yeni Konu aç  Cevapla



Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler

Yetkileriniz
Yeni Mesaj yazma yetkiniz aktif değil dir.
Mesajlara Cevap verme yetkiniz aktif değil dir.
Eklenti ekleme yetkiniz aktif değil dir.
Kendi Mesajınızı değiştirme yetkiniz aktif değil dir.

Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık

Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar son Mesaj
kaydırma çubugunu renklendirecek kodlar OttoMan Html 0 04-04-08 21:26
Delphi 2005 İçinden Kodlar ile Access Üzerinde Table Oluşturmak DeJiN Delphi 0 01-05-08 14:18


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 06:35 .


Powered by: vBulletin Version 3.6.8 (Türkçe)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
Türkçeye: Girburaya.Net tarafından çevrilmiştir.
GirBuraya.Net

oyun komedi sohbet siteleri
mirc mırc sohbet chat çet sohbet chat canlı tv


7, 427, 6, 5, 106, 107, 9, 10, 11, 12, 14, 15, 16, 17, 202, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 397, 34, 35, 36, 341, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 198, 50, 51, 52, 53, 54, 123, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 75, 76, 77, 78, 79, 80, 81, 82, 112, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 108, 109, 110, 113, 115, 116, 117, 118, 119, 120, 122, 121, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 249, 184, 187, 248, 188, 189, 247, 190, 191, 429, 192, 193, 194, 195, 196, 197, 199, 200, 201, 203, 204, 205, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 221, 222, 223, 224, 225, 227, 228, 229, 230, 231, 232, 234, 235, 237, 238, 346, 240, 242, 243, 246, 250, 251, 252, 253, 254, 255, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 297, 298, 299, 300, 301, 302, 303, 307, 308, 321, 315, 314, 317, 322, 338, 318, 323, 324, 325, 326, 327, 328, 330, 331, 336, 332, 333, 334, 337, 335, 339, 340, 342, 343, 344, 345, 363, 348, 347, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 373, 382, 374, 369, 370, 375, 376, 377, 380, 385, 384, 386, 394, 388, 389, 390, 391, 392, 393, 396, 409, 398, 399, 400, 401, 403, 404, 405, 406, 410, 411, 412, 413, 414, 415, 417, 416, 418, 419, 420, 421, 423, 425, 426, 434, 428, 430, 432, 431, 435, 433, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445,
XXX.Kokotskej.Net HeyList.Com Toplist | Siteni Ekle Hitine Hit Kat! B2Brank.com - Pagerank Anzeige ohne Toolbar nti racing list , neolist Pirveli Top Топ 100 | DJ Pacolya Rank Erotico War rock France .:: Top clans ::.
dating service