Actionscript 3 :: Generating Password Saves For Oldschool Games

Aug 25, 2011

I'm making oldschool-styled flash game and as it's so oldschool, I want it also to have password saves. Unfortunately I can't use usual solution - array of passwords and corresponding levels, one of which is to give hard time for guys on Arcadeprehacks and the other is that I want to make possible to save in-game and load with all score and lives.I need some solution to encode number values to string, which values are:

-Lives - up to 2 digits
-Score - 10 digits
-Level number - 3 digits

It can also take 2 additional values which can be numbers or text, anything else will be converted to string.It can't be converted to ANY string - only numbers and capital letters can be in it.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Save A Page - Add Some Sort Of A Password Or Save Feature To People Can Type In The Password

Sep 23, 2008

Im new at actionscript, and I am making a very project. Basicly, I have some thing were there is a page you can get to by beating other parts of the 'game'. I want to add some sort of a password or save feature to people can type in the password of something at the opening screen and jump to that page.

View 1 Replies

ActionScript 3.0 :: Saves PHP Instead Of JPG File?

Dec 16, 2008

I'm using the JPGEncoder and PHP to export a JPG of a movieclip instance out of my flash movie. Basically the end user hits a "save" button and they should get prompted to save to desktop.

Currently my code is prompting the end user to save my PHP file and not the JPG of the movieclip. Here's my AS3 code

ActionScript Code:
import com.adobe.images.JPGEncoder;
var serverPath:String = "";
function createJPG(m:MovieClip, q:Number, fileName:String)

[Code].....

View 9 Replies

Asp.net :: Webplayer Saves File Instead Of Playing It

Jun 7, 2011

In order to play videos (Flash Format) on the website I use JW Player on my pages. But I seem to have some problems with it. On certain Firefox browsers when clicking on the player it chooses to download the file instead of playing it in the browser. On the same computer I tried it on Internet Explorer and there my webplayer is showing badly, it stands in the top left corner (whereas it should be in the middle of the page) and flickers a bit.

Because everything is in development the webpage is only available through our servers. In other words, I can't provide you any link with details. So my question is, why do some browsers download the video instead of playing it? And is there a possible free alternative to JW Player to play flash videos?

View 2 Replies

ActionScript 3.0 :: JpgEncoder Saves White Jpg?

Jul 5, 2009

I'm using the jpgEncoder for a webcam snapshot app, my script was running right when my code was into my FLA on a layer, BUT I wanted to take it away in a document class, and now I'm having 2 issues :

a) when I shot a picture, the image doesnt stay frozen even with the line [attachCamera(null)]

b) I get a white image saved on my server.[code]

View 4 Replies

ActionScript 2.0 :: Creating A Button That Takes A Screenshot And Saves It?

Jul 9, 2010

I have been searching for a way to create a button that when pressed, opens the "save as" dialogue box and saves a screenshot of the stage of an .swf.

I am using this for a game in which movie clips can be moved around the stage. When the button is pressed, it would take a screenshot of the stage with the movie clips in the position they were moved to and then save this screenshot.

The screenshot would just be a picture (such as .PNG, .jpeg, etc.), not the actual .swf file.

Is this button possible to create with just Actionscript in Flash?

View 1 Replies

Flash :: Movieclip Saves Bitmap At Wrong Coordinates?

Oct 8, 2011

I have a MovieClip inside a stage that is mostly(not accurately) centered to the middle of the stage.

When I try to save the MovieClip into a bitmap in order to upload it to facebook, I either get a cropped image or a white image(blank). Here is the code for generating the bitmap:

var source:BitmapData = new BitmapData(board.width, board.height);
source.draw(board);
var bitmap:Bitmap = new Bitmap(source);

The result I am getting is the yellow area in the following image:

[Code]...

View 2 Replies

ActionScript 3.0 :: Saves An Image Out And Sends Back To Html Page

Jan 31, 2011

I have a cs3 project that works fine that saves an image out and sends back to a html page.We updated the project to cs5 and now it does not redirect back to the right URL. Only differences are in the below script. I been lookingat this for days without getting any where so would like some fresh eyes to have a look to see if there is glaring issues with the code.[code]

View 1 Replies

Flash Saves File On Windows - Not Linux - FileReference.save()

Aug 13, 2011

The code below compiles fine on the Flex 4 SDK on Fedora 15. Mouse-click opens the dialog box, I click okay, and a file is saved, but the file is empty. I run the same SWF file (that was compiled on the Linux machine) on a Windows machine, and the created file contains the expected data. I was thinking there was a permissions problem, but if that were so, why should Linux even let me save the file? It is going to slow things down immensely if I cannot code something and test it on the same machine...

