Flash :: Game - All Resources Do Not Completely Load For Different Users

Mar 10, 2010

I am running an online flash multiplayer game. However, I have been facing a problem lately where some users cannot actually completely load all the resources required to run the game. The percentage that users get stuck at is different for different users (for instance, one could get stuck at 43% and some other at 91%). I don't think there is any problem with the files as such because the resources are completely loaded for the majority of the users and the game works just fine for them. Has anyone faced such a problem before?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Loading Resources - Create A Loader To Load My Game?

Dec 20, 2009

I am making a game, then I learned to load the resources (images,etc) just when I need them, using the Loader class.I would like to know if I embed them they would be loaded with the game swf file (I am thinking as if my game is on a website) or when I instantiate them.If I load it one time and not use it anymore (loose its reference) and after some time load it again, will it be downloaded from server again? Or it will load from my pc? If I put the resources on a folder in the server (now I am using a folder on my pc) anyone would go there and get all the resources! What should I do? how my game would work on a website, not on my PC only I got the idea to create a loader to load my game, but I cant think about the resources loading,

View 1 Replies

Actionscript 3 :: Keep Media Resources For Flash Game

Jun 10, 2011

We are developing an epic game using flash cs5 and actionscript 3 (no flex at all). There are lots of images and other media stuff in library that we need to use. Early i just kept them in my main .fla, but then compiling swf became very slow (more images - more time to compile). So i put all my images to filesystem outside flash, and it helps. But then some lags and bugs appeared, especially when we were testing the game on remote server. Seems like files just don't have time to load (or they loaded uncompletely) - though i did it pretty correct, sequentially, with events like onload and so on.

Finally i've created another swf with all the images and resources. I'm loading it once in my main swf and i compile it only when i need to add a new image. It works rather well, but i have feeling that i'm doing it wrong or there is another right way to organize resources more easy. Also there are some minor troubles with second swf; for example, i have to make user wait until it loads inside my first file, and if i want to run from my desktop, i always must keep these two files near in one place. And, as amount of images growth and growth, it becomes annoying to compile my 2nd swf again, even if i need to do it not so often.

View 2 Replies

ActionScript 3.0 :: Completely Resetting A Flash Game?

Feb 7, 2011

I've programmed an entire game from scratch, without using class files, and there's no menu yet, and I'm not sure how to reset the game without using class files or resetting every single thing manually.
 
I'm making a Flash tower defense game with a friend; I'm doing all the code. I'd never used Flash or Actionscript before, so I started off directly programming the gameplay, to figure out if I'd be able to do it. I've done everything from scratch so I didn't know where to start or the "right way" of doing anything, so I figured out as I went along, which went much better than I expected.
 
So now I've got the gameplay almost completely programmed, the art assets are essentially finished and game looks great and runs (reasonably) well (and the occasional performance problems are due to graphics rather than code), etc. I didn't know how to use class files in AS3 when I started making the game, and when I read up on them and realized you can't import the class files into the project and must open and edit them separately, I was livid and decided not to use them; I was happy with how the coding was going anyway.
 
So now we've got a game where as soon as you run it, it goes straight to the field and the game starts; we haven't implemented a menu yet. We've reached the point of playtesting and it's becoming a huge nuisance having to quit the SWF and reopen or recompile it every time we want to restart the game, so it's time to program a "Reset" button. I thought this would be as simple as making the stage go to a different frame and back to the first frame, but that doesn't work, so now I'm utterly stuck. It looks like the easiest way to reset a game is to load the entire "game" as an object (or something to that effect, I forget exactly what I've read), then you can unload and reload the game object to reset it? It also looked like it would require class files which I'm hoping to avoid.
 
I don't think it's feasible to manually remove everything from the stage, reset all the variables, and delete all event listeners and references so everything is reset/garbage collected properly.
 
Thinking about it more, I'm also not sure how I'm going to get a menu to load before the game in its current state. Maybe I can move all of the gameplay to the second frame and make the menu on the first frame?So, is it possible to reset the game without involving class files?

View 10 Replies

ActionScript 3 :: How To Handle Resources For Web Game (Embed / Loader)

Apr 17, 2011

Ask a question .. images resources of the flash game , How should I load? I use the Loader class, but some people use the embedded resources. In which case use "Loader" class and in which case use "[Embed]"?

