QA

I l @ ve RuBoard

Q&A

Q1:

Do functions always need some sort of data going into them?

A1:

No. It is common to have functions that don't need any parameters. For instance, a function could return the current date, or the position of a movie clip on the screen.

Q2:

Can I perform an operation between two numbers , if one is an integer and the other a float?

A2:

Yes. Flash allows you to mix integers and floats in calculations. The result will be a float.

Q3:

If I compare two strings, will upper- and lowercase make a difference?

A3:

Yes. Flash considers uppercase letters to come before lowercase letters . This is not true in some other programming languages.

Q4:

What if I create a loop that never ends? What happens?

A4:

This is called an infinite loop. It is a bug of the worst kind. Flash will detect that the program is taking an abnormally long time to run and ask whether you want to stop the program. It is then up to you to fix the problem with the loop.

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