Action Script 3, can someone spot where my code is wrong?

I want to have my characters controlled separately, with 'FireBoy' moving using the left, up and right keys and with 'WaterGirl' moving with the a, w and d keys. However upon editing my code somehow WaterGirl now moves with the right key instead of the d key. Please can someone spot where I have made a mistake and advise me on how to resolve the problem.
My code for main.as is:
package
  import flash.display.Bitmap;
  import flash.display.Sprite;
  import flash.events.Event;
  import flash.events.KeyboardEvent;
  import flash.events.MouseEvent;
  * @author Harry
  public class Main extends Sprite
  private var leftDown:Boolean = false;
  private var rightDown:Boolean = false;
  private var aDown:Boolean = false;
  private var dDown:Boolean = false;
  private var FireBoy:Hero = new Hero();
  public var StartButton:Go;
  public var WaterGirl:Female = new Female();
  public var Door1:Firedoor;
  public var Door2:Waterdoor;
  public var Fire:Lava;
  public var Water:Blue;
  public var Green:Gem;
  public function Main():void
  if (stage) init();
  else addEventListener(Event.ADDED_TO_STAGE, init);
  public function init(e:Event = null):void
  StartButton = new Go();
  StartButton.x = 100;
  StartButton.y = 5;
  addChild(StartButton);
  StartButton.addEventListener(MouseEvent.CLICK, startgame);
  private function startgame(e:Event = null):void
  removeEventListener(Event.ADDED_TO_STAGE, init);
  // entry point
  removeChild(StartButton);
  FireBoy.y = 495;
  addChild(FireBoy);
  stage.addEventListener(Event.ENTER_FRAME, HerocheckStuff);
  stage.addEventListener(KeyboardEvent.KEY_DOWN, HerokeysDown);
  stage.addEventListener(KeyboardEvent.KEY_UP, HerokeysUp);
  WaterGirl.x = 70;
  WaterGirl.y = 495;
  addChild(WaterGirl);
  stage.addEventListener(Event.ENTER_FRAME, FemalecheckStuff);
  stage.addEventListener(KeyboardEvent.KEY_DOWN, FemalekeysDown);
  stage.addEventListener(KeyboardEvent.KEY_UP, FemalekeysUp);
  Door1 = new Firedoor();
  stage.addChild(Door1);
  Door1.x = 5;
  Door1.y = 62;
  Door2 = new Waterdoor();
  stage.addChild(Door2);
  Door2.x = 100;
  Door2.y = 62;
  Fire = new Lava();
  stage.addChild(Fire);
  Fire.x = 160;
  Fire.y = 570;
  Water = new Blue();
  stage.addChild(Water);
  Water.x = 350;
  Water.y = 160;
  Green = new Gem()
  stage.addChild(Green);
  Green.x = 500;
  Green.y = 100;
  graphics.beginFill(0x804000, 1);
  graphics.drawRect(0, 0, 800, 40);
  graphics.endFill();
  graphics.beginFill(0x804000, 1);
  graphics.drawRect(0, 170, 600, 40);
  graphics.endFill();
  graphics.beginFill(0x804000, 1);
  graphics.moveTo(800, 200);
  graphics.lineTo(800, 700);
  graphics.lineTo(400, 700);
  graphics.lineTo(100, 700);
  graphics.endFill();
  graphics.beginFill(0x804000, 1);
  graphics.drawRect(0, 580, 800, 40);
  graphics.endFill();
  public function Collision():void
  if (WaterGirl.hitTestObject(Fire))
  WaterGirl.x = 70;
  WaterGirl.y = 495;
  if (FireBoy.hitTestObject(Water))
  FireBoy.x = 15;
  FireBoy.y = 495;
  public function HerocheckStuff(e:Event):void
  if (leftDown)
  FireBoy.x -= 5;
  if (rightDown)
  FireBoy.x += 5;
  FireBoy.adjust();
  Collision();
  Check_Border();
  public function HerokeysDown(e:KeyboardEvent):void
  if (e.keyCode == 37)
  leftDown = true;
  if (e.keyCode == 39)
  rightDown = true;
  if (e.keyCode == 38)
  FireBoy.grav = -15;
  Collision();
  Check_Border();
  public function HerokeysUp(e:KeyboardEvent):void
  if (e.keyCode == 37)
  leftDown = false;
  if (e.keyCode == 39)
  rightDown = false;
  public function FemalecheckStuff(e:Event):void
  if (aDown)
  WaterGirl.x -= 5;
  if (rightDown)
  WaterGirl.x += 5;
  WaterGirl.adjust2();
  Collision();
  Check_Border();
  public function FemalekeysDown(e:KeyboardEvent):void
  if (e.keyCode == 65)
  aDown = true;
  if (e.keyCode == 68)
  dDown = true;
  if (e.keyCode == 87)
  WaterGirl.grav = -15;
  Collision();
  Check_Border();
  public function FemalekeysUp(e:KeyboardEvent):void
  if (e.keyCode == 65)
  aDown = false;
  if (e.keyCode == 68)
  dDown = false;
  public function Check_Border():void
  if (FireBoy.x <= 0)
  FireBoy.x = 0;
  else if (FireBoy.x > 750)
  FireBoy.x = 750;
  if (WaterGirl.x <= 0)
  WaterGirl.x = 0;
  else if (WaterGirl.x > 750)
  WaterGirl.x = 750;
My code for Hero.as (FireBoy) is:
package 
  import flash.display.Bitmap;
  import flash.display.Sprite;
  public class Hero extends Sprite
  [Embed(source="../assets/FireBoy.jpg")]
  private static const FireBoy:Class;
  private var FireBoy:Bitmap;
  public var grav:int = 0;
  public var floor:int = 535;
  public function Hero()
  FireBoy = new Hero.FireBoy();
  scaleX = 0.1;
  scaleY = 0.1;
  addChild(FireBoy);
  public function adjust():void
  this.y += grav;
  if(this.y+this.height/2<floor)
  grav++;
  else
  grav = 0;
  this.y = floor - this.height / 2;
  if (this.x - this.width / 2 < 0)
  this.x = this.width / 2;
  if (this.x + this.width / 2 > 800)
  this.x = 800 - this.width / 2;
