@@ -13,7 +13,7 @@ package examples
1313import ui.interactive.DragMechanism ;
1414import ui.paint.SolidPaint ;
1515
16- [SWF (backgroundColor="#FFFFFF" , frameRate="31" , width="800 " , height="600 " )]
16+ [SWF (backgroundColor="#FFFFFF" , frameRate="31" , width="640 " , height="480 " )]
1717public class ParabolaFromSegmentAndVertex extends ExampleBaseSprite
1818{
1919private var vertexPaint: SolidPaint;
@@ -40,18 +40,18 @@ package examples
4040
4141a = new UIVertex(_context , vertexPaint);
4242dragMechanism. apply (a );
43- a . x = Math . random () * stage . stageWidth ;
44- a . y = Math . random () * stage . stageHeight ;
43+ a . x = 120 ;
44+ a . y = 300 ;
4545
4646b = new UIVertex(_context , vertexPaint);
4747dragMechanism. apply (b );
48- b . x = Math . random () * stage . stageWidth ;
49- b . y = Math . random () * stage . stageHeight ;
48+ b . x = 400 ;
49+ b . y = 400 ;
5050
5151c = new UIVertex(_context , vertexPaint);
5252dragMechanism. apply (c );
53- c . x = Math . random () * stage . stageWidth ;
54- c . y = Math . random () * stage . stageHeight ;
53+ c . x = 300 ;
54+ c . y = 250 ;
5555
5656line = new MutableLine(_context , a , b , LineType. SEGMENT );
5757lineDrawer = new LineDrawer(_context , line);
@@ -62,7 +62,9 @@ package examples
6262addChild (lineDrawer);
6363addChild (parabolaDrawer);
6464
65- addChild (a ); addChild (b ); addChild (c );
65+ addChild (a );
66+ addChild (b );
67+ addChild (c );
6668}
6769}
6870}
0 commit comments