Xml :: Dynamic Questionnaire In Flex?

Apr 2, 2011

I want to make a template for questionnaires in Flex 3, that reads dynamic XML file and creates a questionnaire. An exemplary XML:

<test>
<question>
<q>Who was born earlier?</q>
<answer value="true">Vincent van Gogh</answer>

[code]....

The amount of questions and answers may vary. The plan was to use nested repeaters with radio buttons (one for the questions and then another inside for the answers). I can save all question.q to an ArrayCollection, but how should I handle my answers, if there are few of them with the same "answer" tag within each question? And how can I access "value" property of each, to check if the user chose correct answer?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Creating Questionnaire With 11 Choices

Mar 28, 2011

A retired social worker, beginner learning AS 3 scripting, I would like to try to use AS 3 to create a questionnaire for an eLearning lesson and am not sure how to script it. Each statement (questionnaire has 28 of these) to which the user responds has 11 choices: 'how much does this apply to you'; 0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100%. The user selects one of these (radio button?). Then, after completing all 28 items, the responses' values are totaled for the 28 items, divided by 28 to get the overall "score." Would also need an if/else: if total score >= 30, show one message, else if =< 29, show a different message. I've looked at some multiple choice quiz type example, but so far have been lost trying to apply these to 11 choices.

View 6 Replies

ActionScript 2.0 :: Create A Flash Questionnaire With A YES Or NO Answers Only?

Feb 22, 2007

how I can create a flash questionnaire with a YES or NO answers only, and then depending on the answers it direct to a certian page/ results.

If someone could point me to a website that provides some free source that would be great, or provide sample code?

View 1 Replies

ActionScript 2.0 :: ComboBox - Modifying Contact Form Into Questionnaire?

May 11, 2009

I have a contact form that I am modifying into a questionnaire form using Input text boxes and PHP. My PHP is simple, it consists of
Code: Select all<?php
$sendTo = "myemail@myemail.com,";
$subject = "NewForm";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
[Code] .....

And my actionscript is simple as well because its just a button that communicates the vars to my php
Code: Select allon (release) {
form.loadVariables("email.php", "POST");
}
How would I implement this using a combo box (I know how to set one up but how do I send some Vars over to the PHP script.)

View 5 Replies

ActionScript 1/2 :: Create A Questionnaire And Store The User Answers In An Array Or A Database?

Apr 9, 2012

My project is creating a questionnaire in Flash and then storing the user answers in an array or a database for later analysis. although i was excellent in coding when i was in college, recently i forgot many parts

View 1 Replies

Flex :: Dynamic Child Control With Dynamic Properties And Bubble Event In 4.5

Jul 18, 2011

i have a question while reading Flex 4 Cookbook i came across the method to dynamically adding control to the container controls but nowhere i came across with how to provide them with the dynamic properties and events like they have created a button dynamically inside a group control but what good a button be if i cannot give it an event dynamically. in the same way i want to add a tree view inside a vbox but what good that be if cannot provide a data provider to it dynamically.actually i am creating an web application where i add the tree view to a vbox and i want to the data provider should also be dynamic depending upon the option i have selected in the combo box.

View 1 Replies

Flex :: Read Dynamic Form Child Data In Flex?

Jul 20, 2010

I created a form dynamically by adding each component in action script,now i want to get back the text/data entered in to that each component dynamically?[code]...

View 2 Replies

Flex :: Generate Dynamic Flex-ComboBoxes By Class-Properties

Jul 6, 2011

I have an Flex-Object with for example 3 properties.

myObj.prop1
myObj.prop2
myObj.prop3

I like to generate 3 Comboboxes to show the data.
No problem if I do it hardcoded in sourcecode.

But how can I find the prop1 to prop3 at runtime?

If next time I have 5 properties with different name it should generate 5 combos.

View 1 Replies

Flex :: Flex - Creating Dynamic Lineseries In Linechart?

Oct 11, 2011

This is my array collection

[Bindable]private var Projects:ArrayCollection = new ArrayCollection( [
{ Department: "Software", TotalProjects: 73,Completed:30,Inprogress:30,Approved:13},
{ Department: "XML",TotalProjects: 50,Completed:20,Inprogress:20,Approved:10},
{ Department: "Publishing",TotalProjects: 25,Completed:5,Inprogress:10,Approved:10},
{ Department: "Indesign", TotalProjects: 70,Completed:30,Inprogress:30,Approved:10},
{ Department: "Imaging", TotalProjects: 42,Completed:30,Inprogress:10,Approved:2}]);

