Programlama deneylerimde geldigim nokta hatalardan geçilmeyen garipliklerden öteye gidemedi buna ragmen trilyon satır kod yazdım (gerçi kopyaladım yapıştırdım bi çogunu ama) yorucuydu. Burda asıl olay küçük resimlere tıklandıgında gelen büyük resim ve resmin açıklamayazıları + yazıların altındaki lastigimsi hareketler yapan dikdörtgenler.

Kodlar ve Kaynak Dosyayı görebilmek için 3`e öff pardon devamını okuya tıklamalısın.


Ahanda Kaynak Dosyalar :
Ters tık “save as”

Ahanda Kodlar:

  1.  
  2. import fl.transitions.Tween;
  3. import fl.transitions.easing.*;
  4. import fl.transitions.TweenEvent;
  5.  
  6. var titleWidth:Number = title_txt.width;
  7. var byWidth:Number = by_txt.width;
  8.  
  9. var titleValue:String;
  10. var byValue:String;
  11.  
  12. thum_001_mc.addEventListener(MouseEvent.CLICK, mouseDown_fc);
  13. thum_001_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver_fc);
  14. thum_001_mc.buttonMode = true;
  15. thum_001_mc.picSource = "bigimages/big_001.jpg";
  16. thum_001_mc.returnCode = 1;
  17.  
  18. thum_002_mc.addEventListener(MouseEvent.CLICK, mouseDown_fc);
  19. thum_002_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver_fc);
  20. thum_002_mc.buttonMode = true;
  21. thum_002_mc.picSource = "bigimages/big_002.jpg";
  22. thum_002_mc.returnCode = 2;
  23.  
  24. thum_003_mc.addEventListener(MouseEvent.CLICK, mouseDown_fc);
  25. thum_003_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver_fc);
  26. thum_003_mc.buttonMode = true;
  27. thum_003_mc.picSource = "bigimages/big_003.jpg";
  28. thum_003_mc.returnCode = 3;
  29.  
  30. thum_004_mc.addEventListener(MouseEvent.CLICK, mouseDown_fc);
  31. thum_004_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver_fc);
  32. thum_004_mc.buttonMode = true;
  33. thum_004_mc.picSource = "bigimages/big_004.jpg";
  34. thum_004_mc.returnCode = 4;
  35.  
  36. thum_005_mc.addEventListener(MouseEvent.CLICK, mouseDown_fc);
  37. thum_005_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver_fc);
  38. thum_005_mc.buttonMode = true;
  39. thum_005_mc.picSource = "bigimages/big_005.jpg";
  40. thum_005_mc.returnCode = 5;
  41.  
  42. thum_006_mc.addEventListener(MouseEvent.CLICK, mouseDown_fc);
  43. thum_006_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver_fc);
  44. thum_006_mc.buttonMode = true;
  45. thum_006_mc.picSource = "bigimages/big_006.jpg";
  46. thum_006_mc.returnCode = 6;
  47.  
  48. thum_007_mc.addEventListener(MouseEvent.CLICK, mouseDown_fc);
  49. thum_007_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver_fc);
  50. thum_007_mc.buttonMode = true;
  51. thum_007_mc.picSource = "bigimages/big_007.jpg";
  52. thum_007_mc.returnCode = 7;
  53.  
  54. thum_008_mc.addEventListener(MouseEvent.CLICK, mouseDown_fc);
  55. thum_008_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver_fc);
  56. thum_008_mc.buttonMode = true;
  57. thum_008_mc.picSource = "bigimages/big_008.jpg";
  58. thum_008_mc.returnCode = 8;
  59.  
  60. thum_009_mc.addEventListener(MouseEvent.CLICK, mouseDown_fc);
  61. thum_009_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver_fc);
  62. thum_009_mc.buttonMode = true;
  63. thum_009_mc.picSource = "bigimages/big_009.jpg";
  64. thum_009_mc.returnCode = 9;
  65.  
  66. function mouseDown_fc(event:MouseEvent):void
  67. {
  68.         picLoader_ui.source = event.currentTarget.picSource;
  69.        
  70.         if(event.currentTarget.returnCode == 1)
  71.         {
  72.                 titleValue = "Secret Album Cover I";
  73.                 byValue = "Destin8x";
  74.                
  75.                 title_txt.text = titleValue;
  76.                 title_txt.autoSize = TextFieldAutoSize.LEFT;
  77.                 by_txt.text = byValue;
  78.                 by_txt.autoSize = TextFieldAutoSize.LEFT;
  79.                
  80.                 var infoTextBGTween_1:Tween = new Tween(infoTextBG_title_mc, "width", Elastic.easeOut, infoTextBG_title_mc.width, title_txt.width + 20, 0.2, true);
  81.                 var byTextBGTween_1:Tween = new Tween(infoTextBG_by_mc, "width", Elastic.easeOut, infoTextBG_by_mc.width, by_txt.width + 20, 0.2, true);
  82.         }
  83.         else if(event.currentTarget.returnCode == 2)
  84.         {
  85.                 titleValue = "Bronze Age Album Cover II Redux";
  86.                 byValue = "Trigonometri";
  87.                
  88.                 title_txt.text = titleValue;
  89.                 title_txt.autoSize = TextFieldAutoSize.LEFT;
  90.                 by_txt.text = byValue;
  91.                 by_txt.autoSize = TextFieldAutoSize.LEFT;
  92.                
  93.                 var infoTextBGTween_2:Tween = new Tween(infoTextBG_title_mc, "width", Elastic.easeOut, infoTextBG_title_mc.width, title_txt.width + 20, 1, true);
  94.                 var byTextBGTween_2:Tween = new Tween(infoTextBG_by_mc, "width", Elastic.easeOut, infoTextBG_by_mc.width, by_txt.width + 20, 1, true);
  95.         }
  96.         else if(event.currentTarget.returnCode == 3)
  97.         {
  98.                 titleValue = "Rivermaya-Buhay Album Cover";
  99.                 byValue = "Purpleturtlealien";
  100.                
  101.                 title_txt.text = titleValue;
  102.                 title_txt.autoSize = TextFieldAutoSize.LEFT;
  103.                 by_txt.text = byValue;
  104.                 by_txt.autoSize = TextFieldAutoSize.LEFT;
  105.                
  106.                 var infoTextBGTween_3:Tween = new Tween(infoTextBG_title_mc, "width", Elastic.easeOut, infoTextBG_title_mc.width, title_txt.width + 20, 1, true);
  107.                 var byTextBGTween_3:Tween = new Tween(infoTextBG_by_mc, "width", Elastic.easeOut, infoTextBG_by_mc.width, by_txt.width + 20, 1, true);
  108.         }
  109.         else if(event.currentTarget.returnCode == 4)
  110.         {
  111.                 titleValue = "Esoteric Album Cover";
  112.                 byValue = "theFATkid";
  113.                
  114.                 title_txt.text = titleValue;
  115.                 title_txt.autoSize = TextFieldAutoSize.LEFT;
  116.                 by_txt.text = byValue;
  117.                 by_txt.autoSize = TextFieldAutoSize.LEFT;
  118.                
  119.                 var infoTextBGTween_4:Tween = new Tween(infoTextBG_title_mc, "width", Elastic.easeOut, infoTextBG_title_mc.width, title_txt.width + 20, 1, true);
  120.                 var byTextBGTween_4:Tween = new Tween(infoTextBG_by_mc, "width", Elastic.easeOut, infoTextBG_by_mc.width, by_txt.width + 20, 1, true);
  121.         }
  122.         else if(event.currentTarget.returnCode == 5)
  123.         {
  124.                 titleValue = "Guadic Album Cover";
  125.                 byValue = "mutatedMILKFISH";
  126.                
  127.                 title_txt.text = titleValue;
  128.                 title_txt.autoSize = TextFieldAutoSize.LEFT;
  129.                 by_txt.text = byValue;
  130.                 by_txt.autoSize = TextFieldAutoSize.LEFT;
  131.                
  132.                 var infoTextBGTween_5:Tween = new Tween(infoTextBG_title_mc, "width", Elastic.easeOut, infoTextBG_title_mc.width, title_txt.width + 20, 1, true);
  133.                 var byTextBGTween_5:Tween = new Tween(infoTextBG_by_mc, "width", Elastic.easeOut, infoTextBG_by_mc.width, by_txt.width + 20, 1, true);
  134.         }
  135.         else if(event.currentTarget.returnCode == 6)
  136.         {
  137.                 titleValue = "Utopia Album Cover";
  138.                 byValue = "Si2 People";
  139.                
  140.                 title_txt.text = titleValue;
  141.                 title_txt.autoSize = TextFieldAutoSize.LEFT;
  142.                 by_txt.text = byValue;
  143.                 by_txt.autoSize = TextFieldAutoSize.LEFT;
  144.                
  145.                 var infoTextBGTween_6:Tween = new Tween(infoTextBG_title_mc, "width", Elastic.easeOut, infoTextBG_title_mc.width, title_txt.width + 20, 1, true);
  146.                 var byTextBGTween_6:Tween = new Tween(infoTextBG_by_mc, "width", Elastic.easeOut, infoTextBG_by_mc.width, by_txt.width + 20, 1, true);
  147.         }
  148.         else if(event.currentTarget.returnCode == 7)
  149.         {
  150.                 titleValue = "Fei Comodo TAH2F Album Cover";
  151.                 byValue = "toptwostudios x2";
  152.                
  153.                 title_txt.text = titleValue;
  154.                 title_txt.autoSize = TextFieldAutoSize.LEFT;
  155.                 by_txt.text = byValue;
  156.                 by_txt.autoSize = TextFieldAutoSize.LEFT;
  157.                
  158.                 var infoTextBGTween_7:Tween = new Tween(infoTextBG_title_mc, "width", Elastic.easeOut, infoTextBG_title_mc.width, title_txt.width + 20, 1, true);
  159.                 var byTextBGTween_7:Tween = new Tween(infoTextBG_by_mc, "width", Elastic.easeOut, infoTextBG_by_mc.width, by_txt.width + 20, 1, true);
  160.         }
  161.         else if(event.currentTarget.returnCode == 8)
  162.         {
  163.                 titleValue = "ZombiliGunler Album Cover";
  164.                 byValue = "toprakANA x2";
  165.                
  166.                 title_txt.text = titleValue;
  167.                 title_txt.autoSize = TextFieldAutoSize.LEFT;
  168.                 by_txt.text = byValue;
  169.                 by_txt.autoSize = TextFieldAutoSize.LEFT;
  170.                
  171.                 var infoTextBGTween_8:Tween = new Tween(infoTextBG_title_mc, "width", Elastic.easeOut, infoTextBG_title_mc.width, title_txt.width + 20, 1, true);
  172.                 var byTextBGTween_8:Tween = new Tween(infoTextBG_by_mc, "width", Elastic.easeOut, infoTextBG_by_mc.width, by_txt.width + 20, 1, true);
  173.         }
  174.         else if(event.currentTarget.returnCode == 9)
  175.         {
  176.                 titleValue = "ilk ayakkabılarim Album Cover";
  177.                 byValue = "feciduzlem";
  178.                
  179.                 title_txt.text = titleValue;
  180.                 title_txt.autoSize = TextFieldAutoSize.LEFT;
  181.                 by_txt.text = byValue;
  182.                 by_txt.autoSize = TextFieldAutoSize.LEFT;
  183.                
  184.                 var infoTextBGTween_9:Tween = new Tween(infoTextBG_title_mc, "width", Elastic.easeOut, infoTextBG_title_mc.width, title_txt.width + 20, 1, true);
  185.                 var byTextBGTween_9:Tween = new Tween(infoTextBG_by_mc, "width", Elastic.easeOut, infoTextBG_by_mc.width, by_txt.width + 20, 1, true);
  186.         }
  187. }
  188.  
  189. function mouseOver_fc(event:MouseEvent):void
  190. {
  191.         var mouseOverTween:Tween = new Tween(event.currentTarget, "alpha", Strong.easeIn, 0.1, 1, 0.2, true);
  192. }
  193.  

Yorum yapılmamış

Leave a reply