ActionScript 3.0 :: Optimize Coding - Clients Can't Change The Values In Flash Client Program
Jul 24, 2011
Im creating MMO with flash but making it small at first.... I need to know the best way to code the characters.... I was thinking keeping all the data such as coordinates, inventory and cash all in MYSQL so the clients cant change the values in my flash client program. I was thinking of calling quires every few seconds which would eventually becomes thousands... what do you think is the best way about it?
BTW: Flash = Client Side
PHP = Server
MYSQL = DATA
View 1 Replies
Similar Posts:
Mar 19, 2011
I would like the clients to print what they are seeing at the moment with the flash program.How is this possible? That is why I said (print screen of program) because its actually printing what the person is seeing at the moment.The thing is that my program leads to certain places and combinations of photos.So I would like this functionality.
View 1 Replies
Jan 21, 2011
Now I have server code on C++ program. But I don't know how to coding client socket on Flash AS3.0.
View 1 Replies
Apr 15, 2010
i need a wey without knowing the index value of spacific client in the application clients array to identify this user for use: application.clients[this client id].call to him only. in addobe halp its says: "Do not use the index value of the clients array to identify users between calls, because the array is compacted when users disconnect and the slots are reused by other Client objects" but it do not say what to use??... i try this 4 ways none working - last 2 throw error:
[Code]....
View 4 Replies
Jan 1, 2011
I have a big issue with FMS 3.0 and specially with netconnections. Sometimes, when one client closes its netconnection, all the other clients of the FMS are also disconnected automatically. I am trying to find an explanation but nothing... It seems to be a bug as, most of the time everything works very well, but sometimes (not often) this strange behaviour happens. I don't know what to do and it's really annoying as it affects the reliability of my application.
View 10 Replies
Aug 11, 2010
Or is it possible in Flash? web applications - call a specific client side program in player controlled?
View 2 Replies
Nov 9, 2010
I am using the following code to open my client email program and I want the address, subject field and body text completed.
submit_btn.addEventListener(MouseEvent.CLICK, sendMessage);
var subject="My Subject"var body="This is text. This is text. This is text. This is text. This is text. This is text. "var to="me@address.net"
function sendMessage(event:MouseEvent):void {var email:URLRequest = new URLRequest("mailto:"+to+"?subject=" +subject+ "&body="+body);navigateToURL(email, "_self");}
The problem is no matter what I have tried I cannot get the subject and body text to show any text. The email client open and the correct address is shown. Is this a problem with trying to run it locally and not from server or is there a problem with the code?
View 4 Replies
Feb 22, 2012
I have a .net client app that needs to play some content (images, movies, swf files etc) on the client machine. What it does is download the content from a server to the HDD in a folder, and play it. BUT: the SWF file has a need to read RSS from the web, and what i need is the folder where the app content is kept to be added in Trusted Locations (what you regulary do when right click .swf file, go to Global Settings > Advanced tab, and Trusted locations.. button, and specify a folder.
Now, i have searched the web, and there is a place where this is saved: :Documents and Settings\Application DataMacromediaFlash Playermacromedia.comsupportflashplayersyssettings.sol, however, i don't know if this is changeable from another app : eg. when my .net app is installed or started, that it adds the folder to trusted locations, so that the SWF would be able to play RSS from web.
View 1 Replies
Sep 29, 2011
I am trying to use a movieclip as a button so I can have animation on the mouseover. I have been unable to get the button to work to change to a different frame. I can make the movieclip open a browser window, but not jump to another frame.Here is the code that I have in the button:
<highlight>stop();
this.onEnterFrame = function(){
if(rewind == true){
[code].....
View 1 Replies
Sep 29, 2010
Is there a way to start an unrelated program (such as Window's media player) from inside of a flash program?
View 2 Replies
Mar 5, 2010
I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
View 1 Replies
Sep 16, 2010
How do I change the values of arrays from different classes? i've array in one class called creation all the array are global variable
[Code]...
View 2 Replies
Oct 19, 2010
I have this code:
ActionScript Code:
for (var j:int = 0; j < 20; j++){
if (values==j){
var "ingredient"+j:"Ingredient"+j = new "Ingredient"+j();
[Code].....
it doesn't work for what are probably obvious reasons but I show it to give you an idea of what I'm trying to do which is change the name of the variables while the program is running.
View 6 Replies
Feb 13, 2012
I need to change text in all textfields in my .fla file (Flash CS3).Looks like i should call JSFL function "fl.findObjectInDocByType("text", fl.getDocumentDOM())" and it would return all elements, but it returns zero length array. I there any another way to iterate threw all library items, and change values of TextField's in MovieClips ?
View 1 Replies
May 23, 2005
Right now I create a paint program, which will consist of _xmouse, _ymouse, different colors to draw lines, different sizes. But I have a problem:
_root.line.lineStyle(size,0x00ff99,100);
The size is the thickness of the pen. But it don't seems to work inside of that script.
View 8 Replies
Jan 18, 2010
I can't change property Color of the component Movie Clip in my program? Compiler didn't found the error but when my program run color Movie Clip doesn't change.
View 5 Replies
Sep 28, 2009
I design all my sites using Adobe CS4 and have recently aquired a new client that is wanting the ability to update his own site i.e. change pictures, text etc. after I have completed the design and the site is live.
View 1 Replies
May 24, 2011
I'm doing some experiments with Adobe Cirrus. I've managed to connect 2 clients to each other. But what I want now is the following:
I want client A to publish and clients B and C to play A's stream. I've tried to do this. A starts publishing, B and C create receiving NetStream based on A's nearID. Unfortunately only latest connected to A client can play A's stream.
View 1 Replies
Jul 23, 2010
If I hop online and look at it the files plays fine. If I look at it from my wife's computer it plays fine. I even called up 3 or 4 friends and it plays great for all of them. They are various computers and various internet connections. It plays fine for everyone BUT my client
View 12 Replies
Oct 14, 2010
Is it better to optimize an image before importing it into Flash, or letting Flash optimize it during the export?
View 2 Replies
Sep 15, 2010
Is there is a way to optimize flash for search engines??
View 4 Replies
Jun 7, 2010
I'm building an application in Actionscript using Flash assets, and my frame rate becomes very low (~7 fps) when I attempt to render 20+ assets on the screen, even though most of those assets are stopped movie clips. I've tried setting .cacheAsBitmap to true, which helps a bit, but not enough. What else can I do to get the frame rate up? I've noticed that some movie clips seem to impact it more than others, but I'm not sure how to alter them to make them easier to render.
View 2 Replies
Nov 15, 2011
I am trying to connect 2 flash clients to a flash game, each client will control a object in the flash game.I am unsure of how I can connect those two clients to the central flash game, or what the best way would be to achieve the desired result.I am just trying to send commands from the flash clients to the flash game, but I am unsure of how to go about it.
View 1 Replies
Nov 4, 2008
Im trying to add an exit button onto my program so when its clicked it exits the program completely.. I've tried some of the suggestions on the forums but they arnt working. what I have been using and its not working..
// CLICK to Exit
exit_Btn.addEventListener("mouseUp", goExit);
function goExit(evt:MouseEvent) {
fscommand("quit");
};
View 9 Replies
Jan 31, 2010
I work on a big Flash project as the web backend guy that delivers all the files and assets to the main application SWF. Our last, really big packet of data are all the assets and sounds contained in swf files that are imported during the preloader.Are there any ways to optimize this process in any way? I'm really looking for ideas in any direction, no matter if its in the swf, the process of loading and so on. Also I look for solutions for the first time load (empty cache) and for consequent loads (prefilled cache).
View 1 Replies
Apr 29, 2010
I'm working on a flash project that incorporates a lot of artwork done in Illustrator CS4. I've been copy-pasting directly from Illustrator into Flash, and I add some animations as well. Final file is going to be a one single swf file which will be a part of UI for an application and .net will be the core for this. But now flash becomes unusable slow to respond for actions. My machine is a fast i7 with 6gb of RAM, so I don't think that's the issue. We are going to use this file with dual core atom processors. Does anyone have ideas for alternative importing techniques, optimizations within illustrator, anything at all that will make this more manageable?
View 1 Replies
Nov 18, 2010
I`ll be dealing with this few hours now, so I manage to optimize compiled swf file for only 5kb, and I need to achieve 15.
So, what are the options to prevent unnecessary file size?
View 4 Replies
Jun 5, 2011
I have Flex application - it connects to FMS and joins to NetGroup named "default".So I have for example 4 clients connected to the same server in the same group. And looks like not all clients are connected to each other! Client1 sees Client2's streams and messages but doesn't see others. Same for Client3 and 4. I know UDP must not be blocked in networks in order to P2P connections work, and this can be a reason why not all members of group see each other.My question is - if there any ways to make all clients see each other? For example - if no P2P connection can be established - connect client via Flash Media Server or some proxy?
View 1 Replies
Mar 24, 2003
I need to program a timer for a typing tutorial program. It needs to go to 5 minutes. When the timer gets to 5 minutes the movie has to go to frame 13 which displays the results of the typing test.
View 1 Replies
Jul 30, 2010
On the home page of my website I have a Flash banner near the top, with a slideshow of my work. The problem is that the Flash file is 300k and takes a while to load on slower Internet connections, and I was wondering if anyone had any tips for me to optimise it. [URL].
View 1 Replies