ActionScript 3.0 :: Security, Session Management And Performance?

Oct 16, 2010

I am creating a flash/HTML/PHP based web game. It is going to be an MMO of sorts and I have a few questions which I have decided to bundle into this thread.

1) Security.the game is going to transmit data using the POST method from flash -> PHP. there are also going to be some AJAX components and tables within the page.

What I dont want is anyone altering and re-posting data to my PHP scripts, altering the course of the game. Would using SSL prevent this from being possible? It doesn't need to be rock hard and impossible to break. I just dont want tampering of data being sent from client side flash to my PHP scripts.

2) Session Management.Now I was going to rely on a PHP based login, setting some session variables and upon passing the user to the page containing the flash, the flash itself will check with PHP to see if a session variable is live, and, if it is of a valid user etc. Is this an adequate way of checking? or should I be relying on cookies to tie in a session ID?

3) my flash movie is going to be an overview of the game. I have planned to have each clients flash movie contain a timer which runs every 5 seconds to request new data and update the games stats & animations. Is this going to cause issues on the server when it comes to the load & bandwidth? The only data being transferred are strings of data, not containing massive amounts. Whenever a client initiates a change in the overview, an update is fired regardless of the timer.

View 4 Replies


Similar Posts:


Flex :: Session Management With Java Servlet Using Httpservice

Jun 14, 2010

I am new to Flex. I am just wondering how to manage session and cookies for logging in, logging off in Flex? I am using Flex HttpService and Java servlet.

View 1 Replies

Performance :: Performance - Hold MouseDown To Increase Speed/power?

Sep 12, 2011

this is what i'm trying to accomplish; With a click on a movieclip (cannon_mc)a shot is being fired (ball_mc)

The longer mouse is down, the speed of wich the ball is fired with should increase.My question to you is;

What is the most efficient way to accomplish this? With a timer or something like this;

[Code]...

View 2 Replies

Performance :: Optimization - Improving Performance With Large #'s Of Objects

Jan 11, 2011

I'm devloping some library classes for flocking/steering behaviours on large numbers of objects (2000+). I'm finding that at < 500 instances, performance is reasonable. As the numbers increase, framerate bogs down.

I've seen remarkable performance with libraries such as Flint or Box2D with ridiculous #'s of particles / objects, so it should be possible to optimize / refactor my code to be a bit better.

I'm aware of the basic optimizations, such as bitwise operations and optimized for loops. Are there any more fundamental approaches I should be considering? For example, currently each instance is a vector-based MovieClip. Would working with BitmapData be more efficient?

View 1 Replies

Performance :: Flex - Using Nested ViewStacks Cause Performance To Decrease?

Nov 4, 2011

Will I take a big hit in performance using nested ViewStacks? Should I strive to handle all navigation in one ViewStack and push children manually or will the affected performance be negligible?

eg.
<viewstack>
<tabnavigator />
<tabnavigator />
<tabnavigator />
</viewstack>

View 2 Replies

Performance :: Improve Flex Performance For Invisible Views?

Mar 19, 2012

We have a medium size Flex 3.6 application that contains around 20 different page views (managed via a single lazy ViewStack) each having multiple components. Most use custom renderers.All model data is loaded at startup and changes to model instances are communicated via binding and/or collection change events.Once the user has viewed each page at least once, all page views are instantiated and happily listen to update events.Which in effect means that each time a model instance changes, all interested views receive that event and compute derived data or trigger item-renderers.I have tested and confirmed this behaviour in a proof-of-concept application. Even when setting a list to being invisible, it still listens to collection change events and invalidates any renderer affected.What would you do?

View 1 Replies

ActionScript 3.0 :: Security Sandbox Security Violation Error?

May 19, 2009

