ActionScript 3.0 :: Variables Kept In Memory / Cookies
Sep 1, 2009
I have a swf that connects to a server through an as file, which appears to be holding some variables in memory or something so that it works fine the first time it loads, but when I load the page again, either the browser or the player is not clearing out the previous values. I don't know if there is a way to make sure that the swf when it loads makes sure not to keep the values held in the cache. It actually appears that the only way around my problem is to clear the cookies for my site and then reload.url...
View 3 Replies
Similar Posts:
Apr 3, 2009
Just finished some swf files update, but as computers retain information (cookies) if site as been visited before, im not sure that everybody will see the update. How can i prevent this?
View 1 Replies
Nov 30, 2004
Once, I wanted to make a large RPG-game. I wanted it to be like Zelda, Diablo2 style of RPG with much Hack-and-Slash but also a little quests and a big world to explore. (a BIG game). A game needs to be programmed, so I had to choose a programming language. I chose Flash, because its easy to make graphics in it, and its not that hard, I thought. The game was planned to be a stand-alone-application that you could have on your computer and play whenever you wanted to. Much like any other game. But, this was not something I thought of in the beginning, games you make in Flash usually is web-games, right? But this RPG I wanted to make was not an online-game, and I didn't want it to be either, because it would be to big to download everytime you wanted to play it.
A RPG-game needs a save game/load game function. But Flash cannot write to external files! This was terrible! Now, its a great safety protection to make flash files not write bad things into your computer. But I need it in order to save my games! There is this way, that flash can load variables from external text files. But is there some way that I dont know about to make it save there to? One way is to make the player manually copy a mass of code (variables) from a window in the game, into the textfile. Any way to write from flash to a textfile?
I know these other two ways of "saving".
1. Using cookies to save and load.
2. Using an online database of some sort to store/load variables.
But they're for online flash applications only... So I'd rather not use them.
View 5 Replies
Feb 4, 2010
Does creating a lot of private variables that may never be used increase file size and or memory usage of your application?
View 2 Replies
Jan 30, 2012
I know that flash use the garbage collection metod to delete variables from memory, however into the official guide I see: When you no longer need an event listener, remove it by calling EventDispatcher.removeEventListener(); otherwise, memory problems might result. Objects with registered event listeners are not automatically removed from memory because the garbage collector does not remove objects that still have references. So, it's exist a method to trace the memory status and know if a variable was correctly deleted?
View 9 Replies
Mar 19, 2011
clarification. let's say i have a function
function myFuction():void
{
var myArr:Array = new Array();
[code]......
View 2 Replies
Jan 31, 2012
I have a bit trouble with LoaderMax memory occupy, i have a queue, and i am keep loading images depend on user's action. if they click load more and it keep load, but i would like to clean the memory which been occupied by the previous queue (i have remove all the children been added by the loading previously). is there a way i can do it? the behavior like this.
[Code]...
View 1 Replies
Sep 26, 2010
I have an FPS monitor running and notice that I am getting choppiness here and there, bringing my game from 40 to 27 fps and back and forth at certain stages. I have an idea of where it is happening, but do not know for sure. I looked up quite a few memory monitors but haven't found anything decent yet. Is there a memory monitor that allows you to see the memory leaked and find its location? If not, how about just he memory leaked?
View 4 Replies
Aug 2, 2007
I'm making an isometric game and I need to know which takes less memory for scrolling, making everything invisible that you can't see? Like if(!this.base.hitTest(worldHitter))this._visible = false; Or would it be better to remove the movieclips unseen and then reattach them when i should see them?
View 2 Replies
Feb 4, 2009
I have an error in my program that has to do with cookies. My app makes a call to a PHP script but since the cookies don't exist yet, the script returns an empty file. I found a messy workaround that appears to work by using this code to pre-call my PHP script before I call it a second time[code]...
View 3 Replies
Jun 7, 2010
For a site I'm developing with a user login that uses cookies to store the session ID, a separate section of it uses Flash to provide content and such. Is there some way it can access the cookies that were set the by login? The name of the cookie will not the be same every time, as it is randomly generated, as well as its value. I then need to send the name and value of the cookie back to a page on the server to do additional stuff. Anyone know how to do this? Note that I didn't write the Flash interface, an the person who did doesn't know how to do this.
View 1 Replies
Oct 10, 2003
i got this phpPHP Code:
<?
setcookie("affuser", "", time()-84600);
setcookie("affpass", "", time()-84600);
[code]......
View 3 Replies
Oct 10, 2003
i got this php
PHP Code:
<?
setcookie("affuser", "", time()-84600);
setcookie("affpass", "", time()-84600);
header("Cache-Control: no-store, no-cache, must-revalidate");
[code]....
but i want to see if i can CALL that php from AS and make it do all that inside flash then refresh the page inside flash or via that php file..im calling that php file from a geturl in flash.so i wanna see if i can make it to do it inside it
View 3 Replies
Aug 24, 2010
I wrote an application in flash AS3, and when I trace from flash the total memory usage of the total application is only about 9MB, But at the same time Task Manager Shows the memory usage as 110MB. Around 100MB difference.Flash Trace Method System.totalMemory difference of the Trace from the Beginning of the application to end of the application.
View 2 Replies
May 29, 2011
I'm having trouble where when I go to [URL] and hit delete sites (either all or one at a time) they never delete. When I refresh my browser they are still there!
View 1 Replies
Jun 3, 2011
I use AIR HTML component, and I need to delete cookies sometimes. I have to open IE and delete cookies there... Can I do it via AS code?
View 1 Replies
Sep 1, 2011
Is there a PHP library/class which provides parsing capabilities for Flash cookie files (.SOL) by any chance? I'm trying to avoid writing one myself :)
View 2 Replies
Jan 9, 2012
I'm trying to get data from a website, but first I need to log in to the site using java. The script worked until now, but now the site installed an anti bot system. Until now the procedure was simple, I've created a HttpStreamWriter and submitted my details to the login.php page, then get the cookies and later, when I want to get data from the site, I resubmit the cookie from the login.php page, but now there is a problem: an anti bot system: I'm not sure, but I think this is the system: [URL] The anti bot system creates a cookie, called anti-bot and I can't access the page without that cookie, the problem is that the cookie is generated by a flash application only after the page loads so I can't get the cookie from the page?
View 1 Replies
Jan 12, 2009
Can someone point me in the right direction as to how to make cookies in Flash?
View 1 Replies
Apr 27, 2010
I'm having a bit of trouble in sending cookies through flash (.swf file). Is there a way to always allow the referrer to be shown? At the moment it appears only to show in Internet Explorer, but not in any other browsers.
View 2 Replies
Sep 14, 2011
I have a a little project I am working on and I need to implement the use of cookies so the swf knows which frame to go to when the specific page is loaded based on the last state of the flash file.
So for example if I was to visit the page and clicked on a button and then navigated away from the page and loaded the page again, I want the swf to remain at the state I left it and not reset itself from the starting.
Below is my action script and under that is the cookie code to be implemented
Main Action Script
Code: Select allimport flash.events.MouseEvent;
var buttons:Array=[mcSection1, mcSection2.btn1,mcSection2.btn2,mcSection2.btn3,mcSection2.btn4, mcSection3.btn1, mcSection3.btn2, mcSection4.btn1];
var frames:Array=[33,51,68,85,102,119,137,155];
[Code].....
View 2 Replies
May 6, 2003
So I did the tutorial about SharedObjects, and I created a login movie which works fine.
My questions are as follows: Can i use a shared object I created in one movie (call it "mycookie") in a separate movie on another page, similar to an HTML cookie? If so, what is the syntax?
I tried reusing the mycookie = SharedObject.getLocal("user_profile")and it didn't seem to work. =(
Also, I know that alternatively I can pass flash variables to the URL with the POST method, but I forget the syntax. Time is of the essence here (project due tomorrow) so I'd really like some help if somebody knows the answer..
View 2 Replies
Dec 9, 2008
me and and a friend are working on an application for the PSP in Flash 6. And we're looking for a code to save variables. We tried everything, can someone post a clear tutorial! The function, and the Javascript part, us ASAP Edit: is it possible to save the cookies to a textbox in HTML?
View 10 Replies
Dec 15, 2010
So I'm working on a as3 site that allows for users to signup/login, and I'm torn between using cookies vs SharedObjects to remember login info, I've been googling about it and I find a lot of people are super paranoid about LSOs, so maybe I should just go the regular cookie route?
View 10 Replies
May 9, 2009
Adobe is, in my opinion, intentionally deceptive on a number of levels about the privacy-invading cookies that Flash stores on your machine. These are NOT the cookies that get deleted when you clear your browser cache. These cookies remain on your machine until you MANUALLY DELETE THEM. And Adobe know that most users are not technically proficient enough to even find where they exist.There is a good site that describes how to get rid of them here: [URL]
[Code]...
View 21 Replies
Dec 10, 2009
I want to store some values in browser using cookies
but i don't do i do ?
View 2 Replies
May 25, 2010
I am using external interface to store cookies in client side of application. Like I have created a cookie in html and i am using those methods in flex using External Interface. I am saving a username in cookie when I re use cookie is displaying, I have deployed in server and i ran like http://localhost/[Path]/index.html.in this html I am embedded swf file and I have saved cookie in html JavaScript, now if I open this url cookie is saving if I open a new window what ever the cookies are a raised and it is loading from start. for cookies saving i am using this code in flex:`package Name{
[Code]...
View 1 Replies
Sep 2, 2010
I'm trying to find a javascript method to delete flash cookies on a page, but with no luck.I know it can be obviously done through flash or flex, but the problem is I know nothing about flash, flex and actionscripts...So my question is: Is there a way to just load a prebuilt flash movie in a page, which just programmatically deletes all the flash cookies it finds?I could find some actionscript code around the internet and didn't look complex, but I don't know how to use it
View 2 Replies
Sep 16, 2010
I have a flex app that uses AMF to talk to a Spring Java backend. How do I get the values of cookies that have been set by the server and are being sent back by AMF?
View 1 Replies
Nov 13, 2010
I have a small multiplayer Flash game in which you can display a player profile by clicking at his or her avatar:
[Code]...
This works well, but now I'd like to extend the user.php, so that players can add comments about each other. For authorization I'd like to use HTTP cookies, passed from the game.swf to the user.php. (I don't want use GET or POST here, because GET will have the auth. variables in the URL and players might occasionaly send that URL around or post it in my forum. And POST will ask to re-post the request when you reload).
View 2 Replies