ActionScript 3.0 :: Computer Vs Computer Pong Game
Apr 2, 2009
I'm not really good with AS3 yet so maybe somebody can help meI found a pong game tutorial and it works fine.[code]Now I want that two computers play against eachother.So no player input only two computer that play.I tried a lot with the script but it doesn't work.
I got a new computer several days ago and it doesn't have Flash 8 or Higher. how to transfer Flash 8 programs from my old computer to my new computer? where to find free downloads of Flash 8 or higher?
I'm creating an online multiplayer game in which I want to prevent players from joining a game using multiple clients/accounts on one computer. I can't simply do a server sided check for the IP-address because I still want e.g. people in the same office to be able to play together.Therefore I'd like to generate some kind of computer ID/hash on the client which it sends along to the server. I know that is easily hackable, but it will stop at least those "cheaters" who can't or won't change their client software.Is there a way to generate such an ID/hash in my game client? It's made in Flash and AIR (there are two versions, browser and desktop).The value doesn't need to be globally unique, because I will check for IP-address + ID
The navigation buttons in my .fla file are set to the font, Arial MT in Bold. It displays no problem on my desktop computer. However, when I view the website on my laptops, the font changes to what looks to be something like Times New Roman. The same thing happens with my "Read More" button text. It's also originally in Arial MT Bold. On my desktop it appears fine but on my 2 laptops it appears to be in Times New Roman. This is more of an issue because I have these buttons underlined. When viewing in my laptops, these underlines appear to be too long. If I shorten it, it'll probably appear to be too short when I view on my desktop. How can I get the font to be one consistent font for all computers?
how to create a Pong game: http:[url].... There's a link to the source code: http:[url]...file=pong4.txt.When I add the source code to a new AS file (using Flash CS 5.5), save it as "Main.as", create a new Fla and link it in the actionscript settings to the Main.as and run it, I get errors:
C:UsersxxxDesktopP4Main.as, Line 1171093: Syntax error.C:UsersxxxDesktopP4Main.as, Line 1171084: Syntax error: expecting rightparen before 270.C:UsersxxxDesktopP4Main.as, Line 1211093: Syntax error.C:UsersxxxDesktopP4Main.as, Line 1211084: Syntax error: expecting rightparen before 270[code]....
I just saw the McDonald's commercial which I have linked to below and I would like to try developing something similar for a festival. We have been talking about making a game in which the user has to use their iPhone and something like what McDonald's has done would be great.My question is if anyone have an idea how I can send the data and what technology they might have used? I imagine making two websites. One on which the game itself is shown and one which is the controller but how would I make sure that the data is sent and handled fast enough?I am familiar with JavaScript and PHP. I have been working a bit with flash and ActionScript and I am wondering if that might be best for the game (obviously not the controller)You can see the McDonald's commercial on the link below. Basically, the user visits a webpage which is the controller and then they are able to play the ping-pong game on the big screen.
I am using the pong game tutorial, with all of the actionscript and it is all working except I have one problem I am making it a different size...I want it to fit in a 120x600 area and the ball and bar and game arena are all fitting in there, however, when I put the bricks in there they line up to the old arena. So basically about half of the bricks fit into the playing area and half of them don't, the bricks are also too big. How to make all of the bricks fit in the area of 120x600?
I have attached my FLA & I was just wondering if anyone out there could tell me how to make it so that my paddle will move so that the pong game is playable.
I am using the pong game tutorial, with all of the actionscript and it is all working except i have one problem I am making it a different size...I want it to fit in a 120x600 area and the ball and bar and game arena are all fitting in there, however, when I put the bricks in there they line up to the old arena. So basically about half of the bricks fit into the playing area and half of them don't, the bricks are also too big...Does anyone know how to make all of the bricks fit in the area of 120x600?
I would like to know if theres anyway to get the computer name or some other unique computer information to make a computer unique and I save that info in my database.
I have set up a splash page video (flv) set up as a FLVplayback. It all works fine from my computer. When I try and link it to my website flv file it comes up as an error code...error opening URL. The link is set up as...[URL]
Just out of curiosity, we were talking in our Calc class about Taylor Polynomials, and the teacher suggested maybe that is how a calculator/computer takes the sine of a number. Does any one know where I can go and see how the computer finds the sine of a number?
BTW I checked the Math class included in flash and it says its a "intrinsic class Math" and this is the function that defines sin = "static function sin(value:Number):Number;" What does that mean?
Oncomputer everything looks great, when I a song to play i loads andstarts playing + visual spectrum analyzer starts "working".Everything great so far. The problems occur when I upload exportedfile (swf) on imageshack.us. The progress bar starts to glitch(preloader works great but visuali it starts to glitch), and thatspectrum analyzer doesn''t even play. Does someone have the sameproblems (upload different from exported)?
I have the student edition of adobe flash cs3 and I currently have it installed on my desktop. I was wondering if it is legal to also install it on my labtop. It is for personal use, I don't know if that changes anything. I'm sure this is somewhere on the adobe site, but I can't seem to find it.
I made a swf that is heavy on graphics, it works great if the computer is good. But for the older, slower computers I'm hoping there is as3 code that can detect if the playback rate or quality is being compromsed due to processor overload? I'd like to use it in an "if" function that removes some of the uneccessary graphics when it finds the computer can't handle them all.
when I accidentally deleted an Adobe Flash 10 Plugin that she needed to play a part of her computer game. Her computer is not hooked up to the internet. Is there a way I can put the plugin on a jump drive and transfer it properly from my computer to hers?
When swf file shows up on a computer as an unknown file, does that mean the computer doesn't have flash player? Or do I need to change my publish settings?
Using Migration Assistant on my mac I transferred all my files to another computer. All the other Adobe programs are starting up no problem (Photoshop, Illustrator, etc.) When I try to start up Flash CS4, it just freezes with the message "copying first run files.." and then it crashes.
I don't have the install discs unfortunately (or I would try to re-install) because this was given to me by a company I work for remotely.
I've created my own Workspace definition in Flash CS4 with all the windows arranged just the way I like them. How can I copy this Workspace definition to another computer so I can have the same environment to work in? I've looked in the C:Program Files (x86)AdobeAdobe Flash CS4CommonConfigurationWorkspace folder and all I see are files for the default Workspace definitions (Classic.xml, Designer.xml etc.); unfortunately, I don't see a file for my new definition. Was hoping I could just find an xml file for my new definition and copy it another computer.
What do I have to do to transfer a flash video to another computer. I published HTML to my usb stick and installed on another computer. When I run the file, the buttons dont work. All they do is flash. When the file is on my original computer, everything works fine.
I am trying to save a flv file on my computer from my address on web. Will be an air applicattion that will pick this url from xml and do a URLRequest and save the file on my machine.
I did a code that save the file with the right name, but when I will play this files don't work. Neither on abobe media player.[code]...
In C++ I Can Read The MAC Address Of The NIC and Use It To Generate A Unique Identifier For Each Computer That Interacts With My Web Service. Even If The User Deletes Their Cookies, And Temporary Internet Files, Reformats Their HardDrive And Installs A Different Version Of Windows, That Computer Still Generates The Same Unique ID.How Can I Create Such A Unique Key Using Flex Or Air? The Number Has To Be Either Hardware Based Or Similarly Tamper Resistant.
I am using some simple ActionScript to load an XML file and then populate some things in my .swf from the elements and attributes. I have implemented a simple interval which calls a function to reload the XML file every 30 seconds, so that whatever is new in the XML is reflected in the swf almost immediately. The problem is that in Firefox and IE, the .swf doesn't update. If I edit my swf with Flash and then manually change the XML file it successfully shows the new changes when the re-loading is called, but for some reason this only works successfully inside Flash CS3 and not when viewing the swf in a web browser. Do I need to do something different? My code is below