QA

I l @ ve RuBoard

Q&A

Q1:

Will the Output window show up in my final movie if I use a trace command?

A1:

No. The output window is part of the Flash authoring application and will not show up when your Flash movie is on a Web site.

Q2:

What happens when I divide a number by 0 in ActionScript?

A2:

You get a special ActionScript value indicated by "Infinity". However, you should consider any division by 0 as a bug and avoid it.

Q3:

Is there any limit to how many else if statements I can use?

A3:

No, but there is a better way to implement a long list of conditions. The case statement allows you to test one variable against a list of possible values.

Q4:

If I place a function in one frame's script, is it available to scripts in other frames ?

A4:

Yes, as long as it is on the same timeline. Functions inside movie clips, however, can be directly accessed inside that movie clip only.

I l @ ve RuBoard


Sams Teach Yourself Flash MX ActionScript in 24 Hours
Sams Teach Yourself Flash MX ActionScript in 24 Hours
ISBN: 0672323850
EAN: 2147483647
Year: 2002
Pages: 272

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net