2 player web-based Flash game problem

I have a two player web-based Flash game. The Flash calls a
JavaScript function on the webpage to get and store the user's IP.
Then an XML file with user's game data is loaded and parsed. The IP
address is used to identify which player is player 1 and which is
player 2 according to the XML file. There is a Java applet to send
and receive messages between the players.
The first player loads everything just fine. All the first
player's messages regarding the progress in loading different parts
of the code sent by the game for debugging are displayed in the
Java applet's text box, but none of the second player's messages
sent by the game for debugging are displayed.
The problem is that the second player's ActionScript code
appears not to be executing except that I do get a message in the
game that the XML file attempted to load but was not successful.
The IP address call is not made and no messages can be sent to the
other player. The second player's Java applet displays only the
messages for debugging that came from the first player's game and
any chat messages sent by the first player.
This problem always happens to the second player, never to
the first player. Both player's are always using IE6 or IE7.
Does anyone have some idea(s) what could cause only the
second player's ActionScript code not to execute and/or not to load
an XML file correctly?
This is just a general question, so any general answers would
be appreciated. Code specific answers are hopefully not required.
Thank You in advance.

Hi,
I am not very familiar with the multiplayer Game development. For multiplayer games, you'll need to set up a matchmaking server and have the clients connect to it. It can then pair them off and facilitate communications. If the clients have publicly available
network addresses then it can introduce them and they can talk directly to each other.There isn't anything built in for this so you'll need to either build your own or find a third party implementation. If you are using Unity3d then check out
http://docs.unity3d.com/Documentation/Components/net-MasterServer.html
Also, you can use Xbox services, and I find an article below:
https://msdn.microsoft.com/en-us/library/bb975801.aspx
For windows Azure problem, you should go to windows Azure forum.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

