Tag Archives: flash

AS Quiz #14

Today’s quiz is about TextFields.

Number of Questions : 6
Difficulty : Easy
Topic : TextFields

Which of the below would you most likely use if you wanted to add a new line to a TextField? Assume the new line we are trying to add is simply "abc".





Which TextField properties would you use if you wanted a TextField to resize vertically based on its text property? Assume the TextField is dynamic.





True or False. You can use html style anchor tags inside TextFields for creating links to pages and triggering events in ActionScript.



True or False. ActionScript TextFields can contain html style img tags.



True or False. ActionScript TextFields have some basic support for CSS.



True or False. You can use an html style img tag to place a DisplayObject inside of a TextField.





Posted in Quiz | Also tagged , , | 1 Comment

AS Quiz #13

Today’s quiz is not multiple choice. Instead, your task is to draw a spiral using a recursive function.

Optionally you can alter your function to draw other types of spiral forms:

(You can view various solutions in the comments - as well as my solution at wonderfl)

Posted in Quiz | Also tagged , , | 6 Comments

AS Quiz # 12

Today’s quiz is not multiple choice. Instead, use your choice of the Graphics class or BitmapData to write a function that generates the below image:

Your function need not take any arguments, it need only return a display object containing the above image.

Feel free to post your solution in the comments.

[EDIT] Solutions:

The solutions that have been posted in the comments so far are REALLY nice - they’re all worth checking out… and I think everyone posted their code to wonderfl so you can see the result without needing to open flash….

My two solutions:
The first solution is a variation on an example from the book I wrote with Rich Shupe:
First Solution

The next solution is actually in an old post from this site - it uses setPixel and HSV - RGB conversion:
Second Solution

Thanks to everyone who posted solutions so far - I’m surprised again by how many people participate in this format of quiz.

Posted in Quiz | Also tagged , , | 14 Comments

AS Quiz #11

Today’s quiz jumps around from topic to topic, touching on filters, events, BitmapData and more…

Number of Questions : 6
Difficulty : Medium
Topic : Miscellaneous

Please go to AS Quiz #11 to view the quiz
Posted in Quiz | Also tagged , , | 7 Comments