[Code]...

how can i create mx:LineSeries dynamically depending upon array collection values. Now only 4 line series is there but some times i have to show more as per the array collection values change ex: if one more status HoldProject added to array collection?

View 1 Replies

Flex :: Dynamic Flex ToggleButton / Toggle Dynamically?

Nov 21, 2011

I have a four ToggleButton buttons that I want to behave as a group, so when one is clicked the others toggle off. I know you can do this with mx:ToggleButtonBar but I want to to use a spark skin-able component (ToggleButton). Is there a way to toggle a ToggleButton on and off programmatically or is there another way I can achieve my goal?

View 2 Replies

Flex :: Dynamic - Flex Repeater Horizontal Scrollbar?

Dec 7, 2011

In my application I'm using a canvas and repeater inside HBox it is Dynamic,..now I want to keep a horizontal scrollbar for the same, I may display more than 50 canvas addresses inside that Hbox and repeater.Here is my code:

<mx:HBox id="addrBox" x="42" y="161" width="1000%" styleName="ContextPanel" resizeEffect="resize" horizontalGap="5" height="0" paddingLeft="15">
<mx:Repeater id="rpt" maxWidth="1000" dataProvider="{ customerAddress }" >[code]....

Kindly give some idea for getting horizontal scroll bar for the Repeater.

View 2 Replies

Flex :: How To Create A Dynamic Flex Datagrid

Aug 31, 2009

I'm trying to create a dynamic datagrid in Flex. The data is coming back fine and I can add the column headings. I need to do it this way as the column names are dynamic and coming from a mysql database.he values from re.result.resultSet.results[j].notes into the data fields?