I am getting a strange problem while I am making my release build swf.The swf is supposed to make some internal server calls and then display the data and also play it.When I make a release build swf and excute it, while making server calls it throws exceptions likeSecurityErrorHandler: [SecurityErrorEvent type="securityError" bubbles=falsecancelable=false eventPhase=2 text="Error #2170: Security sandbox violation:file:///Path to the swf/WebPlayer.swf cannot send HTTP headers to **Method Name to bring data from the server***]And after this nothing can be done as everything depends on the data from the server..I have updated my cross-domain.xml on the server to support the master-only policy file but that also didnt ..My cross-domain.xml is

<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*"/>

[code]......

View 5 Replies

ActionScript 3.0 :: Sandbox Security - Restricted By Security In The Game Swf?

Apr 17, 2009

I haven't fully grasped how the flash security model works, and now I've ran into a problem. I have a base SWF that loads a game loader swf, which in turn loads the actual game.What I'm trying to do is taking a current bitmap snapshot of the running game. This works fine before the loader swf has loaded the game. When the game is loaded, I get a security violation because the game has images pulled from facebook. Is this something that can be solved on my end, or restricted by security in the game swf?

View 2 Replies

Actionscript 3 :: Security Sandbox With Flex And AppEngine - Getting Client.Error.MessageSend Channel.Security.Error?

Dec 20, 2009

I'm having trouble with an AS3 AMF RemoteObject request that is hosted on App Engine. I have a crossdomain.xml file in the root of the domain, and also one at the remoting endpoint.Here are the contents of the root crossdomain.xml:

<?xml version="1.0"?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies ="all"/>[code].....

Loading the swf file and testing it on my machine works just fine... I think that may have something to do with me having the debugger version of Flash Player. When I push it up to App Engine to make it public, other clients access it and get a Client.Error.MessageSend Channel.Security.Error error Error #2048 url: http:[url].......I am using Flex 4 beta, and the App Engine Python runtime. I have tried full wildcard in the crossdomain, and even accessing the data endpoint at a relative URL so as to avoid this error.

View 1 Replies

ActionScript 3.0 :: Flash Security - Getting "#2048: Security Sandbox Violation"?

Apr 29, 2009

My SWF resides on domain A, is loaded by a web site on domain B and is trying to ping URL (URLLoader.load) on domain C. But I am getting "#2048: Security sandbox violation" .. why? Of course I have read the manual, I saw the security white paper but I do not understand it. Don't you know any blog or such where it is explained for dummies? With lots of examples and maybe a table showing what is allowed and what is not?

View 2 Replies

Flash 9 :: Sandbox Security - Error #2044: Unhandled SecurityError:. Text=Error #2048: Security Sandbox Violation

Mar 5, 2008

I get following error: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: [URL] cannot load data from 192.168.3.5:4854. at TicTacToe_fla::MainTimeline/TicTacToe_fla::frame1() ". I tryed to solve this problem about 3 hours, but I failed I have the file crossdomain.xml in the same folder like my .swf file on the server with this content:

[Code]...

View 7 Replies

ActionScript 3.0 :: More Memory Management Headaches

Aug 29, 2008

I previously asked about some FLV files that I was loading externally, and having trouble with memory being released. Having sort of solved this, I am having the same problem with loading external resources and then getting them to be cleared out of memory when I'm done with them. I have seen kglad mention more than once that GC in flash 9.0.124.0 is broken, but where does that leave us? I have also tried my project in FP 10, and the memory still continues to go up and up. If I load an external resource - in this case I have a class that builds a VR room with papervision - and then close it, set it's instance to null, my memory never goes down.

This is a total guess, but could it have anything to do with using Tweener in my project? Is there any way that the Tweener class could be keeping some of my objects in memory and keep them from being GC'd? I am using weak references in my listeners, setting any variable I can find to null... I can get over how frustrating this is to just see memory go up and up but find no reason. The class I am using also uses a few subclasses to build itself, but I end up with one instance of my VR on the stage. If I have set that instance to a name - myVR - and then removeChild(myVR) from the stage and set the name to null - that should do it right? Boy, this is frustrating.

View 3 Replies

ActionScript 3.0 :: Video Management System Put Together?

Aug 13, 2010

[URL]... How is this video management system put together? This is not a job for me, I am just curous.

View 3 Replies

Easy Depth Management In Flash?

Mar 2, 2009

I've recently created a game in which the logic and programming all runs perfectly, however the graphics are lackluster. I'm currently having a hard time managing the depth of movieclips on the screen.Basically the game is tile based and each frame of the movieclip holds a different type of tile. All the tiles are 50x50 with the exception of one type of tile which is 60x60 and therein needs to overlap the tiles around it which are 50x50.In AS2 I could of set the depth manually, however I'm told (as is this is my first time dealing with depth in AS3) that I cannot do this anymore. Is there any suggestions on how I can make sure that a tile of one type is automatically set beneath tiles of another type - I've thought about simply coding a function to check this but it somehow seems inefficient (considering larger maps will have a lot of tiles, meaning hundreds of movieclips attached to the stage, each movieclip with multiple frames).

View 2 Replies

ActionScript 3.0 :: Containers For Object Management?

Jun 6, 2010

Does flash supply 'invisible' containers, to make object management a little easier ? eg. add some objects to the container, then add the container to the stage, then later on remove the container (i.e removing also the objects) ?

View 2 Replies

ActionScript 3.0 :: How Many Database Management Systems Available

Mar 17, 2010

I right now making database for employees. May I know how many data base management systems are available in flash?

View 11 Replies

ActionScript 3.0 :: Movieclip Depth Management?

Apr 24, 2010

I started with some AS2 pageflip code that I've been modifying because I needed the code in AS3, and I wanted to make some changes to it. At anyrate, I'm having a problem with the depth of two movieclips created. The code first creates a page using the makePage function, and then creates a shade for that page (makeShade function).When running the code, the page appears on top of the shade. When using getChildIndex, the page's index = 11, and the shade's index = 14.

The complete code is super long so I've attached the code that has the shade and page below:

//create left-aligned page-sized solid fill
function makePage(targ, xQuadrant) {
//trace ("in make page");

[code]...

View 1 Replies

ActionScript 3.0 :: Memory Management / Garbage Collection?

Nov 7, 2008

I have done a lot of searching / reading to find out how to clear my memory. But I still can't really work out how to clear the memory, it just never seems to come down. I have a few MovieClips that contain other MovieClips with pngs inside them being added to the stage.

As fare as I can tell all Event listeners are removed and refrences I remove the clip, with removeChild I "null" the variable I am using the "LocalConnection()" hack to try and force a clean up, but no movement on the memory count. Are there any examples of a *.png being added and removed from the memory?

View 7 Replies

Flash :: Professional - How Many Database Management Systems Available Like Xml

Mar 17, 2010

how many external sources available in flash like xml....

View 1 Replies

Flash :: Professional - Activate Colour Management In CS4?

Apr 10, 2010

I am struggling to find clear guidance on how to switch on colour management in Flash CS4. My attempts to search online have tended to give me far too many irrelevent results and it is not even mentioned in the index of my 700 page Flash CS4 textbook.

View 16 Replies

Media Server :: FMS With Universal Content Management (UCM)?

Dec 27, 2010

I need some advice integrating our content management system with FMS. We are currently using Oracle's Universal Content Management 10g and FMS 3.5.

I am able to get the test video to stream by creating a VOD streaming application in Flash (drag/drop FLVPlayback component and setting the content path to rtmp://serveraddress/vod/TestVideo). However, when I try to incorporate it into UCM the video doesn't load. I have tried checking the .swf skin, .swf video, AC_RunActiveContent .js file, and even the .html file (I have edited the .html file to reflect the new path for the uploaded .swf and .js files) and I still get nothing. I suspect that the .swf video file that creates the connection to the FMS server has something encoded into it that can't be called correctly once it's uploaded to UCM. If this was a traditional website where I could simply drag and drop the files generated by flash into the site's hierarchy, there would be no problem.

View 3 Replies

Digital Rights Management In Adobe Flex?

Jun 16, 2009

I have a NetStream set up and it's supposed to listen for DRMAuthenticateEvent.DRM_Authenticate. When I give it an encrypted file (encrypted using software from drm-x.com), no DRMAuthenticateEvenet seems to be dispatched. The code looks like this:

[Code]...

I have both proxy and drm authentication types in there because drm was not working for me so I decided to try proxy. Am I doing something wrong? I got this stuff off of the Adobe reference pages, is there an easier/smarter way of going about DRM in Flex?

View 1 Replies

Flex - Degrafa States Memory Management?

Nov 10, 2009

I was recently profiling my application that uses Degrafa States in the skins and noticed that doing so uses more memory than I expected. Between the SetProperty and State, they were using about 10% of the total used application memory.

Would it be better to use css for the state changes and a new skin for each state? or Are there some simple tips to reducing the memory footprint of degrafa?

View 1 Replies

Javascript - Jquery And SIFR Link Management?

Feb 5, 2010

Ok, I'm using Jquery to build a dynamic menu, and sIFR to change the text to TrajanPro font.

This does not mix. I want to find a way to make it mix, though.

sIFR has automatic parsing of links, so that Flash sends you to the link location. What it doesn't do is pass on javascript triggers. I'm trying to make my menu as accessible as possible, by using hard links and then rewriting them with Jquery into managing the visibility of submenus, like this ~

[Code]...

View 2 Replies

Memory Management - Make Flash 'play Well With Others'?

Apr 21, 2010

the Flash Virtual Machine relies on garbage collection by using reference counting and mark and sweep (for good coverage of these topics, check out Grant Skinner's article and presentation). And yes, Flash also provides the "delete" operator, which can (unfortunately only) be used to remove the properties of dynamic objects.

What I want to know is how to make it so that Flash programs don't continue to consume CPU and memory while running in the background (save loading content or communicating remotely, for example). The motivation for this question comes in part from Apple's ban on cross compiled applications (in its SDK 4) on the grounds that they do not behave as predicted with the multitasking feature central to iPhone OS 4. My intention is not only to make Flash programs that will 'pass muster' as far as multitasking in iPhone OS 4, but also to simply make better (behaving) Flash programs.

Put another way, how might a Flash application mimic the multitasking feature of iPhone OS 4? Does the Flash API provide the means for a developer to put their applications to 'sleep' while other programs run, and then to 'awaken' them just as quickly?

In our own program, we might do something as crude as detecting when the user has been idle (no mouse motion or key press) for (say) four seconds:

var idle_id:uint = setInterval(4000, pause_program);
var current_movie_clip:MovieClip;
var current_frame:uint;

[code]....

what's the best way to detect that an application should be shelved? And, more importantly, is it possible for Flash Player to detect that some of its running programs are idle, and to similarly shelve them until the user performs an action to resume them?

View 2 Replies

Flash - Asset Management In Adobe Air For 2D Game

Jun 1, 2011

I'm building an Adobe AIR application (2d platformer adventure game), utilizing the Flash Builder 4 IDE, which will be packaged on a CD for installation. I've embed the majority of the game assets into a static class to keep it simple and organized. This way I can reuse assets and swap them without much digging.

Example:
[Embed(source = "../data/gfx/spritesheets/boyHero.png")] public static var boyHero:Class;

In the early days of the projects, everything went to plan. However as the project has grown to be over 28MB, I've started to run into Out Of Memory errors. These occur when I add new assets, refactor for a while, or add new classes. Once I get this error, I can restart FB and then work for another 15-20 minutes. I've modified my .ini file bump up Flash Builder 4's memory allocation. It's currently set at:
-Xms512m
-Xmx1024m

While I'm at it, here are the specs/plug-ins that I've got installed:
Flash Builder v 4.0 (build 272416)
JNA Library 3.2.7
subclipse plugin 1.6.17
subversion client adapter 1.6.12
subversion JavaHL Native Lib 1.6.15
SVNKit lib 1.3.5.7406

Mac OSx v 10.6.7
2.53 GHz Intel Core 2 Duo
4GB DDR

My Questions:
1) Is the issue with the path that I've chosen for the way I'm handling in-game assets? I am streaming in some assets such as tutorial swfs which are loaded via the SWFLoader. I could go this route for all assets... but, should I? Is this the right way to handle a disk game? (The game runs without a hitch when installed on QA machines...)
2) Provided the embedding of static assets isn't an issue, Is this a FB4 bug? Where should I head for more information?

View 1 Replies

Flash - Memory Management In Flex Programs?

Nov 24, 2011

I am a flex programmer but i had nothing to do for handle manage memory in my projects. I think lack of memory management is reason for loading lag of swf file. Can any one help me to how to handle manage memory in flex/ as3 codes.

View 1 Replies

Remoting / Messaging And Data Management In Flex?

Jun 8, 2009

Can anyone explain me the difference of all and also an another question does Zend AMF support all these.

View 1 Replies

ActionScript 3.0 :: Linkage Classes Under Hood Management?

Jan 20, 2009

I'm kind of messy and I ussually change the class linkage name a lot .

What happens with unused anymore linkage classes ? Are they automatically deleted by flash CS3 IDE ?

Edit:Long time no answer What I mean is not if they are still available (haven't tested but probably aren't) , what I mean is will those linkage classes be compiled into swf increasing the size or not ?

View 0 Replies

ActionScript 3.0 :: Memory Management With An Object Pool

Sep 8, 2009

I've been trying to figure out how Flash does its memory management regarding object declarations but haven't found anything that describes declarations themselves. [code]Basically I want a pool of declared variables that get instantiated only when a certain type is set. I'd have logic in other functions that figures out what the type is and then does certain things to it, but for now I just wanted to know what kind of memory management Flash does with something like this. Does it do nothing until I actually instantiate it (= new Object()) or will space be set aside once I simply declare it (someObj:Object)?

View 2 Replies







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