View 3 Replies

ActionScript 3.0 :: Flash Game - Storing High Scores, Winners With Multiple Users?

May 16, 2011

I've been asked if I can build a game, which lots of people will play and the overall winner will get a prize.The game part is simple enough, and I know enough PHP/MySQL to put something together to store the results etc. But is there something already available which could do this part for me, it would save a lot of time, and would probably be better than something I build myself.

View 1 Replies

ActionScript 2.0 :: Make Background Completely Transparent When I Load It Into A Flash Mc?

Jan 16, 2004

Id like to create a logo for a flash movie using photoshop.

the problem is, even if i delete the background layer in ps, there is always a white background with the logo.

how can i make the background completely transparent when i load it into a flash mc?

View 3 Replies

ActionScript 3.0 :: Have A Countdown Timer So All Users Enter The Game At The Same Time

Sep 17, 2010

my question is what is the best way to have a countdown timer so all users enter the game at the same time. At the moment i am using php to get the time from mysql database and send it to flash, but the time is different for each user, would the best way getting the time from the server. this is the code i am using at the moment.

as3 code

ActionScript Code:
var load:URLRequest = new URLRequest("lobby.php");
load.method = URLRequestMethod.GET;

[Code].....

View 6 Replies

ActionScript 1/2 :: Preloader Doesn't Load Until File Is Completely Loaded

Mar 7, 2012

So I am having a problem with the flash file at this site: [URL]
 
Everything is working fine, except for the preloader, which only seems to load after the entire file is 100% loaded, which leaves people who visit the site staring at a black screen for quite some time... The code on the preloader frames is as follows:
 
frame 1 (which has the background for the preloader/ actual load bar etc}
var percent:Number = Math.floor(getBytesLoaded()/ getBytesTotal()*100);
textBox.text = percent + "%";
textBox._alpha = 80;

[Code]....

Also, if you want to check out the actual program just click when you get to the main screen and click to create new shape (mouse x and y change opacity and speed respectivly) I'm using actionscript 2

View 9 Replies

ActionScript 2.0 :: Load Whole File Completely (Including External Content)

Dec 1, 2009

I have developed a small website in flash 8 ...
- The website has content (text) which is loaded externally
- The images are also called externally with 'loader' component
- I have added a preloader at the beginning of my file
But still when I loaded it on the server....the images and the content is coming slowly. Some way to load the whole file completely at the time of loading (including the external content)?

View 4 Replies

Actionscript 3 :: Prohibit Users From Loading Swf Files By Flash Loader.load() And Only Allow Loading Images?

Apr 1, 2010

I want to have an AS3 app load images from url supplied by the user. But I don't want a malicious user to be able to load an SWF file in place of the image, such as with an altered extension "maliciousSwf.png". Well, not sure how big a security threat that is above and beyond the ability of the hacker to decompile swf, but I think that ideally such behavior should not be allowed.

So, is there any way to prevent this? When people allow users to load images in their Flash apps, do they somehow guard against loading of SWF? Or is this really absolutely no big deal?

View 1 Replies

ActionScript 2.0 :: Dynamically Load Jpegs Completely Before The Movie Starts Playing?

Jun 9, 2003

Basically my code at the beginning of the movie queries the server for the file names of jpeg files that are to be loaded into sequential frames. The reason is that the user can enter file names into a database and the application plays them back without the user having to do any flash programming. Currently, my code is using a preloader in each frame along with some additional code to center the picture etc.

This is fine *but* I need all of the jpegs to load before the movie starts, not when the play head gets to each frame. I can't have any delay from one frame to the next. Delay in the beginning of the movie is ok. Can anyone help me with a method to dynamically load these jpegs completely before the movie starts playing?...once loaded they must be available for any frame to call immediately.

View 5 Replies

Flex :: Load Different Menubars For PC Vs Mac Users?

Jan 7, 2011

Each entry in the menubar for my app contains a shortcut key suggestion (e.g. Undo (CTRL+Z)). Is there an easy way to dynamically customize the suggestion string depending on whether the app is being used on a pc or on a mac?

View 1 Replies

ActionScript :: Html - Xml - Don't Load HTML Resources With HTMLLoader

Sep 11, 2011

