Not making an animation fall off the stage????help

how do i make my animation not fall of the stage when i make it move with they arrow keys?
also how do i make my character jump when i hit the space bar using actionscript?

test your object's x,y properties after updating.  if they're beyond a boundary, do something.

Similar Messages

  • Enabling ALL VLANs on a trunk link causes downstream hosts to intermittently fall off the network

    In an effort to begin collapsing switches, I began to configure our two 3750g Core switches to Allow all VLANs to trunk to a downstream 6500.
    The cores are HSRP-configured and are the root bridge priorities are set to match the HSRP active router correctly.
    The trunk link that currently existed between the 3750 and the 6500 allowed only about 8 vlans, and the other day I removed the restriction to allow ALL VLANs 1-4096.
    Then the next day, people started noticing servers not accessible and I investigated and noticed that they were intermittently failing ping replies. These servers were DOWNSTREAM from the 6500 two switches deep using trunk links as well.
    One troubleshooting step I did was I pinged one of the HSRP IPs for the subnet the inaccessible server was on, got a reply from the gateway, and then I pinged the server again, and it replied!
    Another behavior I noticed was that I was starting to have trouble telneting in to the the two switches downstream from the 6500. Sometimes I could telnet to one of them, other times I couldn't. These downstream switches are the ones that had the server ports for the servers that were intermittnetly dropping off the network. So at a time when I could session into one of these downstream switches I could ping the servers from there. THen their MACs would show up in the table and then I could ping them from anywhere. I would wait for five minutes for the MACs to age out and then low-and-behold the servers were no longer accessible from the user locations until pinged them from the switches they were on.
    So, I gave up trying to fix, rolled back my trunk link betwen the 3750 and the 6500 to the few VLANs allowed as before, and then everything was happy again. I could ping all the servers, I could session in to all the downstream switches from the 6500.
    Network topology: [3750-core]---TrunkLinkAllowedAll---[6500chassis]---trunklink---[3750-3-switchStack]----trunklink---[3750]
    Any insights would be greatly appreciated
    Thanks!

    Thanks nkarthikeyan.
    VTP transparent mode and pvst+ was definitely in place. I went ahead and did exactly what you said; the only thing that was different from what you said to do was the way I had allowing ALL VLANs on the trunk from Core to the 6500. I allowed only the needed VLANs on that trunk and all seems to be fine.
    I still want to know why setting the trunk to allow 1-4094 would cause hosts to fall off the network and switch flooding to not work right. I did read some articles on the effects asymmetric routing can have on unicast flooding and perhaps that's the issue, since my core 3750 is configured with another core switch in an HSRP pair.

  • How to remove event listener when all the MoviClip are off the stage

    Hi i am newbie to as3,
        I am creating animation using as3 in which i duplicate the circle ten time,then pushing into an array and giving random motion. When all the duplicate object goes outside the stage then i should remove the event listener. But right now when one duplicate object goes off the stage the event listener is removed. Thanks in advance

    //---------code for creating random bubble movement------//
    var bubbleNo:Number = 10;
    var vx:Number = .3;
    var vy:Number = .5;
    var bubbles:Array = new Array();
    var bubbleRadius:Number = 9;
    var myColor:ColorTransform = this.transform.colorTransform;
    init();
    function init():void {
    for(var i:Number = 0; i<bubbleNo; i++){
              var bubble = new newBall();
    bubble.x = Math.random() * stage.stageWidth;
    bubble.y = Math.random() * stage.stageHeight;
    //bubble.color = Math.random
    //trace("bubble.x=="+bubble.x+"bubble.y=="+bubble.y);
    bubbles.push(bubble);
    myColor.color = Math.random() * 0xFFFFFF
    bubble.transform.colorTransform = myColor;
    addChild(bubble);
              addEventListener(Event.ENTER_FRAME,createBubble);
    //addEventListener(Event.ENTER_FRAME,createBubble);
    function createBubble(event:Event):void{
    for(var k:Number = bubbles.length-1; k>0; k--){
              var bubble = (newBall)(bubbles[k]);
              bubble.x += vx;
              bubble.y += vy;
              if(bubble.x - 18 > stage.stageWidth || bubble.x + 18 < 0  || bubble.y - 18 > stage.stageHeight || bubble.y + 18 < 0){
                        removeChild(bubble);
                        bubbles.splice(k, 1);
                        //trace("out"+bubbles.length);
                        if(bubbles.length <= 0 );
                                  removeBubble();
                                  trace(bubbles.length);
                                  //removeEventListener(Event.ENTER_FRAME,createBubble)
                        trace("all Bubbles cleared");
                        function removeBubble():void{
                                  removeEventListener(Event.ENTER_FRAME,createBubble)

  • AirDisk Falling off the network once a day

    My AirDisk fall off the network about once a day, not available to any computers, Mac or PC. Restarting the Airport Base Station brings it back up, but that's no solution.
    It's a Cavalry 500 GB USB 2 drive (SATA USB bridge on the inside)

    I had this, it happened to me about 3 or 4 times a week. I had it attached to an extreme which was running a WDS network. I decided just to live with it since I only needed the drive once a week or so.
    For other reasons I recently changed the extreme to a single station network and did the same with the other extreme, since then my airdisk has not dropped out.
    I'm not sure whether it was due to the WDS network or more likely that something wasn't configured just right.

  • IMac always falling off the network

    I have my iMac always on, serving up our big ITunes library to our wireless network around the house. It seems to fall off the network fairly regularly, every few days or so. I have the newer Airport extreme and several Airport expresses (not the latest ones) connected to stereos in different rooms of the houses.
    But this has always happened, for a year or so. Anyone know what it might be? thanks!

    I have exactly the same problem and called tech support (not helpful at all, they need to work on their listening skills) and have no idea what is going on. I have found a temporary solution and that is to reset the basestation and not use any security or hardware access and it seems to work fine for a long time with no problems. my problem (not sure if this is the same problem as you but...) whenever I put any kind os security or hardware acccess on the network my mac either can seem to find the thing or does and randomly cuts out. I of course check my signal strength and it always says it is full.
    any help please

  • Can someone please help me!! I keep trying to download itunes but get a message that and error has happened 2/3 and check window activity. Then it shows A sever with the specified host name could not-- and then it cuts off the rest of the message.

    I keep trying to download itunes in Safari but get a message that and error has happened 2/3 and check window> activity. Then it shows A sever with the specified host name could not…… and then it cuts off the rest of the message. I have reset Safari and still nothing!!!
    Very frustrated!!!

    It's downloading with Firefox 3.6.27 as I write.  It's probably more a Safari problem in your case for which people on the Safari forum could provide suggestions.  Or mybe just try again in a while as I suspect everybody is downloading right now.

  • I upgraded my iphone 4 OS yesterday to ios 5, today morning my phone is not working, i am not able to click any button and also its not allowing me to switch off the phone and restart. Anyone having similar issues

    i upgraded my iphone 4 OS yesterday to ios 5, today morning my phone is not working, i am not able to click any button and also its not allowing me to switch off the phone and restart. Anyone having similar issues?

    From my post on what seems like the same issue (found here: https://discussions.apple.com/message/21087892#21087892)
    Take the following steps:
    1) while connected to wifi, toggle off then back on the Show All Music and iTunes Match options shown in my original post. Important: I did this step before, but wasn't connected to wifi, and my music disappeared. Subsequently, I connected to wifi and turned off and then back on those options and everything came back though it was grayed out and my only option was to download music.
    2) To get streaming over cellular back, go into Settings>General>Cellular and scroll down to the "Use Cellular Data for:" options and make sure the iTunes option is set to 'On'
    The above steps will bring back the streaming capability which seemed to go away when you update to 6.1. It didn't ACTUALLY go away, but something about the update toggled off the iTunes option in step 2 above.
    I did a final test by turning off wifi, opening Music app and selecting a song. It played successfully without downloading! Crossing my fingers, but I think I'm good to go!
    Hope this helps!

  • My iPhone 4S stopped displaying the "Verizon" Logo at the top left of the screen. Now all it shows is the signal strength and 3G. It seems to be falling off the 3G network more than ever, What is going on?

    My phone quit displaying the Verizon logo at the top and now it only displays 3G and the signal bar. And its falling off the 3g network after finishing with voice calls.

    There is no roaming agreement with AT&T since a CDMA phone can't roam on AT&T's GSM network and vice-vera. The roaming agreement is with Alltel, which is in effect with Verizon since it was Verizon that purchased Alltel's CDMA network.
    Edit, I guess it is with AT&T since I now recall AT&T purchased some of Alltel's assets.
    Message was edited by: Allan Sampson

  • My  BEATS speakers are connected to my Mac but I have no audio and do not understand how to turn off the speaker. I press the power button and not shut off. And the white light behind me indicating that this synchronized, does not turn off ever.

    My  BEATS speakers are connected to my Mac but I have no audio and do not understand how to turn off the speaker. I press the power button and not shut off. And the white light behind me indicating that this synchronized, does not turn off ever.

    Hello Sabroso007
    Check out the article below to troubleshoot the sound output to your Bluetooth speaker. Check in System Preferences > Sound to see what the output is set to.
    OS X Mavericks: Set up Bluetooth audio devices
    http://support.apple.com/kb/PH14217
    Regards,
    -Norm G.

  • Right now, I'm stuck in the settings, when I press the sleep/wake button or the home button it doesnt let me. But is not frozen or any thing just the buttons. help me please!!!!!

    Right now, I'm stuck in the settings, when I press the sleep/wake button or the home button it doesnt let me. But is not frozen or any thing just the buttons. help me please!!!!!

    Try:                                               
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • Items off the stage are showing up in the browser. How do I stop this?

    When learning Flash, I was taught in the beginning that only items that appear on the stage actually show up in the final animation.  Clearly, these people were wrong.  I thought it would be easy to have some text move in from off the right side of the stage to the middle, but the text still shows up even before it enters the stage in the browser.  I have tried to change this using various publishing options, HTML, and CSS, with no luck.  I did have to resize the stage, and I'm not sure if that means anything.  Can someone help me figure this out? Thank you.
    -Chris

    Here are a few things I noticed:
    No DOCTYPE for the page:
    http://www.w3schools.com/tags/tag_doctype.asp
    then validate the code here:
    http://validator.w3.org/
    Next, your main container is 1000px wide (as per your CSS) but in your IE conditional you are placing a 1500 px wide .swf inside.
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1500" height="217.....
    so for course that won't work. In IE that results in a bottom scroll bar no matter how wide a monitor... it's never wide enough to display without scrollbar
    FF is different because:
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="topbanner.swf" width="713" height="155">
    You're using smaller dimensions....so set them both the same.
    If your main container is 1000px wide, then the stage size of your .swf should be 1000px, not 1500, not 713. Then set the width/height of the <div> holding your .swf to the exact same size as the .swf. That should eliminate any off stage stuff from showing.
    Best of luck!
    Adninjastrator

  • "can't move objects because they would fall off the drawing area" Why?!

    Hi, I'm trying to move a pdf object exported from vectorworks and i get the following error message: "Can't move the objects. The following transformation would make some objects fall completely off the drawing area."
    It's not the first time this has happened to me but I usually find a way to get around it. I tried increasing the page size, pasting it into a new bigger document, am i missing something?
    thanks!

    The drawing area is the entire surface available for drawing, and is much larger than the artboard. There are probably objects or unlocked guides that run to the edge of the drawing area.
    Unlock all objects and layers, then select all. Turn on Show Bounding Box and zoom out. The edge of the bounding box show the edge of the selected objects Explore the perimeter and delete anything at the edges that's causing the problem.

  • I'm using  lion 10.7.1 and ever since upgrading  my preferances are not saved after I shut off the computer. My screen saver is always photos even after changing it, itune always asks if I want to upgrade, even after telling it never to.

    When I turn off the computer my preferances are forgot. My screen saver aways goes to photos. Ittune always ask if I want to upgrade even after telling it not to . firefox always goes the upgrade page  a progam I  have to save my clipboard resets itself.

    This does appear to be an issue with synergy, but I've also noticed on my C2D Macbook Pro that the screen does not wake from sleep when I simply touch or move around on the touchpad.  Now, I have to hit a button (like return) to get the monitor to wake up.  Submitting a button strike through synergy does not work, though.  Neither does a mouse click on either the trackpad or through synergy.
    It also appears that synergy is functioning even though the monitor is off.  My mouse does move to the screen and progress across it (I have a three monitor setup with the Mac in the middle, so I can move it off my left system to my Mac, keep moving, and eventually it will show up on the third screen).  If synergy weren't working, I would expect it to go from screen 1 to screen 3.
    So I think there's something up with how Lion detects that the monitor should be reenabled, and synergy is even more affected by that decision.

  • How do I get stuff off the stage to show in a web browser on Flash CS4?

    Okay, so I have a picture that I want to be my background.  So I put it around the stage, but when I test my movie in a web browser, only my stage shows.  Is there a way I can get it to all show?  I don't really care if my background is cut off, as long as you can see it, because it's a tile sort of picture.
    Thanks!

    Create a rectangle that is the size you want this background to be.  When you create it, select the colors so that it has no line border.  Once it is created on the layer you have for the background, select the rectangle, open the Color panel, and choose Bitmap from the Type drop down menu in that panel, then select the image from the selections that appear.  The rectangle should fill with your tiling background image.

  • How to prevent embedded images falling off the page

    I have embedded images in a multi-column document. It's great to have the images flow with the text, but sometimes they flow over the edge of the page. Is there a way to set the keep options so that embedded images stay on the page?

    Again, I'm going to ask what behavior you expect for this? Where would you have that image move? If what you want is for the entire paragraph to go to the next page, you are using the correct mothod by adding a keep option that will keep sufficient lines together  to match the image height. Adding the keep within the top and bottom boundaries of the column (rather than the page) for inline anchored images might be useful if it behaved like a keep option forcing the containing paragraph to the next page, but not so good if it pushed the position of the image up or down relative to its anchor point.
    What you are learning is that anchored objects are extremely useful, but that they are problematic when they fall at the bottom of a column. You almost always need to som manual editing to accomodate the odd case.

Maybe you are looking for

  • I need pictures from a previous backup!

    When I updated to iOS 5 all of my music would not work. Therefor I restored my iPod to a previous backup from almost a year ago. This previous backup didnt have a lot of my pictures so I wanted to restore to the newest back up but before I could do s

  • Make sure that deleted data cannot be recovered

    Hello. I would like to know whether iErase ensures that the deleted photos sms e.t.c are permanently deleted and cannot be recovered. I am asking you because I intend selling my iphone 4s and I want to be sure that my deleted data (sms, mails, photos

  • 80 GB - One Tough iPod!

    Bought the new 80 GB iPod on Sunday; on Monday, while on a late-night walk with the iPod, I got mugged. Ended up dropping the iPod onto hard concrete, and after the guys ran away (with my almost-empty wallet, but leaving the day-old $350 iPod) I figu

  • ADF Query Panel - Manually editing search fields

    Good Afternoon, I have a Query Panel (View Criteria) that allows users to search for records where the "StartDate" attribute of the EmployeeVO View Object is between two bind variables, "startViewCritVar" and "endViewCritVar". I would like to access

  • How to load objects in web application context during oc4j startup?

    Hi How I can put some objects in application context during oc4j application startup? I'm using oracle as10g j2ee and web cache edition. Thanks