ActionScript 3.0 :: Saving Information Between Sessions?

Nov 8, 2009

I'm working on a game using Actionscript 3.0 and Flash CS4 and I'd like to make it save a player's scores and achievements between sessions locally on their computer. I thought the best way to do this would be by using cookies, and I started looking for ways to use JavaScript from ActionScript to save and load that information.While I was reading the articles I found on the subject, they seemed to suggest there was another way of saving information between sessions using something built into flash directly. Does anybody know about this? I'm not even sure what it's called. Even better if I could get some straightforward code for setting and recieving data from cookies using JavaScript or some other method.

View 3 Replies


Similar Posts:


Attach File Information After Saving It?

Aug 2, 2010

I'm currently working on a Flash application that needs to save files to Drupal. I already saved the file to the Drupal site with the File service, but I can't get to attach the file to the node with the node.save service (Upload module, not CCK file field).[code]...

View 2 Replies

ActionScript 2.0 :: Saving Information To Desktop?

Feb 21, 2007

Is it possible to save information taken in flash to the desktop? For an example, I have a quiz I want the user to be able to take notes and save it to their desktop in .txt or if possible .doc format. Is something like this possible, if not does anyone have any idea how I can create this type of functionality as well as elaborate on how I can go about accomplishing this?

View 1 Replies

ActionScript 2.0 :: Saving Information From The Output Panel To A Text File?

Apr 16, 2009

I am trying to save information that I have displaying in my output panel to a .txt fille. I have tried this tutorial here: [URL] but it is not working for me.

I have the output panel displaying information such as:

PHP Code:

[URL]

I need to somehow save this information to a text file so I can forward it onto my email. Or if anyone knows a way to forward information from the output panel to your email

View 9 Replies

ActionScript 1/2 :: Getting Information From XML Information Sent To Flash File From The Socket Server

Jul 5, 2009

I'm kinda noobish when it comes to getting information from XML information sent to my flash file from the socket server. OK so for example the server sends me this:

[Code]...

I want to get the name of the user and the X and Y position! Is there a way I can get this information without a load of fuss from functions and other junk remember im kinda noobish.

View 1 Replies

Flash - Obtain System Information Or Cpu Information Using Adobe Flex?

Feb 11, 2011

I want to build a program built around my pc specs. Is there a way to access such information as how much ram I have or how much cpu usage is being consumed, etc.?

View 2 Replies

ActionScript 3.0 :: Get Data From Php To Swf Using Sessions?

Jun 2, 2010

Trying to get data from php to swf using sessions, but have a bit of a problem. Here, I create the session