I'm currently downloading website via an ActionScript HTMLLoader to later have access to the DOM to get some information out of the page. The problem is: each resource that is linked on the page (images, stylesheets, javascript) is also loaded which takes some additional time. I don't really need those resources, because only the plain HTML/DOM is interesting. Is there any way to disable loading of linked resources? At first I tried using an URLLoader and parse the result as XML, but when the website isn't valid this doesn't work. I also didn't find a library that validates/parses a given HTML-string into valid XML.

View 1 Replies

How To Perform Load / Stress Testing For Flash Game

Nov 16, 2011

I am facing some issues in load/stress testing of Flash based on line game. How can I perform Load/Stress testing for a flash game (it may be off line or on line)? Would you recommend any automated tool for testing a flash game? Where I can create virtual users and define some predefine scenarios?

View 1 Replies

ActionScript 3.0 :: Adding Game To Flash File - Load Assets And XML

Feb 29, 2012

I am trying to add games to a Flash file. They are in different folders and the assest and xml information is not coming with it? I get the error :
"[BulkLoader] Error loading LoadingItem url: images/, type:text,
status: error Error #2032: Stream Error. URL:
file:///G|/%2D%2DWORK%2D%2D/Gilcrease%20Projects/Kravis/images/
Here are the files I need to load into the main file.

View 11 Replies

ActionScript :: Javascript - Load Video From Users Hard Drives Without Server?

Nov 3, 2009

I need to play on my .swf a movie (h264) from the users' hard drive.Unfortunately the as3 components only read from URLs or streams, and you can't set the data or load from your c:/ path as the security sandbox stops you. Here is what each component loads:

Video >> netStream
VideoDisplay >> URL
VideoPlayer >> URL

I tried attaching a fileReference.data (byteArray) to all of them but nothing seems to work.my question: Is there a way of doing this without actually uploading the videos (h254) to the server?I have read that it is possible to do a javascript that can upload the data to it and then pass it to the netstream but I can't figure out how to do it myself.

View 4 Replies

ActionScript 3.0 :: Flash CS4 (player 10) Resources

May 28, 2008

The new Flash 10 player was released. [URL] To get things running you currently need to use the Flex3 sdk. More details are described here: [URL] Click the link on my footer.

View 16 Replies

Flash :: Drupal Path To Resources?

Aug 27, 2010

I have the following javascript to embed a flash in my page.tpl.php

<script type="text/javascript">
<!--
var flashvars = {
xmlUrl: "xml/banner.xml" //Use to change XML filename or location
};

[Code]...

View 2 Replies

AS3 :: Flash - Obscuring The Loaded Resources?

Sep 11, 2010

This is sort of a two part question. I'm building a flash image viewer to be a portable age-restricted module (violent video games). Basically, it will load any number of images from a CDN and require the user to enter their birthday before viewing it. Simple stuff. The problem is that, per company policy, we can't allow those images to be directly accessible by any means of sniffing (eg, watching your Resources/Net tab in Webkit/Firebug, or watching XHR if we loaded them that way). So, I'd like to get your opinions about the best way to approach this.

At first I thought to have a server-side script that loads the image (eg via PHP) by passing a var that can be decrypted but with a dynamic salt, eg, using a method that is very unlikely to be discovered (for example, having the salt be embedded throughout the string), but that defeats the purpose of the CDN as all requests would be geolocated to the server.

Then I thought that loading the images via sockets would be a good solution, however, I'm having trouble converting the binary image (after removing the response headers) to a Bitmap.Is there a better way to go about this? I know that realistically it's impossible to completely prevent the content from being linked to (eg someone could screenshot the flash) but my goal is just to take steps on our side to prevent that from happening by native means. Below is the socket code (irrelevant parts removed), if that helps any.

