A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Question for the flash gurus

  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    1

    Question for the flash gurus

    Hello all,

    I have a question (hopefully simple) and was wondering if anyone could offer some suggestions. First of all I am currently using Flash MX 6.0.

    Here's what I am trying to do:

    I have a frame set up with a multiple choice "learning interaction" object. I would like for the button (which is a navigation button -- not the one used in the learning interaction) to be scripted to go to different frames based on the user's results. In other words, if the user is not able to answer the question correctly, I would like for the button to go to frame 2 (which would offer a review). If the question is answered correctly, I would like the button to take the user to a different frame (thus skipping the review frame). I was thinking that the button should somehow be scripted based on the results of the feedback template textbox. Is this possible? Any ideas on how this could be accomplished? Please let me know if further information is required. Thanks!

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    If a button with wrong choice looks like this.

    on(release){
    choice1="wrong";
    }

    ...and the correct button....

    on(release){
    choice1="right";
    }


    ....the link button would look like this ( going to a frame that is labeled review or question2 .

    on(release){
    if(choice1=="wrong"){
    gotoAndStop("review");
    }else{
    gotoAndStop("question2");
    }
    }

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center