[Code]....

View 3 Replies

Actionscript 3 :: Flash Saves In Windows Not In Linux / FileReference.save

Aug 14, 2011

The code below compiles fine on the Flex 4 SDK on Fedora 15.Mouse-click opens the dialog box, I click okay, and a file is saved, but the file is empty.I run the same SWF file (that was compiled on the Linux machine) on a Windows machine, and the created file contains the expected data.Then I broke the FileReference declaration out of the function into the class level, hoping to avoid a known bug, but the same problem persists.Hoping to set up a workaround, I added the debug Flash player to my path and ran the file from Flash without the benefit of the browser, and it works.So now a Flex problem has become a Firefox problem, maybe owing to a shady procedure I used to install the plugin without really understanding what was happening.I am running Firefox 5.0.In essence my workflow is fixed, but perhaps people who performed the above will not be able to use projects with FileReference.save()?[code]

View 1 Replies

ActionScript 2.0 :: .txt Files - Export The Text From Flash And Saves It Onto The Users Computer

Sep 6, 2007

I have this function within my flash program that allows a person to make notes, at the moment they notes are just saved from a dynamic textfield to variable and hover around in flash output space, now I really need to get it so that when they click 'save' it exports the text from flash and saves it onto the users computer. I really don't want to use fscommand... and I know it can be done with PHP but trying to find a suitable tutorial is harder than I thought... so I would wondering if anyone could recommend a good tutorial or has done it before and can give some tips?

View 1 Replies

ActionScript 3.0 :: Explosion Generator With Many Options To Play With And It Saves A Transparent Png Sprite Sheet

Jul 8, 2010

Here's a link to a particle explosion generator with many options to play with and it saves a transparent png sprite sheet: [URL] The same particle engine is used in my latest game:Tank Rush. But since my next game will use only sprite sheets for effects, I created this generator out of the tank rush engine.

View 2 Replies

Flash :: Writing A JSFL Script That Resizes Flas And Saves Various Versions, With Appened Names?

Oct 18, 2011

I am writing a JSFL script that resizes flas and saves various versions, with appened names.
I can get a "Save As" prompt to pop up using fl.saveDocumentAs();But I can't seem to get flash to generate a new name for the FLA.I just want to save "document.fla" as "document_foo.fla" ,(and later "document_qux.fla"), preferably without interrupting the script with a "save as" prompt.

View 2 Replies

ActionScript 3.0 :: Put A Var On A Password Box?

Dec 9, 2010

I am having a problem trying to make a little game. I want to create a password box using input text but i dont know how to put a variable on my input text. It's telling me i can only do it with AS2. What I am trying to do is that if you enter (in the password box) a specifically word like  ''Pizza'', your sended to ''Question 1'' using go to and stop. I tryed to create once myself with this tutorial [URL] but I think it's for AS2 cause i cant place a Var on as3. Can someone tell me how to put a Var on my inputtext? My Input text occurence is called ''Pass'' and is already set as ''Password'' (not single line or multi line). how to cade a var myself and i juste dont understand.

View 8 Replies

IDE :: 3 Flashsliders Generating 1 Value

Jan 16, 2009

I'm trying to make 3 sliders that, depending on each other, changes the value of a text-box.

Example, If Slider A moves to 150, the value in the text-box changes to 150.

If you then move Slider B to 40, the value in the text-box changes to (150+40) 190.

Same thing for Slider C.

So basically I want the value of what you select in each Slider to be added together in real time like this:[URL] Only this shows just one slider, and I want three, added together

View 1 Replies

Password Protected FLA File?

Jul 29, 2002

that is there any way to protect the Flash source (FLA) file with password. So that if any body wants to open the file in flash it should ask the password before opening.

View 2 Replies

ActionScript 2.0 :: How To Make A Password Box

Nov 2, 2005

I'm working on a puzzle like game where you need a password to get to the next level, but I am not sure how to make a password box.

View 15 Replies

Redirect Via A Password To The Keyframe

Mar 22, 2010

I am currently using Flash CS4. Trying to do a very simple redirect via a password. What I want to do is whatever password they enter (variable defined as code) I want it to direct them to the keyframe. The below works if they enter hi (sometimes it seems to work sometimes not). The password "no" does not seem to work. I have attached simple fla based on the logic I am using.

[Code]...

View 6 Replies

ActionScript 2.0 :: Have A Multiple Password?

Feb 10, 2001

Does anyone know if you can have two passwords for one input text box, if so, is there syntax that concatenates the two or something, i.e set variable pass=mypass1+mypass2?

View 2 Replies

Can Create Some Flash Games

Jun 10, 2009

