02.02.2013 Views

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Flash</strong> <strong>MX</strong> <strong>2004</strong> <strong>Games</strong><br />

408<br />

}<br />

h1 = 2 * ttt - 3 * tt + 1;<br />

h2 = 3 * tt - 2 * ttt;<br />

h3 = ttt - 2*tt + t;<br />

h4 = ttt - tt;<br />

a = (1 - keys[index].tn) * (1 + keys[index].ct) *<br />

(1 + keys[index].bs);<br />

b = (1.0 - keys[index].tn) * (1.0 - keys[index].ct) *<br />

(1.0 - keys[index].bs);<br />

c = (1.0 - keys[index+1].tn) * (1.0 - keys[index+1].ct) *<br />

(1.0 + keys[index+1].bs);<br />

d = (1.0 - keys[key+1].tn) * (1.0 + keys[key+1].ct) *<br />

(1.0 - keys[key+1].bs);<br />

if (index!=0)<br />

s1 = secDur/(keys[index+1].millisecs - keys[index-1].millisecs);<br />

if (index!=(keys.length - 2))<br />

s2 = secDur/(keys[index+2].millisecs - keys[index].millisecs);<br />

//Set the channel values<br />

for (i=0; i

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

Saved successfully!

Ooh no, something went wrong!