And finally my code for Female.as (WaterGirl) is:
package 
  import flash.display.Bitmap;
  import flash.display.Sprite;
  * @author Harry
  public class Female extends Sprite
  [Embed(source="../assets/WaterGirl.png")]
  private static const WaterGirl:Class;
  private var WaterGirl:Bitmap;
  public var grav:int = 0;
  public var floor:int = 535;
  public function Female()
  WaterGirl = new Female.WaterGirl();
  scaleX = 0.1;
  scaleY = 0.1;
  addChild(WaterGirl);
  public function adjust2():void
  this.y += grav;
  if(this.y+this.height/2<floor)
  grav++;
  else
  grav = 0;
  this.y = floor - this.height / 2;
  if (this.x - this.width / 2 < 0)
  this.x = this.width / 2;
  if (this.x + this.width / 2 > 800)
  this.x = 800 - this.width / 2;

You should make use of the trace function to troubleshoot your processing.  Put traces in the different movement function conditionals to see which is being used under which circumstances.  You might consider putting the movement code into one function since they all execute when you process a keyboard event anyways.

Similar Messages

  • Can Someone See Where I'm Going Wrong???

    I'm trying to digitize footage from my camera and I'm getting this
    Here's my setup:
    The footage was shot in HDV 1080i60.  Is my Capture Preset wrong? Device Control wrong?  What should it be?  I've checked my connections and the camera.  The camera is telling me that it's sending a DVout singnal in HDV10801.  What to do???  Plus FCP controls the deck it just won't "see" the video so that tells me that the firewire is at least talking to from camera to computer.  HELP!!!

    OK, disconnect the camera from the computer. Power everything off.
    Start up the computer, keeping the camera disconnected, and use Digital Rebellion's Preference Manager to reset your FCP preferences. If you have been making lots of changes to the ingest settings, with the camera connected, it is possible you have corrupted your preferences. Preference Manager is free, and you can archive your old preferences if you want to revert to them.
    http://www.digitalrebellion.com/prefman/
    Next, keeping the camera disconnected from the computer, turn it on. Do you have the operator's manual for the camera? You want to look at page 75. If not, here are some highlights:
    So you want to make sure iLink Conv is set to OFF.
    Now that you have set your camera menus, and reset your FCP prefs, shut everything down, connect everything together, and turn everything on.
    When you launch FCP you will need to reset your scratch disk and choose your Easy Setup.
    See if this helps.
    MtD

  • Can't see where I am going wrong!

    Can anyone see where I am going wrong.....I can't see the problem:
    import java.io.*;
    public class EmployeeRecord {
        private String employeeName;
        private int employeeIDNumber;
        private String jobCat;
        private double hourlyPayRate;
        private double annualSalary;
       /* public constructor.
       public Student(String employeeName, int employeeIDNumber, String jobCat, double hourlyPayRate)
             this.employeeName = employeeName;
             this.employeeIDNumber = employeeIDNumber;
             this.jobCat = jobCat;
             this.hourlyPayRate = hourlyPayRate;
       } // end method
           * return  employee name
          public String getEmployeeName() {
             return employeeName;
          } // end method
           * return employee ID number
          public int getEmployeeIDNumber() {
             return employeeIDNumber;
       } // end method
           * return job Cat
          public String getJobCat() {
             return jobCat;
          } // end method
           * return hourly pay rate
          public double getHourlyPayRate() {
             return hourlyPayRate;
       } // end method
           * return annual salary
          public double getAnnualSalary() {
             return annualSalary;
       } // end method
              public void calculateAnnualSalary(){
                      int tempCount = numberOfScores;
                      int tempScore = totalScore;
                      if (employeeArray[2] == "Full") {
                         annualSalary = 40 * employeeArray[3];
                      else {
                         annualSalary = 20 * employeeArray[3];
                      } // end else
                   } // end method
       public static void main(String[] args) {
          Employee[] employeeArray = { new Employee("JohnSmith", 654789345, "Full", 25.60);
                                        new Employee("BobJones", 456983209, "Full", 28.20);
                                        new Employee("LarryAnders", 989876123, "Full", 35.30);
                                        new Employee("TomEstes", 237847360, "Full", 41.35);
                                           new Employee("MariaCosta", 115387243, "Part", 15.40);
                                           new Employee("JoeShowen", 223456732, "Full", 45.75);
                                           new Employee("JillRoberts", 574839280, "Part", 38.45);
                                           new Employee("MaryAble", 427836410, "Part", 25.90);
                                           new Employee("NancyAtkins", 349856232, "Full", 35.60);
                                           new Employee("MarkSeimens", 328978455, "Full", 48.50);
       } // end method
    } // end classDesign the Java class to represent an employee record. Pseudo code for this object is given below:
    Employee class definition
    Instance Variables
    Employee name
    Employee ID number
    Job category
    Hourly pay rate
    Annual salary
    Instance Methods
    getName
    getEmployeeId
    calculateAnnualSalary
    getAnnualSalary
    Use the String class for the employee name.
    Use an array of objects for the employee records.
    Calculate each employee's annual salary from the job category and hourly rate, using the following constant information:
    Job category: Full - 40 hours a week
    Part - 20 hours a week
    Assume 52 weeks in a year.
    Display each employee's name, id and annual salary.
    Calculate and display the company's total amount for employees salaries.
    Use the following information to populate the employee objects: Employee
    Name Employee Id Job Category Hourly Pay Rate
    John Smith 654789345 Full 25.60
    Bob Jones 456983209 Full 28.20
    Larry Anders 989876123 Full 35.30
    Tom Estes 237847360 Full 41.35
    Maria Costa 115387243 Part 15.40
    Joe Showen 223456732 Full 45.75
    Jill Roberts 574839280 Part 38.45
    Mary Able 427836410 Part 25.90
    Nancy Atkins 349856232 Full 35.60
    Mark Seimens 328978455 Full 48.50

    I think this is what people mean, but It still wont work. Can someone else figure it out?
    import java.io.*;
    public class EmployeeRecord {
    private String employeeName;
    private int employeeIDNumber;
    private String jobCat;
    private double hourlyPayRate;
    private double annualSalary;
    /* public constructor.
    public void EmployeeRecord (String employeeName, int employeeIDNumber, String jobCat, double hourlyPayRate)
    this.employeeName = employeeName;
    this.employeeIDNumber = employeeIDNumber;
    this.jobCat = jobCat;
    this.hourlyPayRate = hourlyPayRate;
    } // end method
    * return employee name
    public String getEmployeeName() {
    return employeeName;
    } // end method
    * return employee ID number
    public int getEmployeeIDNumber() {
    return employeeIDNumber;
    } // end method
    * return job Cat
    public String getJobCat() {
    return jobCat;
    } // end method
    * return hourly pay rate
    public double getHourlyPayRate() {
    return hourlyPayRate;
    } // end method
    * return annual salary
    public double getAnnualSalary() {
    return annualSalary;
    } // end method
         public void calculateAnnualSalary(){
              int tempCount = numberOfScores;
              int tempScore = totalScore;
              if (employeeArray[2] == "Full") {
              annualSalary = 40 * employeeArray[3];
              else {
              annualSalary = 20 * employeeArray[3];
              } // end else
              } // end method
    public static void main(String[] args) {
    EmployeeRecord[] employeeArray = { new EmployeeRecord("JohnSmith", 654789345, "Full", 25.60),
         new EmployeeRecord("BobJones", 456983209, "Full", 28.20),
         new EmployeeRecord("LarryAnders", 989876123, "Full", 35.30),
         new EmployeeRecord("TomEstes", 237847360, "Full", 41.35),
         new EmployeeRecord("MariaCosta", 115387243, "Part", 15.40),
         new EmployeeRecord("JoeShowen", 223456732, "Full", 45.75),
         new EmployeeRecord("JillRoberts", 574839280, "Part", 38.45),
         new EEmployeeRecord("MaryAble", 427836410, "Part", 25.90),
         new EmployeeRecord("NancyAtkins", 349856232, "Full", 35.60),
         new EmployeeRecord("MarkSeimens", 328978455, "Full", 48.50),
    } // end method
    } // end class

  • Action Script; somebody can do coding for me?

    We create videos, amongst others for advertising purposes.
    Short of just playing the video on the web, I want to interact with
    the viewers and receive answers to questions, which I can write to
    a database in the back. Our output format is FLash.
    Our distribution goes over a P2P network, (bit torrent like)
    so packets arrive from all over the place and the flv file gets
    reassembled just before viewing. We achieve a near live streaming
    effect, but the consequence for this project is that the solution
    must be very small, like an xml file size, or enbtirely embedded in
    the FLV file
    SCENARIO
    1- At a moment of my choice, I want to stop the video, circle
    or otherwise indicate some areas of the frame and ask a written
    question where the multiple choice answers (max 5) are inside these
    cirlced areas. The viewer clicks the cirlced area that shows his
    answer of choice. The result is written to an MySQL table on my
    server and the video continues.
    I want to have this in a template form which enables us the
    use the concept multiple times in different videos
    2- Same idea, but this time, the viewer stops the video and
    we record the frame number, afyter which the viewer writes a max
    100 char message. Again the results are written to a database on my
    server.
    Any Action Script coder interested to make a few quick bucks

    send me a brief email via my website.

  • I want to download Openoffice in App Store but I find others programs like Xtreme Writer and I'm not sure if it is the same. Can someone tell where I can find Openoffice official app?Thanks.

    Hi I want to buy Openoffice in App Store but I can't find it. One month ago Openoffice was in App Store but now I don't find it and i need it to work. Can someone tell me if I downald Xtreme Writer or Word to go it will be the same or where I can find Openoffice? Thanks.

    http://www.openoffice.org/porting/mac/

  • Can someone tell what I have done wrong here trying to pass strings to a

    I have just started programming in java I can't see what I have done wrong here in my code can someone please help me?
    // Thomas Klooz
    // October 10, 2008
    /** A class that enters
    * DVD Info pass the arrays
    * DvdInventory Class and then manipulates the data from there*/
    import java.util.Scanner;// imports a scanner for use by the class
    public class DVDInfo
    public static void main(String args[])
    String theTitle[] = new String[10];// array of titles
    int inventory [] = new int[10];// array of ten for inventory
    int quantity []= new int[10];// array of ten for quantity
    double price []= new double[10];// array for the price of each double
    int count = 0;// variable to track what information is suppose to be passed to class
    System.out.println(" Welcome to DVD Inventory Program!");//Welcome message for the user
    System.out.println();//returns a blank line
    boolean stop = false;// boolean charcter to make program stop
    while(! stop)
    Scanner input = new Scanner( System.in );// creates scanner to use
    System.out.println(" Enter an item name or stop to Quit: ");// prompt user for input
    theTitle[count] = input.nextLine();// assigns the value to Title
    if (theTitle[count].equals("stop"))
    System.out.println();//returns a blank line
    System.out.println(" The DVD Inventory has been entered!");// diplay exit message to
    stop = true;
    } // end if
    else // continue to get data
    System.out.println();//returns a blank line
    System.out.println(" Enter the item number must be greater equal or greater than zero: ");// prompt user for input
    inventory[count] = input.nextInt();// assigns value to inventory
    if (inventory[count] < 0)// continue until proper value has been entered
    System.out.println( " Error no numbers can be below zero!");
    System.out.println(" Enter the item number must be greater equal or greater than zero: ");// prompt user for input
    inventory[count] = input.nextInt();// assigns value to inventory
    }// end if
    System.out.println();//returns a blank line
    System.out.println(" Enter the amount of DVDs you have must be greater than zero: ");// prompt user for input
    quantity[count]= input.nextInt();// assigns value to inventory
    if( quantity[count] <= 0)// continue to proper data is entered
    System.out.println( " Error: you have no inventory for this item ");// error message sent to user
    System.out.println(" Enter the amount of DVDs you have must be greater than zero: ");// prompt user for input
    quantity[count]= input.nextInt();// assigns value to inventory
    }//end if
    System.out.println();//returns a blank line
    System.out.println( " Enter the cost per DVD: ");// prompt user for input
    price[count] = input.nextDouble();// assigns the value to price
    count++;//increaments count 1
    }// end else
    }// end while
    DVDInventory myDVDInventory = new DVDInventory(theTitle,inventory,quantity,price,count); the problem seems to be here because this is where I get error message when I'm trying to pass to class named DVD
    }// end main
    }// end class

    this is the code that is important
    import java.util.Scanner;// imports a scanner for use by the class
    public class DVDInfo
    public static void main(String args[])
    String theTitle[] = new String[10];// array of titles
    int inventory [] = new int[10];// array of ten for inventory
    int quantity []= new int[10];// array of ten for quantity
    double price []= new double[10];// array for the price of each double
    int count = 0;// variable to track what information is suppose to be passed to class
    System.out.println(" Welcome to DVD Inventory Program!");//Welcome message for the user
    System.out.println();//returns a blank line
    boolean stop = false;// boolean charcter to make program stop
    while(! stop)
    Scanner input = new Scanner( System.in );// creates scanner to use
    System.out.println(" Enter an item name or stop to Quit: ");// prompt user for input
    theTitle[count] = input.nextLine();// assigns the value to Title
    if (theTitle[count].equals("stop"))
    System.out.println();//returns a blank line
    System.out.println(" The DVD Inventory has been entered!");// diplay exit message to
    stop = true;
    } // end if
    else // continue to get data
    System.out.println();//returns a blank line
    System.out.println(" Enter the item number must be greater equal or greater than zero: ");// prompt user for input
    inventory[count] = input.nextInt();// assigns value to inventory
    if (inventory[count] < 0)// continue until proper value has been entered
    System.out.println( " Error no numbers can be below zero!");
    System.out.println(" Enter the item number must be greater equal or greater than zero: ");// prompt user for input
    inventory[count] = input.nextInt();// assigns value to inventory
    }// end if
    System.out.println();//returns a blank line
    System.out.println(" Enter the amount of DVDs you have must be greater than zero: ");// prompt user for input
    quantity[count]= input.nextInt();// assigns value to inventory
    if( quantity[count] <= 0)// continue to proper data is entered
    System.out.println( " Error: you have no inventory for this item ");// error message sent to user
    System.out.println(" Enter the amount of DVDs you have must be greater than zero: ");// prompt user for input
    quantity[count]= input.nextInt();// assigns value to inventory
    }//end if
    System.out.println();//returns a blank line
    System.out.println( " Enter the cost per DVD: ");// prompt user for input
    price[count] = input.nextDouble();// assigns the value to price
    count++;//increaments count 1
    }// end else
    }// end while
    DVDInventory myDVDInventory = new DVDInventory(theTitle,inventory,quantity,price,count);
    }// end main
    }// end class The problem seems to be when I try to pass all the variables to the class DVDInventory the first statement after all. I get message that say can't find java. String
    Edited by: beatlefla on Oct 10, 2008 8:20 PM

  • When I try to install itunes I get an error message that says "Canot access internet conection \."  Can someone please tell me what's wrong?  My internet connection is working.

    When I try to install itunes I get an error message that says "Cannot access internet connection \."  Can someone please tell what this means?
    My internet connection is working.

    Okay. We'll try a different utility.
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Streaming, can someone explain what I am doing wrong?

    I have two ATVs both synced to one computer. I have a large music library on a second computer but can't find how to stream to one of the ATVs.
    I followed the instructions in the booklet, opened iTunes on the relevant computer, chose sources on the ATV, "Connect to New iTunes" and noted the passcode, selected the ATV icon and "Click to set up", entered the passcode and the ATV icon disappeared. "My Library" shows in the sources but the ATV icon only re-appears on the computer if I switch to "Connect to New iTunes". If I then click on the icon the ATV page opens up with details of the ATV and a message saying that the ATV icon will only appear when "My Library" is selected on the ATV, but as soon as I do that the ATV icon disappears. The help file says in System Preferences sharing pane make sure "iTunes Music Sharing" is on! There is no "iTunes Music Sharing"!!
    Please, can someone take this idiot through the process step by step, including how you start streaming once you have successfully made the connection?

    Glad to see everything is starting to work out.
    You might consider two user accounts (that's logins) with a music library in each. It's a little more work to operate, but probably less than having two libraries in one user account and providing both users are logged in and have itunes running you should get both libraries available to you at the same time on the tv (obviously you would need to switch between them on the tv).
    Otherwise I'd consolidate them by opening itunes (with library 1) and then dragging and dropping the music files from the music folder of library 2 onto itunes, I'd start by doing a few tunes to satisfy yourself that all is OK, you can probably do them in large chunks but I'd probably not drag them all at once, if something did go wrong you probably wouldn't lose any files but it might be difficult to figure out what files had been added and which hadn't before the problem occurred.

  • Can someone please tell me what's wrong with my feed?

    iTunes isn't updating with my most recent podcast, and I can't see what I've done wrong on my feed.
    Can someone help
    www.ministryofslam.com/feed
    https://itunes.apple.com/gb/podcast/ministry-slam-pro-wrestling/id301376618
    It's "Bonus Podcast" that isn't appearing

    At the beginning of the entry for the episode of 21 November you have the opening 'item' tag in twice. This is sufficient to render the feed unreadable and so it's turning up empty when subscribing and the Store is not updating.

  • Can someone spot why my variable is being dropped between scripts?

    T-Code 1/Flavor1/Script 1:
    Copy Value – variable1 ‘instruction’ (from screen)
    Copy Value – variable2 ‘anchor’ (from screen)
    Pre-Process …..
    If Success
    Call Script2:
    /nDP91 (Change T-Code) Refresh Screen
    Paste value ‘anchor’
    Push (i.e. trigger DP91 with the appropriate source sales order)
    Refresh Screen (we are now in T-code2/Flavor2)
         If NO Message (sbar empty) – Progress DP91 Resource Related Billing
    Paste value ‘instruction’ to flavor work area for use later THIS DOES NOT WORK??
    We are now sitting in a flavour of DP91 but my navigation reference ‘instruction’ is lost
         If Message (no RRB to work with)
    Use saved variables and circle back to T-Code 1/Flavor1 (This works fine and 'instruction' as part of that movement)
    If NOT Success
         Error Message
    Any thought much appreciated.

    Can you post your script screenshots?
    Thanks,
    Bhaskar

  • Need help with PHP mail script [was: Can someone please help me?]

    I'm trying to collect data from a form and email it.  I'm using form2mail.php and the problem is that the email is not collecting the form info and it has the same email address in the From: and To: lines. I'm really stuck and would appreciate any help.
    Here is the HTML code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Contact Us</title>
    <style type="text/css">
    <!--
    .style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style2 {
    font-size: 14px;
    color: #000000;
    body {
    background-color: #FFFFFF;
    body,td,th {
    color: #CC3300;
    .style3 {font-size: 14px; font-weight: bold; }
    .style6 {font-size: 18px}
    .style7 {font-size: 16px}
    .style8 {font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style9 {font-size: 16px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style10 {color: #000000}
    -->
    </style>
    </head>
    <body>
    <div align="center"><img src="nav2.jpg" alt="nav bar" width="698" height="91" border="0" usemap="#Map2" />
      <map name="Map2" id="Map2">
      <area shape="rect" coords="560,9,684,38" href="accessories.html" />
    <area shape="rect" coords="456,8,548,38" href="contact.html" />
    <area shape="rect" coords="305,8,435,40" href="photog.html" />
    <area shape="rect" coords="187,9,283,39" href="services.html" />
    <area shape="rect" coords="81,10,167,39" href="aboutus.html" />
    <area shape="rect" coords="5,10,68,39" href="index.html" />
    </map>
      <map name="Map" id="Map">
        <area shape="rect" coords="9,9,69,39" href="index.html" />
        <area shape="rect" coords="83,11,165,39" href="aboutus.html" />
        <area shape="rect" coords="182,9,285,38" href="services.html" />
        <area shape="rect" coords="436,14,560,37" href="contact.html" />
        <area shape="rect" coords="563,14,682,38" href="accessories.html" />
      </map>
    </div>
    <p> </p>
    <form id="TheForm" name="TheForm" action="form2mail.php" method="post">
      <p align="center" class="style2">P<span class="style1">lease fill out form below for a &quot;free no obligation quote&quot; then click submit.</span></p>
      <p align="center" class="style3">(*Required Information)</p>
      <div align="center">
        <pre><strong><span class="style8">*Contact Name</span> </strong><input name="name" type="text" id="name" />
    <span class="style8"><strong>
    Business Name </strong></span><input name="bn" type="text" id="bn" />
    <span class="style8"><strong>*Phone Number <input type="text" name="first" size="3" onFocus="this.value='';"
        onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.second);" maxlength="3" value="###" /> - <input type="text" name="second" size="3" onFocus="this.value='';" onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.third);" maxlength="3" value="###" /> - <input type="text" name="third" size="4" onFocus="this.value='';" onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.fourth);" maxlength="4" value="####"/> </strong></span>
    <strong><span class="style1">*</span><span class="style8">Email Address</span> <input name="email" type="text" id="email" />     </strong> </pre>
        <label><span class="style9">*Re-enter to confirm</span>
        <input name="emx" type="text" id="emx" /></label><br /><br /><span class="style9">
    <label></label>
        </span>
        <p><span class="style9">*Best time to call </span>
          <select name="name1[]" multiple size="1" >
            <option>8am-9am</option>
            <option>9am-10am</option>
            <option>10am-11am</option>
            <option>11am-12pm</option>
            <option>12pm-1pm</option>
            <option>1pm-2pm</option>
            <option>2pm-3pm</option>
            <option>3pm-4pm</option>
            <option>4pm-5pm</option>
            <option>5pm-6pm</option>
            <option>6pm-7pm</option>
            <option>7pm-8pm</option>
          </select>
          <br />
          <br />
          <span class="style9">Type of Location</span>
          <select name="name2[]" multiple size="1" >
            <option>Residential</option>
            <option>Commercial</option>
          </select>
          <br />
          <br />
            <span class="style1"><br />
            <strong><br />
              <span class="style6">*Type of Services Requested:</span></strong><br />
            </span><strong><span class="style10">(check all that apply)</span><br />
                </strong><br />
                <span class="style7"><span class="style1"><strong>Janitorial cleaning</strong></span>
                <input type="checkbox" name="checkbox[]" value="checkbox" multiple/>
                <br />
                </span><strong><br />
                  <span class="style8">Mobile Auto Detailing</span>
                <input type="checkbox" name="checkbox2[]" value="checkbox" multiple/>
                <br />
                <br />
                  </strong><span class="style9">Moving/Hauling</span>
          <input type="checkbox" name="checkbox3[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Pressure washing</span>
          <input type="checkbox" name="checkbox4[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Window washing</span>
          <input type="checkbox" name="checkbox5[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Window Tinting</span>
          <input type="checkbox" name="checkbox6[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Boat cleaning</span>
          <input type="checkbox" name="checkbox7[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">RV cleaning</span>
          <input type="checkbox" name="checkbox8[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Motorcycle cleaning</span>
          <input type="checkbox" name="checkbox9[]" value="checkbox" multiple/>
          <br />
          <br />
          <br />
          <br />
          <input name="SB"  type="button" class="style9" value="Submit" onClick="sendOff();">
        </p>
      </div></label>
      <script language="JavaScript1.2">
    // (C) 2000 www.CodeLifter.com
    // http://www.codelifter.com
    // Free for all users, but leave in this  header
    var good;
    function checkEmailAddress(field) {
    // Note: The next expression must be all on one line...
    //       allow no spaces, linefeeds, or carriage returns!
    var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org) |(\..{2,2}))$)\b/gi);
    if (goodEmail){
       good = true
    } else {
       alert('Please enter a valid e-mail address.')
       field.focus()
       field.select()
       good = false
    function autoTab(startPoint,endPoint){
    if (startPoint.getAttribute&&startPoint.value.length==startPoint.getAttribute("max length"))
    endPoint.focus();
    function checkNumber(phoneNumber){
    var x=phoneNumber;
    var phoneNumber=/(^\d+$)|(^\d+\.\d+$)/
    if (phoneNumber.test(x))
    testResult=true
    else{
    alert("Please enter a valid number.")
    phoneNumber.focus();
    phoneNumber.value="";
    testResult=false
    return (testResult)
    function sendOff(){
       namecheck = document.TheForm.name.value   
       if (namecheck.length <1) {
          alert('Please enter your name.')
          return
       good = false
       checkEmailAddress(document.TheForm.email)
       if ((document.TheForm.email.value ==
            document.TheForm.emx.value)&&(good)){
          // This is where you put your action
          // if name and email addresses are good.
          // We show an alert box, here; but you can
          // use a window.location= 'http://address'
          // to call a subsequent html page,
          // or a Perl script, etc.
          window.location= 'form2mail.php';
       if ((document.TheForm.email.value !=
              document.TheForm.emx.value)&&(good)){
              alert('Both e-mail address entries must match.')
    </script>
    </form>
    <p> </p>
    </body>
    </html>
    and here is the form2mail.php:
    <?php
    # You can use this script to submit your forms or to receive orders by email.
    $MailToAddress = "[email protected]"; // your email address
    $redirectURL = "http://www.chucksmobile.com/thankyou.html"; // the URL of the thank you page.
    $MailSubject = "[Customer Contact Info]"; // the subject of the email
    $sendHTML = FALSE; //set to "false" to receive Plain TEXT e-mail
    $serverCheck = FALSE; // if, for some reason you can't send e-mails, set this to "false"
    # copyright 2006 Web4Future.com =================== READ THIS ===================================================
    # If you are asking for a name and an email address in your form, you can name the input fields "name" and "email".
    # If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it.
    # To block an IP, simply add it to the blockip.txt text file.
    # CHMOD 777 the blockip.txt file (run "CHMOD 777 blockip.txt", without the double quotes)
    # This is needed because the script tries to block the IP that tried to hack it
    # If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name"
    # you must also add "multiple" at the end of the tag like this: <select name="myselectname[]" multiple>
    # you have to do the same with checkboxes
    Web4Future Easiest Form2Mail (GPL).
    Copyright (C) 1998-2006 Web4Future.com All Rights Reserved.
    http://www.Web4Future.com/
    This script was written by George L. & Calin S. from Web4Future.com
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    # DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ===================================================
    $w4fver =  "2.2";
    $ip = ($_SERVER['HTTP_X_FORWARDED_FOR'] == "" ? $_SERVER['REMOTE_ADDR'] : $_SERVER['HTTP_X_FORWARDED_FOR']);
    //function blockIP
    function blockip($ip) {
    $handle = @fopen("blockip.txt", 'a');
    @fwrite($handle, $ip."\n");
    @fclose($handle);
    $w4fx = stristr(file_get_contents('blockip.txt'),getenv('REMOTE_ADDR'));
    if ($serverCheck) {
    if (preg_match ("/".str_replace("www.", "", $_SERVER["SERVER_NAME"])."/i", $_SERVER["HTTP_REFERER"])) { $w4fy = TRUE; } else { $w4fy = FALSE; }
    } else { $w4fy = TRUE; }
    if (($w4fy === TRUE) && ($w4fx === FALSE)) {
    $w4fMessage = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body><font face=3Dverdana size=3D2>";
    if (count($_GET) >0) {
    reset($_GET);
    while(list($key, $val) = each($_GET)) {
      $GLOBALS[$key] = $val;
      if (is_array($val)) {
       $w4fMessage .= "<b>$key:</b> ";
       foreach ($val as $vala) {
        $vala =stripslashes($vala);
        $vala = htmlspecialchars($vala);
        if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
        $w4fMessage .= "$vala, ";
       $w4fMessage .= "<br>\n";
      else {
       $val = stripslashes($val);
       if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
       if (($key == "Submit") || ($key == "submit")) { } 
       else {  if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
         else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    } // end while
    }//end if
    else {
    reset($_POST);
    while(list($key, $val) = each($_POST)) {
      $GLOBALS[$key] = $val;
      if (is_array($val)) {
       $w4fMessage .= "<b>$key:</b> ";
       foreach ($val as $vala) {
        $vala =stripslashes($vala);
        $vala = htmlspecialchars($vala);
        if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }   
        $w4fMessage .= "$vala, ";
       $w4fMessage .= "<br>\n";
      else {
       $val = stripslashes($val);
       if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
       if (($key == "Submit") || ($key == "submit")) { } 
       else {  if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
         else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    } // end while
    }//end else
    $w4fMessage .= "<font size=3D1><br><br>\n Sender IP: ".$ip."</font></font></body></html>";
        $w4f_what = array("/To:/i", "/Cc:/i", "/Bcc:/i","/Content-Type:/i","/\n/");
    $name = preg_replace($w4f_what, "", $name);
    $email = preg_replace($w4f_what, "", $email);
    if (!$email) {$email = $MailToAddress;}
    $mailHeader = "From: $name <$email>\r\n";
    $mailHeader .= "Reply-To: $name <$email>\r\n";
    $mailHeader .= "Message-ID: <". md5(rand()."".time()) ."@". ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\n";
    $mailHeader .= "MIME-Version: 1.0\r\n";
    if ($sendHTML) {
      $mailHeader .= "Content-Type: multipart/alternative;";  
      $mailHeader .= "  boundary=\"----=_NextPart_000_000E_01C5256B.0AEFE730\"\r\n";    
    $mailHeader .= "X-Priority: 3\r\n";
    $mailHeader .= "X-Mailer: PHP/" . phpversion()."\r\n";
    $mailHeader .= "X-MimeOLE: Produced By Web4Future Easiest Form2Mail $w4fver\r\n";
    if ($sendHTML) {
      $mailMessage = "This is a multi-part message in MIME format.\r\n\r\n";
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";
      $mailMessage .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n";  
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";  
      $mailMessage .= "Content-Type: text/html;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= "$w4fMessage\r\n\r\n";  
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730--\r\n";  
    if ($sendHTML === FALSE) {
      $mailHeader .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n";  
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader)) { echo "Error sending e-mail!";}
    else { header("Location: ".$redirectURL); }
    } else { echo "<center><font face=verdana size=3 color=red><b>ILLEGAL EXECUTION DETECTED!</b></font></center>";}
    ?>
    Thanks in advance,
    Glenn
    [Subject line edited by moderator to indicate nature of request]

    Using PHP to process an online form and send the input by email is very simple. The mail() function takes a minimum of three arguments, namely: the address the mail is being sent to, the subject line, and the body of the email as a single string. The reason some people use scripts like form2mail.php is because they don't have the knowledge or patience to validate the user input to make sure it's safe to send.
    Rather than attempt to trawl through your complex form looking for the problems, I would suggest starting with a couple of simple tests.
    First of all, create a PHP page called mailtest.php containing the following script:
    <?php
    $to = '[email protected]'; // use your own email address
    $subject = 'PHP mail test';
    $message = 'This is a test of the mail() function.';
    $sent = mail($to, $subject, $message);
    if ($sent) {
      echo 'Mail was sent';
    } else {
      echo 'Problem sending mail';
    ?>
    Save the script, upload it to your server, and load it into a browser. If you see "Mail is sent", you're in business. If not, it probably means that the hosting company insists on the fifth argument being supplied to mail(). This is your email address preceded by -f. Change the line of code that sends the mail to this:
    $sent = mail($to, $subject, $message, null, '[email protected]');
    Obviously, replace "[email protected]" with your own email address.
    If this results in the mail being sent successfully, you will need to adapt the code in form2mail.php to accept the fifth parameter. You need to change the following line, which is a few lines from the end of the script:
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader))
    Change it to this:
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader, '[email protected]'))
    Again, use your own email address instead of "[email protected]".
    Once you have determined whether you need the fifth argument, test form2mail.php with a very simple form like this:
    <form id="form1" name="form1" method="post" action="form2mail.php">
      <p>
        <label for="name">Name:</label>
        <input type="text" name="name" id="name" />
      </p>
      <p>
        <label for="email">Email:</label>
        <input type="text" name="email" id="email" />
      </p>
      <p>
        <label>
          <input type="checkbox" name="options[]" value="boat cleaning" id="options_0" />
          Boat cleaning</label>
        <br />
        <label>
          <input type="checkbox" name="options[]" value="RV cleaning" id="options_1" />
          RV cleaning</label>
        <br />
        <label>
          <input type="checkbox" name="options[]" value="motorcycle cleaning" id="options_2" />
          Motorcycle cleaning</label>
      </p>
      <p>
        <input type="submit" name="send" id="send" value="Submit" />
      </p>
    </form>
    If that works, you can start to make the form more complex and add back your JavaScript validation.

  • Can someone spot my coding or linking mistake, please?

    Hi there
    Forum looks different from my years-ago last visit, hope I'm putting this in the right place.
    Two problems.
    www.dulcimerassociationofalbany.com, from index to More Info Here (2015.html), under Nina Zanetti more... (zanetti.html).
    Her picture doesn't show up.  Since I'm using DW, I'm not, like, spelling anything wrong.
    If you go back a page and click under the other artists, their pic shows up.  I think I've got them both relative to document.  They are both in the same folder.
    I'm assuming this is something I am overlooking, but I can't see what.  (Happens to me sometimes!)
    Second problem, on each of those "more..." pages I have a bit of code to open their websites in a new small window.
    Doesn't work.
    This is exactly the same code I use successfully on another site.  (www.sonnyandperley.com/schedule.htm)
    Now what am I missing?
    TIA !
    denno

    This is the correct location of the image
    http://www.dulcimerassociationofalbany.com/Docs%202015/images/Nina%20Zanetti%20-%202015%20 %28cropped%20%231%29.jpg
    Your link code is
    http://www.dulcimerassociationofalbany.com/Docs%202015/images/Nina%20Zanetti%20-%202015%20 (cropped%20#1).jpg
    You're going to go crazy trying to debug when you use all those spaces in your file and folder names
    Use hyphens or underscores.
    As for the small window, I am guessing you forgot the script in the head section
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    //-->
    </script>
    </HEAD>

  • Ok so I downloaded the iOS6 and now my iPod is reading my day and time and everything else to me I have to double tap my numbers to get in my password but my password won't even work can someone please tell me what's wrong

    So I downloaded the iOS6 on my iPod 4 and after 2 days it starts to read me everything I mean from my time and date to my password I have to double tap in my password In order for numbers to show up but when I type them it just says it's wrong please help what can I do to fix this problem with out having to reset EVERYTHING

    Triple Click your home button to turn off VoiceOver, or go to Settings > General > Accessibility and turn VoiceOver off.
    https://www.apple.com/accessibility/ios/voiceover/

  • Can someone explain me this code?

    Hi... pls explain me this code if possible.
    try {
    wdContext.nodeStateList().bind( (Z_Hress_P0006_State_Input)model.createModelObject(Z_Hress_P0006_State_Input.class));
    wdContext.currentStateListElement().setI_Withemptyline(true);
    wdContext.currentStateListElement().setI_Countrykey(
                        wdContext.currentCountryRecordsElement().getLand());
                   wdContext.currentStateListElement().modelObject().execute();

    Pankak,
    wdDoInit is a method in Web Dynpro controllers that ie executed when controller code is executed first time (initialized) its never run again in the lifespan of that controller (view controller, component controller, custom controller).
    You can get some more introductory material about Web Dynpro here
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/063bc942-0a01-0010-e7ae-d138e97acb5a [original link is broken]
    Also I would suggest you to buy the Inside Web Dynpro book.
    http://www.sappressbooks.com/product.cfm?account=&product=H983
    This book will help to make your web dynpro concepts solid. I am assuming you know java.
    Regarding the point, i don't have much idea how to give the points, I assume when you close the question you can assign the points.
    Regards,
    Anand

  • Can someone explain what I am doing wrong? Windows Boot manager error.

    Okay, I've literally searched EVERYWHERE and can not find a reasonable answer to this question.
    Everytime I try to load windows on bootcamp, I get this error:
    Windows failed to start. A recent hardware or software change might be the cause . to fix problem:
    1. insert windows installation disc and restart computer
    2.choose your language settings, and then click "next"
    if you do not have the disc, contact your system admistrator or computer manufacturer for assistence
    status 0xc0000017
    And that's it.
    I have tried everything from usb to countless 8 gig DVD which I wasted from burning the ISO time and time again.
    I am doing everything through the bootcamp installer and I partition up to 80 gigs of space of my hard drive for it.
    This is an official iso image from windows btw.
    I think it's a memory problem, but I am not sure. Here are my specs:
    Model Name:          Mac Pro
      Model Identifier:          MacPro5,1
      Processor Name:          Quad-Core Intel Xeon
      Processor Speed:          2.8 GHz
      Number of Processors:          1
      Total Number of Cores:          4
      L2 Cache (per Core):          256 KB
      L3 Cache:          8 MB
      Memory:          3 GB
      Processor Interconnect Speed:          4.8 GT/s
      Boot ROM Version:          MP51.007F.B01
      SMC Version (system):          1.39f11
      SMC Version (processor tray):          1.39f11
    If you can shoot me some advice on what I may be doing wrong, please do. I really need it urgently.
    Thanks!

    you really are way too low on memory, but that is not the issue.
    all the other hard drives need to be pulled except one.
    bumbing is sort of like there are only so many people likely to read and try to help. give us a couple hours or more.
    you say Windows, I ask "which?"
    And really all the faq and how to and even guide should cover your bases.
    Can only guess that the media you used to burn DVD or source..  see, we are not mind readers, some buy System Builder, or buy as a ISO download and burn to DVD... so start with the FAQs.
    Mac 101: Using Windows on your Mac via Boot Camp
    https://support.apple.com/kb/HT1461
    http://www.apple.com/support/bootcamp/
    Helpful Apple Support Resources (Forum Overview)
    Boot Camp Support 
    Boot Camp Manuals
    For Windows 7: http://windows.microsoft.com/systemrequirements
    For Windows 8: http://windows.microsoft.com/en-US/windows-8/system-requirements
    Learn more about how Mac computers can run Windows 8 using Boot Camp 5.
    http://support.apple.com/kb/HT5628
    Products Affected
    Boot Camp, Windows 8
    General installation questions
    What is Boot Camp 5?
    Boot Camp 5 is not a release of OS X software. Rather, it is a release of the Windows Support Software (drivers). You will need to use this software on your Mac with Windows 8 or Windows 7. For more information on Boot Camp 5, see thttp://support.apple.com/kb/HT5639
    Which Macs support Windows 8?
    MacBook Air (Mid 2011 or newer)
    MacBook Pro (Mid 2010 or newer)
    Mac Pro (Early 2009 or newer)
    Mac Mini (Mid 2011 or newer)
    iMac (27-inch, Mid 2010 or Mid 2011 or newer)
      For more information, see this article.  What are the System Requirements for Windows 8?
    Please see this article.
    How can I install Windows 8 on an eligible computer?
    Use the Boot Camp Assistant. The assistant will partition your internal hard drives and install Windows 8. For more information on Windows 8 installation, see the Boot Camp Installation & Setup Guide.
    Can I use an upgrade from Windows 7 to Windows 8?
    Yes. Download and install the Boot Camp 5 Support Software before attemping the upgrade by using the Boot Camp Assistant in OS X Mountain Lion v10.8.3. Alternatively, you can manually download the Boot Camp 5 Windows Support Software here.
    When I do an upgrade install from Windows 7 to Windows 8, an "Uninstall USB 3.0 eXtensible Host Controller Driver" message appears. What do I do?
    Do not click on Uninstall. Click the back button and Cancel the upgrade. Download the Boot Camp 5 Support Software by using the Boot Camp Assistant in OS X Mountain Lion v10.8.3, or click here to download them. Then, try the upgrade again. See this article for more information.
    After upgrading from Windows 7 to Windows 8, Thunderbolt devices are (not) being recognized when I connect in. How do I fix this?
    Disable the Windows 8 Fast Boot feature to allow Thunderbolt devices to be recognized. See Boot Camp: Thunderbolt devices not recognized after Windows 8 upgrade for instructions.
    Is there an OS X version requirement to use the Boot Camp Assistant to download Boot Camp 5 Support Software?
    You need OS X Mountain Lion v10.8.3 or later installed to download the Boot Camp 5 Support Software (Windows drivers) using the Boot Camp Assistant. After upgrading, click the Go menu and choose Utilities. Then, open Boot Camp Assistant and follow the onscreen instructions. You can download the Boot Camp Installation & Setup Guide.
    Is there a download of the Boot Camp 5 Support Software if I'm not using OS X Mountain Lion v10.8.3?
    Yes, you can download the Boot Camp 5 Support Software here.
    http://support.apple.com/kb/DL1638
    How do I use the Boot Camp 5 Support Software I downloaded from the web page?
    The download file is a .zip file. Double click it to uncompress it.
    Double-click the Boot Camp disk image.
    Copy the Boot Camp and "$WinPEDriver$" folders to the root level of a USB flash drive or hard drive that is formatted with the FAT file system (see question below for steps on how to format).
    Install Windows, leaving the flash or hard drive attached to the USB port of your Mac.
    Installation of the drivers can take a few minutes. Don't interrupt the installation process. A completion dialog box will appear when everything is installed. Click Finish when the dialog appears.
    When your system restarts your Windows 8 installation is done.
      Note: If the flash drive or hard drive was not attached when you installed Windows and was inserted after restarting into Windows 8, double-click the Boot Camp folder, then locate and double click the "setup.exe" file to start the installation of the Boot Camp 5 Support Software.  How do I format USB media to the FAT file system?
    Use Disk Utility to format a disk to use with a Windows computer. Here's how:
    Important: Formatting a disk erases all the files on it. Copy any files you want to save to another disk before formatting the disk.
    Open Disk Utility.
    Select the disk you want to format for use with Windows computers.
    Click Erase, and choose one of the following from the Format pop-up menu:
    If the size of the disk is 32 GB or less, choose MS-DOS (FAT).
    If the size of the disk is over 32 GB, choose ExFAT.
    Type a name for the disk. The maximum length is 11 characters.
    Click the Erase button and then click Erase again.
    Which versions of Windows are supported with Boot Camp 5?
    64-bit versions of Windows 8 and Windows 7 are supported using the Boot Camp 5 Support Software. If you need to use a 32-bit version, you need to use Boot Camp 4 Support Software, and you must use Windows 7. 32-bit versions of Windows 8 are not supported via Boot Camp. For a complete list of Windows OS support,

Maybe you are looking for

  • Copying position value from one layer to another

    Hy! This is Pierluig, from Italy. I'm a noob in after effect scripting language, but not so new to programming Anyway, this is the question: I have a composition with one layer on it. let's say firstlayer. The layer has two effects on it: topeffect a

  • I'm trying to convert a PDF to a Word Doc.  I click on convert and then sign in and it says can't find network.

    I keep getting a network error when I try to sign in on the side bar of a PDF file that I'm trying to convert.  How do I fix this?

  • IBooks in classroom - put to sleep or shut down?

    I am an educator using 800 iBooks with high school students. We have a mobile cart that charges the units when the students return them to the cart between classes. Which would be more beneficial...having the students just log off of them, close the

  • How to drop a temporary table?

    Hi , I try to create e temprary table with create global temporary table My_table_name ( ..... ) ON COMMIT PRESERVE ROWS ; All is OK. I try this step: insert into My_Table_name select ..... ; All is OK. After this I try : delete from My_table_name ;

  • "Roll Back" functionality

    Hi everyone, SAP MDM offers change tracking. Unfortunately I read in this forum, that MDM does not seem to offer a roll-back functionality. In other word, there is no standard function for undoing changes. Is that correct? Would I have to write my ow