I'm looking to create a new website with flash games, most of which need to be multiplayer.The games I had in mind are a battleship-type game, a pirate's dice game, and a texas holdem game.I'd also like to have a single player "wheel" that you can spin and win points off.I'd also like to have a points system where members wager their points over games.

View 6 Replies

ActionScript 3.0 :: Store Password In AIR App?

Jul 11, 2010

I'm developing an AIR application and I need to store password there so user don't have to write it everytime when he launch the application. I want to ask you if you know some way how to store the password in no plain string. I can store it in the file but everybody can read it there... Is there any way how to encrypt and then decrypt saved password?

View 2 Replies

ActionScript 3.0 :: Multiple Password Box?

Dec 22, 2010

my question is about multiple password boxes and multiple ''if'' . I explain, i want to have a page that you need to enter multiple password, let's say 3, and if the 3 password are the good one, you can go to another frame. My actual code is this one
 
{if(Pass.text == "Coco"){
gotoAndStop("Pizza");
}

[code]......

View 3 Replies

ActionScript 3.0 :: Concerning CPU Usage For Games?

Apr 7, 2011

I have a question concerning CPU usage for games. What do people consider as an average or 'acceptable' amount of cpu usage for a game I've created a few different games, some which are more database driven have a very low cpu usage and small size.. others I've seen go up to 80% cpu usage..
 
I do try to keep a careful eye on this (I mean 80% of one core, of which I have 8.. I'm not sure how this will reflect on a single core/processor machine) but it does really concern me because as soon as I add an 'enterframe' function, spin something around or create a fair size animation it piles on the intensity to the cpu.. are there any professional tips anybody could offer me please ? I really want to make the web a better place for others by not overloading their computers

View 1 Replies

ActionScript 3.0 :: Games Use Arrays Sometime Or Even XML?

Sep 7, 2011

I am making this racing game, But I never understood how racing game's level.. I know other games use arrays sometime, or even XML. But i do not know how this works in terms of racing..
 
As you can see The level visual setup is on frame 2, which also has a label play. All that would cahnge per level is the game sprite. That holds everything that sets up the game, like the track, the car starting position, the bushes the waypoints the finish line. Everything really.

[Code]...

View 7 Replies

Flash :: Get Games To Add On My Website?

Dec 5, 2009

I am have a web site in Flex. And i want to add a few flash games in it.

I know [url]... has its games on facebook. Can I also add there games on my website?

View 1 Replies

UI Design In Flash Games?

Mar 21, 2010

Background: I've been coding in VIM/C++/OpenGL for a long time.I've come to realize that this (VIM/C++/OpenGL) isn't the way to learn about programming fancy/cool-looking/futuristic UIs; and that the design of such UIs belongs more so in the artistic/designer world of Flash.

Anyway, I currently have a machine with MacOSX. What software should I install? What book should I read to learn about the artistic/design side of these futuristic UIs? [It's okay if the tools to design them are mouse clicking + graphical rather than coding based].

Question: what software packages + books to read to learn about creating fancy-looking / futuristic UIs in flash?

View 3 Replies

Design Games And Simulations?

Nov 6, 2010

I'm currently enrolled in liberal arts college, but I'm quite sure that game design is what I want to do with my life. I want to someday manage production and hopefully design my own engine. What summer programs should I be looking into? What books should I read? What particular skills should I be learning?

View 2 Replies

Flex :: AIR App Signing Without Password?

Mar 26, 2011

I have a build server that generates our signed packages for deployment. However, I would prefer not to embed our passwords for signing the package in our ant file. Is there a way to get around this? It would be nice if I could setup something like how password-less ssh works or even use the keychain.<rant>Why do Adobe products seem so unfriendly in terms of working in a team environment or when it comes to trying to automate them as part of a tool chain/regression suite?! Don't get me started on the Adobe updater either.</rant>

View 2 Replies

Actionscript 3 :: Using Too Much RAM In Flash Games?

Jan 22, 2012

On my venture for quick rendering within Flash, I've worked out that the only solution is to create sprite sheets on the fly. Sprite sheets are created from a MovieClip using BitmapData.draw().

I have a graphics manager class which has a method that accepts a MovieClip and an int. The MovieClip is the target to capture graphics from, and the int represents how many different angles the image can be rendered at within 360 degrees.

[Code]...

Any advice around this would be extremely helpful. Note: I have made sure to utilize BitmapData.dispose() within my own dispose() method defined by SpriteSheet to clear up RAM, I am more concerned about how much RAM I can use at one given time (all game assets that will render ready to be used).

View 1 Replies

ActionScript 3.0 :: What Is _loc Used In Games

May 29, 2009

I have seen _loc1,_loc2 etc used in games. Whats the purpose of that?

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved