Flash as2 game animation, problem.

hello i am making a flash animation game but i have a problem, i have my guy running and everything its all gifs, so when he stops its a gif its not one picture its 4 of em (gif) which i made them all compressed into a gif and added to my library then added that to my flash made it work blah blah blah-
well my problem is when my guy runs left he turn right after i let go of the key i no whats it is doing it using my 1 animation i have in their for standing  i to add my other animation which he standing left basically he runs left after i press left then i let go he turns right, i need to know how to make it so either when i let go of the (LEFT) key it uses my animation ('still2') which is him facing left which i need i have him running right and he stays right after so thats good, or if u know if theres a way i can make the code say like after i let go of like left it uses gotoAndStop('still2') then for running right it uses gotoAndStop('still') so he dosent turn around after i let go of left! well i hope u can find out, and its all animated, so dont just make it so it dosent stop using the animation of left or right, cause then hes running in place for enternity thanks heres my code.
      var rollSpeed = Number=14;
     ichigo_mc.onEnterFrame = function() {
      if (Key.isDown(Key.RIGHT)) {
       this._x += rollSpeed;
       this.gotoAndStop("right");
      } else if (Key.isDown(Key.LEFT)) {
       this._x -= rollSpeed;
       this.gotoAndStop("left");
      } else {
       this.gotoAndStop("still");

no its actually not a school project just i want to know how to make a game, and i dont know really anything about flash, but i have in my picture of my guy another layer so theres each indivudual layer like i have in my pic of my guy the still still2 running animation 1 n 2 and both my attack things, if you would to see my project so far ask me and i send the file and it should show my guy and his animations...
heres my code so far.. idk y but i like putting at the end
   var rollSpeed = Number=14;
     var facingRight = true;
     ichigo_mc.onEnterFrame = function() {
      if (Key.isDown(Key.RIGHT)) {
       this._x += rollSpeed;
       this.gotoAndStop("right");
       facingRight = true;
      } else if (Key.isDown(Key.LEFT)) {
       this._x -= rollSpeed;
       this.gotoAndStop("left");
       facingRight = false;
   } else if (Key.isDown(Key.SPACE)) {
    this.gotoAndStop("atack2");
      } else {
       if (facingRight) {
         this.gotoAndStop("still");
       } else {
         this.gotoAndStop("still2");

Similar Messages

  • Problem with Preloader in my Flash AS2 Game

    I have been using this tutorial to make a preloader:
    http://www.republicofcode.com/tutori.../preloader_bc/
    I have run into one problem though.
    When I simulate the download, it just shows the background color of the game while it loads, and when it finished loading, it shows the loading screen fully loaded. I have followed the tutorial exactly, except added my file names into the AS2 code.
    Here is the ActionScript in Frame 1 I have for the preloader:
    if (_root.getBytesTotal() != _root.getBytesLoaded()){
    stopAndGoto(1);
    preloaderBar._xscale=(_root.getBytesLoaded()/_root.getBytesTotal())*100;
    loaderTxt.text=Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";
    Any hints or answers to what i'm doing wrong?
    Thanks, MrA615.

    Your description of what you've done and the code you show does not match what the tutorial says to do and what code to use... (there is no stopAndGoTo() function in Flash).
    Right-click the second frame on the upper layer labeled Actions and select Actions. Copy and paste the code below to make our preloader functional.
    if (_root.getBytesTotal() != _root.getBytesLoaded()){
    gotoAndPlay(1);
    bar_mc._xscale=(_root.getBytesLoaded()/_root.getBytesTotal())*100;
    loader_txt.text=Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";

  • How do I stop "delete cookies" from deleting saved games of a flash based game?

    I'm running Firefox 4 under Windows 7.
    I have it currently set to delete my history when I end the session, including cookies and temporary files. This is due to privacy concerns.
    However, I also have a (downloaded - not run online or via a browser) flash based game on my computer - which saves games as LSOs.
    Firefox therefore deletes my saved games when I exit.
    How can I address my privacy concerns and still play this game?

    I am having a problem where my flash game saves are deleting themselves on their own. I don't even have to clear browsing history, and I do not have any cleaning software installed. I have set storage to unlimited and that worked for a few days but I loaded a game this evening and my save file was gone and the storage had been reset to 100kB. I haven't touched anything, haven't deleted anything. It's infuriating.

  • Cross domain scripting at run time using local connection flash AS2

    Hi
         I want to do live video streaming using FMS and FMLE in Flash As2. Suppose 100 users watching video online and I want to show message to  all 100 users using the Local connection.
    If I am sending message using different browser in same pc then I can get the message which was send from another swf file but I am checking from another pc then message not coming in receiver swf file.
    Please find the code below. 
    receievemovie.swf
    // Code in the receiving SWF file
    this.createTextField("result_txt", 1, 10, 10, 100, 22);
    System.security.allowDomain("*")
    System.security.allowInsecureDomain("*")
    var my_lc:LocalConnection = new LocalConnection();
    my_lc.allowDomain = function(sendingDomain:String) {
    domain_txt.text = sendingDomain;
    return true;
    my_lc.allowDomain = function(sendingDomain:String) {
    return (sendingDomain == "*");
    my_lc.allowInsecureDomain = function(sendingDomain:String) {
    return (sendingDomain == "*");
    my_lc.methodToExecute = function(param1:String) {
        result_txt.text = param1
    myResult.text=param1
    my_lc.connect("lc_name");
    sendmovie.swf
    System.security.allowDomain("*")
    System.security.allowInsecureDomain("*")
    var sending_lc:LocalConnection;
    var sending_lc:LocalConnection = new LocalConnection();
    sending_lc.allowDomain = function(sendingDomain:String) {
    return (sendingDomain == "*");
    sending_lc.allowInsecureDomain = function(sendingDomain:String) {
    return (sendingDomain == "*");
    myButton.onRelease = function(){
    sending_lc = new LocalConnection();
    sending_lc.send("lc_name", "methodToExecute", sendMsg.text);
    sendMsg.text="Message has been sent"
    If you have any other way to do it please suggest me to do that.
    Thanks & regards
    Sunil Kumar

    Hi, go to
    Flash Resources , you can
    find a java application that can serve policy files to resolve this
    problem.

  • About MultiplayerOnline Flash Board game

    Here is my three tier applcation:
    Client Layer : Flash AS3
    Application Layer: Asp.net
    Database Layer: SQL Server
    i have created my websites for asp.net, game programming has
    been done, but the only problem is i want a real time basis for
    creating a MMO Flash board game. But, how am i going to do that? I
    tried webservice package, but It only have PULL technology which is
    not suitable for real time basis. Is there any good ideas on what i
    should use? i heard about Sockets, XMLSockets, .NET Flash
    Remoting..but i am confused on what to use.

    Basically you can use anything that uses the rtmp protocol,
    like FMS, Red5, Wowza, SmartfoxServer and you can have a look at
    WebORB, a remoting package that also has a Publisher/Producer
    (comes in a .net flavor too).

  • Re-sizing, align right while keeping the menu fixed using flash AS2

    contact
    khuon
    mau
    My problem is recreating the align right effect while keeping
    the menu fixed using flash AS2 mostly for re sizing as well as
    different screen sizes.
    While i can do one or the other but both is just not
    happening.
    I have tried all sorts of weird and wonderful things but as
    yet, alas no easy/simple solution :(
    I must admit it has been a long time since i have been here
    but.. I thought if someone could have a quick look and maybe please
    give me a few pointers ??
    Anything at all would be better than what i have now ...
    Thanks for your time

    The link again is I forgot to add http to the link before, but it should have worked.
    http://www.lipowiec.org/test/index.php
    a) used Dreamweaver to create new site selected 1 column, elastic, centered, header, and footer
    b) used spry to add horizontal menu to header
    c) followed instructions from Spry Help
    http://livedocs.adobe.com/en_US/Spry/SDG/index.html?lang=en_US ->
    working with spry widgets -> working with the menu bar widget -> Customize the dimension of menu items as indicated
    To change the dimension of menu items by changing the width properties of the menu item’s li and ul tags.
    Locate the ul.MenuBarVertical li or ul.MenuBarHorizontal li rule.
    Change the width property to a desired width, or change the property to auto to remove a fixed width, and add the property and value white-space: nowrap; to the rule.
    Locate the ul.MenuBarVertical ul or ul.MenuBarHorizontal ul rule.
    Change the width property to a desired width (or change the property to auto to remove a fixed width).
    Locate the ul.MenuBarVertical ul li or ul.MenuBarHorizontal ul li rule.
    Add the following properties to the rule: float: none; and background-color: transparent;.
    Delete the width: 8.2em; property and value.
    Under IE it's broken, under the other browsers it works.
    There need to be more IE HACKS added.

  • How to deal with multiple Android ressolutions with Flash- AIR games

    Hi,
    I have some Flash games that want to make run on different Android devices. How do we do so? I've seen that in one of my games, while I check "full screen" when exporting, the game area is not taking all the available space on the screen. I guess that's because the aspect ratio.
    I've seen this nice tutorial to solve that problem on Flex apps/games: http://gregsramblings.com/2010/05/06/scaling-an-adobe-air-application-to-fit-multiple-reso lutions-and-netbooks/
    Is there any similar solution for flash based games?
    Thanks!

    That article looks like it's geared towards desktop applications, and it makes sure the window never gets bigger than the original size.
    You will read, any minute now, that a lot of people set the stage to not scale, and then use layout code to position the interface to look right, and will even take note of the DPI of the device to make sure that buttons are the right physical size. That's fine for typical utility apps, but if you have a detailed illustrated background, or any sort of fixed bitmap art, it may not be the right way to solve the problem.
    The way I solve the problem is to not do any scaling at all, I leave that up to Flash, but I have spare content off the edges of the stage, that will be revealed on wider or taller screens.
    The first time I used that approach I made the Flash stage be 480x320, and had extra content above and below the stage, to a total height of 360. That single file would exactly fit the iPhone screen and also the different aspect ratio iPad. On the iPad you would see the extra content.
    That works fine if you layout for the widest device, and a have extra content for the less wide devices, but there is only one device less wide than the iPhone, the iPad. So now I have switched the technique to horizontal.
    My stage is now 1024x768, and there is a lot of extra content off the left and right edges. I have enough there that it will still fill the screen on the widest device, which is the new Samsung Galaxy Nexus.

  • Flash-based Games Appear as White pages after Chrome Update with Adobe selected as the plugin

    Chrome auto-updated today and since then most of the Flash games load to a white screen.  I always have the Macromedia/Adobe Flash plugin enabled and Pepper Flash disabled, but I'm finding the only way I can display any flash-related games is to disable the Adobe and enable PepperFlash.  The games load, I can hear them, and in some cases the cursor changes to the theme for that game, but the screen will remain white.   Once this started I updated Adobe the latest one, as there must have been a recent release...same problem.   If I have the Macromedia/Adobe Flash Plugin enabled I need to click to any other open tab and then click back again and then scroll slightly and the video will be there immediately.  If I disable Macromedia/Adobe Flash and enable PepperFlash the games display the video with no problem.   These are the exact pages that were working just fine with the Macromedia/Adobe plugin enabled immediately before allowing the Chrome to auto-update.
    Also, when I go to the Adobe site to test the versions it displays the correct revision for the version that's enabled at the time, 12.0.0.41 for pepperflash and 12.0.0,43 for Adobe, but even when the Adobe is the only one enabled and I have closed and reopened the Chrome browser before testing, the site tells me I have the Adobe Flash disabled while still giving the correct version.
    I tried Ingognito mode and it did seem to work, but the only extension I have is AdBlock, which gave me no problems prior.  I disabled AdBlock and tried running the games with Adobe enabled again in normal mode...same problem. 
    Cleared the cache, flash cache...
    All just started immediately after the chrome update. 
    Is anyone else using the same version of Chrome experiencing similar issues with the Macromedia/Adobe flash player enabled?
    Chrome version 32.0.1700.76 m

    Update Firefox to the current version which is 9.0.1
    Here's a list of bug fixes in the latest version which may include yours: http://www.mozilla.org/en-US/firefox/9.0.1/releasenotes/buglist.html

  • Flash player games, video, or audio don't work / Windows

    I have been having issues with my flash player for about a week. I tried all the trouble shooting steps under flash player games, video, or audio, but the issue kept occurring. I successfully uninstalled the flash player, then reinstalled it, the issue keeps occurring, so I followed the trouble shooting steps again, and it keeps occuring. For example, I will be watching a video, then it will spontaneously restart, jump to the end, image distortion, or freeze and the flash player stops responding et cetera. I think it might be what is causing an update error on a game that I play as well, where the game launcher is unable to decrypt and deserialize the download content from the server, or maybe something else is causing the flash player, and the game launcher to have these issues. Hopefully someone has some useful tips to resolve this issue that I haven't tried yet. Thank you for your time.

    I myself have a problem with firefox after installing this no videos run etc

  • Force Flash 10 games into low quality always. Help please.

    I have an old computer and Flash always being set to "HIGH" everywhere is KILLING me.
    I can't go on facebook myspace or pretty much anywhere without it taking ages to load. Once it loads i put everything to "Low" and it's fine...until it refreshes! and its back to high.
    I also used to enjoy playing many flash based games. No longer can i play them due to everything being set to HIGH !
    Ninja Warz for example, i love this game, but whenever i actually manage to load into a fight,  i get stuck there for 15 minutes trying to load back to the home screen!
    There HAS to exist some way, some script, some browser, some program that will AUTOMATICALLY make anything flash appear in LOW QUALITY by DEFAULT ???
    Please, flash owns the internet, everything is run on flash. Default=HIGH is ruining my internet experience!
    I have tried googling the problem and what i''ve heard is
    Get Firefox
    Get Greasemonkey
    So i did, the only things regarding the function of "Flash quality=low" is one script, and posts dating back to 2004!!.
    The script has worked for me, but ONLY for EMBEDDED Flash. Such as youtube videos and some advertisements. Those are set to low. It has helped tenfold with internet browsing. BUT the script does NOT work with pop-out flash games! such as newgrounds games or Facebook applications like farmville, ninja warz. etc.
    Those are all still set to high, and yes if i set them to low they work just fine, but they reset themselves to high in under 5 minutes! one smooth battle in ninja warz is all i get until i have to go back to the home screen which sets everything back to high!
    http://apps.facebook.com/ninja-warz/
    thats the program i mainly want to run LOW !!!!

    wesFri
    Download the new driver
    Intel® Iris™ and HD graphics Driver for Windows 7, 8, 8.1 64 bit
    Update the other Drivers and bios
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c00033108&lc=en&cc=us&dlc=en
    Say thanks by clicking the "Kudos! Star" which is on the left.
    Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.

  • Translate written words on flash player games

    Question for anyone out there that has any suggestions or advice.  My problem is I speak English but I have a few gaming sites that are french.  The translator translates everything on the page accept for the written words that are included in the flash player game (Hope that makes sense.)  I really like these game sites but a lot of the time I don't understand what I'm doing and/or what I'm winning/losing.  It's very annoying so my question is..... Is there any way to translate French to English on games that use Flash Player? 

    ANY and ALL text in a Flash container is INSIDE the container and cannot be translated with plug-ins. The reason is that the content of a Flash container is NOT text and is NOT HTML.

  • Does it even possible to make an online as2 game?

    I've made everything to make my flash as2 client game work online
    *Made a java server (Sockets)
    *Made a connection between the client and server
    Working on LAN perfectly.
    *Made a policy server this way:
    http://socketpolicyfile.codeplex.com/wikipage?title=Installation%20Guide&referringTitle=Ho me
    *opened port 843 for the policy server
    -Edited the file and allowed the www.domain.com/thegame.swf on the specific port.
    Made flash client to get the policy file by adding a line of code:
    System.security.loadPolicyFile("xx.xxx…
    Launching the game from allowed website and it just doesn't connect to the server...
    What do I do wrong? I am already working on this game about a month and can't get it to work online...

    A third-party place is less expensive. Here is one. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    This is the link that Jon is referring to:
    Apple - Support - iPod - Repair pricing

  • Flash Player 10.1 Problem with Chatango

    Weird problem in newest version of Firefox on 10.1
    Ummm.. yeah
    http://i50.tinypic.com/286y5b4.jpg
    Help please

    Hi, One of the first things I would like you to check is an addon. Using IE, go to Tools, Manage addons and look for "Show"(very light text) Look in "All addons" and "Run without Permission"  Let me know if Shockwave Flash Object is Installed, the version number listed and is it Enabled.
    Then, using IE, go to Tools, Internet Options. Under the Security Tab, set it to Medium for the Internet Zone.
    Using FF, look in the plugins for Shockwave Flash (SWF) and make sure it is Installed and Enabled.
    If you use Adblock in FF, disable it please.
    Hi, if you haven't turned off the hardware acceleration feature then I would suggest you do that. Go to youtube and as soon as the video starts, right click on it and click on Settings and you should see a Display Setting; UNcheck the hardware acceleration.
    It is also recommended to update your graphic and video drivers to the latest versions. You may see an improvement by just turning off the hardware acceleration feature. If you have a problem with the youtube video, then go to this Adobe site. You should see the Flash logo in animation(spinning) as soon as the site opens. Use both browsers for this test. The version of Flash Player will also be displayed. I need to know if you can see the animation for each browser and the versions of Flash Player that you have.
    Let me know on the above.
    Thanks,
    eidnolb

  • Flash Player 10.1 problem

    Hi, I'm kinda new to this thing so...
    I have a Win7-64bit, IE8-32bit, IE8-64bit and Firefox 3.6.13-32bit and just recently, for some reson, I'm unable to watch videos from YouTube and other websites that require Flash Player.
    I've followed the troubleshooting guide to Uninstall, Re-install Flash Player 10.1, temporarily disable ad-blocking softwares and changed my firewall settings but I still can't watch videos.
    My situation is: when I open a video the buffering-thingy keeps rotating while the video NEVER loads.
    Please help me
    IceOcean

    Hi, One of the first things I would like you to check is an addon. Using IE, go to Tools, Manage addons and look for "Show"(very light text) Look in "All addons" and "Run without Permission"  Let me know if Shockwave Flash Object is Installed, the version number listed and is it Enabled.
    Then, using IE, go to Tools, Internet Options. Under the Security Tab, set it to Medium for the Internet Zone.
    Using FF, look in the plugins for Shockwave Flash (SWF) and make sure it is Installed and Enabled.
    If you use Adblock in FF, disable it please.
    Hi, if you haven't turned off the hardware acceleration feature then I would suggest you do that. Go to youtube and as soon as the video starts, right click on it and click on Settings and you should see a Display Setting; UNcheck the hardware acceleration.
    It is also recommended to update your graphic and video drivers to the latest versions. You may see an improvement by just turning off the hardware acceleration feature. If you have a problem with the youtube video, then go to this Adobe site. You should see the Flash logo in animation(spinning) as soon as the site opens. Use both browsers for this test. The version of Flash Player will also be displayed. I need to know if you can see the animation for each browser and the versions of Flash Player that you have.
    Let me know on the above.
    Thanks,
    eidnolb

  • On 12/23/11 I update the adobe flash player and have had problems since- unexpected closing and freezing. Remove the adobe flash player and those problems resolved. How do I go back to the earlier version of adobe?

    I was prompted by Firefox to update my adobe flash player on 12/23/11, which I did. Ever since then the web site has frozen and/or crashed. I run a internet business and can't have this continue. I uninstalled the flash player and the problems have stopped. I would like to reinstall the earlier version of adobe, since that didn't seem to impact the web site.
    This is the flash player I installed on the 23rd - Flash Player 10.3 for Mac OS X 10.4-10.5 (Intel)

    Your above posted list of installed plugins doesn't show the Flash plugin for Firefox.<br />
    See [[Managing the Flash plugin]] and [[Installing the Flash plugin]]
    You can check the Adobe welcome and test page: http://www.adobe.com/software/flash/about/
    You can use this manual download link:
    *http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller

Maybe you are looking for

  • Extend BAPI_BILLINGDOC_CREATEMULTIPLE?

    I have a requirement to create an invoice from a non-SAP billing application. Additionally, I have a need to extend the invoice with additional values. For example, I would like to add - perhaps - a flag signifying if this was an invoice on behalf of

  • Bridge will not launch from Illustrator CC

    I am having issues with launching Bridge in Illustrator and After Effects.  I have to manually launch it with the icon.

  • Adobe Premiere keeps crashing

    I have just downloaded adobe premiere on recommendation from a fellow film maker and want to try it compared to final cut. As soon as I import any video footage it crashes with a fatal error.

  • Using spool no send to printer

    Hi All     I have a requirement like using Spool no I have to send that PDF directly to Printer.  I am catching the Spool no from FP_JOB_CLOSE function module. Please suggeset me the way how can I proceed.....? Thanks to all Rama Edited by: rama kris

  • Chart binded data not showing when Window State property of form is set to Maximized

    Possible bug? Using In VS 2013 Community, .NET 4.5, MySQL w/Connector/NET... When a form is maximized, it wil not render the binded datasource on a chart. Example is a new project...  chart dragged onto a form... add a Dataset when initializing the c