RandyGeorgeRedSox
asked on
Need help developing a standalone testing application in Flash 8
I'm trying to develop an online testing application for an Office 2007 class I must teach. I want the interface to be web based and look great so I'm wondering if Flash 8 would be a suitable platform for developing a testing application that has say 50 questions. I would obviously need to do everything necessary to collect answers during the test and grade the test appropriately. Is this something that Flash can do as a standalone application? Has anyone run across any examples of something like this where you ask a user for input, collect and store the input and generate results based on the stored input? I'm a beginner developer and Flash person so I know this will be a very steep learning curve to develop, but I'm committed to learning. I'd be willing to pay a few bucks if someone is willing to take the time to get me started.
Thanks!
Thanks!
ASKER
the questions will be all different types, and sorry for the contradiction. I would like to be able to offer the exam as a standalone install but a web based product that looks great is more important.
how do you intend to get the result back to you?
ASKER
I have no idea!!!!! HAHAHAHA HOHO.
Honestly - I'm really trying to determine if Flash can do what I'm looking to do and if you know or have seen any code examples out there that might even remotely resemble something like a testing app, I'd love a tip on where to look. Thanks!
Honestly - I'm really trying to determine if Flash can do what I'm looking to do and if you know or have seen any code examples out there that might even remotely resemble something like a testing app, I'd love a tip on where to look. Thanks!
Hello. Yeah, flash can do it, but it's no walk in the park. A standalone kiosk can quite easily collect all answers and data input to the "test" and (example) email the data to you for filtering in your database of choice. The trick is to bypass the standard "quizzes" variables flash offers you, and create your own vars in the mc's provided. The tally of the totals flash offer you as well.
The actual design of the quiz is explained pretty well in the standard tutorials you get with the application.
Web based is by far easier, as you then POST all variables of the test taken through an ASP page to your database of choice. You see, when you submit variables from flash, any web application targeted for listening will pick up the variables, and pars them to the format you desire.
It took me around a year to perfect this method, for each time the flash player advanced, it would reject some custom code, and you'd have to re-script it.
Here is a short example:
loadVariablesNum ("http://"+targetHost+"/BondData/ fullinstal l/data/tim eA.asp", 0, "POST");
//Where target host being the machine or server you want the details to sort
In the asp page, you’d have the following:
<%@ LANGUAGE = VBScript %>
<% Option Explicit %>
<% Response.Expires= -1 %>
<%
Dim oConn, oRs, filePath, xselsurname, xselname, xjpassword, xbuysurname, xbuyname, xdiff, xstand, xhouse, xstreet, xsuburb, xhousepic, xstatus, xdealcomments
filePath = Server.MapPath("yourfile.m db")
Set oConn = Server.CreateObject("ADODB .Connectio n")
oConn.Open "Provider=Microsoft.Jet.OL EDB.4.0;Da ta Source=" & filePath
xselsurname = request.form("txtselsurnam e")
xselname = request.form("txtselname")
xjpassword = request.form("txtjpassword ")
xbuysurname = request.form("txtbuysurnam e")
xbuyname = request.form("txtbuyname")
xdiff = request.form("diff")
xstand = request.form("txtstand")
xhouse = request.form("txthouse")
xstreet = request.form("txtstreet")
xsuburb= request.form("txtsuburb")
xhousepic = request.form("txthousepic" )
xstatus = request.form("txtstatus")
xdealcomments = request.form("txtdealcomme nts")
oConn.Execute "insert into client (SellerSurname, SellerInit, jPassword, BuyerSurname, BuyerInit, TransactionDate, PropertyStand, HouseNum, StreetName, Suburb, HousePic, Status, DealComments) values (" & "'" & xselsurname & "'" & "," & "'" & xselname & "'" & "," & "'" & xjpassword & "'" & "," & "'" & xbuysurname & "'" & "," & "'" & xbuyname & "'" & "," & "'" & xdiff & "'" & "," & "'" & xstand & "'" & "," & "'" & xhouse & "'" & "," & "'" & xstreet & "'" & "," & "'" & xsuburb & "'" & "," & "'" & xhousepic & "'" & "," & "'" & xstatus & "'" & "," & "'" & xdealcomments & "'" & ")"
response.write("confirm=y" )
oConn.Close
Set oConn= Nothing
%>
//assuming the vartiables you have in your test i.e name, surname, answer1, answer2 etc. are in the ASP and declared with a valid destination in the database file.
Yup, no easy way around it.
D3sign3r.
The actual design of the quiz is explained pretty well in the standard tutorials you get with the application.
Web based is by far easier, as you then POST all variables of the test taken through an ASP page to your database of choice. You see, when you submit variables from flash, any web application targeted for listening will pick up the variables, and pars them to the format you desire.
It took me around a year to perfect this method, for each time the flash player advanced, it would reject some custom code, and you'd have to re-script it.
Here is a short example:
loadVariablesNum ("http://"+targetHost+"/BondData/
//Where target host being the machine or server you want the details to sort
In the asp page, you’d have the following:
<%@ LANGUAGE = VBScript %>
<% Option Explicit %>
<% Response.Expires= -1 %>
<%
Dim oConn, oRs, filePath, xselsurname, xselname, xjpassword, xbuysurname, xbuyname, xdiff, xstand, xhouse, xstreet, xsuburb, xhousepic, xstatus, xdealcomments
filePath = Server.MapPath("yourfile.m
Set oConn = Server.CreateObject("ADODB
oConn.Open "Provider=Microsoft.Jet.OL
xselsurname = request.form("txtselsurnam
xselname = request.form("txtselname")
xjpassword = request.form("txtjpassword
xbuysurname = request.form("txtbuysurnam
xbuyname = request.form("txtbuyname")
xdiff = request.form("diff")
xstand = request.form("txtstand")
xhouse = request.form("txthouse")
xstreet = request.form("txtstreet")
xsuburb= request.form("txtsuburb")
xhousepic = request.form("txthousepic"
xstatus = request.form("txtstatus")
xdealcomments = request.form("txtdealcomme
oConn.Execute "insert into client (SellerSurname, SellerInit, jPassword, BuyerSurname, BuyerInit, TransactionDate, PropertyStand, HouseNum, StreetName, Suburb, HousePic, Status, DealComments) values (" & "'" & xselsurname & "'" & "," & "'" & xselname & "'" & "," & "'" & xjpassword & "'" & "," & "'" & xbuysurname & "'" & "," & "'" & xbuyname & "'" & "," & "'" & xdiff & "'" & "," & "'" & xstand & "'" & "," & "'" & xhouse & "'" & "," & "'" & xstreet & "'" & "," & "'" & xsuburb & "'" & "," & "'" & xhousepic & "'" & "," & "'" & xstatus & "'" & "," & "'" & xdealcomments & "'" & ")"
response.write("confirm=y"
oConn.Close
Set oConn= Nothing
%>
//assuming the vartiables you have in your test i.e name, surname, answer1, answer2 etc. are in the ASP and declared with a valid destination in the database file.
Yup, no easy way around it.
D3sign3r.
i would set it up to have the player ask for user id (name, student number, something unique to that person) then set up a mc for each question, accepting input from the user, storing that input (input = answer) in a variable, move on to next question, store the input in another variable, etc.... at the end, send all variables to a php page that gives the user an option to review, and if all is good, click a button and have it emailed to you.
i would avoid the stand alone way.
my way may be the way D3SIGN3R is trying to avoid, but i know little to nothing about databases.
i would avoid the stand alone way.
my way may be the way D3SIGN3R is trying to avoid, but i know little to nothing about databases.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks a million for the tip sibgig, that's exactly what i was looking to find out.
glad i could help, enjoy!
*sniff*
D3SIGN3R looks at his bloody fingers, looks at the screen ....
thinks about his megatron vx4000 plasma blaster ....
um, ok, yeah.
Good 1.
D3SIGN3R looks at his bloody fingers, looks at the screen ....
thinks about his megatron vx4000 plasma blaster ....
um, ok, yeah.
Good 1.
also you say "I want the interface to be web based " then later ask "Is this something that Flash can do as a standalone application?" so i wondering which you want, web based or standalone?