I need help with my Tictactoe. can't  switch between  players Please Please

You will be building a Tic Tac Toe program, I have provided a program shell that has four functions:
printBoard- Prints the board as shows in the comments at the top of the file.
hasWon - Takes in a player's marker and tells us if that player has won
markTheBoard - marks the given location with the player's marker
isTie - Tells if there are no more spots and no winner
The play starts with X, the variable turn will keep track of who's turn it is.
At the beginning you will display the board with position numbers so the player knows how to place his/her marker.
The code will ask each player where they would like to place their marker until either
there are no more spots to play or one of the players wins.
The shell program is here
import java.util.Scanner;
* Represents a tic tac toe board on the console, positions are shown below:
* | 1 | 2 | 3 |
* | 4 | 5 | 6 |
* | 7 | 8 | 9 |
* An example board in mid play looks like this:
* | X | | |
* | | O | |
* | O | | X |
public class TicTacToe {
public enum Marker
EMPTY,
X,
O
private static Marker position1 = Marker.EMPTY;
private static Marker position2 = Marker.EMPTY;
private static Marker position3 = Marker.EMPTY;
private static Marker position4 = Marker.EMPTY;
private static Marker position5 = Marker.EMPTY;
private static Marker position6 = Marker.EMPTY;
private static Marker position7 = Marker.EMPTY;
private static Marker position8 = Marker.EMPTY;
private static Marker position9 = Marker.EMPTY;
private static Marker turn = Marker.X;
public static void main(String[] args)
          printBoard();
          Scanner scan = new Scanner(System.in);           
          for (int j = 1; j < 9; j++) {
          boolean validInput = false; // for input validation          
while(!validInput) {
if (turn == Marker.X) {
System.out.print("Player 'X', enter your move: ");
} else {
System.out.print("Player 'O', enter your move: ");
int player = scan.nextInt();
if (j == 1 || j == 3 || j == 5 || j == 7 || j == 9) {
                    turn = Marker.X;
                    markTheBoard(turn, player);
               } else if (j == 2 || j == 4 || j == 6 || j == 8) {
                    turn = Marker.O;
                    markTheBoard(turn, player);
                    }else {
System.out.println("This move at (" + j + ") is not valid. Try again...");
* This method will print the board as shown in the above example.
public static void printBoard()
          System.out.println("Welcome! Tic Tac Toe is a two player game.");
          System.out.println("Please Refer to the board below when asked to enter your values.");
               System.out.println();
          for (int x = 0; x < 1; x++) {
               for (int i = 0; i < 9; i += 3) {
                    System.out.println(" -------------");
                    System.out.println(" | " + (i + 1) + " | " + (i + 2) + " | "
                              + (i + 3) + " | ");
               System.out.println(" -------------");
               System.out.println();
* Checks if a particular player has won.
* @param m The player to check
* @return true if the player won, false if not
public static boolean hasWon(Marker m)
          boolean hasWon = true;
          System.out.println("Player " + m + " has won this game");
          return hasWon;
* Checks if the board is full with no winner
* @return true if the board is full with no winner, false otherwise
public static boolean isTie()
          boolean isTie = true;
          System.out.println("This game is a tie!");
          return isTie;
* Mark the given position with the given marker
* @param m The marker of the player given
* @param pos The position that we are marking
public static void markTheBoard(Marker m, int pos){
          switch (pos) {
               case 1:
                    position1 = m;
                    break;
               case 2:
                    position2 = m;
                    break;
               case 3:
                    position3 = m;
                    break;
               case 4:
                    position4 = m;
                    break;
               case 5:
                    position5 = m;
                    break;
               case 6:
                    position6 = m;
                    break;
               case 7:
                    position7 = m;
                    break;
               case 8:
                    position8 = m;
                    break;
               case 9:
                    position9 = m;
                    break;
               default:
                    break;
     System.out.println(" -------------");
     System.out.println(" | " + position1 + " | " + position2 + " | "
               + position3 + " | ");
     System.out.println(" -------------");
     System.out.println(" | " + position4 + " | " + position5 + " | "
               + position6 + " | ");
     System.out.println(" -------------");
     System.out.println(" | " + position7 + " | " + position8 + " | "
               + position9 + " | ");
     System.out.println(" -------------");          
          if (position1 == Marker.X && position2 == Marker.X
                    && position3 == Marker.X || position4 == Marker.X
                    && position5 == Marker.X && position6 == Marker.X
                    || position7 == Marker.X && position8 == Marker.X
                    && position9 == Marker.X) {
               hasWon(Marker.X);
          } else if (position1 == Marker.O && position2 == Marker.O
                    && position3 == Marker.O || position4 == Marker.O
                    && position5 == Marker.O && position6 == Marker.O
                    || position7 == Marker.O && position8 == Marker.O
                    && position9 == Marker.O) {
               hasWon(Marker.O);
          } else if (position1 == Marker.O && position2 == Marker.O
                    && position3 == Marker.X || position4 == Marker.O
                    && position5 == Marker.O && position6 == Marker.X
                    || position7 == Marker.O && position8 == Marker.O
                    && position9 == Marker.X) {
               isTie();
          if (position1 == Marker.X && position4 == Marker.X
                    && position7 == Marker.X || position2 == Marker.X
                    && position5 == Marker.X && position8 == Marker.X
                    || position3 == Marker.X && position6 == Marker.X
                    && position9 == Marker.X) {
               hasWon(Marker.X);
          } else if (position1 == Marker.O && position4 == Marker.O
                    && position7 == Marker.O || position2 == Marker.O
                    && position5 == Marker.O && position8 == Marker.O
                    || position3 == Marker.O && position6 == Marker.O
                    && position9 == Marker.O) {
               hasWon(Marker.O);
          if (position1 == Marker.X && position5 == Marker.X
                    && position9 == Marker.X || position3 == Marker.X
                    && position5 == Marker.X && position7 == Marker.X) {
               hasWon(Marker.X);
          } else if (position1 == Marker.O && position5 == Marker.O
                    && position9 == Marker.O || position3 == Marker.O
                    && position5 == Marker.O && position7 == Marker.O) {
               hasWon(Marker.O);
}

1006734 wrote:
You will be building a Tic Tac Toe program, I have provided a program shell that has four functions:No.
YOU+ will be doing that.
This is not a schoolwork cheat site.
You need to do your own work.
Post locked.

Similar Messages

  • I need help with XML Gallery Fade in out transition. somebody please help me :(

    I need help with XML Gallery Fade in out transition. somebody please help me
    I have my post dont want to duplicate it

    The problem doesn't lie with your feed, although it does contain an error - you have given a non-existent sub-category. You need to stick to the categories and sub-categories listed here:
    http://www.apple.com/itunes/podcasts/specs.html#categories
    Subscribing to your feed from the iTunes Store page work as such, but the episodes throw up an error message. The problem lies with your episode media files: you are trying to stream them. Pasting the URL into a browser produces a download (where it should play the file) of a small file which does not play and in fact is a text file containing (in the case of ep.2) this:
    [Reference]
    Ref1=http://stream.riverratdoc.com/RiverratDoc/episode2.mp3?MSWMExt=.asf
    Ref2=http://70.33.177.247:80/RiverratDoc/episode2.mp3?MSWMExt=.asf
    You must provide a direct link to the actual mp3 file. Streaming won't work. The test is that if you paste the URL of the media file (as given in the feed) into the address bar of a browser it should play the file.

  • Need help with "your purchase can not be completed" when buying an ibook (or anything else for that matter)

    I need help with an error message - "your purchase cannot be completed" when buying something on itunes.

    Lukas --
    Out of curiosity, did you activate the trial software?  Let us know and we will try to help.
    Dale A. Howard [MVP]
    VP of Educational Services
    msProjectExperts
    http://www.msprojectexperts.com
    http://www.projectserverexperts.com
    "We write the books on Project Server"

  • Need help with query that can look data back please help.

    hi guys i have a table like such
    CREATE TABLE "FGL"
        "FGL_GRNT_CODE" VARCHAR2(60),
        "FGL_FUND_CODE" VARCHAR2(60),
        "FGL_ACCT_CODE" VARCHAR2(60),
        "FGL_ORGN_CODE" VARCHAR2(60),
        "FGL_PROG_CODE" VARCHAR2(60),
        "FGL_GRNT_YEAR" VARCHAR2(60),
        "FGL_PERIOD"    VARCHAR2(60),
        "FGL_BUDGET"    VARCHAR2(60)
      )and i have a data like such
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7470','4730','02','10','2','200');I bascially need to get the total of the budget column. however its not as simple as it sound(well atleast not for me.) the totals carry over to the new period. youll noticed the you have a period column. basically what im saying is that
    fgl_grant_year 10 period 1 = for account 7600 its $100 and $100 for period 2 you see 100 dollars again this is not to be added this is the carried over balance. which remains $100.
    so im trying to write a query that basically does the following.
    im given a period for the sake of this example lets say period 1 i get nothing else. I have to find the greates grant year grab the amount for period 14(which is the total from the previous year) and add it to the amount of the current period. in this case period 1 grnt_year 11
    so the expected outcome should be $700
    240055     240055     7240     4730     02     10     14     200
    240055     240055     7600     4730     02     10     14     100
    240055     240055     7600     4730     02     11     1     400keep in mind that im not given a year just a period.
    any help that you guys can offer would be immensely appreciated. I have been trying to get this to work for over 3 days now.
    finally broke down and put together this post
    Edited by: mlov83 on Sep 14, 2011 8:48 PM

    Frank
    wondering if you can help me modify this sql statement that you provided me with .
    table values have been modified a bit.
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','00','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7200','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7600','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','11','2','600');i need to take one more thing into consideration. if the greatest year has a value on period 00 i need to ignore the period 14 and the current period total would be
    the current period +(current period - greatest year 00)
    hope that makes sense so in other words with the new data above. if i was querying period two of grant year 11. i would end up with $800
    because the greatest year is 11 it contains a period 0 with amount of $400 so my total should be
    period 2 amount $ 600
    period 0 amount $ 400 - period 2 amount of $600 = 200
    600+200 = $800
    if i query period 1 of grant 360055 i would just end up with 800 of grnt year 10.
    i have tried to modify that query you supplied to me with no luck. I have tried for several day but im embarrased to say i just can get it to do what im trying to do .
    can you please help me out.
    Miguel

  • I need help with installation.  Can you help?

    I have installed adobe flash with confirmation that it is installed and ready to  run.  However, when I try to access the site, it still tells me I need to install Flash.  Can you help?

    http://forums.adobe.com/thread/1195540

  • I NEED HELP WITH AN ILLEGIBLE ITUNES GIFTCARD. ANYONE! PLEASE

    I received an itunes gift card as a gift last year and i would like to redeem it now but the scratch off part was difficult to remove, unusually. When i carefully got it off, 3 numbers/ letters are missing. I called every number i could find on apple.com but nothing was helpful. Is there anyone out there that could please help me! Thank you

    If this page doesn't help then you will need to try contacting iTunes Support (you will probably need to give them images of the front and back of the card, and possibly its receipt) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes

  • URGENT Need Help with Login - "Skype can't connect"

    Hello, I've been trying to log into Skype for the past 2 hours and it just keeps coming up with an error message, "Skype can't connect". It does not provide any other information on how to fix the issue. I use Skype for work and it is not too helpfuly right now that it is not working. PLEASE HELP! Thank you so much!

    Kevazy wrote:
    Ruwim, could you please read my message I have sent you? Regards,KevazyTry to reset all Skype settings. Quit Skype or use Windows Task Manager to kill any Skype.exe process. Go to Windows Start and in the Search/Run box type %appdata% and then press Enter or click the OK button. The Windows File Explorer will pop up. There locate a folder named “Skype”. Rename this folder to something different, e.g. Skype_old. Next go to Windows Start and in the Search/Run box type %temp%\skype and then press Enter or click the OK button. Delete the DbTemp folder. Restart Skype. N.B. If needed, you will still be able to re-establish your call and chat history. All data is still saved in the Skype_old folder.

  • Need help with volume I can't get rid of and terminal

    I own a external HD named "elements". One day a second volume appeared named "elements". Every time I tried to save files to my external HD they were written on this mysterious volume. The volume isn't showed on my desktop - only when I try to save something with Opera (browser) or in the terminal I can see it.
    I renamed my external HD so I can write files to it. So far so good.
    But how can I get rid of this volume? The finder does not show it. Spotlight does noch find it. Only in the terminal I can see this volume and I can see the files in it.
    the terminal command "diskutil eject /volumes/elements" or "diskutil unmount force /volumes/elements" did not help.
    what can I do?

    It sounds like a "false clone" was created on your internal HD, which can happen if the target volume of a backup program becomes unavailable during the copy process.
    Try this:
    First eject and disconnect all external drives, then:
    Finder>Go menu> Go to Folder
    enter /Volumes and click Go
    Don't touch the alias to your internal HD volume, or any other alias.
    If you see "elements," and it is NOT an alias, trash it and empty the trash.
    jd

  • I need help with my account,can anyone help?

    Im having a error updating my credit card,says please contact itunes for complete this transaction,ive sent them a email but the help is really bad they aint able to help me.

    NoneEvo wrote:
    I wish people read What i Write.
    I wish people would read what others write...
    The ONLY people that can help you with this issue is iTunes support.
    NoneEvo wrote:
     says please contact itunes for complete this transaction,ive sent them a email but the help is really bad they aint able to help me.
    How is the help really bad? What ain't they been able to do?
    Did they respond to you? Did they not respond?
    Did they tell you how to fix it?
    Did you ask for clarification or further help from iTunes support?

  • I need help with adobe reader can someone please tell me what to do?

    I am having a problem with Adobe Reader 9.3.2  When I try to install, it
    begins installing, but then stops and the error messagy states
    "Adobe download manager is currently installing an application,
    Once installation is complete stop installing all other
    applicaitons."  I don't know why I am getting this message.  I am unable to read
    any PFD files, I am unable to uninstall download mgr or Adobe Reader.
    Both show up on my add/remove program, but when I try to remove Reader
    I get the message that "this path package could not be opened. Verify that the
    path packae exists and that you can access it"  I have no idea how do to this.

    Use the executable installer without download manager
    Reader 9.3: http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.3/enu/AdbeRdr930_en_US.msi
    update 9.3.1: http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.3.1/misc/AdbeRdrUpd931_all_incr.msp
    update 9.3.2: http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.3.2/misc/AdbeRdrUpd932_all_incr.msp

  • Need Help with my ipod, can any1 help please

    My ipod isnt appearing on my pc and the pc isnt acknowledging it either, and when it is charged the apple logo appears (the one which comes up after you reset it), it stays on the screen for aroung 5-6 secs then resets itself and the whole process repeats itself so i cant get further than the apple sign on my ipod!!!
    has this happened to anyone before and if it has, some much needed advice would be great................cheers, sean og

    hmmm the best i can tell u is take it to an apple store- they will probably send it in and u will get a new one..
    have u tried resetting it yourself by holding down the menu and center buttons at the same time?

  • Need help with iPhoto! Can't add images!

    Hello all. Just sarted using iPhoto '05 and amm trying to transfer photos from my camera and a CDR from a windows PC. It says:
    The following files could not be imported (they may be an unrecognized file type or the files may not contain valid data).
    Now, i've been doing some research on this topic, and i have NOT tampered with the iphoto folder in the finder, nor have i really done anything at all with iphoto. I don't know how to rebuild or back up my files.
    However, now that I think of it, I may have (when transferring my pictures from my old iBook to this iMac), just put the folder in the finder rather than put it in iPhoto. So i'm not sure if that has anything to do with it. If it does what's the solution to THAT?

    <table><tr><td align=left bgcolor="#FFFFCC"> (they may be an unrecognized file type or the files may not contain valid data</td></tr></table>
    Where are the files located that are giving you this notice? If they are inside the iPhoto Library folder then that's the reason and they must be moved out to be able to be imported.
    If you are trying to copy them directly from the CD into iPhoto you may have to copy them to the Desktop first, confirm that you have read and write permissions before importing into iDVD.
    OT

  • Need help with this site (can't enter sweepstakes)

    Does anyone have any idea why the sweepstakes entry
    form and sweepstakes rules page on this site:
    Disney Honda
    Sweepstakes
    http://disney.go.com/features/honda_dreams/
    will load just fine on my boyfriend's computer but why I try
    I get the following message:
    "Oops! Unable to connect to server. Please try again later."
    We both are using Windows XP SP2, IE6, Flash Player 9,0,16,0.
    I have no idea what the problem could be. It is very frustrating.
    Any help would be appreciated. Thanks!!

    We started by creating a movie clip symbol. This put in the symbol-editing mode. We did all the work in that mode. I JUST found that once I exited this mode that the SWAP button appreared. I'm going back over the lesson to see if I missed where we exited the symbol-editing mode.

  • Need help with automating text import/pasting/macro between Photoshop and Excel

    Hey everyone,
    I'm working on a large project now that seems extremely daunting, but I was hoping there would be some way to automate it using either Actions or some sort of macro program.  Here's the gist:
    I've created a template with 24 differently sized text boxes in the photoshop image file.  Each text feild has unique text that needs to be be pasted into it, which has been compiled in excel.  This wouldn't be too dificult to do, except I have to recreate this image and all 24 text fields aproximately 350 times.  None of the text boxes will remain static through all 350 images as text is the title, description, and demographic ratings/percentages/data for the topic of each image.  I did something similar manually last year and it took me about 3, non-stop 18 hour days to complete it.
    (the test template)
    Can anyone think of any way I could automate this process?  I'm thinking some sort of macro that copies cell 1 in excel, switches to photoshop, opens layer 1, pastes, switches back to excel, goes to cell 2, copies, back to photoshop, layer 2, pastes, etc, etc, then does a 'save as' in photoshop and revets to PS layer 1, EX cell 1 (on tab 2) to start the process all over again.  I have no idea if this would work or if there is another way to do this but I would really appreciate any help or advice you guys could give.  I don't have really any expreience using PS Actions or macro programs/scripts, so I may be over my head or overlooking a really simple way to do this.  If there's a way to do it, I'm persistent enough to figure it out and get it working. Doesn't really matter how it gets done, I just need to fill those text boxes as best as I can and as quickly as I can.
    Any help you all could give is really appreciated.

    Have you read up on the Variables support in Photoshop?

  • I need help with a flash nav and switching pages!!!

    is there anyway to point the browser to play a swf file from
    a specific point (labeled frame) in the movie after switching
    (html) pages?
    basically it's a nav bar that needs to be played from the end
    of the movie after the first opening (html)page.
    I know i can do this with frames, but i would love to avoid
    that if possible. and the only other option i know would be to have
    2 swf files. there has to be a "on(load) /gotoandplay() or some
    combination to make this work, it seems to be too close to not be
    possible.
    thanks for all the help.

    SHouldn't be too involved. Just set a variable with JS (or
    whatever
    language you can use, I used JS simply b/c you stated HTML
    pages, not PHP or
    ASP), then in your flash movie, have your first frame do a
    basic if/then or
    do a switch (if it's available in AS).
    if ($var==1){
    gotoAndPlay (1,1);
    elseif ($var--2){
    gotoAndPlay(1,2);
    etc.
    Alternately, you could set a session variable, but you would
    have to have
    dynamic pages to do that.
    "Dminadeo" <[email protected]> wrote in
    message
    news:elkjne$gei$[email protected]..
    >
    quote:
    Originally posted by:
    Newsgroup User
    > You could have your pages set a value on them, and read
    that value into
    > flash.
    >
    > Ie, say your value is set via javascript. I would
    imagine you could then
    > pass that to yoru flash movie, which would reference the
    place to start
    > before actually starting the movie.
    >
    > HTH,
    >
    > Jon
    >
    >
    > that sounds a little more involved than i thought it
    would be, but i'm
    > willing
    > to give it a shot. any other pointers?
    > thanks again
    >
    >
    >

Maybe you are looking for

  • XMLTYPE and International Characters

    Database: Oracle9i Characterset: US7ASCII I am trying to insert a very small xml document into an XMLTYPE column in a table. My xml document, however, contains international characters like French and Spanish letters with their accompanying accent ma

  • Bios lockout key - help needed

    Forgot BIOS administrator and power up password. After 3 failed attempts got system disable key: 66144787 Appreciate help getting my notebook going again. This question was solved. View Solution.

  • Widescreen has black bars top and bottom

    Imported a widescreen DV file into FCP5, rendered it, looks widescreen in the canvas but has black bars which are always exported. But I want to end up with a DVD that is full screen/widescreen when viewed on a widescreen TV or LCD monitor. How to ge

  • Z field in open item display

    Hi, in F-04 screen , we have a Z field called BankRef No. while uploading customer open item, we use this field. while showing the customer open item display, this Z field is not shown. the requirement is to see this field in the customer open item d

  • Centering a page [was: Need Help!]

    Greetings, I'm new here and i apologise if I missed location for this question. I'm begginer in web design and i made one site but it is not centred in varius resolutions and web browsers. I have no idea about HTML or CSS i will start learning them b