WSDL 'portType' can not have child 'wsp:Policy' of

hi experts,
I get this error message. What is wrong can you give me pls. an advice
to solve this problem.
Cannot download WSDL from http://treman:8000/sap/bc/srt/
wsdl/bndg_DDBAF5E4EC01D5F193F7000C29210034/wsdl11/allinone/ws_policy/document?sap-client=100:
WSDL 'portType' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' !

Dear SAP User and Developer,
are you saying there is no other possibility to change the the port type besides
the way with using "standard" instead of "ws_policy" in the URL.
I think there must be existing another solution.

Similar Messages

  • WSDL portType not have child Policy

    Hi,
    I am getting the following error when trying to test the webservice through wsnavigator.
    "Cannot download WSDL from http://SOLAR-DEV:8001/sap/bc/srt/wsdl/sdef_ZWEBTEST/wsdl11/ws_policy/document?sap-client=001: WSDL 'portType' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' ! "
    What is the wsp:Policy? Let me know how to solve it.
    Thanks & Regards,
    Dhanunjaya Reddy

    Follow these steps-
    (I) Checking Domain name of WSDL
    a) Open SOAMANAGER and navigate to "Business Administration" tab.
    b) Click on "Web Service Administration" link
    c) In "Search Pattern" search for your Webservice and click on "GO".
    d) Select the line and click "Apply Selection" button
    e) The details of your service definition is displayed. Click on "Open WSDL document for selected binding" link.
    f) Copy the URL. Make a special note of your domain Name. Eg: "http://xxxxx.com:"
    (II) Checking J2EE setting in SOAMANAGER
    a) Go back to your SOAMANAGER home page by clicking "Back" link.
    b) Select "Technical Configuration" Tab and click on "System Global Settings".
    c ) Select "Access Information J2EE server" Tab and note down your J2EE host settings.
    Note: If there are no J2EE host settings, then you probably get them from your BASIS team. Once you get the details, save the host settings.
    (III) Clearing the WSDL Port Type error
    a) Follow steps (a) thru (d) in Part I and click on 3rd link- "Open Web Service navigator for selected binding".
    b) Now your WS Navigator is open. Your work starts here. Provide the WSDL URL from Part (I).f step when asked for "Enter the WSDL URL of the Web service:". Click "Next" button.
    Possible outcomes-
    i) Overview page of your Webservice is seen. In this case you can click on "Test" link on top and continue ... OR
    ii) You get a error page namely-
    Cannot download WSDL from http://xxxx.com:Port#.
    If this is the case, then you need to provide the domain name noted down in PART I- step (f). and hit <Enter> This will open up the Overview page of your Webservice!
    Happy Troubleshooting!

  • "Error occurred in deployment step 'Retract Solution': The solution does not have a WSP file associated with it." occurs while deploying from Visual studio

    HI,
    I get this error "Error occurred in deployment step 'Retract Solution': The solution does not have a WSP file associated with it. " when deploying my project from visual studio 2010 to
    SharePoint 2010 site. I tried restarting IIS, but it didn't help. This application used to work fine until the server crashed during the deployment process. All the other applications on the same server works fine also. Any ideas how to fix this issue? 
    Thanks in advance,
    AM

    Hi
    AM ,
    Thank you for your posting!
    According to your error message, it says your solution does not have a WSP file associated with it. Take a look at the file system.  After you Right Click -> Deploy Solution on the VS Solution, there
    should be a .wsp file at <Solution Directory>\bin\<debug|release>.
    Also the error can be occurring when the developer try to deploy solutions over pre-existing solutions  with material changed  in the solution.  Go to your Central Administration Site and then
    Operations and then Solution Management.  Make sure that there not already a solution with the same name deployed or installed there.  If there is, remove it and try deploying again.
    And you could look in logs and find if there is a below error in ULS log (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS).
    Thank you for your understanding and support.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • I have big problems with mountain lion. you can not have a boot disk system I resulted in the need to re-download the os from scratch impiegandoci 8 hours, it is outrageous even with windows 95.

    I have big problems with mountain lion. you can not have a boot disk system I resulted in the need to re-download the os from scratch impiegandoci 8 hours, it is outrageous even with windows 95.
    at least that the operator has confirmed to me that he called me. I also have problems with either the start of the mac with the power off. I can not understand if it crashes or is just very very slow.
    Finally, I have a problem with the external hard disck. I often said to have been ejected incorrectly (not true) and I start to restore the startup recovery disk because disk utility is ineffective from the normal operating system .. is a shocking thing, but how you reduced. in four years it had never happened. seem to have windows or worse. Wake up.
    I am an Italian, alas, and then I would like an answer to my language because my € are the same as German French or English.

    You are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
    Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
    If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
    Once you are using the "Firefox" button ...
    Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
    To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • Solaris 10 cluster:failover project or zone can not have same name?

    Oracle on Solaris 10 cluster: two node SUN cluster fail over, SA advised using different account (oracle01 for node01, oracle02 for node02) to failover cluster, why can't I create same 'oracle' account on both node?
    failover different project or zone can not have same user or group account name?
    thanks.

    Hi Vangelis,
    Building a cluster, requires some planning and understanding the concepts.
    A good start would be reading some of the documents linked to in this url: http://docs.sun.com/app/docs/doc/819-2969/gcbkf?a=view
    Regards,
    Davy

  • While keeping my probook charging it is blinking orange insted of green and can not have display

    while keeping my probook charging it is blinking orange insted of green and can not have display

    Hi S,
    Did they have you try an SMC Reset: http://support.apple.com/kb/HT3964?

  • How do i set up facetime and the messaging app on my daughters ipod touch? she is 9 and can not have an apple i.d. for purchases etc. i only want to message her from my i phone!

    What i need the answer to is how to get an apple i.d.for my daughter without an email address or anything else, as she is only 9 and does not need, nor can she legally have, an i tunes account. I have got face time working but have done it with my other email address and have gone round so many houses to achieve it the passwords etc are a mystery now. is there a place where i can view what is linked to what, and generally do some house keeping and tidy up the mess i have created attempting to enable the features of her i pod touch? I am trying to keep my child from the full force of the internet and therefore have found the easiest course of action to leave everything switched off and am starting to wish i had bought a shuffle instead, She is right to question why she has the device when she can not use it to it's capacity. But safely. And i am astonished that the help is so difficult to obtain quickly and easily, surely other responsible parents have had to do the same thing?

    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime
    If the iPhone has iOS 6, you can only uncheck your phone number on the iPod that is in Settings>Messages>Send And Receive. To delete yo have to create a new iTunes account not associated with the phone.
    What do yo mean by "is there a place where i can view what is linked to what, "?

  • I imported 100 photos, when I was reading photos iphoto crushed, and when I restarted iphoto all photos imported had disappeared!Is there a way to find them. They were imported, they can not have disappeared from the hard disk?

    I imported 100 photos from my camera (Canon) into iphoto. The importation went well, and when I was watching the photos, suddenly iphoto crashed. I restarted iphoto and realized that the photos had disapered. The events are availbble into iphoto but they are empty, the photos have dispeared. I can not believe they disapeared as they have been imported and read once, they must be hidden somewhere on the disk? Is there a way to find where they are?

    Assuning you're running iPhoto 9 or later try the following:
    1 - launch iPhoto with the Command+Option keys held down to open the First Aid window.
    2 - Run Option #4, Rebuild Database.
    OT

  • HT204088 Is there anyway i can not have a credit card on my ipad?

    Is there anyway to not have a credit card on my ipad

    If you have a credit card in your account now, go to the payment information and select "none"
    http://support.apple.com/kb/HT1918
    If you don't yet have an iTunes Store account and you only want the free apps, take a look here:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is  critical. Note that you can do this only when creating a new Apple ID. You cannot use an existing ID. 
    You will of course not be able to get anything other than the free apps without entering in some sort of payment method (credit card, prepaid iTunes card, gift certificate, etc.)
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • Can not have more than one screen open at a time PLEASE HELP

    some how I've made it so when I open more than one application or screen the current one open goes off the screen to the left. Can someone help so that I can again have more than on screen open at a time. Thank You in advance for your courtesy

    Hello LUCID MIND,
    And welcome to Apple Discussions!
    Do you have Spaces turned on within *System Preferences*?
    B-rock

  • TS3694 I can not restore my iphone.It reads error 1015 and can not have firmwear updates. how can i have my firmwear on iphone be updated.

    i can not restore my i phone it reads error 1015.its firmwear can not be updated. please help me restore the firmwear on my 3g i phone.

    Google "Error 1015" and you will get your solution.

  • I can not have any more app store

    i havr problem with my os x 10.8.5. I ca not have any more app store and others mac companante as contacte macclean witch i bouth. it disapear. why?

    My Apple ID has been disabled.
    Verification required.
    To help ensure the security of your Apple ID, You must sign in and answer your security questions.
    PLEASE HELP ME

  • Can not activate the wsp in WSS

    Hi,
    I have developed a farm solution to create Doc Library programmatically using Visual studio 2012 and SharePoint foundation 2013. I am trying to deploy that solution on WSS. When i upload the solution and try to activate, no action occurs.
    Following error occurs
    So as an alternative i started all related services but still not able to activate the solution.
    How could we solve it?

    hi,
    Yes, i think it is not possible to develop the component for WSS using SharePoint foundation.
    But, i am not agree with "There is no Microsoft
    SharePoint Foundation Sandboxed Code Service in WSS" 
    Can
    you please provide me any link which states that There is no Microsoft
    SharePoint Foundation Sandboxed Code Service in WSS.
    Thanks,
    Niraj

  • Actionscript help: can not have more than one externally visable def

    package  {
        // these are flash built in classes
         import flash.display.MovieClip;
         import flash.events.TimerEvent;
        import flash.utils.Timer;
         import flash.events.Event;
        //Our own custom class
        import MainTimer;
        import flash.events.KeyboardEvent;
        public class MainDocument extends MovieClip{
            //initial variable values
             private var currentNumberOfEnemiesOnstage:int;
             private var initialNumberOfEnemiesToCreate:int = 2;
             private var enemyKills:int;
             private var childToRemove:int;
             private var level:int = 1;
             private var makeNewEnemyTimer:Timer = new Timer(3000,1);
             private var finishOffEnemy:Timer = new Timer (500, 1);
             private var gameTimer:MainTimer
             private var thePlayer:Player;
             private var theEnemy:Enemy;
             private var maxEnemies:int = 3;
             private var e:int = 0;
             private var childrenOnStage:int;
             private var lastX:int;// variable to determine where the last x of the player was.
             private var theStageNeedsToScroll:Boolean=false;// flag for scrolling
             private var numChildrenInGameStage:int;
             private var jump:JumpSound = new JumpSound();
             private var slap:SlapSound = new SlapSound();
             private var token:TokenSound = new TokenSound();
            public function MainDocument() {
                // constructor code
                trace("the main document is alive");
                makeNewEnemyTimer.addEventListener(TimerEvent.TIMER_COMPLETE,makeNewEnemyHandler);
                makeNewEnemyTimer.start();
                //new instance of the MainTimer class
                gameTimer = new MainTimer();
                //must add it to the stage
                addChild(gameTimer);
                //adjust its position on the stage
                gameTimer.x = 20;
                gameTimer.y = 20;
                //add the player
                thePlayer = new Player();
                addChild(thePlayer);
                // adjust its position on the stage
                thePlayer.x = stage.stageWidth * 0.5;
                // assign the name property
                thePlayer.name = "player";
                while (e< initialNumberOfEnemiesToCreate){
                    createEnemy();
                    e++;
                } //end while
                // init variable for tracking "kills"
                enemyKills = 0;
                killScoreBox.text = String (enemyKills) + " KILLS ";
                // Update this variable every time a child is added to the stage
                childrenOnStage = this.numChildren;
                //Add event listener to control timing of main game loop
                addEventListener (Event.ENTER_FRAME,mainGameLoop);
                 // Prepare for the keystroke listeners
                 stage.focus = stage;
                stage.addEventListener  (KeyboardEvent.KEY_DOWN, keyDownHandler);
                stage.addEventListener  (KeyboardEvent.KEY_UP, keyUpHandler);
            }  //end public function MainDocument
            private function keyDownHandler(e:KeyboardEvent):void {
                switch ( e.keyCode) {
                    case 37:   // left
                        thePlayer.moveLeft();
                        break;
                    case 38://up
                        jump.play();
                        thePlayer.startJumping();
                        break;
                    case 39:    //right
                        thePlayer.moveRight();
                        break;
                    case 40: //down to attack
                        slap.play();
                        thePlayer.attack();
                        break;                   
                }// end switch
            }// end function keyDownHandler
            private function keyUpHandler(e:KeyboardEvent):void {
                switch (e.keyCode) {
                    case 37:    // left
                    case 39:    // right
                        thePlayer.standStill();
                        break;
                    case 38: //jump
                        break;
                    case 40: // down to attack
                    break;
                    default:
                        //anything
                } //end switch
            } // end function keyUpHandler
            private function createEnemy():void{
                trace("create enemy");
                theEnemy = new Enemy((Math.random() * 5) + 1 );
                addChild(theEnemy);
                // Place in a random spot on stage
                theEnemy.x = (Math.random() * stage.stageWidth);
                theEnemy.y = 0;
                // assign the "name" property
                theEnemy.name = "enemy";
                //Update this variable everytime a child is added to the stage
                childrenOnStage = this.numChildren;
            } //end function createEnemy
            //the main loop for the game!!!!!
            private function mainGameLoop (event:Event):void{
                checkForGameReset();
                removeOrCreateNewEnemies();
                processCollisions();
                scrollStage();
            } //end function mainGameLoop
            private function checkForGameReset():void{
                //define conditions
                if(gameTimer.timerHasStopped == true){
                    resetBoard();
                }else if(thePlayer.y > stage.stageHeight){
                    resetBoard();
                }else if (theGameStage.theFish.hitTestPoint(thePlayer.x,thePlayer.y,true)
                                                        && theStageNeedsToScroll == false){
                    resetBoard();
                }else if (health.width <= 2){
                    resetBoard();
            } //end function CheckForGameReset
            private function resetBoard():void{
                health.width = 300;
                thePlayer.x = stage.stageWidth * 0.5;
                theGameStage.x = stage.stageWidth * 0.5;
                thePlayer.y = 0;
                theGameStage.y = 0;
                enemyKills = 0;
                gameTimer.resetTimer();
            } //end function
            private function processCollisions():void{
                //  set up main loop to look through all collidable objects on stage
                for(var c:int;c < childrenOnStage;c++){
                    //trace ("Children on stage c= " + c +
                    // test for a player or enemy child on stage
                    if (getChildAt(c).name == "player" || getChildAt(c).name == "enemy"){
                        // see if ovject is touching the game stage
                        if( theGameStage.hitTestPoint(getChildAt(c).x,getChildAt(c).y,true)){
                            // while it is still touching inch it up just until it stops
                               while ( theGameStage.hitTestPoint(getChildAt(c).x,getChildAt(c).y,true)==true){
                                   // called from CollisionObject Class, so force the connectioin
                                   CollisionObject (getChildAt(c)).incrementUpward();
                                   if (theGameStage.hitTestPoint(getChildAt(c).x,getChildAt(c).y,true)==false){
                                       CollisionObject(getChildAt(c)).keepOnBoundary(); //make it stick
                                   } // end if
                               } //end while
                        } //end if touching
                    }//end if player or enemy
                    ///////////////////////Collision with Enemies///////////////
                    if (getChildAt(c).name == "enemy"){
                        if(getChildAt(c).hitTestPoint (thePlayer.x, thePlayer.y , true) ){
                            if( thePlayer.isAttacking == false) {
                                // we are being attacked (and not defending)
                                health.width = health.width -2;                           
                                Enemy(getChildAt(c)).makeEnemyAttack();
                            }else{
                                // we are attacking that enemy
                                childToRemove = c;
                                Enemy(getChildAt(c)).makeEnemyDie();
                                finishOffEnemy.start();
                                finishOffEnemy.addEventListener(TimerEvent.TIMER_COMPLETE, finishOffEnemyComplete);
                            } //end else
                        }else if (Enemy(getChildAt(c)).enemyIsAttacking ==true) {
                            // if there isn't a collision between player and enemy,BUT the enemy is attacking
                            Enemy(getChildAt(c)).makeEnemyStopAttacking();
                        } //end else
    import flash.events.TimerEvent;
    // end if
                } //end for loop
                /////////////// token collision detection ///////////////
        numChildrenInGameStage = theGameStage.numChildren;
        for (var d:int = 0; d < numChildrenInGameStage; d++){
            if (theGameStage.getChildAt(d).hasOwnProperty("isToken") &&
                            theGameStage.getChildAt(d).visable == true) {
                if (thePlayer.hitTestObject(theGameStage.getChildAt(d))){
                    trace("hit token");
                    //play sound
                    token.play();
                    theGameStage.removeChildAt ( d );
                    numChildrenInGameStage = theGameStage.numChildren;
                }// end if
            }// end if
        } //end for
        }// end function processCollisions
        private function scrollStage():void{
                if (thePlayer.x != lastX){
                    theStageNeedsToScroll = true;
                }else{
                    theStageNeedsToScroll = false;
                }// end if
                if (theStageNeedsToScroll == true){
                    for (var b:int = 0; b < childrenOnStage; b ++){
                        if (getChildAt (b).name =="enemy"){
                            getChildAt (b).x += (stage.stageWidth * 0.5) - thePlayer.x;
                        }// end if
                    } //end for
                    theGameStage.x += (stage.stageWidth * 0.5) - thePlayer.x;
                } //end if
                thePlayer.x = stage.stageWidth * 0.5;
                lastX = thePlayer.x;
            }//  end function scrollStage
            // figure out logic
         //  end function scrollStage
        private function removeOrCreateNewEnemies():void{
            for (var c:int = 0; c < childrenOnStage; c++){
                if (getChildAt(c).name == "enemy" && getChildAt(c).y > stage.stageHeight){
                    removeChildAt(c);
                    createEnemy();
                } //end if
                if (getChildAt(c).name == "enemy" && getChildAt(c).x < thePlayer.x - stage.stageWidth){
                    removeChildAt(c);
                    createEnemy();
                } //end if
            } // end for loop
        }// end function removeOrCreateNewEnemies
        private function makeNewEnemyHandler(event:TimerEvent):void{
            currentNumberOfEnemiesOnstage = 0;
            for (var c:int = 0; c < childrenOnStage; c++){
                if (getChildAt(c).name == "enemy");
                    currentNumberOfEnemiesOnstage++;
                }// end if
            }// end for
            if(currentNumberOfEnemiesOnstage < maxEnemies){
                trace("not enough enemies onstage, make more");
                createEnemy();
            } //end if
            makeNewEnemyTimer.start();                       
        } //end function
        public function finishOffEnemyComplete(event:TimerEvent):void {
            enemyKills ++;
            killScoreBox.text = String ( enemyKills) + " KILLS ";
            removeChildAt (childToRemove);
            childrenOnStage = this.numChildren;
        }// end functioin
        }// end public class

    You have several problems with syntax. Here is the class that has syntactical integrity:
    package
              // these are flash built in classes
              import flash.display.MovieClip;
              import flash.events.TimerEvent;
              import flash.utils.Timer;
              import flash.events.Event;
              //Our own custom class
              import MainTimer;
              import flash.events.KeyboardEvent;
              public class MainDocument extends MovieClip
                        //initial variable values
                        private var currentNumberOfEnemiesOnstage:int;
                        private var initialNumberOfEnemiesToCreate:int = 2;
                        private var enemyKills:int;
                        private var childToRemove:int;
                        private var level:int = 1;
                        private var makeNewEnemyTimer:Timer = new Timer(3000, 1);
                        private var finishOffEnemy:Timer = new Timer(500, 1);
                        private var gameTimer:MainTimer
                        private var thePlayer:Player;
                        private var theEnemy:Enemy;
                        private var maxEnemies:int = 3;
                        private var e:int = 0;
                        private var childrenOnStage:int;
                        private var lastX:int; // variable to determine where the last x of the player was.
                        private var theStageNeedsToScroll:Boolean = false; // flag for scrolling
                        private var numChildrenInGameStage:int;
                        private var jump:JumpSound = new JumpSound();
                        private var slap:SlapSound = new SlapSound();
                        private var token:TokenSound = new TokenSound();
                        public function MainDocument()
                                  // constructor code
                                  trace("the main document is alive");
                                  makeNewEnemyTimer.addEventListener(TimerEvent.TIMER_COMPLETE, makeNewEnemyHandler);
                                  makeNewEnemyTimer.start();
                                  //new instance of the MainTimer class
                                  gameTimer = new MainTimer();
                                  //must add it to the stage
                                  addChild(gameTimer);
                                  //adjust its position on the stage
                                  gameTimer.x = 20;
                                  gameTimer.y = 20;
                                  //add the player
                                  thePlayer = new Player();
                                  addChild(thePlayer);
                                  // adjust its position on the stage
                                  thePlayer.x = stage.stageWidth * 0.5;
                                  // assign the name property
                                  thePlayer.name = "player";
                                  while (e < initialNumberOfEnemiesToCreate)
                                            createEnemy();
                                            e++;
                                  } //end while
                                  // init variable for tracking "kills"
                                  enemyKills = 0;
                                  killScoreBox.text = String(enemyKills) + " KILLS ";
                                  // Update this variable every time a child is added to the stage
                                  childrenOnStage = this.numChildren;
                                  //Add event listener to control timing of main game loop
                                  addEventListener(Event.ENTER_FRAME, mainGameLoop);
                                  // Prepare for the keystroke listeners
                                  stage.focus = stage;
                                  stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
                                  stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
                        } //end public function MainDocument
                        private function keyDownHandler(e:KeyboardEvent):void
                                  switch (e.keyCode)
                                            case 37: // left
                                                      thePlayer.moveLeft();
                                                      break;
                                            case 38: //up
                                                      jump.play();
                                                      thePlayer.startJumping();
                                                      break;
                                            case 39: //right
                                                      thePlayer.moveRight();
                                                      break;
                                            case 40: //down to attack
                                                      slap.play();
                                                      thePlayer.attack();
                                                      break;
                                  } // end switch
                        } // end function keyDownHandler
                        private function keyUpHandler(e:KeyboardEvent):void
                                  switch (e.keyCode)
                                            case 37: // left
                                            case 39: // right
                                                      thePlayer.standStill();
                                                      break;
                                            case 38: //jump
                                                      break;
                                            case 40: // down to attack
                                                      break;
                                            default:
                                            //anything
                                  } //end switch
                        } // end function keyUpHandler
                        private function createEnemy():void
                                  trace("create enemy");
                                  theEnemy = new Enemy((Math.random() * 5) + 1);
                                  addChild(theEnemy);
                                  // Place in a random spot on stage
                                  theEnemy.x = (Math.random() * stage.stageWidth);
                                  theEnemy.y = 0;
                                  // assign the "name" property
                                  theEnemy.name = "enemy";
                                  //Update this variable everytime a child is added to the stage
                                  childrenOnStage = this.numChildren;
                        } //end function createEnemy
                        //the main loop for the game!!!!!
                        private function mainGameLoop(event:Event):void
                                  checkForGameReset();
                                  removeOrCreateNewEnemies();
                                  processCollisions();
                                  scrollStage();
                        } //end function mainGameLoop
                        private function checkForGameReset():void
                                  //define conditions
                                  if (gameTimer.timerHasStopped == true)
                                            resetBoard();
                                  else if (thePlayer.y > stage.stageHeight)
                                            resetBoard();
                                  else if (theGameStage.theFish.hitTestPoint(thePlayer.x, thePlayer.y, true) && theStageNeedsToScroll == false)
                                            resetBoard();
                                  else if (health.width <= 2)
                                            resetBoard();
                        } //end function CheckForGameReset
                        private function resetBoard():void
                                  health.width = 300;
                                  thePlayer.x = stage.stageWidth * 0.5;
                                  theGameStage.x = stage.stageWidth * 0.5;
                                  thePlayer.y = 0;
                                  theGameStage.y = 0;
                                  enemyKills = 0;
                                  gameTimer.resetTimer();
                        } //end function
                        private function processCollisions():void
                                  //  set up main loop to look through all collidable objects on stage
                                  for (var c:int; c < childrenOnStage; c++)
                                            //trace ("Children on stage c= " + c +
                                            // test for a player or enemy child on stage
                                            if (getChildAt(c).name == "player" || getChildAt(c).name == "enemy")
                                                      // see if ovject is touching the game stage
                                                      if (theGameStage.hitTestPoint(getChildAt(c).x, getChildAt(c).y, true))
                                                                // while it is still touching inch it up just until it stops
                                                                // while it is still touching inch it up just until it stops
                                                                while (theGameStage.hitTestPoint(getChildAt(c).x, getChildAt(c).y, true) == true)
                                                                          // called from CollisionObject Class, so force the connectioin
                                                                          CollisionObject(getChildAt(c)).incrementUpward();
                                                                          if (theGameStage.hitTestPoint(getChildAt(c).x, getChildAt(c).y, true) == false)
                                                                                    CollisionObject(getChildAt(c)).keepOnBoundary(); //make it stick
                                                                          } // end if
                                                                } //end while
                                                      } //end if touching
                                            } //end if player or enemy
                                            ///////////////////////Collision with Enemies///////////////
                                            if (getChildAt(c).name == "enemy")
                                                      if (getChildAt(c).hitTestPoint(thePlayer.x, thePlayer.y, true))
                                                                if (thePlayer.isAttacking == false)
                                                                          // we are being attacked (and not defending)
                                                                          health.width = health.width - 2;
                                                                          Enemy(getChildAt(c)).makeEnemyAttack();
                                                                else
                                                                          // we are attacking that enemy
                                                                          childToRemove = c;
                                                                          Enemy(getChildAt(c)).makeEnemyDie();
                                                                          finishOffEnemy.start();
                                                                          finishOffEnemy.addEventListener(TimerEvent.TIMER_COMPLETE, finishOffEnemyComplete);
                                                                } //end else
                                                      else if (Enemy(getChildAt(c)).enemyIsAttacking == true)
                                                                // if there isn't a collision between player and enemy,BUT the enemy is attacking
                                                                Enemy(getChildAt(c)).makeEnemyStopAttacking();
                                                      } //end else
                                  } //end for loop
                                  /////////////// token collision detection ///////////////
                                  numChildrenInGameStage = theGameStage.numChildren;
                                  for (var d:int = 0; d < numChildrenInGameStage; d++)
                                            if (theGameStage.getChildAt(d).hasOwnProperty("isToken") && theGameStage.getChildAt(d).visable == true)
                                                      if (thePlayer.hitTestObject(theGameStage.getChildAt(d)))
                                                                trace("hit token");
                                                                //play sound
                                                                token.play();
                                                                theGameStage.removeChildAt(d);
                                                                numChildrenInGameStage = theGameStage.numChildren;
                                                      } // end if
                                            } // end if
                                  } //end for
                        } // end function processCollisions
                        private function scrollStage():void
                                  if (thePlayer.x != lastX)
                                            theStageNeedsToScroll = true;
                                  else
                                            theStageNeedsToScroll = false;
                                  } // end if
                                  if (theStageNeedsToScroll == true)
                                            for (var b:int = 0; b < childrenOnStage; b++)
                                                      if (getChildAt(b).name == "enemy")
                                                                getChildAt(b).x += (stage.stageWidth * 0.5) - thePlayer.x;
                                                      } // end if
                                            } //end for
                                            theGameStage.x += (stage.stageWidth * 0.5) - thePlayer.x;
                                  } //end if
                                  thePlayer.x = stage.stageWidth * 0.5;
                                  lastX = thePlayer.x;
                        } //  end function scrollStage
                        // figure out logic
                        //  end function scrollStage
                        private function removeOrCreateNewEnemies():void
                                  currentNumberOfEnemiesOnstage = 0;
                                  for (var c:int = 0; c < childrenOnStage; c++)
                                            if (getChildAt(c).name == "enemy")
                                                      currentNumberOfEnemiesOnstage++;
                                            } // end if
                                  } // end for
                                  if (currentNumberOfEnemiesOnstage < maxEnemies)
                                            trace("not enough enemies onstage, make more");
                                            createEnemy();
                                  } //end if
                                  makeNewEnemyTimer.start();
                        } //end function
                        public function finishOffEnemyComplete(event:TimerEvent):void
                                  enemyKills++;
                                  killScoreBox.text = String(enemyKills) + " KILLS ";
                                  removeChildAt(childToRemove);
                                  childrenOnStage = this.numChildren;
                        } // end functioin

  • Can i sync phone when your firefox does not work and I can not have it on android mydesk top works great with fire fox

    fire fox slows down and does not work on phone. but works on desk top . stilll need them to sync now can they still sync and why have you not made version for moto milesstone

    The Motorola Milestone has a low amount of system RAM and that causes very poor performance. Because of this we don't support running Firefox mobile on the Milestone.
    To set up sync you need to create a sync account on desktop Firefox. Then on the mobile device press the connect to sync and then go to desktop Firefox and enter the Sync code.
    https://support.mozilla.com/en-US/kb/add-a-device-to-firefox-sync
    If you have specific questions about the steps above please reply in the forum.

