Archive

Posts Tagged ‘AS3’

How to: Make a quiz in AS3.. Setting up Questions and Answers

July 23, 2011 2 comments

Since I haven’t been able to find the time to work on my Java-skills and post about it, I thought I might share one of my old  AS3-projects with you. I give to you; a simple Quiz-application!

The application presents the user with one question, and three possible answers (only one correct, of course). On top of that, points are given, based on how the user is doing. The order of the questions and answers is random.

This tutorial focuses on the structure of the application. Hence, the application is very ugly.. but it works!

Read more…

Pages: 1 2

AS3: Remove child – safe n’ easy

July 11, 2011 Leave a comment

I cant find the original source for this line of code, which makes me feel like a douche. Still, I feel a need to share it, since it’s really brilliant!

A very simple and safe way to remove objects in Actionscript 3:

if (object) is (object.parent) object.parent.removeChild(object);

Goodbye compiler error 2007 and 2025!

As noted, I can’t take credit for this. If any of you know the original source, please let me know so I can credit the guy behind it!