Code:
<?php
if(isset($_POST['action']) && $_POST['action'] == 'submitform')
{
$name = $_POST['name'];

[Code]......

I dont know if this is because i havnt placed it on the server yet, or if its something I need to resolve now?

View 21 Replies

PHP :: Mapping Login Sessions To Users

Jun 26, 2009

When I login a new session is generated. How can I later know for which login the session was generated? I am getting the session value, but how do I know which user the session is for and redirect him to that page?

View 1 Replies

Flash :: Flex - Do Sessions With A Client

Jan 28, 2010

Since the Flash Player (or, more exactly, the URLLoader class) will not let you read HTTP response headers or cookies set by the server, and if you get hold of a session cookie through some workaround like reaching out to the browser and run JS, you can't send it to the server, because, among others, the Cookie header will be blocked. Now I'm building a Flex client against an HTTP API for my server product. I control both sides, so I can get get around the above limitations, now I'm wondering how. I see the following options:

include the session token in the HTTP payload include the token in the URL build my own HTTP client (... with blackjack, and hookers ...) in AS, using the Socket class I don't like (1), because I'm reimplementing functionality in my protocol that is already built into Struts, which I'm using to implement the server side. I then have to ensure that either both behave the same way, or turn off the usual way of session management and force other clients to use my protocol where they could just have the browser deal with it. I don't like (2), because I understand that there are security concerns with this, although I'm not too sure which

I don't like (3), because it's 2010 and tons of HTTP clients have been written by smarter people than me. So, are there other opportunities? Which of my "don't like"s do you reckon least severe? Are there ways to mitigate the problems I listed? For example, how insecure are session tokens in URLs really?

View 2 Replies

Php :: Sessions Not Recognized When Going Through Flash / Uploadify

Jan 15, 2011

I'm writing an application which uses cookie-based sessions for authentication. All was well until I tried to integrate the uploadify jQuery plugin into my site. I need uploadify to send the files to my upload.php file. When I check the existence of any preknown session variables in that upload.php script, I get nothing. I've tried print_r($_SESSION) and got an empty array.

I'm not sure if this a problem with my php sessions code or my jquery uploadify code. I'm somewhat new at both.

/** INSIDE JQUERY **/
$('.fileUploadify').uploadify({
'scriptData': {'filesUploaded':'1','PHPSESSID' : <?php echo

[Code]....

View 2 Replies

PHP :: Facebook Sessions Not Working In Flash

Apr 28, 2011

We have a Flash site that integrates heavily with Facebook. When users sign up we get them to allow a Facebook app that ties into the site. This is done through the AS3 Facebook API library from Adobe. When users have done this, they should then be able to sign up, submitting some personal details and so on. The Flash sends this request to our PHP which then checks to see if the user is actually logged into Facebook, and has allowed our app. The problem we're having is that when a user goes to do this, the PHP facebook library says that the user is not logged in. If we then refresh the page and try signing up again, everything works fine.

View 1 Replies

PHP :: Adobe Flex - How To Handle Sessions

Nov 17, 2011

I am thinking about porting my social netowrking site code to Adobe Flex / PHP and was wondering how does one go about handling sessions in this case. I would imagine Adobe Flex doesn't really know if a PHP session has been started or not therefore, I would have to research how to accomplish this. One idea I had was to created a session token string after a successful login and pass this token to each http request the user makes for data. E.g. [URL]. Each time a request is made to this page, a MySQL query is run to check if the token I passed in the url matches against the token created for that user during login. If this is true, then data is returned.

View 1 Replies

ActionScript 3.0 :: Persisting Model Over Sessions Of Swf

Feb 2, 2007

So I had been working on this issue where I couldn't get a swf to reload in the same state it was originally loaded. Well further testing leads me to believe that my Model class is being persisted over multiple sessons in the player. Here is my model class:

[Code]...

So when I fire up the swf the first time in the IDE's player, i get 'no previous instance' as you would expect, then I hit ctrl + enter to restart the swf in the IDE's player and I get 'destroying instance'. So this tells me that the Model instance is getting persisted over player sessions. Unless I am mistaken, and correct me if I am wrong, I would assume clicking ctrl + enter (i.e refreshing the swf in the player) would act like a new swf session.

View 3 Replies

Media Server :: Running Multiple IP Multicast Sessions

Apr 5, 2011

am setting up multiple multicast sessions, i generated configurations for each session using a seperate stream name, IP address, port.

1) Is it possible to run multiple multicast session.From configuration, looks like we can, but need confirmation
2) How can i test these sessions using the default player ? or any sample player

View 1 Replies

AS3 :: Test Services With Cookie Based Sessions In Flex?

Jul 6, 2011

As the title indicates the question is in regards to the service layer of a flex application. Specifically in a test case class. To call the services the user must first authenticate through an html/CF based page. Once that's done and the authentication has occurred the user is directed to the html page with the flex application embedded in. Once authenticated the server side CF code writes a cookie to the users computer. This cookie is then read by the flex app and is required for the flex app to make calls to the CF services.

The question is: how should this be handled in a test case class for the service class in the flex app? The following steps need to basically take place: use some account data to hit the server and authenticate, the cookie then needs to be written (which it will already), then the test case needs to pick up the session id from the cookie and pass it to the service call within the test case. That just all seems like too much for a test case class.

So, how is this type of thing usually handled. From what I gather it's typical for web service calls to require a session id like this.

View 1 Replies

Flex :: Duplicate Sessions Caused Multiple Requests With Different JSESSIONIDs?

Jul 7, 2011

I think I inherited bad code, here's the deal: In my command, I create a local var for the remote object and then call a method on it. In the result, if there's no data, I start a timer. This timer broadcasts an event every 2 seconds that continually calls this command until data is returned. Then the timer is stopped.

What we're seeing is that the method returns data once, and then the next time it doesn't (dupe Flex sessions error). It basically alternates. If we click really fast, sometimes we'll get two to work in a row. At times, the Java dev is seeing these requests returned with different JSESSIONIDs. I believe this is causing the duplicate Flex sessions error. I'm using Cairngorm; here's the execute command.

public function execute(event:CairngormEvent):void
{
ruleName = (event as FetchReportEvent).ruleName;
var ro:RemoteObject = ServiceLocator.getInstance().getRemoteObject("quantRemoteObject");
if (model.guid != null)

[code]....

View 1 Replies

Actionscript 3 :: ASP.net MVC - Sessions - Record The Users Progress Then Save To A Database

Jul 21, 2011

I want to add the ability to have my flash game record the users progress then save to a database. That part is pretty easy, but how can I make it so the user can login and continue their game. I also wanting to know if it'll be better for the game progress to be saved with SharedObjects or with an SQL database. I would like it that the game could be played on any website and their data can still be accessed and played if that is advised. I am new to user sessions with AS3 and need pointers.

View 1 Replies

Flex :: Limit Pyamf Flex Sessions Or Setting A Timeout?

Feb 22, 2010

How do I limit my amf sessions to flex over pyamf?

I have set up a pyamf gateway to that serves value objects that originate from a django admin panel, through sqlalchemy to my authenticated flex client. It's working great, however there is a problem. My sessions are persisting and clogging up the server, so after about 20 or so AMF sessions are authenticated, it refuses any more until I restart the server.

View 1 Replies

CS3 Form Not Submitting All Information?

Jun 4, 2009

I purchased a flash template and replaced all of the information with ours. The problem that I'm having is that when customers fill out the contact form on the 'contact' page, it doesn't send their email to us (which is one of the fields).

The site is live at [URL]

I've attached a jpg that shows the movie clip I'm working in.

View 3 Replies

Getting Information From A Js Into Flash Object?

Aug 26, 2009

I have a simple html page witha flash button. Upon clicking on the button, I would like to retrieve certain information from the js in the html (a URL for example) and execute it from the flash button.

View 3 Replies

ActionScript 3.0 :: How To Print Information

Nov 8, 2011

I know trace() function can print information,but I must use flex builder environment.If I don't use flex builder,the trace function can't make function.I want to know if there is a statement can replace of trace(),because sometimes I need print information for debug and I don't want to use flex builder too.

View 3 Replies

ActionScript 2.0 :: Getting Information About The URL Hosting A SWF?

Mar 25, 2005

Does anyone know of a way to obtain information about the environment that a SWF is served into? Things like the URL of the page that is hosting the SWF?

So say there's the URL [URL] which has the movie flashmovie.swf embeded in it ... is there a way to get the URL from inside flashmovie.swf and cast it into a string datatype?

I've been picking apart the _global object by recursively un-hiding it and the objects it holds properties, but so far have not come up with anything that could prove useful.

View 4 Replies

ActionScript 2.0 :: Passing Information To VB.net?

Feb 28, 2006

Is there any way to pass vairable or array information from flash either .swf or .exe to VB.net ?

If so can data be passed back to Flash from VB.net ?

I want to create a simple graphical application in Flash that when the user has chosen it passes the info to a VB.net application.

View 1 Replies

ActionScript 3.0 :: Getting All The Target Information

Mar 9, 2009

Is there a way to dump out all the target info in as3? Basically I would like to know everything that is contained in my target like a var_dump or cfdump for as3. Something that would work like....

trace(event.target.dump);

View 2 Replies

ActionScript 3.0 :: Getting Information From Array?

Dec 30, 2010

I've got an array, events, where I store objectdata, such asevents.id (String), events.action (String) and events.time (Number).In a for-loop, I want to go through the array and for each object I want to connect a Timer which runs the function "takeIt" which runs the public function "newEvent". The object in the array, events.id contains information about the object which is running newEvent, and in the array, events.action there are alse information which action to use. The events[i].time contains information about the timer delay which seems to work.How should I wite this to make it work?

Code:
for (var i:int = 0; i < events.length; i++) {
function takeIt(e:TimerEvent) {

[code].....

View 1 Replies

ActionScript 3.0 :: Override Old Information With New()?

Jan 17, 2011

myShape=new MySquare(5)
inside MySquare constructor:
theArray.push(this)

[code].....

View 4 Replies

ActionScript 2.0 :: Getting Information About The URL Hosting An SWF

Mar 25, 2005

Does anyone know of a way to obtain information about the environment that a SWF is served into? Things like the URL of the page that is hosting the SWF? So say there's the URL which has the movie flashmovie.swf embeded in it ... is there a way to get the URL from inside flashmovie.swf and cast it into a string datatype?

I've been picking apart the _global object by recursively un-hiding it and the objects it holds properties, but so far have not come up with anything that could prove useful. I want to be able to do this for error logging.

View 4 Replies

ActionScript 3.0 :: Getting Flash Player Information

Mar 15, 2009

In my flash application, I want to have information about the system the flash object is running on.Is there an object which handles this?My application runs in a browser mostly, so I also want to know the browser in which the application is running.Can I also access this directly from within the flash player or do I need to communicate with javascript then?

View 1 Replies

ActionScript 3.0 :: Time Information From Video?

Sep 28, 2010

What I need to obtain is the playhead location of a playing video when the Stop button is pressed. I need this to be either in milliseconds or hours:minutes:seconds. Either format is fine as I can work with either.I need this so that I can add a cue point to the video so that when the user returns to the presentation, it will start playing again at that point.

View 1 Replies

ActionScript 3.0 :: Loading ID3 Information From A Buffering MP3

Oct 18, 2009

I'm making a very simple MP3 player in Flash CS4 Professional 10.0.2 that loads a song from an array containing the locations of the songs and plays it. The player also displays the artist and song info name in dynamic text fields as specified in the ID3 section of the MP3 file. It works as desired when I load the MP3 before playing it. This is the relevant portion of the code, highlighted in green to indicate that it functions as I want:

[Code]....
 
What's odd is that if I comment out the last two lines of the onID3 function, so that the function only performs the trace command that's highlighted in orange, it works! This tells me that it's loading the ID3 information. So why can't it display the information from the currentSong variable?

EDIT: I'm pulling the MP3 files from the same server as the SWF. I would not be pulling them from a remote location!

View 4 Replies







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