package com.std.socket {
import flash.system.Security;
import flash.net.Socket;
import flash.events.*;

[code]....

As I'm writing I'm thinking that in SocketRequest::evt_socketResponse(), the this.sock.readUTFBytes() bit should really be:

this.request.response_parts.push(this.sock.readBytes(this.data, this.data.length, evt.bytesLoaded));

and then remove the headers from this.data, but TBH I'm not super ByteArray-savvy.

View 1 Replies

Flash :: Publish External Resources With SWF In AS3

Jan 16, 2011

Is there a way to load graphics externally when in development but package the graphics into the project's swf when it is published?

View 1 Replies

Flash :: Replace SWF Resources Without Having To Decompile?

Sep 23, 2011

I want to replace an image inside of a SWF File without the need to decompile it.

View 1 Replies

Adobe - Limit CPU Resources / Shockwave Flash

Sep 14, 2010

Can I set a maximum percentage of CPU resources a specific program or process can use? I want to use the executable name instead of its pid, because I would like certain executables to always run with constrained resources.

The reason I ask for that is that I am bored of the way Shockwave Flash behaves. It is not possible that to draw a few stupid things in my browser it takes 50%, 80%, 99% of my dual core CPU!

MacBook Pro 2009 -
MacOS X 10.6.4 -
Chrome 6.0 -
Firefox

P.S.: Now, when my fan starts running I now the reason and I know how to temporarily fix it: I kill Shockwave Flash and everything is back as normal.

View 1 Replies

ActionScript 2.0 :: Resources For Cool Flash Websites?

May 21, 2010

Can anyone recommend some good flash website resource sites like [url].....

View 0 Replies

ActionScript 2.0 :: Math And Programming In Flash - Resources?

Jan 2, 2008

I was just wondering if there are any good books/resources out there that helped someone out that is pretty terrible when it comes to Math when programming in actionscript, or I guess programming in general. I guess I'm after some sort of resource where it had basic problems which would involve a bit of math, then went through the problem in a detailed way solving the problem but at the same time explained what was going on so I would learn the math and also solve the problem using code.

I don't want to just be told how to do it with a bunch of code I don't understand. Really hoping there is some awesome book out there called '101 guide to maths in programming' or something like this, (hopefully more geared towards flash/actioncsript)

View 2 Replies

Professional :: Good Resources For Making Flash Games?

Apr 4, 2010

What I'm wondering though is, are there any good resources out there for making games in Flash CS4.  I know I'm going to get some "learn the basics first" replies, and yes I know I need to get a solid grounding in those, but I want to be able to start gathering resources, and look ahead to what I'll be able to do with Flash in the future.  By resources I mean books, other websites, your own advice about game making, etc...

View 1 Replies

Xml :: Enter List Of Website Resources And Output A Doc For Flash Use

Nov 2, 2009

I've got to construct a basic xml file listing website assets (pictures and text strings) that a flash photo gallery references.

I'm using a Mac and OpenOffice. I've got Dreamweaver, dashcode, and a couple of open source IDE's. I'm not a programmer, so scripting gets a little difficult.

I'm hand typing the file right now, but the task is very slow because of the number and order of the "fields" and values for each record in the xml.

Is it possible to set up a spreadsheet of the data and then parse an xml file from that? I've got to follow this format for each record:

<photo imageurl="url" linklabel="text"linkurl="url" showFlipButton="true"><title>text</title><description>text</description></photo>

View 1 Replies

ActionScript 3.0 :: Loading Thumbnails Using Search Box - Flash Resources

Aug 5, 2009

Any way to dynamically see how much memory the Flash player is taking up? I am loading in hundreds of thumbnails using a search box, and I want to make sure assets are off-loading properly. Also, the thumbnails are being loaded in one at a time in a for-loop. The thumbnail addresses are being received via an XML page. When I load them through the for-loop, some of the thumbnails never load. Most of them do, but I find spots where they don't. Most important question is about the flash resource manager! Is there one?

View 12 Replies

Flex :: PlayBook - Create A File Browser To Allow Users To Load Images From The Local System Into The Application

Mar 24, 2011

I'm developing an application for the Blackberry Playbook using Flash Burrito 4.5 and Flex. I'd like to create a file browser to allow users to load images from the local system into the application. I followed this example [URL] When I click on the Load Image button in the simulator however, the file browser pops up but tells me that "no file was found with the specified filter", even though I don't specify any filter or even if I specify a . filter.

View 2 Replies

Actionscript 3 :: Resources For Learning Event Driven Flash Development?

Feb 20, 2010

What are good books / site where you can learn the best practices for event driven programming in actionscript (3 obviously).

I've got a big project coming up and, to be honest, my flash is usually a big mess of classes and I don't want the the next one to turn into a ball of hair behemoth.

View 2 Replies







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