Similar Messages

  • Macbook Pro 13.3" 2.8G   8G RAM is very hot when playing web base flash game =.="

    I used to play web based flash game, and could open up to 5 different browsers (with the same game) each time with my old notebook 1.8GHz + 4G RAM (Win 7). However, changing to my new macbook pro 13.3 2.8GHz + 8G RAM (OSX Lion), even opening the same flash game with 1 browser. The keyboard will be soon very hot. If open 2 browsers, there will be noisy fan sound and keyboard will become even hotter =.="
    Could engineer in Apple solve this issue??? or any suggestion???

    Mahdi411,
    if Candy Crush is a graphics-intensive game, then your MacBook Pro will consume energy (and generate heat as a side effect) to meet those graphics demands. The fans run quickly to expel as much as heat as possible, so that your MacBook Pro’s components don’t bake. The additional airflow generates more noise.

  • Flash games problem with Mozilla Firefox

    Ok so, I'm trying to play one great flash game, I'm actually Texas hold'em addict :D so, as soon as I open it, firefox just crashes and that's it, nothing appears, no crash report or anything like that..
    I'm trying to play this game: [http://www.4yahoo.com/board-card/play-governor-of-poker-2 Governor of Poker 2] and this one [http://www.4yahoo.com/puzzle/play-the-forest-temple The Forest Temple]
    What to do? Should I reinstall it or it could be my windows problem?
    I don't really want to re-install it, because I have tons of bookmars there and got no idea how to save them, also I'm afraid that it will be waste of time.
    So I'm asking you guys, maybe someone faced this problem.
    Thanks in advance.

    I mean, it's ok when I run other games, but those two are the problem :(

  • Please help me with a simple flash game problem

    I am trying to learn how to make flash games with Adobe flash 5.5. I am doing a tutorial from a book and am stuck.
    The game is called concentration and you are suppose to match 2 tiles of the same shape. there are 10 shape tiles
    and 1 question mark tile. These tiles are held in an array. 20 tiles are suppose to be displayed 5 to a row with 4 rows
    and the question mark is suppose to be up on all 20. My problem is I get a blank screen when I test the movie. I
    think the code is good but I beleive I have not uploaded the tiles right. I did upload the 11 tiles to the library and have
    those 11 tiles and tile_movieclip in the library. Here is the code:
    package {
    // importing classes
    import flash.display.Sprite;
    // end of importing classes
    public class Main extends Sprite {
    public function Main() {
    // variables and constants
    const NUMBER_OF_TILES:uint=20;
    const TILES_PER_ROW:uint=5;
    var tiles:Array=new Array();
    var tile:tile_movieclip;
    // end of variables and constants
    // tiles creation loop
    for (var i:uint=0; i<NUMBER_OF_TILES; i++) {
    tiles.push(Math.floor(i/2));
    trace("My tiles: "+tiles);
    // end of tiles creation loop
    // shuffling loop
    var swap,tmp:uint;
    for (i=NUMBER_OF_TILES-1; i>0; i--) {
    swap=Math.floor(Math.random()*i);
    tmp=tiles[i];
    tiles[i]=tiles[swap];
    tiles[swap]=tmp;
    trace("My shuffled tiles: "+tiles);
    // end of shuffling loop
    // tile placing loop
    for (i=0; i<NUMBER_OF_TILES; i++) {
    tile=new tile_movieclip();
    addChild(tile);
    tile.cardType=tiles[i];
    tile.x=5+(tile.width+5)*(i%TILES_PER_ROW);
    tile.y=5+(tile.height+5)*(Math.floor(i/TILES_PER_ROW));
    tile.gotoAndStop(NUMBER_OF_TILES/2+1);
    // end of tile placing loop
    Can someone please explain to me what I am suppose to do to make the this work? I beleive the problem is it doesnt know where the tiles are.
    Thanks.

    To create the tiles, draw 10 distinct shapes in the first 10 frames of your symbol, and
    the back of the tile in the 11th frame. You are free to draw them as you want, but I suggest you make them as 90 pixels squares with registration point (starting x and y position) at 0, because these are the properties of the tiles used in this chapter's
    examples. At least, they should all be the same size.
    It didnt say put in a library. It is saying to draw them in frames of symbol but it didnt walk me through that. Can you guide me through this? I also was looking at how to add the link identifier but it said I need a popup window but I cant see one. I thought that was done
    when I went to insert new symbol. It said something about actionscript linkage. I am familliar with perl, java and c++ so I can follow the code so far but I dont have much understanding of the flash interface. I made the 10 shape tiles and the 1 question mark tile
    in paint. They are .jpeg images.

  • Flash Game Problem Need Help! Action-Script 2.0

    Im making a flash game its a sniper game btw and i am have a problem with after killing the target for it to go to the next frame. I have tried on(press) on(release) for buttons i hae tried lots of different stuff (1.3 hours of trying) and so i was wondering if you could help me out. and here the link to the download for the source .fla yes i uploaded it cuz i really need the help ! thanks for any help! http://fileape.com/?act=download&t=yz6Lhp0oDdAB-7whXWB62WIoACXMVgV7r1flbKy17aJZamyC-vXNFwx tZP6pwXV50NGk3XWK9anDa4m6tBfGEtPOZwKbuZFcaFyGyEGiYqeILdcvVuEZy3QVHX3xY6S170xapkdrZJN9lov4k hxeqJ4_S6aGRpNQWjTT3MhudPLa1ZBAi79CiPqX5kN835lD7vzAU0O6WJZaK6jZBROg2A,,
    or
    http://fileape.com/dl/2gI8YiSW9QGzIgAu
    if the top one doesnt work (the top one shouldnt have a time wait)
    Thanks for all help
    also please if you can find the problem itd be nice to know what it is

    I will not download the .fla - maybe if you hosted the .swf I would view it.
    to change frame use: gotoAndStop(<framenumber>);
    (without the < >, just a number for the fram).
    I recommend you use movieclips for buttons and place all code on the main timeline. For movieclips, give them an identifier name (bottom left int he properties box of the movieclip) then on the main timeline use:
    movieclipName.onRelease = function(){
    gotoAndStop(10);//change 10 to the frame you wish to go to. gotoAndPlay(10) plays from the frame.

  • Flash Game Problem

    I've posted in several forums looking for answers and have yet to receive a response.  I've had this problem for over a year and I've yet to figure out the cause.
    My problem: I have lag in flash games whenever I input a command (ie - push a key to do something in a game).  The lag is a delay in the graphic update after inputing a command (ie - moving left in a game takes a second and then appears to "jump"...aka it's not smooth animation).
    I've had this problem since I got my computer.  Here's all the specs and software I'm using:
    Mobile Core 2 Duo T7600G @ 2.33ghz
    Nvidia Geforce Go 7950GTX Driver Version: 7.15.11.8520
    4 gigs PC-5300 DDR2 memory
    Windows Vista Ultimate SP1 all latest updates
    Firefox version 3.5.1
    Flash Version 10.0.22.87
    I've done a fresh install of OS, Firefox, and Flash. All BIOS are update to date. I monitor CPU usage while playing flash games and the firefox process (firefox.exe) uses about 30% of the CPU so the game isn't exactly a workout for my computer. The games (or videos) runs like silk as long as I'm not imputing commands (ie playing the game). I've monitored CPU rating to insure CPU is not running at a reduced power mode during tests.
    I defrag my HD regularly and update all other drivers as necessary.  All anti-virus (avast) and anti-spyware (ad-aware and spybot) programs are up to date and scanning my computer regularly.  I've set them on active and passive to test if they were the problem but they are surely not interferring (trust me I've tested extensively).
    In conclusion: my computer work 100% great except for this problem and I have no idea what's wrong.  I'm convinced it's just 1 setting that needs to be tweaked but I've yet to come across that tweak.
    Any suggestions/help would be appreciated.  Thanks!

    I forgot to add this is ALL flash games.  When I say ALL I mean every single one I've ever playedr regardless of detail.

  • Car Customization (Flash Game) Problem

    I'm currently making a car customization flash game, i've already done the coloring part (while user click "Red", the car become "Red").
    The problem is i want to add an animation before changing the color, eg: when user click "Red", a sprayer is going left to right, and the car become "Red" after that. So i make a movie clip named "Spray", and i got 5 labels "Red", "Green", "Yellow", "Orange", "Blue" in following order, i add the movie clip in every label, but it look weird because when user click "Red", it play the movie clip and become "Red", after that user click "Orange", the car will become "Black" (Black is default color of the car) when playing the movie clip. And user click "Green", it become "Black" again before changing to "Green". It always become default color when user choose other colors.
    What i want is remain the car's color when user choose the other color, eg: when user choose "Red", it play the movie clip first, and become "Red", after that user choose "Orange", it play the movie clip and remain "Orange" color in the same time, after that it change to "Orange", and so on so forth.
    Any solution for this? Thanks

    Ok,i will describe the scene that i haven't make the "Spray" movie clip yet, so i won't confuse you. In the main scene, I got 1 movie clip, inside got few labels, as i mentioned before, "Red", "Green", "Yellow", "Orange", and "Blue" labels. Frame 1 contain a image, which is the black color's car image, the other labels contain different color of car image. So the sequence is Frame 1 is the black car, Frame 2 is the "Red" label, Frame 3 is the "Green" label, and continue until Frame 6.
    I got another movie clip which is in the main scene, inside this movie clip is a menu and button, which contain different type of buttons that allow user change the color. It only have 1 Frame, and here is the AS:
    var myCarArray = [Red, Green, Yellow, Orange, Blue];
    for each (var Car in myCarArray) {
        Car.addEventListener(MouseEvent.CLICK, onCarClick);
      Car.buttonMode = true;
    function onCarClick (event:MouseEvent):void {
        MovieClip(parent).car_color.gotoAndStop(event.target.name);
    So what should i do in order to archive the target that i want? I need to show some animation before changing the car's color.

  • Help pls! Flash game problem.

    Update* 
    Now getting this error:
    Symbol 'levelcomplete'
    1046: Type was not found or was not a compile-time constant: nextlevelBtn.
    Hi guys, Beginner here having some trouble creating my first flash drag and drop jigsaw puzzle game.
    The drag and drop jigsaw puzzle works to some extent, but it is the "level complete" movieclip which is causing problems.
    On testing the movie i get this error:
    1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
    Scene 1
    Frame 1 = Welcome screen, click "start" to play, play goes to Frame 2, works fine.
    Frame 2 = The first level, if completed within the timelimit, load object to stage "levelcomplete" movieclip which contains a button to move to the next level. The button does not work, although everything else appears to.
                    The "Next Level" button nested in the "levelcomplete" movieclip does not send the playhead to the Frame 3.       
    This is the ActionScript 3 which loads the 'levelcomplete' movieclip onto the stage:    
         var fl_MyInstance:levelcomplete = new levelcomplete();
                   stage.addChild(fl_MyInstance);
                                  fl_MyInstance.x = 350;
                                  fl_MyInstance.y = 250;
    This is the AS3 which I want to work on the next level button, which is contained within the "levelcomplete" movieclip:
    nextlevelbtn.addEventListener(MouseEvent.MOUSE_UP, gonextlevel);
    function gonextlevel(e:MouseEvent):void
              gotoAndStop(3); // Frame where level 2 is waiting
    Frame 3 = Level 2, movie does not get this far.
    Frame 4 = Level 3
    Scene 2
    Frame 1 = Game over screen with a retry button, which sends you back to Scene 1 Frame 2
    Am not sure if am going about this the correct way, could anyone give me any feedback please?
    Thanks
    Kev

    You're response makes me think I am completely going about this the wrong way
    Am using the actionscript editor in Flash, and not an external .as file. Should i be using an external .as file to create a flash jigsaw puzzle game ?
    If so I need to re thinking the game and get back to reading this book i borrowed.
    Am very new to actionscript, I can not stress this enough, I am currently reading through things, but am having some difficulty understanding.
    Sorry for being abit stupid.

  • Flash game problem: Game wont start until user clicks stage

    Hi Everyone,
    I'm a student at Drexel University and I just completed a basic platformer for a actionscript class. My professor docked me some points for the game not working until the user actually clicks within the swf. I've heard that this problem is caused on mac osx, but I don't have any concrete evidence to get the points back. Can anyone help? Here's a link to the game if you want to check it out. Thanks a lot!
    http://sandbox.westphal.drexel.edu/~kg394/DIGM265.html

    It was also required on my PC using IE8, so your Mac theory is out.  If it requires that you set focus on the stage to get it running, then you probably want to have focus set there using code as soon as the game section starts... but I usually have a heck of a time managing focus with actionscript... regardless of how they say to implement it, it tends to not work for me on any reliable basis (probably just Murphy's Law).

  • Creating a script for a repeating text input on Flash game

    Hey there, I play a browser-based Flash game (in Google Chrome) and one of the most time-consuming aspects of the game is repeating text inputs within the game. This repeat will be inputting a number, followed by tab - tab and then another number and so on. I am a complete novice when it comes to things like this. Many of my gaming friends on Windows have set up macros that enable a hotkey to input all the text in all the fields. I would love to do the same, but have no idea how.
    Is this possible? I apologise for being a total noob on this. Applescript and automator has me completely baffled.

    You can backup using some unix shell scripts.
    rman is not really good one.

  • X Pro and Flash Player Error with web-based PDF readbook

    Everytime I try to view a web-based PDF book (with multiple PDF files) I get an error/alert that reads:
    "To View the Flash technology content in this PDF file, please install this version of Flash Player that supports Adobe Reader and Acrobat."
    I am currently using:
    IE Explorer 9.0.8112.16421
    Adobe Reader X 10.1.7
    Adobe Acrobat X Pro 10.1.4
    Shockwave 12.0.2 Development
    I have all of the appropriate settings enabled/disabled in the browser. Before I installed Adobe Acrobat Pro the files opened perfectly in IE9. I believe, but am unsure, that I was just using Reader X at that point.
    Of note...the PDF books in question still open perfectly if I DOWNLOAD the file and open it from the desktop. The issue is when I try to view it in the browser(a setting enabled in the preferences). This is an issue because I don't have the time or space to download these files and need to view them in the browser for efficiency.

    JohnPublic wrote:
    "To View the Flash technology content in this PDF file, please install this version of Flash Player that supports Adobe Reader and Acrobat."
    You would usually get this message if you don't have the Flash Player plugin installed.  However I do not quite understand why you get that message when viewing a PDF in the browser, but not when viewing it from your local disk.

  • Problem with #D Flash games/animation

    Hello. Ive got such problems that all 3d flash games are extremaly choppy oin my computer. Regular flash games works fine. It is not a problem with my hardware cause earlier the 3d games were working very good (even on the beta version of flash player with 3d support). any ideas how could I fix it?  Thanks in advance

    Please provide some basic information like
    your operating system / version / edition
    your web browser / version / edition
    your Flash Player version
    your display adapter & driver version

  • MAC / PC flash game issues through standalone flash player

    I had some flash games built for new site. They were built on a PC, and play perfectly through the latest version of flash player, but jump and loop continuously through flash player on mac. Cannot figure out the reason why this is happening. Anyone come across this before?

    we have loaded shockwave Flash NP-PPC plugIn version 7.0R69
    into the plug ins folder of Internet Explorer 5
    We are still having the same problem which is that we cannot
    view a web page which contains a flash movie with some video
    embedded.
    We see the rest of the animation and hear the sound on the
    movie, but can't see the movie.
    When I published the Flash movie I set it to play with Flash
    Player 6 and up.
    The flash movie (on the web page) plays fine on our other OSX
    Macs and PC's.
    thanks
    Pete

  • Flash games, serious problem with windows 7 bootcamp

    when you open a webpage that has a flash game, windows 7 bootcamp stucks from time to time, with no reason! why is this happening? using firefox. tried safari the same thing, and tried latest flash player on both. try facebook games or google random flash games most of them cause windows 7 to stuck or go slow! suggestions please, does anyone else have the same problem?

    sorry the whole win 7 freezee on mbp 13", wait for apple update (i hope they notice)! now running XP SP3 and runs great!!! "laptop 2 go drivers" and runs games perfect!

  • I have a problem with my iMac (intel). Youtube doesn't work for almost a year, and now even the flash games (like facebook's games) doesn't work (sorry for my english)

    Hi, i have my iMac from 2008 and it's always work but for almost the lasy year youtube doesn't work. That's wasn't a problem but. right by now, everytime i tried to watch a video the mac start to freeze and i must close all the application which are working and, sometimes, i need to shut down the entire sistem. I tried to reset safari, delete chache and cookies, whatever...but nothing.  What can i do?
    P.S. Even the flash games, like facebook's games doesn't work...they are slow and sometimes they freeze all. Sorry for my english

    Pick and download the latest Flash Player for your OS.

Maybe you are looking for