Please, help. You need to draw a graph of the function x=wt (w-omega) in the Flash Action script.

  • 2
    <a href=" translit.ru/"> translit.ru </ a > use - Sh4dow
  • @Sarvar, I urge you to use Cyrillic. - angry
  • I try, but I do not write well in Cyrillic, because I am from Uzbekistan. - Sarvar

1 answer 1

 var w:int = 2; // эмуляция Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΈ var y:int = 0; // 't var spr:Sprite = new Sprite(); // экранный ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ Π½Π° ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠΌ рисуСм spr.graphics.lineStyle(1, 0x00ff00); // Ρ‚ΠΎΠ»Ρ‰ΠΈΠ½Π° ΠΈ Ρ†Π²Π΅Ρ‚ spr.graphics.moveTo(0,0); // Π½Π°Ρ‡Π°Π»ΡŒΠ½Ρ‹Π΅ ΠΊΠΎΠΎΡ€Π΄Ρ‹ for ( y=0; y<101;y++ ) //ΠΈΡ‚Π΅Ρ€ΠΈΡ€ΡƒΠ΅ΠΌ 't { spr.graphics.lineTo(y * w, y); // линия Π² Π½ΠΎΠ²ΡƒΡŽ Ρ‚ΠΎΡ‡ΠΊΡƒ } stage.addChild(spr); // ΠΏΠΎΠΊΠ°Π·Ρ‹Π²Π°Π΅ΠΌ наш спрайт 
  • It does not work :( Not displayed on the screen. - Sarvar
  • one
    blind conversation with deaf come on code, all - ShockWave
  • ya napisal eti kodi na flash mx, grafik ne otobrajaetsya - Sarvar
  • I wrote this code on the action script 3, the graph is displayed, yes - ShockWave
  • in Action script3 such error: 1152: A conflict exists with inherited definition flash.display: DisplayObject.y in namespace public. var y: int = 0; // 't - Sarvar