Flash Background help

Hello, right now i am working on a first person shooter, not one of those ones seen on youtube where the gun moves and the background stays in place, but vice versa. Right now i'm trying to rig it so when you press the "UP" key you'll open a menu where you cant shoot, aim.etc I got 1 problem, how do i rig it so that when i pres up, the background stops moving? The code i'm using for the background is:
onClipEvent(enterFrame){
Mouse.hide();
this._x =-_root._xmouse+400;
this._y =-_root._ymouse+200;
Please help!
BTW, you can chech out the beta of this game at Newgrounds.com, by the user: HarryboEntertainment

One way to control execution of code is to introduce a conditional.
onClipEvent(enterFrame){
   if(allowMovement){
      Mouse.hide();
      this._x =-_root._xmouse+400;
      this._y =-_root._ymouse+200;
So when you press the UP key you would set the allowMovement variable to false, and whatever you do to resume play would set it true again.  You may need to adjust targeting the variable.

Similar Messages

  • How to center and resize (flash background) in every browser?

    hello there ..
    i‘m working on my first website so i dont have much experince in dreamweaver and the codes confuse me a lil bit ..
    so i ll appreciate if u help me ..
    ok .. my problem is that i made a flash file and put it as a background to my web and i couldnt find the right code to resize it . So the size of the web is fit in my monitor but not to other monitors. .. i found that most of the solutions that resize the web depends on an image background but i dont have that .. so would you plz help me
    here is my flash background ... and plus i have top and bottom frames .. thnq
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1412" height="628" align="middle" id="FlashID">
        <param name="movie" value="flash/background-1.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <param name="swfversion" value="6.0.65.0" />
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <param name="SCALE" value="noborder" />
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object data="flash/background-1.swf" type="application/x-shockwave-flash" width="1412" height="628" align="middle">
          <!--<![endif]-->
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <param name="swfversion" value="6.0.65.0" />
          <param name="expressinstall" value="Scripts/expressInstall.swf" />
          <param name="SCALE" value="noborder" />
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>

    I have to agree with Ken.  Even if you manage to get Flash into the page background (no small feat) people won't be able to interact with it. That's usability problem #1. 
    #2 Flash is a dead web technology because the world's most popular mobile & tablet devices cannot see Flash content.  So you're alienating a lot of people before you've even begun.
    Depending on what your Flash file contains, you might want to switch to a responsive jQuery image slider like the ones below. 
    ResponsiveSlides
    http://responsiveslides.com/
    Cycle 2
    http://www.malsup.com/jquery/cycle2/
    Or, use Adobe Edge Animate instead of Flash. Edge Animate outputs to HTML5, CSS3 and JavaScript which are supported by all modern devices except IE8 and earlier.  For tips on making Edge Animations adapt to screen size, see the following link.
    http://www.webdesignermag.co.uk/tutorials/create-a-responsive-animation-with-adobe-edge-an imate/
    Nancy O.

  • Best way to put flash background on website?

    Hello,
    I am very new to both after effects and flash and need some help with a few things.
    I am trying to put a flash background on my website that will loop over and over.
    I created the file in after effects but understand that it is best to export to flash to keep file size down.
    I have tried exporting from after affects using F4L, FLV, and XFL and always seem to get a file size of 2-4 MB.
    My video is only 8 seconds long and I exported at half resolution so I am unsure why it is so large.
    How can I reduce the file size?
    When I import F4L and FLV to flash and then export as an SWF file, the file does not work on my website(nothing shows). It seems to only work when I import as an XFL and then export as an SWF.
    Also, how do I get the video to loop? Do I do this in flash or in the object tags in my website?
    If anyone could please help me out that would be much appreciated.
    Thanks and I look forward to your replies.

    Don`t export to flv from after effects, instead choose png.
    You will end up with having your pictures rendered as file001.png....file200.png.
    Create a  new fla press ctrl+F8 (on PC) and then import the first of the files (file001.png) to the stage. Flash will ask you if you want to import the rest of the animation as well.
    Now from the Library you can drag your new created symbol (with the png loop) on stage. Publish it as swf.
    Done

  • Cs4 flash intro help!!!

    sorry if I posted in the wrong section but I need help.
    I have a flash intro and when ever I preview it,the intro background turns to black instead of staying the way it should be.Can somebody please help me out here,I need this flash intro for a website.Please explain this to me in simple terms because im pretty NEW to adobe.
    Thanks
    Kevin
    Note I've tried everything to make the flash background stay the way it was but nothing I do works.

    Hi, you may want the Flash forum. Also here is a thread that may help. http://forums.adobe.com/message/2706438#2706438
    The various forums are listed when you open www.adobe.com
    Thanks,
    eidnolb

  • Scaling background help!!!

    Hi everyone, i'm trying to figure out how to do a background
    in flash that scales with the window but doesn't show any scroll
    bars. Like here: dstripe.com
    How big do I make the stage so that it will take up the
    entire window? Does the background go into the html or into the
    flash? Help! Please!

    if(stage.stageHeight<=BACKGROUND.height){
         BACKGROUND.width = (stage.stageHeight/BACKGROUND.height)*BACKGROUND.width;
         BACKGROUND.height = stage.stageHeight;
         BACKGROUND.x = (stage.stageWidth -BACKGROUND.width)/2
         BACKGROUND.y = (stage.stageHeight -BACKGROUND.height)/2
    }else{
         BACKGROUND.x = stage.stageWidth/2 - BACKGROUND.width/2
         BACKGROUND.y = stage.stageHeight/2 - BACKGROUND.height/2
    Try that. I'll keep thinking about this to see if i can find a better solution.

  • Flash player has been installed multiple time without errors but bbc news website and even flash player help say it isn't. How do i get out of this loop? - using windows 7 ultimate and latest IE11

    flash player has been installed multiple time without errors but bbc news website and even flash player help say it isn't. How do i get out of this loop? - using windows 7 ultimate and latest IE11

    I have had the same problem for WEEKS and I cannot access any sites that use Flash. Flash has been installed on this computer since I bought it in 2012. I have allowed auto updates but for weeks the updates never get past Step 2 - is this because I do NOT want the Google Tool bar? I use NO tool bars as there is only 6 inches of vertical screen space. Is this because I uncheck wanting Chrome as a default browser?  It is already installed, I just don't use it.  I came to this site and ran the check is it installed and the system says it is either not installed or not enabled. Version 14 just downloaded about 30 minutes ago - but did not progress to Step 3 although a pop up screen came up with a finish button, which I clicked. WHAT is the problem and how do I fix it?  If this were just a compatibility bug between IE11 and Adobe they have had plenty of time to fix it.
    Stephanie HC

  • Flash content is flashing. HELP !!!

    http://www.argos.co.uk/static/Product/partNumber/5080032/http://www.argos.co.uk/webapp/wcs/stores/servlet/Search?storeId=10001&catalogId=1500001801 &langId=-1&searchTerms=5080032&Submit=GO+%3E&sourceid=Mozilla-search
    this is the laptop I have purchased
    It is running the 64-bit version of Windows 7.
    When using the 32 bit version of IE 8 any flash content flashes.
    for example www.lego.com, the main picture that changes flashes on and off.
    I have tried uninstalling and reinstalling flash.
    Can anyone help I have tried all i can think of.
    Thanks in advance

    Hello,
    Some problems with Flash video playback can be resolved by disabling hardware acceleration in your Flash Player settings. (See [[Flash Plugin - Keep it up to date and troubleshoot problems|this article]] for more information on using the Flash plugin in Firefox).
    To disable hardware acceleration in Flash Player:
    #Go to this [http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues Adobe Flash Player Help page].
    #Right-click on the Flash Player logo on that page.
    #Click on '''Settings''' in the context menu. The Adobe Flash Player Settings screen will open.
    # Click on the icon at the bottom-left of the Adobe Flash Player Settings window to open the Display panel. <br/> <br/>[[Image:fpSettings1.PNG]] <br/>
    # Remove the check mark from '''Enable hardware acceleration'''.
    # Click '''Close''' to close the Adobe Flash Player Settings Window.
    # Restart Firefox.
    This [http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html Flash Player Help - Display Settings page] has more information on Flash Player hardware acceleration, if you're interested.
    Does this solve the problem? Let us know.

  • HTML background matching flash background

    Hey, I have a flash website that opens as a pop up, the pop
    auto fullscreens. The background in the flash document is a
    gradient, and I have a gradient in the background of the html. My
    question is how would I get the background of the HTML to always
    match up with the flash background using a percentage?
    www.flippingsweet.net/index2.html

    Yes that's what I understood; I was also wondering after
    reading your
    replies if if a getURL couldn't do the job f;i;:
    on (release) {
    getURL("javascript:document.body.background='new_bg_pic.jpg'");
    what would be the disadvantage of this compared to
    exterrnalinterface class?
    kglad wrote:
    > p.s. if you're using flash 8, use the externalinterface
    class. the link j.e. gave is for the old fscommand which fails in
    some browsers.

  • I recently changed my wallpaper and when i was on safari the rainbow wheel popped up and i had to restart my computer, now theres no wallpaper it just a grey denim and when i try change the wallpaper only the tool bar changes not the background, help ?

    i recently changed my wallpaper and when i was on safari the rainbow wheel popped up and i had to restart my computer, now theres no wallpaper it just a grey denim and when i try change the wallpaper only the tool bar changes not the background, help ?

    Hi. When you were in the recovery drive doing permissions, did you try and run a repair of the boot drive? Did you try single user mode? Try these first and then go back and try to reinstall the operating system.When I say repair boot drive I don't mean permissions. There are both options in disk utilities.When you open disk utilities ,you will see in the left column  two drives plus possibly  a boot partition that look like an external driv. click on the second drive and in first aid use repair disk. If you still can't boot and it will not let you restore, you may have to do a clean install.   http://support.apple.com/kb/PH18869?viewlocale=en_US  

  • Videos becoming pixelated on win8.1 while does not happen with crome pepper base flash. pls help me to resolve this issue

    videos becoming pixelated on win8.1 while does not happen with crome pepper base flash. pls help me to resolve this issue

    videos becoming pixelated on win8.1 while does not happen with crome pepper base flash. pls help me to resolve this issue

  • Bug - Flash CS6 Help does not load

    Fresh install of WIndows 7 (32-bit). Fresh install of Flash CS6 trial. Click Help > Flash Help and nothing happens. Help does not load. Browser never opens. Nothing happens. Same with Help > Flash Support Center. Also installed Photoshop CS6 trial and that Help system does load (opens browser to online help page). Flash CS6 Help is completely dead. Anyone else experiencing this? Or better yet - how to fix it?

    Hi Lorenzo,
    What locale are you trying to install Flash Pro CS6 (and hence, the Help update) on?
    Also, could you please send us your error log?
    Depending on your platform, it is found at the following locations:
    Win: Program Files\Common files\Adobe\Installers or \Documents and Settings\<user>\Local Settings\ApplicationData\Adobe\AAMUpdater\1.0\
    Mac: /Library/Logs/Adobe/Installers or ~/ Library/ApplicationSupport/Adobe/AAMUpdater/1.0/
    Regards,
    Suhas Yogin

  • Will Flash Catalyst help "me"?

    Flash Catalyst is supposed in bring developers and designers together. But I am one of those hybrids and does the devloping and designing. Usually I will create skins in Illustrator, then import skin artwork in flex, which auto generates the .css file applying each skin to each class, and all I need to do is reference the .css file. So with this in mind will Flash Catalyst help me at all?
    I have been using Illustrator for a while now and am comfortable designing with it, so would it really be worth learning a whole new app?
    There is one major drawback in the way I do it that I wonder if Catalyst handles. When I skin in illustrator the overall themeColor is built into the skin, so I cannot change the theme color simply by changing the global themColor style. Is this something that is addressed in Catalyst?
    Also off topic, does anyone know if Orielly is going to be publishing a "Programming Flex 4" book?
    Thanks!

    Catalyst is in his early birth stage, so for now it's really slow and memory consuming, you'll spend lot of time importing Illustrator stuff in to your Catalyst project. As to your question regarding themeColor, yes this could be done easily.
    Overall, I think Catalyst it's a handy tool to bring creative Designer Idea to live faster than ever, and it would be just ideal for making quick semi-functional sketches just to feel the breath of Idea in test-drive mode. As well it suits for simple applications better, the simplier application is - the more benfit you'll gain out of Catalyst

  • Is this background helpful for learning Oracle11i?

    I have some financial experience and I have got the Oracle database Manageemnt OCP certificate.
    Is this background helpful for learning Oracle11i?
    How much time should I spend, another OCP's time?

    Hi Frank:
    Having a background in the world of finance plus an OCP is certainly a very good start.
    However, 11i is a very different thing to "normal" Oracle, and so, too, is being an 11i DBA. I wish I could point you to loads of good study material, but there isn't that much around.
    That said, I can recommend "Installing, Upgrading and Maintaining Oracle Applications 11i (or, When Old Dogs Herd Cats - Release 11i Care and Feeding) (Paperback)" ISBN-10: 1411616421, ISBN-13: 978-1411616424.
    There is a website that may be of some use: http://becomeappsdba.blogspot.com/2006/07/installing-oracle-applications-become.html.
    Also, have a browse around for similar. Finally, Oracle courses may be useful. I attended one - it was OK, but hardly worth the money. The documentation, though, is good and useful.
    How long it would take you to become proficient is impossible to say, as it depends on your study materials, and the time you are able to devote to learning. But, it's not, IMHO, an easy, quick thing to pick up, even with OCP prior learning, etc.

  • Does fusion drive/flash storage help

    Does fusion drive/flash storage help when using windows with VMware fusion or parallels on an iMac?

    prkuk wrote:
    Does fusion drive/flash storage help when using windows with VMware fusion or parallels on an iMac?
    If by "help" you mean improved speed, and by flash you mean an SSD, it'll improve the speed of the virtual machine if the virtual machine is stored on it. If you have a new enough iMac that the USB ports are 3.0 and the VM file would otherwise be stored on an internal HD, an SSD installed in an external enclosure that supports USB 3.0 should show a speed improvement if the VM file is stored on it.

  • My ipod touch is stuck on a white screen and i did everything hold the home botton and sleep botton togher, but it wont respnd it is just stuck on the white flash scree HELP PLEASE!

    My ipod touch is stuck on a white screen and i did everything hold the home botton and sleep botton togher, but it wont respnd it is just stuck on the white flash scree HELP PLEASE!

    - Let the battery fully drain. The charge for an hour and see what happens,  Try resetting too:
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Connct to computer and restore if it shows in iTunes.
    - You can try placing the iPod in recovery mode and then trying to restore. See:
    iPhone and iPod touch: Unable to update or restore
    - Also see:
    iPod touch: Hardware troubleshooting
    Frequenly the white scree is due to a hardware problem.

Maybe you are looking for