13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

Working with motion twe<strong>en</strong>s<br />

__motion_Leaf_1 = new MotionBase();<br />

__motion_Leaf_1.duration = 100;<br />

__motion_Symbol1_4.addPropertyArray("y",<br />

[<br />

0,5.91999,11.84,17.76,23.68,29.6,35.52,41.44,47.36,53.28,59.2,65.12,71.04,<br />

76.96,82.88,88.8,94.72,100.64,106.56,112.48,118.4,124.32,130.24,136.16,142.08,<br />

148,150.455,152.909,155.364,157.818,160.273,162.727,165.182,167.636,170.091,<br />

172.545,175,177.455,179.909,182.364,184.818,187.273,189.727,192.182,194.636,<br />

197.091,199.545,202,207.433,212.865,218.298,223.73,229.163,234.596,240.028,<br />

245.461,250.893,256.326,261.759,267.191,272.624,278.057,283.489,<br />

288.922,294.354,299.787,305.22,310.652,316.085,321.517,326.95,330.475,334,<br />

337.525,341.05,344.575,348.1,351.625,355.15,358.675,362.2,365.725,369.25,<br />

372.775,376.3,379.825,383.35,386.875,390.4,393.925,397.45,400.975,404.5,<br />

407.5,410.5,413.5,416.5,419.5,422.5,425.5<br />

]<br />

);<br />

__motion_Symbol1_4.addPropertyArray("scaleX", [1.00]);<br />

__motion_Symbol1_4.addPropertyArray("scaleY", [1.00]);<br />

__motion_Symbol1_4.addPropertyArray("skewX", [0]);<br />

__motion_Symbol1_4.addPropertyArray("skewY", [0]);<br />

__motion_Symbol1_4.addPropertyArray("z",<br />

[<br />

0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,<br />

0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,<br />

0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0<br />

]<br />

);<br />

__motion_Symbol1_4.addPropertyArray("rotationX", [64.0361]);<br />

__motion_Symbol1_4.addPropertyArray("rotationY", [41.9578]);<br />

__motion_Symbol1_4.addPropertyArray("rotationZ",<br />

[<br />

-18.0336,-17.5536,-17.0736,-16.5936,-16.1136,-15.6336,-15.1536,-14.6736,<br />

-14.1936,-13.7136,-13.2336,-12.7536,-12.2736,-11.7936,-11.3136,-10.8336,<br />

-10.3536,-9.8736,-9.3936,-8.9136,-8.4336,-7.9536,-7.4736,-6.9936,-6.5136,<br />

-6.0336,-7.21542,-8.39723,-9.57905,-10.7609,-11.9427,-13.1245,-14.3063,<br />

-15.4881,-16.67,-17.8518,-19.0336,-20.2154,-21.3972,-22.5791,-23.7609,<br />

-24.9427,-26.1245,-27.3063,-28.4881,-29.67,-30.8518,-32.0336,-31.0771,<br />

-30.1206,-29.164,-28.2075,-27.251,-26.2945,-25.338,-24.3814,-23.4249,<br />

-22.4684,-21.5119,-20.5553,-19.5988,-18.6423,-17.6858,-16.7293,-15.7727<br />

-14.8162,-13.8597,-12.9032,-11.9466,-10.9901,-10.0336,-10.9427,-11.8518,<br />

-12.7609,-13.67,-14.5791,-15.4881,-16.3972,-17.3063,-18.2154,-19.1245,<br />

-20.0336,-20.9427,-21.8518,-22.7609,-23.67,-24.5791,-25.4881,-26.3972,<br />

-27.3063,-28.2154,-29.1245,-30.0336,-28.3193,-26.605,-24.8907,-23.1765,<br />

-21.4622,-19.7479,-18.0336<br />

]<br />

);<br />

__motion_Symbol1_4.addPropertyArray("bl<strong>en</strong>dMode", ["normal"]);<br />

Adding filters<br />

Flash Player 9 and later, Adobe AIR 1.0 and later, requires Flash CS3 or later<br />

If the target object of a motion twe<strong>en</strong> contains filters, those filters are added using the initFilters() and<br />

addFilterPropertyArray() methods of the Motion class.<br />

Last updated 6/6/2012<br />

340

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!