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.
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?
i need to be able to make a random selection from three choices. Basically i'll have three seperate .swfs (probably named "1.swf, 2.swf, 3.swf") and also three separate mp3 files (probably named same way).The container .swf will have a function which will probably make a 'random' selection from the three .swfs of which one to load and also make a 'random' selection from one of three mp3 files to load
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.)
I want 3 comboBoxes. The choices in the first and second will determine what will be displayed in the 3rd box. E.g.
1st box - Choose a genre of music (Rock; Pop; Dance etc.) 2nd box - Choose your county 3rd box will display a list of gigs of your chosen genre in the county selected.
Upon choosing a listing in the 3rd box a dynamic text box will display details (address; contact number; price; web address etc).
I am ramping up a Flash Media Interactive Server ver 3.5. My question is - I don't have Flash CS4, -does the flvPlayback component in it allow netstream connection control to facilitate FMIS connections? One that allows fullscreen for VOD streaming would be what I need.
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
I want to make a simple frame by frame path branching game. The problem is that I know that writing in and filling in EVERY FRAME going all along for EVERY CHOICE PATH would be an insanely tedious amount of work. My basic project is reminiscent of japanese visual novels, and I've been looking for turtorials to help me with this style of role playing games, but all of the tutorials concentrated on the adventure RPGs. : Being a novice at Actionscript, past working buttons to make it go to the next frame and stopping it, I was wondering if its possible to make a choice you make earlier in the game affect it later. Such as, you keep following the game normally afterwards, but depending on your choice you'll go to a different scene later. basically, this way I'd like to eliminate the need to make two duplicate paths with only minor variances to show the changes for some choices. Another thing that I would like to know if its possible to do, though this is less important, as I have yet to look for these things and I'm sure I can find them but a save/load system, easy to find I'm sure. And an unlocking system. Something so that once they hit a certain CG I can unlock it in a 'memories' menu on a main screen.
I am having trouble getting a function to work within flash. I basically am creating a video where the intro video plays through then the user is prompted with 3 choices to select which video will play next. I am using keyboard input to make the selection. I have the keyboard input capturing working, pretty basic, but I am having trouble getting it to switch to say scene 2 (where I have another video).
And I get a compiler error stating "Scene 1, Layer 'content', Frame 1, Line 11 1120: Access of undefined property event.
I've created a new layer in the scene 1 and put that code in and everything compiles fine. I created scene 2 and imported a video into it from the library but the video plays and does not respond to any key input and the output is not showing the trace any longer. Enter does work to pause and play the video though.
import flash.events.Event; import flash.events.KeyboardEvent; function reportKeyDown(event:KeyboardEvent):void { stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); if (event.keyCode == Keyboard.ENTER){ gotoAndPlay("Scene 2"); }}
So I'm using Adobe Flash CS4 and I'm trying to create a pop-up window with an enclosed .swf file (not a link). I want the pop up to have my gallery/portfolio artwork but all the code that I try doesnt work.
I have a file .fla and some other files like .as(I think they are actionScript classes dependent of the fla). But I am trying to create the swf with adobe flash. So I open the fla and I do: File - export movie but the resultant swf file is less size than the original swf file because I think it is not including the dependent *.as files.
I am wondering about how to create Apple Maccintosh DOC in Adobe Flash.It should work same as it work in Mac (like SLIDING and GROWING movement on mouse over).
I've got a DVD style project where I need to be able link to files such as PDFs, JPGs and WMVs giving the user the ability to save these to their local drive.
I'm creating it with CS4 but the Filereference.save doesn't work as it needs a HTTP or HTTPS address.
I am trying to create a new swf with AIR and Flash CS3. All I want to do is push a button and have a new swf saved to the desktop with a line of actionscript in it. The actionscript can be anything stop(); - for instance.I have been messing around with ByteArray and I can save an image to a swf but I can't find any information on what I want to do.
And I am creating a box game where the user has to avoid the boxes but i want to put lives on so when the user moves over the box one of the lives goes down.
I am creating traffic lights, but I'm new to flash. I have a timer that ticks 6 times. However, I want to make the timer refresh after 6, and on each tick, a different traffic light shows.So far I have this:
var myTimer:Timer = new Timer(2000,6); var counter:Number = 0; myTimer.start();
I am trying to generate a list of links via xml using as3. I have created a movie linkHolder and a text field called linkText.
I then add link text to linkHolder and add linkHolder to the stage. I have an eventListener attached to linkHOlder which calls a function and when I roll over the links it activates the function correctly.
How do I give a unique id or reference to each button so that I can pull up the correct link associated with it?
Here's some of my code:
Code:
function createVideoLinks():void{ for (var i:int=0; i<externalXML.videoClip.length();i++){ //build the arrays of link text and link destination vidText[i]=externalXML.videoClip.vTitle[i];
I am on the last leg of finishing up a full flash site and all of a sudden out of nowhere I started getting this error when I try and test the movie.
"Error creating Flash movie file. Be sure the destination file is not locked or on a locked drive. Also, check that the file name is not too long."
Nothing actually changed in the flash file besides scripting when it started occurring. I went back and erased what I had done. Tried moving the frames to a new project, tried saving it as another file, saving it to the desktop instead of my external. Nothing works!! The strangest part is that it will work fine when I delete a couple text fields and then if I try and add something to the stage it will get the error again. Almost like I've hit some sort of limit.
I am trying to get each of the following pictures in my flash file to link to different webpages. I have tried a bunch of different things, and can't quite get it to work right. I have put different urls on the images, but when I click on them they all go to that first url.
Basically, as a part of my college assignment, I have to create a media jukebox in Flash. However, I have never actually used Flash before in my life, so I'm completely lost. create a jukebox or point me to a simple tutorial that shows how to make it.
I searched on Google but the best I found was this:[URL]. It looks simple but it requires some sort of extension which costs �70.I made a rough design of the jukebox in PowerPoint. I don't know whether or not I will be able to actually make something that looks like it though.
I am trying to create a flash program that will create a slideshow on the fly. I have a collection of music and images that I want to put in the show. The program will pick a piece to play randomly and the next image to show is also picked randomly. However, the speed at which the images will be shown in the show is decided by the tempo/speed/mood of the music at that moment. In one piece of music there will faster and slower movement, and the slide will fade in sooner if the music is faster and vice versa. The show will keep running until the program quits.
I'm trying to create a pull down menu. Not one that drops down when rolled over but one that drops down when clicked and stays down until an item is selected. Once an item is selected or the menu is clicked out of it retracks again.
My strategy is to create a movie clip for the initial menu that when clicked jumps to another movie clip where ther menu is extracted and houses movie clip buttons that hightlight when rolled over and when clicked redirect to another movie clip related to the button that was selected.
is this the proper way to do this? And second: can you offer some direction for the action script?
I try to do a gallery(not important right now) bar that expand when the mouse over it, and back to normal when the mouse get out. I used AS3. There is frame 1, 5 and 10, when 1 and 10 is the normal/small sized bar, and 5 is the big one. As you guessed, 1->5 and 5->10 connected in motion tween, and the layer goes as a loop. The problem is AS:Frame 1:
Actionscript Code: stop();var up = false;rollingBack.addEventListener(MouseEvent.MOUSE_OVER,function(){ up = true;});rollingBack.addEventListener(MouseEvent.MOUSE_OUT,function(){ up =