Xml :: Import Questions To Xul / Flex?

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


Similar Posts:


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

Use File=> Import=> Import To Library... Or Import To Stage...the Flash Environment Becomes Terminated?

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

Flash :: Flex Bug Trying To Import Actionscript Files - Error "import Card.as"

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

How To Randomly Spawn 3 Out Of 10 Questions From Library

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

ActionScript 3.0 :: Quiz With XML Questions And Answers

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

ActionScript 2.0 :: Randomizing The Quiz Questions?

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

ActionScript 2.0 :: Shuffle Questions Rather Than Use Random?

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

Multiple Choice Game Containing Questions And The Answers?

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

ActionScript 3.0 :: Code Structure Questions For Delegate And Others?

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

ActionScript 3.0 :: Select Number Of Questions In Exam Via XML

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

ActionScript 3.0 :: Limiting Display Of Questions Being Pulled In Via XML

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

ActionScript 3.0 :: Generate Random Math Questions?

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

ActionScript 3.0 :: Movieclips Acting As Buttons Questions?

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

ActionScript 2.0 :: Interview Questions Pattern For Flashlite 2.0?

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

ActionScript 3.0 :: Tween Then RemoveChild Class Questions?

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

IDE :: Vertical Menu Of Questions The Viewer Clicks On?

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

ActionScript 3.0 :: Flash Questions Not Printing On Submit

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

Flex :: Package To Import For Mx ?

Jul 21, 2010

I am creating an app with Flex 4 using Flash Builder. When I try to use mx:XML component, I get the error Could not resolve <mx:XML> to a component implementation. Can any one tell me which package to import to resolve this error.

View 2 Replies

Flex :: Cannot Import Mx Packages

Dec 6, 2010

In the Below action script file there is an error saying cannot import mx.controls.Label, I am compiling this through command line on,linux and the environment variable path is set where flex is installed ,how to resolve this

package {
import mx.controls.Label;
public class Test

[Code]....

View 1 Replies

Flex :: XmlSchemaProviderAttribute And Xsd:import?

Dec 26, 2010

We're using a custom class that uses XmlSchemaProviderAttribute in order to make it seem like a string. It is declared as follows:

[XmlSchemaProvider("GetSchema")]
public sealed class CDataWrapper : IXmlSerializable
{[code]......

The CDataWrapper class is taken from this question. We're using it since one of our clients (a FLEX client) cannot read leading railing spaces correctly. And we're making it seem like a string in the schema, in order not to break the contract with our other clients. This works nicely, usually, but one of our clients is unable to generate a proxy with the schema that WCF creates for the service that uses the above wrapper class. We've traced the reason to this line in our wsdl:

<xsd:import schemaLocation="http:[url]....

And its content is:

<?xml version="1.0" encoding="utf-8" ?>
- <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="string" nillable="true" type="xs:string" />
</xs:schema>

The problem is that there is no namespace attribute on the xsd:import element above, and our client's proxy generator can't handle that well.In short, how can we add the namespace attribute to the generated wsdl?

View 1 Replies

Flex :: Import A .zip Project?

Jun 12, 2009

Whenever you view a flex app and go to view source you can download a zip of the flex app. Once you do that how do you import it? I went to flex>import and I get to options import archive file I pointed that to the zip and it says its not a valid archive file. so I tried the other option import flex project folder, I extracted the zip and pointed it to that and it says its not a valid project folder.

View 4 Replies

Actionscript 3.0 :: Randomizing XML Questions Randomly And Limiting Display?

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

ActionScript 3.0 :: Dynamic 'quiz' With Questions Being Passed Through Flashvars?

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

Professional :: Website Cache And Update Related Questions?

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

Creating Quiz In Flash With Questions Passed Through Flashvars

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

ActionScript 3.0 :: Load Random Quiz Questions From Arrays?

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

ActionScript 2.0 :: Creating Connected Lines Tutorial Questions?

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

ActionScript 3.0 :: Make 20 Questions And The All Of The Answers Appear In A Random Order?

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

ActionScript 3.0 :: Make A Variable Which Will Hold The 20 Random Questions

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







Copyrights 2005-15 www.BigResource.com, All rights reserved