PDA

View Full Version : Quiz Template in Flash MX (bug)



AXXESS
09-17-2003, 05:38 PM
I know there are some knowledgeable Flashers here so here goes... I have searched the Macromedia forums and Flashkit but cannot seem to find the answer.

I am building a multiple choice and true/false quiz in Flash MX using the Quiz Template.

Frame 1 is where you can use the "component parameters" window to set the # of questions that sohould be asked in the quiz and dictate if the questions are presented in random order. I have 100 questions loaded (frames 2-101) and the quiz runs fine when the questions are not played in random order.

However... when the "random" checkbox is selected at frame 1, the quiz runs fine for a few questions then the multiple choice elements (A,B,C,D) lose the text I have input and become ("Label A will appear here.... Label B will appear here").... etc.

I have also downloaded the Flash 2004 trial to see if it would work... but apparently there have been no changes made to correct this in the new version :p.

Apparently this is a Macromedia bug, as I see on some other forums that others have experienced this also, but nobody there has an answer. Has anyone found a workaround....?

Thanks!

Corey
09-17-2003, 08:42 PM
This one sounds odd, if others are experiencing too yet no one has fixed it then it sounds like it might not be an easy fix.

That being said it would be pretty easy to build your own... :)

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

AGRO
09-17-2003, 09:38 PM
I would be curious to see the .fla...

Corey
09-17-2003, 09:46 PM
Uploads are turned on now so you can post it to this thread if you like...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

AXXESS
09-18-2003, 08:46 AM
I have already built a random, multiple choice quiz in AMS, which works fine! I just needed to have a version in Flash as well.

Attached is the FLA. The bug appears after you get into the quiz a few questions.

:D

25006-sample t2.zip (http://www.indigorose.com/ubbthreads/uploads/25006-sample t2.zip)

AXXESS
09-23-2003, 07:05 PM
Problem solved!! Here's how it was explained to me by a gentleman that helped put the template together:



Naming UI components (RadioButtons, CheckBoxes, and PushButtons)

When you use similar interaction types, you need to give each UI component a unique name. For example, if you create two Multiple Choice interactions, the second interaction requires unique instance names for the CheckBox and the PushButton components. These new instance names need to be registered with the Learning Interaction component parameters.


To name a UI component:

1 Select the UI component instance on the Stage.

2 In the Property inspector, type a name in the Instance Name text box.

3 Register the name in the Component Parameters panel for the interaction (see Registering dynamic text fields and UI components).





This means that a 100 question m-c quiz will have 400 instance names. :(

Oh, well... it works!! FYI.

Corey
09-23-2003, 08:14 PM
Wow!

1) Nice work AXXESS, you're hardcore...

2) Sounds frighteningly inefficient, especially considering how easy a quiz is to code, i.e. in Colin Moock's book it's excercise number one if I remember correctly...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)