Score Box

I have a Dynamic Score box that does not display the correct score.  This is the code I have
if (man.hitTest(circle)){
  circle._x=5;
  score=score + 1
  scoreDisplay.text=score
Can you help

that needs to repeatedly execute (in an enterframe or setinterval) loop.

Similar Messages

  • Best way to add a score to a score box and total it up.

    I am creating a game for children to make good food choices
    for breakfast, lunch, dinner, and snacks. I need to have the food
    choice add a value to a score box when clicked onto the plate and
    subtract the same amount when clicked off. So far, all I have been
    able to do is get the score to appear in the upper left hand
    corner. When I can get the pancakes working properly, I will be
    adding other foods which will do the same thing with different
    numbers. The total score cannot go over 100. I am attaching the .as
    code, but it is separate from the .fla and I'm not sure if I can
    upload the .fla here.

    That worked! Now, I have another problem I can't seem to
    figure out--when I add another food, berries, all it is doing is
    moving the pancakes and not itself! Here is the revised coding:
    package
    //import any class being used by this package
    import flash.display.MovieClip;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.events.MouseEvent;
    public class MealGame extends MovieClip
    //altered version
    var offPlate:Boolean; //variable for food off the plate
    var gameScore:int = 0;
    public function MealGame()
    //Create a score field for the pancakes.
    var gameScoreField:TextField = new TextField();
    // set the position values
    gameScoreField.x = 445;
    gameScoreField.y = 530;
    //Show the score field
    addChild(gameScoreField);
    var tf:TextFormat = new TextFormat();
    var scoreBox:Object = getChildAt(numChildren-1);
    //scoreBox.x = 445;
    //scoreBox.y = 530;
    //Create a new instance of the meal class.
    var pancakes1:Pancakes = new Pancakes();
    var berries1:Berries = new Berries();
    //Display the food on this stage.
    this.addChild(pancakes1);
    this.addChild(berries1);
    //Position the food item.
    pancakes1.x = 11;
    pancakes1.y = 42;
    berries1.x = 211;
    berries1.y = 396;
    offPlate = true;
    //make the food item a button
    pancakes1.buttonMode = true;
    pancakes1.addEventListener(MouseEvent.CLICK, onClick);
    berries1.buttonMode = true;
    berries1.addEventListener(MouseEvent.CLICK, onClick);
    //toggle the food item to put on plate or off the plate
    //toggle adding to the score or removing from the score
    function onClick(event:MouseEvent):void
    if(offPlate)
    pancakes1.x = 119;
    pancakes1.y = 380;
    berries1.x = 515;
    berries1.y = 55;
    //add to score
    gameScore = gameScore + 50;
    gameScoreField.text = " " + String(gameScore);
    tf.font = "Arial";
    tf.bold = true;
    tf.color = 0x000000;
    tf.size = 32;
    //Take this text formatting object; apply it to the
    textfield
    gameScoreField.setTextFormat(tf);
    //toggle the offPlate value
    offPlate = !offPlate;
    else
    pancakes1.x = 11;
    pancakes1.y = 42;
    //berries1.x = 211;
    //berries1.y = 396;
    //remove from score
    gameScore = gameScore - 50;
    gameScoreField.text = " " + String(gameScore);
    tf.font = "Arial";
    tf.bold = true;
    tf.color = 0x000000;
    tf.size = 32;
    //tf.x = 426;
    //Take this text formatting object; apply it to the
    textfield
    gameScoreField.setTextFormat(tf);
    offPlate = !offPlate;
    }

  • Global Score NOT FUNCTIONING

    Hello:
    My score does not appear at all in the score box (dynamic
    text field) referenced as insert_txt.text when I press the submit
    button, even if I give the correct or wrong answer.
    "myScore" is referenced as the var
    I performed a trace ("clik") and the button seems to be
    working properly.
    Please help.

    did you remove the var associated with myScore_txt ?
    "uxk8396" <[email protected]> wrote in
    message
    news:eo4ir1$rgr$[email protected]..
    >I added the line (myScore_txt.text = _global.myScore;)
    > with all the score values but it is still NOT working.
    > What should I do now??
    >
    > __________________
    >
    > stop();
    > //set the inital score
    > _global.myScore = 0;
    > _root.myScore_txt.text = _global.myScore;
    > //
    > //Making use of the submit button (1st option)
    > _root.submit_btn.onRelease = function() {
    > if (_root.insert_txt.text == "lascaux" ||
    _root.insert_txt.text ==
    > "Lascaux")
    > {
    > _global.myScore += 5;
    > _root.myScore_txt.text = myScore;
    >
    > //_root.gotoAndStop("Right1")
    > trace("gogot");
    > } else {
    > _global.myScore += 0;
    > _root.myScore_txt.text = _global.myScore;
    >
    > //_root.gotoAndStop("Wrong1");
    > }
    > };
    >
    >
    >

  • Non-Programmer Needs Help!!! (desperately)

    Ok, I want to create games for a virtual world website. I also want the website to be a game itself. Right now, I am working on creating a card game for two players (with the option of playing the computer). They each have 2 decks to draw from and a place for 2 cards to be displayed (their "hand") before they place it on the game board. I don't want their opponent to see the cards in their "hand" until they are placed on the game board. When a player has two cards in his hand, I want them to have the capability of enlarging the image of the card to full size in a pop-up type window, so they can calculate their strategy. The game itself is similar to the popular battle card games, so regular playing card games don't help me. I want the image of the card to be displayed on the game board either right side up or upside down depending upon the button pushed by the player. I want each player to play 1 card from one pile (blue-50 cards total) and 4 cards from the other pile (red-200 cards total). They can only draw 1 blue card, and 1 red card on their first turn. After that, they can only draw 1 red card per turn, until they have drawn 4 red cards total. The total number of cards each player can have on the game board is 5 cards, then the round ends. Each deck has the same cards but shuffled in random order. The decks can't be stacked the same, for each player. Each card has a certain value. The card from the blue pile is the main card that the cards from the red pile will add to or subtract from. If the match between the opponents is tied, no score is given to either player, but the cards from both players to go to the corresponding "tie" piles (one red and one blue) that will be randomly distributed by the computer, once each player has exhausted their own decks first. The tie piles are used at the end of the game to play the final round or rounds of the game. After each round, the victor of that round gets the points on his opponents cards, plus 1000 points for winning the round. I want the cards to just "disappear" or placed in the computer's "discard" pile after each round, so they cannot be used again. I want each player to have a turn being first at the beginning or each round. (If player 1 is first in round 1, player 2 will go first in round 2 and so on.) I want the scores for each card to be calculated and placed in a box according to which player the cards belong to. Once the round is ended, the victor will receive the final score in their "total score" box. I also want a "round number" box to indicate which round it is. No winner will be declared until the players use all their cards and/or the computer deals all the tie deck cards (which are shuffled before dealing). At the end of the game, the person with the highest score is the winner.
    I also would like to allow players to challenge each other and accept or decline a challenge. In order to do that, the players must login first. There must also be a list of available players to challenge.
    Is there a program that not only builds the user interface, but also will allow me to insert my graphics? Kind of like WYSIWYG HTML builders? (Preferably FREE) I have a gui builder, but have no clue as to how to put in the graphics or get it to work. I don't have any connections to the programming world, nor am I able to return to school at this time. The programs that Sun offers are not adequate for me, because I need to be able to install it, and run it without going through the "msdos classpath" thingy. I need a "wizard" type program that is truly for "dummies." Something that I can just put in my images and tell it what I want it to do IN PLAIN ENGLISH. For instance, if I want the "login button" to save the login information to a file and/or to the game. The players can have their same login info stored in a file, and they can return without creating a new name. The website service I want to place this on, doesn't allow chmoding for CGI, so I can't use that. Another example, if I want each card to have a differnt point level and either subtract from or add to the blue. Or how to get the pop-up for the card displayed in the player's hand. I don't know what else to do. Any suggestions?

    <blockquote>
    The programs that Sun offers are not adequate for me, because I need to be able to install it, and run it without going through the "msdos classpath" thingy. I need a "wizard" type program that is truly for "dummies." Something that I can just put in my images and tell it what I want it to do IN PLAIN ENGLISH. For instance, if I want the "login button" to save the login information to a file and/or to the game. The players can have their same login info stored in a file, and they can return without creating a new name. The website service I want to place this on, doesn't allow chmoding for CGI, so I can't use that.
    </blockquote>
    This is a surely a joke. You honestly expect to get this for free. Even for an experienced programmer, to write 3/4 decent games - configure them to your network and meet these conditions. You're talking BIG or big-ish project here. As per your request, there is no such thing as point and click programming and there never ever will be.
    Use Macromedia Director. Closest thing you'll get to
    WYSIWYG programming. It's for simpletons and
    non-programmers.Ah, noooo. The shockwave games have been programmed in Lingo, which is quite powerful and much harder as a programming language than java (its also outdated, has some nasty featured and its a definite falling star). Flash gets a bit nearer with a point and click effort and you can do a surprising amount without knowing about programming, also as a media for the Internet its better supported than Shockwave and even java for the Web. But for any sort of worthwhile game need sprogramming knowledge.
    To conclude:
    you don't want to learn to program.
    noone is going to do this for you.
    You're a bit f***ed then aren't you.
    On a brighter note, if you pay me ?1,000.00 (half in advance), I'll think about it - solution in java or Flash, 3 games, ?1,500.00 for both. I can take it or leave it btw, couldn't give a sh*t either way.

  • Powershell: Empty Folder Cleanup of Multiple Accounts

    My apologies if this is not the correct subforum.   I work in a heavily automated environment that uses Exchange in its document processing tasks.  Emails get sent to folders, then read from them and further processed, then archived. 
    This results in hundreds of empty archive folders, which I would like to clean up on a schedule.  I have found a functional script that uses EWS and works well for a single mailbox/account:
    ##Version 2 added url encoding
    ## Get the Mailbox to Access from the 1st command line argument. Enter the SMTP address of the mailbox
    $MailboxName = "SMTPAddress"
    ## Load Managed API dll
    Add-Type -Path "C:\Program Files\Microsoft\Exchange\Web Services\2.0\Microsoft.Exchange.WebServices.dll"
    Add-Type -AssemblyName System.Web
    ## Set Exchange Version. Use one of the following:
    ## Exchange2007_SP1, Exchange2010, Exchange2010_SP1, Exchange2010_SP2, Exchange2013, Exchange2013_SP1
    $ExchangeVersion = [Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2007_SP1
    ## Create Exchange Service Object
    $service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService($ExchangeVersion)
    ## Set Credentials to use two options are available Option1 to use explicit credentials or Option 2 use the Default (logged On) credentials
    ## Credentials Option 1 using UPN for the Windows Account
    $psCred = Get-Credential
    $creds = New-Object System.Net.NetworkCredential($psCred.UserName.ToString(),$psCred.GetNetworkCredential().password.ToString())
    $service.Credentials = $creds
    ## Credentials Option 2
    #service.UseDefaultCredentials = $true
    ## Choose to ignore any SSL Warning issues caused by Self Signed Certificates
    ## Code From http://poshcode.org/624
    ## Create a compilation environment
    $Provider=New-Object Microsoft.CSharp.CSharpCodeProvider
    $Compiler=$Provider.CreateCompiler()
    $Params=New-Object System.CodeDom.Compiler.CompilerParameters
    $Params.GenerateExecutable=$False
    $Params.GenerateInMemory=$True
    $Params.IncludeDebugInformation=$False
    $Params.ReferencedAssemblies.Add("System.DLL") | Out-Null
    $TASource=@'
    namespace Local.ToolkitExtensions.Net.CertificatePolicy{
    public class TrustAll : System.Net.ICertificatePolicy {
    public TrustAll() {
    public bool CheckValidationResult(System.Net.ServicePoint sp,
    System.Security.Cryptography.X509Certificates.X509Certificate cert,
    System.Net.WebRequest req, int problem) {
    return true;
    $TAResults=$Provider.CompileAssemblyFromSource($Params,$TASource)
    $TAAssembly=$TAResults.CompiledAssembly
    ## We now create an instance of the TrustAll and attach it to the ServicePointManager
    $TrustAll=$TAAssembly.CreateInstance("Local.ToolkitExtensions.Net.CertificatePolicy.TrustAll")
    [System.Net.ServicePointManager]::CertificatePolicy=$TrustAll
    ## End code from http://poshcode.org/624
    ## Set the URL of the CAS (Client Access Server) to use two options are available to use Autodiscover to find the CAS URL or Hardcode the CAS to use
    ## CAS URL Option 1 Autodiscover
    $service.AutodiscoverUrl($MailboxName,{$true})
    "Using CAS Server : " + $Service.url
    ## CAS URL Option 2 Hardcoded
    #$uri=[system.URI] "https://casservername/ews/exchange.asmx"
    #$service.Url = $uri
    ## Optional section for Exchange Impersonation
    #$service.ImpersonatedUserId = new-object Microsoft.Exchange.WebServices.Data.ImpersonatedUserId([Microsoft.Exchange.WebServices.Data.ConnectingIdType]::SmtpAddress, $MailboxName)
    ## Show Trace. Can be used for troubleshooting errors
    #$service.traceenabled = $true
    function ConvertId{
    param (
    $OwaId = "$( throw 'OWAId is a mandatory Parameter' )"
    process{
    $aiItem = New-Object Microsoft.Exchange.WebServices.Data.AlternateId
    $aiItem.Mailbox = $MailboxName
    $aiItem.UniqueId = $OwaId
    $aiItem.Format = [Microsoft.Exchange.WebServices.Data.IdFormat]::OwaId
    $convertedId = $service.ConvertId($aiItem, [Microsoft.Exchange.WebServices.Data.IdFormat]::EwsId)
    return $convertedId.UniqueId
    ## Get Empty Folders from EMS
    get-mailboxfolderstatistics -identity cnrecon | Where-Object{$_.FolderType -eq "User Created" -band $_.ItemsInFolderAndSubFolders -eq 0} | ForEach-Object{
    # Bind to the Inbox Folder
    "Deleting Folder " + $_.FolderPath
    try{
    $urlEncodedId = [System.Web.HttpUtility]::UrlEncode($_.FolderId.ToString())
    $folderid= new-object Microsoft.Exchange.WebServices.Data.FolderId((Convertid $urlEncodedId))
    #$folderid= new-object Microsoft.Exchange.WebServices.Data.FolderId((Convertid $_.FolderId))
    $ewsFolder = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service,$folderid)
    if($ewsFolder.TotalCount -eq 0){
    $ewsFolder.Delete([Microsoft.Exchange.WebServices.Data.DeleteMode]::SoftDelete)
    "Folder Deleted"
    catch{
    $_.Exception.Message
    With a little tweaking this works great for each mailbox I run it against by defining the $MailboxName as the SMTP address of the desired box I want to clean.  It's worth noting that for some reason the $MailboxName alias isn't working in the part where
    it looks up in Autodiscover...I have to manually put the address in there as well.
    My question is, can this be modified to work against multiple email boxes?  I have several score boxes with hundreds of empty archived folders each.  Running an individual script for each box seems inefficient.  I tried supplanting a text
    file with addresses for $MailboxName, but that doesn't work in the Autodiscover part further down.
    Thank you for any help you can offer, I'm not very experienced with Powershell or scripting in general, so this feels like I'm diving in a little deep.

    You need to rewrite the script to do that eg maybe use Get-Mailbox to feed
    get-mailboxfolderstatistics, you'll still need to process each and every mailbox individually.
    >> Thank you for any help you can offer, I'm not very experienced with Powershell or scripting in general, so this feels like I'm diving in a little deep.
    with a script like this that deletes data you do want to be very careful if your going to run it against 100's of mailboxes, my suggestion is you rewrite it first as a reporting script where you just output the result to a text file then when you have that
    running well and your confident it's not going to delete anything that it shouldn't you can than change it to a script that deletes things.
    Cheers
    Glen

  • How do I add auto text based on value in numeric field?

    Need help... I'm trying to add auto text to a text field based on a value in a numeric field. I want my text field (summary box) to say "Passed" if the value (score box) is equal to 10 and the field to say "Not Passed" if the value is equal to less than 10. My numeric field is being calculated by selecting drop-down lists.
    Thanks in advance for your help.
    Ed Watson
    Here's a link to the document I created...
    https://files.acrobat.com/?trackingid=KGLIT#folder/c3106c32-2e69-4a5f-8ef2-94d25623dbfb

    I think I figured it out.  I used the following script:
    if(NumericField1.rawValue ==1){TextField1.rawValue = "Did Not Pass"}
    if(NumericField1.rawValue ==2){TextField1.rawValue = "Did Not Pass"}
    if(NumericField1.rawValue ==3){TextField1.rawValue = "Did Not Pass"}
    if(NumericField1.rawValue ==4){TextField1.rawValue = "Did Not Pass"}
    if(NumericField1.rawValue ==5){TextField1.rawValue = "Did Not Pass"}
    if(NumericField1.rawValue ==6){TextField1.rawValue = "Did Not Pass"}
    if(NumericField1.rawValue ==7){TextField1.rawValue = "Did Not Pass"}
    if(NumericField1.rawValue ==8){TextField1.rawValue = "Did Not Pass"}
    if(NumericField1.rawValue ==9){TextField1.rawValue = "Did Not Pass"}
    if(NumericField1.rawValue ==10){TextField1.rawValue = "Passed"}
    There's probably a cleaner way to do the same thing but at least this works for now.  Hope this helps someone else.

  • Hyperlinks in Captivate 7

    I created several text captions that hyperlinked to different slides in my Captivate 7 (64 bit version) presentation.  At one point they all worked beautifully.  Today I went to check the presentation before sending it out and only 4 out of the 12 hyperlinks still worked.  This holds true in SWF published mode or when I use F4 to preview.  (When they all worked,they also worked using F4 preview and as published as a SWF file).  Now, when I click on a hyperlink that doesn't work, the presentation just stops.  It doesn't freeze because I can still click on the working links.  I might add I also have two buttons on the same slide that hyperlink to different slides as well.  This was working so beautifully before I am pulling my hair out to figure it out.  I've been comparing the working hyperlinks with the non working ones to see if there are any differences in the settings and they look identical to me.  I'd appreciate any help anyone can give me.  The problem is NOT Adobe Flash security, as I tried that fix and got no results.  I tried removing then reestablishing the hyperlinks and that did no good either.  I did an F9 and saw nothing that would help. Thanks in advance for your help.

    Thank you for your response. Unfortunatey I have tried everything you mentioned.  The hyperlinks don't work in html or swf.  The strange thing is that the first 4 do work and the remaining ones on the same slide do not, so I went back to see if I could spot any differences in how the first four were set up as opposed to the ones that didn't work so I did look at modify the hyperlink for the working and non working hyperlinks. I can't find any differences.  I also tried "force republish all slides" before and that didn't work.  I apologize.  I realize now I didn't list everything I tried in my original post (which of course has led to a great deal of frustration because I have to get this training out.)
    Here's another thought.  I had a button on that same slide that hyperlinked to the final test results slide (I had quiz questions scattered throughout the presentation.) I wanted to be able to allow participants to quickly access the final test results slide if they chose to move around the presentation in their own way.  I found that by adding this button, it counted as a test question and added a point to the overall score.  When I unchecked this 'include in score' box, everything worked fine, except that's when I noticed my hyperlinks didn't work.  Connected?

  • Passing text to new text fields

    Hello everyone. I've been going crazy with this trying to
    figure out why my variable isn't 'passing to another frame on the
    same scene. I declared a variable ( var sStudentParagraph:String =
    mcStudentWrite.text ). Where the "mcStudentWrite.text is the text
    inside an input text box.
    I trace the value of it after I click a submit button I made,
    and it shows me the value of whatever I happened to type in the
    input text box. The user is then lead to a screen witih a new
    dynamic text box that should display what they typed on the
    previous input text box. ( mcStudentWork.text = "you typed " +
    sStudentParagraph; ). But nothing loads into the "mcStudentWork"
    dynamic text box, I just get a value of undefined...
    I've worked with with numeric values before for scoring tests
    etc, and having the value load into a dynamic text box revealing
    their score, and tha'ts worked fine. I'm at a loss as to why this
    isn't working for me. Any insights will be most appreciated.

    So future text boxes have to be present on stage in order for
    them to work in the future? I had never realized this. The
    mcStudentWork text box is the new textbox that should be displaying
    the input text from the previous user submission, but it's on the
    stage on the frame in which it's needed to be seen, but not prior
    to that. The only text box the user sees prior to that is the
    StudentWrite text box.
    But when I did my test scoring dynamic text box I never had
    to do that.
    I used a variable declared at an earlier time, on a different
    frame, and when the score box needed the number of correct answers
    it displayed the correct number just fine.
    I'm seeing the undefined when I trace the "sStudentWork"
    variable when I'm on the frame that has the dynamic input text box
    "mcStudentWrite". For some reason it seems like it's forgetting the
    variable from one frame to the next. I don't have the variable
    declaration inside a button function, it's the first thing I have
    written after the stop command.

  • Can I get getting the input image from internet?

    Hi I  know the input could be a file using different formats, but can I use Premiere PRO
    to capture the image and edit it to add some text.
    ( i.e ). we have a potential customer, who could give us the opportunity to cover some
    events, for that we were thinking to use this device :
    http://www.mushroomnetworks.com/product/streamer-pro
    As you can see at that url , they can give us the  reassembly  service for bonding uplink for the unit to the CDN.
    ( Content Delivery Network ),  The question is :
    Can I use Premiere PRO to get that image ?  edit it and add a Score box ( if that event is a football game ), or
    something else, like a title.
    If that is possible what would be the best place to do that ?, Maybe between the two clouds ?, of there is a url
    address for each one of them.
    Thanks.

    You need to first do the set-up in iPhoto prefs and navigate all the way to the Support Files folder.
    - Open iPhoto and choose iPhoto >> Preferences.
    - Select the General tab.
    - Click the Edit Photo menu and select In Application.
    Then navigate to:
    Applications/Adobe Photoshop Elements 13/Support Files/Photoshop Elements 13 Editor
    Highlight the editor application (Photoshop Elements 13 Editor not Adobe Photoshop Elements 13) and click Open
    Then close iPhoto Prefs.
    You should now be able to edit normally from the iPhoto Library e.g.
    Double-click to edit in iPhoto editor.
    Control (right) - click on a thumbnail to edit in elements editor.

  • Why does my sports content show teams that are not my favorites

    I have selected certain teams to show in my Sports Scores. Today the Scores box began showing other team scores which I have not selected. Why is this happening?

    I have no idea, the troubleshooting information that you provided does not have any sports add ons, may I ask if this is associated with an account that you may have been logged out of? If so, please configure the account or switch back. Most likely Yahoo sports?
    Sign in here: [http://www.cbssports.com/nfl/scoreboard]

  • I am trying to open a box score on a baseball website. There is a lock on the top bar of my iPad and won't open the box score. It works on my husbands iPad. Can anyone help me remove this lock?

    I am trying to open a box score from a baseball website. There is a picture of a lock at the bar on top of iPad. My husband can bring it up on his iPad and it doesn't have a lock on the top. Please help.

    I have been having exactly the same problem for months now!

  • Is there a way to either run a "Score" thing in Keynote, or a text box that can be typed in during the presentation?

    Is there a way to either run a "Score" thing in Keynote, or a text box that can be typed in during the presentation?

    Keynote does not have this function.
    The only way to do this is to use an annotation application. Google and find the cost and functionality you need, many have trial downloads.

  • Help with code for score-keeping with dynamic text box

    Hi All,
    I'm having an actionscript 2.0 problem with keeping score.
    I have a dynamic text box with a variable called score.
    I have the following action code for that variable:
    _root.score = 0;
    For the correct answer button I have this action:
    _root.score = Number (score) +10;
    This works fine to increase the score by 10 for each correct answer.
    The problem is that I can't get an if statement to work for when the score reaches 150 to gotoAndPlay a certain frame. I've tried various syntax, I've tried it on the action for a button and an action for the timeline with: 
    onRelease = function () {
    (My learning game is set up to allow for users to answer up to four extra questions to reach the score of 150).
    Nothing works. Any suggestions please?
    Pam

    Below is a link to a small sample file.  See if you can find anything different between your file and the one linked that might cause yours to not work as desired.
    http://www.nedwebs.com/Flash/AS2_score_sample.fla

  • Quiz Variable Not Tracking Text Box Responses

    Hello Everyone,
         I am having a problem getting the Captivate Quiz variable to track correct responses from a text box. I am using Captivate 5 and trying to make a quiz where someone will enter in data that will be validated and branch off of their responses. I have set up several text boxes, turned on validating, checked the "Include in Quiz" box and the add to total and report answers boxes. See the pic below:
    I am trying to branch using an advanced action that checks the cpQuizInfoPointsscored variable and branches them based off their score. But the variable always shows 0! (I set up a text caption to display the variable as I went through to check.) Here is the weird part, I have the quiz results slide in the presentation, and IT accurately shows the results from the test boxes. But for some reason the Quiz Variable isn't tracking them! Any help??

    Hello and welcome to the forum,
    From your question I know that you are using CP5.0, correct? This 'bug' has been fixed in Captivate 5.5. Was one of the users who had insisted (by bug report) to have all Quizzing System variables updated after each question, and not only when the quiz was done, on the score slide; now you are bumping into this issue: the score in cpQuizInfoPointsscored will be tracked and will have the scores attached to the Text Entry Boxes or for any other scoreable object (all show up in the Advanced Interaction view - F9) but only at the score slide.
    I had a workaround in CP5 (have described it somewhere in an article or a blog post), using the Quizzing variable that IS updated after each question: cpQuizInfoLastSlidePointScored.
    If you want to have the functionality of CP5.5 you'll have to track the total score in a user variable by advanced actions. It is not really that hard, since you are already using advanced actions, step-by-step
    create a user variable v_currentscore
    on entering each question slide have this statement executed (if you do not have already an advanced action for this Enter event, and this is the only statement, better add Continue as second statement)
    Expression v_currentscore = v_currentscore + cpQuizInfoLastSlidePointScored
    now you can use this user variable for your check instead of cpQuizInfoPointsscored, you understand that it is only updated on the slide after the slide where the question is answered? Let me know if this is a problem
    Lilybiri

  • Text box not empty conditional statement

    I've been asked to develop a survey and, in several places, a
    score is given for the completion of text box. However, if there is
    no text in the box, then a score of zero should be given.
    I thought the best way to do this would be to use a hidden
    field with a conditional statement saying "if text box is not empty
    then score=4, else score=0.
    However, firstly I'm not sure how to write this and secondly,
    how do you check if a text box is empty?
    I think it really calls for some human input but the client
    is quite sure this is how he wants it.
    The scores are all going to be inserted into a mysql database
    and sorted out there, so there may be some fudge available there
    but if php could do something nice in the code, that would be
    preferable.
    Thanks in advance.
    Andrew

    Drewbles wrote:
    > However, firstly I'm not sure how to write this and
    secondly, how do you check
    > if a text box is empty?
    Believe it or not, with the PHP function called empty();
    http://docs.php.net/manual/en/function.empty.php
    if (empty($_POST['fieldName'])) {
    // give a score of 0
    } else {
    // give a positive score
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for

  • Accessing oracle apps from anywhere on the internet

    Hello, I have oracle apps R12.1.1 up and running on linux 6.3. I have disabled the firewall on linux. I am able to access apps from windows clients on the same network after updating the host files. I would however like to access the url form anywher

  • Transferring app saved data to new phone

    How can i save my data on my apps from my iphone 3g to my iphone 4? I mean like cycle app, i do not want to loose my progress. thanks need ideas

  • New to ESSBase. Installed successfully. How to configure SQL Source.

    Hi, Installed the following. Installer Foundation Services Studio Client Within the Administartion Services console I am doing the following. Created and application, db and outline. Go to Data Prep Editor and try to use a SQL Source. The SQL Source

  • Garageband Keeps Quitting Unexpectedly

    Hello all, I've been having issues with Garageband and would appreciate any help/suggestions you can provide. Whenever I am done a project and go to open a new one, the program asks me if I want to save it with an iLife preview. No matter whether I h

  • Sometimes my windows can't be closed down when I press the red button.

    Sometimes my windows can't be closed down when I press the red button on the left corner, but when i press the button next to it, the minimize button it works. This just happens sometimes, why is that?