Maybe you are looking for

  • My stroke path is not working i need help

    my stroke path is not working can someone help please

  • Trouble with mobile site. Displays for a second then screen goes black.

    Trouble with mobile site. Displays for a second then screen goes black. Using safari, 4s on Verizon. Example: m.mlb.com/lad/

  • HOW TO USE CLIPS FROM A DVD???

    HOW TO USE CLIPS FROM A DVD??? i know this may be a stupid and obvious question but i can't seem to figure it out. these are not copyrited dvds... mostly home movies and old home movies put onto dvd. thank you... much appreciated.

  • Display one row only

    This query SELECT SCRATTR_ATTR_CODE from scrattr_TEST,scbcrse_TEST where SUBSTR(scbcrse_subj_code,1,3)  = SUBSTR(scrattr_subj_code,1,3) and SUBSTR(scbcrse_crse_numb,1,4)  = SUBSTR(scrattr_crse_numb,1,4)Returns this SCRATTR_ATTR_CODE A INS MCSR How I

  • Installer processs DRAINS ALL RAM (sophos problem too..)

    Hello! My system suddenly runs REALLY SLOW, then I have to delete the installer process and it gets better. FOllowing is my system report. As you can see I have sophos which I would love to UNINSTALL YET, I cant..... Why? Because I deleted the app fr