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
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
- oneblind 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
|