<mx:Script>
<![CDATA[
import mx.rpc.events.FaultEvent;

[code].....

View 2 Replies

Flex :: Dynamic Flex Form Duplication

Feb 3, 2011

I'm designing a data entry app that allows multiple entries to its subject. For example, a person might have received education from multiple institutions. Each educational entry is a form and app user can click on a button to add another entry, which is a blank but identical form.I figure it involves states and custom form components but not sure how everything fits together.

View 1 Replies

Xml :: Flex XML Dynamic Type?

Feb 2, 2010

I have an application which receives dynamic XML data from a server. The structure of the XML is dynamic and the tags/attribute names cannot be predicted. NO row items can be hardcoded. The data is coming back from a database (imagine columns and rows), and the type of the data is known on the server side. The following is just an example, an only shows the structure of how the data comes back.

[Code]...

View 1 Replies

Flex :: Get Value From Array Using Dynamic Key?

Oct 21, 2011

I have an array as follow.

var array:Array = new Array();
array["Circle"] = 1;
array["Rect"] = 2;

I wantto read the values by using a variable.

var key:String = "Circle";
trace(array[key]);

how to achieve this. Its not neccessary to go with Array only. I may switch to whichever collection in which this is possible.

View 1 Replies

ActionScript 3.0 :: Dynamic URL In Httpservice (flex 3/AIR)?

Mar 2, 2010

I am trying to create an desktop app where the user selects an XML doc via a FileSystemTree. Then at the click of a button, that xml doc selected will be loaded in as the XML doc of choice. So far I have it working only if i hardcode in the path, but i need to make it so that the user can select the file dynamically.

Code:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"

[code]......

View 4 Replies

Flex :: Create Dynamic Pie Charts?

Jul 17, 2009

Is it possible to create below type of pie charts and values create dynamically (please go through the link)?

View 3 Replies

Flex :: Combobox's Dynamic Event ?

Oct 8, 2009

I am using flex when i was select combobox item i want to create new form for eg. when i select 1 it will appear one form when i select 2 it will appear two.so and so....

View 1 Replies

Flex :: Dynamic Datagrid Httpservice?

Jan 4, 2010

I receive from the httpservice with a certain frequency a string like this:1#3#234525234whererow#column#valueI want to display into datagrid the above string at real time; at the moment my code displays the whole string, composed by many strings like the one above.How can i solve the problem?I have the following code

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
xmlns="*" creationComplete="srv.send()" >

[code]....

View 1 Replies

Actionscript 3 :: Set Background Of Row Dynamic Using Flex?

Jan 18, 2010

Look my source:Template:

[code]
<mx:Script source="ListStatus.as" />
<!-- Template -->

[code].....

View 1 Replies

Flex :: How To Load Dynamic Events To App

May 17, 2010

I have a small flex application. What I want to achieve is, I want my user to pass the script as a parameter. so he has the flexibility to do anything with the buttons->like add event, hide the other buttons.
Something like this(below)
<param name="script" value="import flash.events.Event;
private function printMessage(event:Event):void {
message.text += event.target.label + " pressed" + "
";
}">

View 1 Replies

Replace A Dynamic Image On Flex?

Apr 14, 2011

I am creating an image dynamically on flex. This images changes (as in changes image source) when the user clicks on it. Images are PNG format and I replace it with this code:

img.source = PATH_TO_IMAGE;

The problem with this is when I replace the image is it is not smooth even if you set the image property to smoothBitmapContent.

Is there a way to smoothen images when you are trying to replace the source?

View 1 Replies

Flex :: Dynamic Validators And Itemrenderer

May 30, 2011

I have a bunch of dynamic validators that I create in my application.I have an mxml which contains a s:DataGroup.The DataGroup contains an itemRenderer. In this itemRenderer, I have a combobox which I want to validate.I perform the validation like this ont the creationComplete of the itemRenderer:[code]Of course, when I do this, the itemrenderer is recycling, and the validator appears in places in which i do not want it to.

View 1 Replies

Flex :: Clipping And Dynamic Resizing?

Aug 24, 2011

I have a container with a vertical layout inside which I have two other child containers "A" and "B". n the first container "A" there is a component that I would like to resize dynamically based on the available display size. To to that I tried listening to the resize event of the main container and do my measures accordingly. That works somewhat until the parent container reaches a clipping size : container "B" gets clipped earlier than "A" because it contains much more stuffs : As soon as the parent container reaches "B"'s clipping size, it does not resize anymore (so no more resize event either) thus preventing me from updating my component's display in "A".

View 1 Replies

Flex :: Save File With Dynamic Name?

Oct 7, 2011

I am trying to save jpg files to my applicationStorageDirectory with custom names.

var filename:String = "visitorimage.jpg";
var file:File = File.applicationStorageDirectory.resolvePath( filename );
var wr:File = new File( file.nativePath );

[Code]....

The image is saved but i need to give the image dynamic name say using a timestamp or random number.

View 2 Replies

AS3 :: Php - Pass Dynamic Image From Flex?

Nov 1, 2011

Need to:1) Create bytearray from BitmapData in Flex2) Pass this bytearray (or maybe converted to string with b64) to php script3) Convert this bytearray again to image in PHP and show it.

View 1 Replies

Flex :: Dynamic ItemRenderer For Datagrid?

Dec 15, 2011

I have DataGrid with Dynamic Columns. The columns will contain ItemRendrer. I'm not familiar with dynamically adding ItemRenderer.
My code is:

var column:DataGridColumn = new DataGridColumn();
column.headerText = item;
column.width=150;[code].........

But when I add this I got an Error 1067: Implicit coercion of a value of type Class to an unrelated type mx.core:IFactory.

View 1 Replies

Flex :: Pass Dynamic Theme From Swf To Swc?

Feb 13, 2012

I have one swf file which takes theme from network during runtime. Now I conerted that swf to swc, and created another container swf to point to that swc. Seems the new swf file has the theme information, which the swc does not take the theme.

View 1 Replies

Flex :: Dynamic Tabs Using ViewStack?

Sep 20, 2008

I'm having problems creating dynamic tabs here's my code:

mxml:

<s:TabBar x="1" y="1" height="32" width="100%" dataProvider="{tabHolder}" chromeColor="#EF8B01"/>
<mx:ViewStack x="2" y="34" id="tabHolder" width="100%" height="214" creationPolicy="all">
<s:NavigatorContent label="Home" width="100%" height="100%">
<mx:Image x="6" y="8" height="181" width="402"/>

[code]....

tab wasn't added, what is wrong?

View 1 Replies

Flex :: Make Source Path Dynamic?

Jul 29, 2009

i'm new in flex.Here is my problem [code]i want to make source path dynamic.i mean i collected userName and albumName from php and i could print in flex.But when i use in source like this this way source="../../user/{userName}/{albumName}/album/{data}".

View 1 Replies







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