ActionScript 3.0 :: Import Questions Into Flash CS3
Apr 2, 2010
I'm making a sort of Quiz in Flash with AS3. I know its possible to import the questions + answers with Notepad, XML or even PHP. But I dont know where to start. Can somebody help me out? I allready searched for good tutorials that can help me out but I cant find something usefull.
View 4 Replies
Similar Posts:
Jan 23, 2011
I need too create quiz app using xml for database for questions and xul or flax for interface, quiz should have 3 types of questions : single answer (radio), multianswer (checkbox) and open (textfield). I really don't know how to import questions from xml, to xul/flex Also i need to save the answers to txt/xml file The xml database is something like this
[Code]...
View 3 Replies
Aug 18, 2009
I`m using flash cs3 for my works , but i have one problem!when i use File=> Import=> Import to Library... or Import to Stage...the flash environment becomes terminated.I changed my flash version to CS4 and I have this problem again.
View 2 Replies
Jun 21, 2010
Why ON SUBMIT my code isn't printing back all the questions just the last one? It is suppose to post to PHP all the questions but its only posting the last.way to post or get all user inputed anwers to print or an array or xml list?[code]...
View 1 Replies
Oct 13, 2011
I am getting questions from the database (just text) and then passing them to flash via flash vars.I want one question to be displayed then the user will answer (text) and click a button and then the next question will be displayed for them to answer and so on.I am not hoping for overly specific advice but as I am very new to flash/actionscript am just looking for broad advice (or links ?) on how to approach this. Can I do it all from one frame just using actionscript?I think what I am really after (assuming I am not way off track) is if all the questions should be handled at once which I guess will require some kind of loop that listens for some buttonclick event to move to the next question ..... or be 'reloading' the flash movie and dealing with only 1 question at a time.
View 2 Replies
Jan 26, 2010
The "import "Player.as" line throws the error: 1084: Syntax error: expecting rightbrace before semicolon.
package {
import "Player.as"; //ERROR
import "Card.as";
public class Game {
I was going great with Flex, until I tried to split up my code into separate files. Now I'm struggling. Here are my files and their dependencies:
[Code]...
View 3 Replies
Feb 12, 2010
I'm really new at flash and I'm having some trouble with a textbook assignment. Before I explain my problem here is the code:
Code:
stop();
var defValue:Number = 1;
stage.addEventListener(Event.ENTER_FRAME, vetIkke);
function vetIkke(e:Event
[Code] .....
I was doing some assignments in my as3 textbook when I ran into a bit of trouble. I'm trying to make a flash that picks 3 random questions out of a total of 10 and displays them on screen. I made each of the questions movieclips and assigned them all a class (question1 - 10) through Linkage. So the variable "randomQ" is the name of the class of a random question, but how do I get flash to understand that? And how do I spawn that question as a movieclip on stage?
Code:
var Question:MovieClip = new randomQ();
I've tried various alterations but can't seem to find the right one. It's possible I've yet to learn the necessary knowledge in order to make this flash.
View 1 Replies
Nov 18, 2009
I'm trying to create a simple quiz that picks questions from an XML file, then checks the answer the user enters against the answers stored in the same XML file. Every time you press blue_btn it should bring up a new question. Right now I'm stuck -- it shows only the last question in the XML file, when I enter the right answer it tells me it's wrong, and when I press blue_btn again nothing happens.
[Code]....
View 4 Replies
Oct 18, 2006
I wanted to randomise my quiz questions and to allow all questions to appear but no similar questions should appear twice. I tried to use arrays to do it but I kept having errors.
View 8 Replies
Aug 13, 2004
I have made a quiz which has 20 questions. 15 questions are asked at random. However, being at random some questions are repeated. How do I shuffle questions rather than use random?
View 4 Replies
Apr 22, 2009
I have a project that i want to make which is a Multiple choice game containing questions and the answers is four pictures when you click on the right answer you move to next question when your are wrong a wrong sign appears i have zero knowladge about flash but i thought this is similar to Geo Challenge in facebook ,,Right ?? what software to download ? any tutorials online ?
View 4 Replies
Dec 4, 2009
i instantiate a sprite-class "panel" from my main class. then i call a function "show chooser" inside "panel" which instatiates a sprite class "chooser" with some buttons. now when one of the buttons is pressed i need to call a function inside "panel" which removes the "chooser" sprite/class and which calls a function "onChosen" in the main class.
what is the correct/best way to reference these functions so that they can be called from within the panel and/or chooser classes. i am still too much in the old thinking that a function belongs to a movieclip and can functions with _parent. i need to learn the proper way now.
View 2 Replies
Apr 14, 2010
I have an application which pulls in data (questions) via XML and randomizes them. Right now if there is 50 questions in the XML file, 50 questions are displayed and randomized in the application. I am trying to figure out how to limit the randomizing pool so that only 35 questions display(even when the XML file has 50 questions) or something like that. My current code which brings in the file and randomizes is below.
Loads the XML data
Code:
package exam {
import flash.net.* //to create URLRequest and load XML file
import flash.events.* //for Load events
//import flash.display.* //for testing purposes - remove when testing complete
//This class downloads the XML document, and then inserts info into arrays and variables.
[Code] .....
View 8 Replies
May 21, 2010
I was trying to produce an output of an array mixed up and limit the number. how that is done. Now need to incorporate into a quiz application which pulls in data via, XML, displays that, and shows the number of questions. So if 50 questions are in the XML file 50 questions will be displayed in the quiz. What I am trying to do is use the XML file as a question pool and randomly select say 30 questions out of the file to display. no luck so far, but I am making progress!
[Code]....
View 1 Replies
Apr 6, 2011
Im building an activity whereby I want random math questions to appear and for them to be addition, subtraction, division and multiplication with just two integers where the answer is never more than 50
so far I have
ActionScript Code:
genQuestion.addEventListener(MouseEvent.CLICK, onGenerate);
function onGenerate(e:Event = null):void
[code]....
which randomly generate addition questions whereby each integer couldn't be more than 25. But this isn't right because I could also have 40 +5 and it still be under 50.
View 6 Replies
Jun 7, 2003
I have 4 mc's that are acting as btns inside an mc on the main timeline
code is below
newolivefour_mc.buttonMode=truenewolivefour_mc.addEventListener(MouseEvent.ROLL_OVER,buttonOverfour);newolivefour_mc.addEventListener(MouseEvent.ROLL_OUT,buttonOutfour);function
[code].....
View 3 Replies
Apr 1, 2008
Acatully I have to face an interview on flashlite. I am not at all getting how get prepare on that. Can anyone give guidlines, questions pattern, interview questions for that.
View 2 Replies
Jul 10, 2009
I wanted to create a class that you send a display object to and it tweens out (lets just say fades out for now), and then removes it from it's parent, and nulls it. So this is what I came up with:
Code:
package com.TweenOut{
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
[code]...
but, i'm getting this error.. TypeError: Error #1034: Type Coercion failed: cannot convert com.Pages:esignPage@2786f9d1 to com.TweenOut.TweenKill.So, obviously it can't convert _livePage.. but.. am I misunderstanding the error, is it trying to convert it to com.TweenOut.TweenKill, or is it just not able to convert it to a DisplayObject like I assume??
Also, I should note that _livePage is a subclass of a custom class I wrote, and that class is a subclass of MovieClip.. Doesn't that mean that _livePage would be a DisplayObject? Does this have to do with calling the super() in either of those super classes?
I'm making great headway into understanding all of this as3 stuff, but some things still get me. I'm having trouble understanding the big picture, I feel like there has to be a better way to handle "page changes" or "section changes". For instance, am I doing it a weird way by making a class that tweens out anything I send to it? Should I just be doing the tween and removal inside the class that the DisplayObject is a child of?
View 6 Replies
May 12, 2010
So I have an animation I'm working on, its dialog driven and I want a vertical menu of questions the viewer clicks on. When its clicked it plays a specific sequence of animation, that part I have covered. Depending on the question clicked however, I want the menu to update with follow up questions.
-several menu items need to open up new menu items.
-the new menu items appear beneath the previous item.
-each new menu item needs to highlight text.
-each used menu item needs to dim text.
I'm mostly a script kiddy, I find stuff similar to what I need and take it apart and rebuild it to my needs. But I haven't found anything of this sort. The closest thing I have is creating a menu with an array.
I thought to assign the initial array values to questions as they would appear on a complete list. The idea is at the end of a string of dialog to run a check on a specific array value, if it comes up false, create that value and hence the new menu item is in it's proper place on the list (including appropriate highlight/dim text color). The problem is that when I run a trace I get a bunch of undefined values in-between. I don't want a menu with "undefined" text labels/buttons, is there a way to run a check for undefined during the menu loop and tell it to skip to the next value?
is this the best way to handle this project? I'd rather not create a complex movie clip of every possible menu configuration and run a ton of value checks with goto frames.
View 3 Replies
May 17, 2010
I have an Flash CS4 application which pulls in data (questions) via XML and randomizes them. Right now if there is 50 questions in the XML file, 50 questions are displayed and randomized in the application. I am trying to figure out how to limit the randomizing pool so that only 35 questions display(even when the XML file has 50 questions) or something like that. My current code which brings in the file and randomizes is below. The code is written in AS3, by someone else. this part of the code pulls in the XML data and randomizes.
Code: Select allpackage exam {
import flash.net.* //to create URLRequest and load XML file
import flash.events.* //for Load events
[code]....
View 7 Replies
Oct 13, 2011
I want one question to be displayed (just text) and then the user will type in their answer (just text) then they should press a button to move onto the next question to do the same. The number of questions is not set and depends on how many questions the asker has created, these are passed through flashvars from the backend database.
So can I just do this in the one frame with a loop or something going through each param in flashvar ? Or would a better way be reload the page (it's going on a website) after each question answered passing the flash a single question.
View 3 Replies
Dec 27, 2011
I have been searching and I hear so many views that I don't know what to think. The image has the question text in it.
View 10 Replies
Nov 7, 2009
I am fairly new to AS3 so I am having a go at creating my own game of Who Wants to be a Millionaire?, thought a quiz game of sorts may be simplish. Right now, I am having trouble working out how to load shuffled questions. This is the code I have so far[code]...
View 1 Replies
Jan 16, 2007
I was looking threw your tutorials and I found >>this one<< I've modified a little it and now I have this:
Code:
function init() {
for (var i:Number = 0; i<4; i++) {
this.attachMovie("blueCircle", "blue"+i, this.getNextHighestDepth());
var mc:MovieClip = this["blue"+i];
[code]....
It works ok, but I want to do a game from it-polimorphic graphs (I'm not sure if I wrote it correctly)[URL]I want to do something like that in flash.how to check for lines collisions (if one line is on other)
View 1 Replies
Jun 8, 2009
i have a quiz with 20 questions and all of its answers in 2 different arrays. I want to know how i can make those 20 questions and the all of the answers appear in a random order when anyone takes the quiz.
View 6 Replies
Jun 9, 2009
Hey i am making a quiz which is going to have 20 questions and i have about 40 question in the questions array. make a variable which will hold the 20 random question so
for eg
var arrQuestion:Array = [ 40 questions in here separated by commas]
var randQuestions:int = arrQuestion.length-1;
but that just sets randQuestions to the arrQuestion's length now how do i set the variable randQuestion with 20 questions that are randomly picked from arrQuestion.
View 3 Replies
Oct 11, 2004
I have a dynamic text box for multiple questions in a text. We would like to get the text box to align bottom (so the text is always at the bottom of the box no matter how much text is in the varriable). Is there a way to do this?
View 5 Replies
Nov 10, 2009
I have created a survey with several multipule choice questions using radio buttons. I want the last page of the survey to display results to the user kind of like a Cosmo quiz.like "50% A." "25% B." "25% C." "0% D." I can't find any info on how to do this with Actionscript.
View 1 Replies
Jul 18, 2003
Can somebody give me an example of Multiple Choice Questions, where the question are being fetched from a XML file.
View 5 Replies
Jun 7, 2010
I'm working on a quiz-style piece right now and in short it's several pages of multi choice questions, each rewarding a certain point amount that is added up at the end and given specific results based on the point range scored. (i.e. 10-20 = good, 21-30 = great... etc)
For code I've stopped here:
if (answercheck == 40 - 52){
trace("Feedback: Range 40 - 52");
form.gotoAndStop(3);
form.AnswerTotal.Number = answercheck;
}
Answercheck is the var with the total points accumulated. Form is the mc with the feedback frames based on their point totals. AnswerTotal is the dynamic text box I'm trying to load the exact point total the user acquired into at the end.
View 2 Replies