ActionScript 2.0 :: Flash 8 : Script Crashes Flash Player?

Jan 15, 2009

In my "game", there are gray blocks and black blocks. The blocks are randomly placed on load (20% chance each spot will be a black, 80% of gray), and the "player", begins at (0,0).

I created two functions on the player movie clip. One, called hitTry, tests to see if the given values for a clip (x, y, width, height) will touch the given values of another clip (x, y, width, height). The other, called movePlayer, is meant to take in a variable (direct) that is the direction the player is attempting to move. Once it takes that in, it calculates the (x, y) that the player would have should he move in that direction, and plugs it in to hitTry to see if it would hit anything.

The only reason I can see for it crashing is that I use a for loop that runs the test function for each black block, testing the player's values against the values of ever black block in the game. I cannot, however, find any other way to do this.

I'm going to add the fla to the thread, seeing as it is nothing but a pet project anyways. I still would like to know the solution very much and am quite urgent about it.

P.S. I create a duplicate of the original "player" movie clip because I had problems getting the original movie clip to show over the duplicated squares. Anybody know why duplicated clips always go to the front?

P.S.2. The code for "spawning" the player and squares is in a red square out of the document boundaries called "handler". The control for the squares are also off screen, all to the left. The code for the player is in the original player movie clip, the blue circle near the other movie clips off screen.

View 2 Replies


Similar Posts:


Firefox - Flash Player Debugger Plugin Crashes On Mac OS

Jun 9, 2010

I recently started using Mac OS X for a flex/actionscript project and having a problem with flash player debugger plugin for the browsers:

OSX: 10.6.3 Browsers I tried: firefox, safari and chrome Flashplayer debug "Flash Player 10 Plugin content debugger (Intel-based Macs)

Whenever I open a page containing a flash content, my browser crashes due to flash player plugin's crash.

I checked the version of my flash player debug plugin with [URL]

and as the version checker is written in flash, my browser crashes a few seconds later.

I am using version 10,0,42,2 (debug edition: yes)

This is what I see in the crash log:

Process: WebKitPluginHost [338]
Path: /System/Library/Frameworks/WebKit.framework/WebKitPluginHost.app/Contents/MacOS/WebKitPluginHost

[Code].....

View 1 Replies

Memory - Flash Player Crashes While Looping Over Movies?

Feb 18, 2011

I'm trying to realize kind of a slideshow in flash, which loops over about 100 h.264 encoded movies. I'm using the NetConnection and NetStream classes for connecting to the files locally on my harddisk (see code below).

private function playMovie():void
{
var currentMovie:String = movies[index];

[code].....

View 1 Replies

Actionscript 3.0 :: Flash Player Crashes When Testing My Movie

Oct 8, 2010

I'm working on a rather simple game and learning AS3 as I go along. I've come a pretty long way so far but now after adding some lines of code and changing a few - when testing my movie, Flash player starts and almost immediately crashes. I've went over the code I wrote, but all seems fine. Yet, being a complete newbie at AS3 and programming in general, it is very possible I'm missing the culprit.

View 4 Replies

ActionScript 3.0 :: JS ExternalInterface Calls Crashes Flash Player

Jun 11, 2009

We build a flash application in ActionScrip 3 which provides JS external interface calls. We load another swf on our swf. If we don't enable external swf, any JS calls through external interface works fine. However, if external swf is active, at some points when there is any JS calls through external interface, Flash player plugin crashes which also bring down the whole browser, I see that on IE and FF.

what may cause external interface call to crash Flash plugin?

View 3 Replies

Flash :: Professional - Player Eats Up Memory Until It Crashes - Can't Watch Full SWF

Mar 31, 2010

I have a 180mb SWF which is a lecture from one of my online classes, when i try to watch it i can watch about 20 minutes and then it will run out of memory. I watched in my task manager as Flash player went from only using 20mb to upwards of 500mb to 1000mb and it kept going up, it's like the more i watch it just keeps going up and up. Tried it on 3 different computers and still get the same problem, is there some reason this would be happening? Why does flash player eat up so much memory? I have Adobe Flash CS4 installed so it's playing through the player not a web browser or anything. (tried it in web browser and it does the same thing)

View 2 Replies

ActionScript 3.0 :: Player Crashes If Remove Unfinished Loader?

Dec 30, 2010

I'm making a website with different pages, one of which is an gallery. I load the images only when you go to the gallery page and I use BulkLoader for this. The problem is that if you switch the page while the loader is loading, the whole player crashes... I try to put the whole loading in try{}catch(){} block. I also added Event.REMOVED_FROM STAGE listener and tried to pauseAll() the bulkloader

View 1 Replies

Professional :: Full Screen Player Crashes/Quits In Win Server 2003

Jan 15, 2010

I have an application that runs as a projector and is meant to run full screen in a kiosk. However, when the app is expanded to full screen it crashes and I get an error message of:

Faulting application test.exe, version 10.0.2.54, faulting module test.exe, version 10.0.2.54, fault address 0x0015187e. Event ID: 1000

If I run it in a web browser and try to go full screen the same thing happens. I've been all over the web and haven't found anything. Have uninstalled virus software thinking it might be a problem.

View 4 Replies

Data Integration :: Copy An Object From Freehand Into Flash, My Flash Crashes?

Jun 24, 2006

Using Flash 8 & Freehand 11

Whenever I try to copy an object from Freehand into flash,either with Copy&Paste or with Import, My Flash crashes (closes without any msg)

View 1 Replies

Professional :: Project Created In Flash CS3 & Flash CS5 Crashes Both Safari & Firefox

Jan 24, 2011

I have a user with a brand new image including Snow Leopard 10.6.6 and the Adobe CS5. When creating a project in Flash CS5 and then trying to view it in Safari & Firefox the plug-in crashes which then brings down the browser with it.I went and installed Flash CS3 (as this is what he is used to using) and the problem still persists.

View 1 Replies

Professional :: Flash CS5 Crashes With Flash Builder Opened?

Jan 3, 2011

I'm working on a Mac Pro with Mac Os 10.6.5 installed with the 64bits version.It was pretty good to see that Flash Builder can now work with Flash CS5. But if I don't work on Flash Builder or Flash CS5 for several minutes, Flash crashes everytime ! I have never worked once on the combo Flash CS5 / Flash builder 4 without having Flash crashing !It is very annoying, and a huge waste of time

View 1 Replies

Flash CS5.5 Crashes When Testing?

Dec 29, 2011

Flash CS5.5 crashes when testing this movie using CTRL-ENTER a few times. Sometimes, a message warning that the Java Virtual Machine is running out of memory appears. I would like to know whether it is the FLA or my Flash installation that is corrupt.

see the following FLA file. [URL]

View 3 Replies

Flash :: Cs3 Crashes When I Try To Publish

Jan 21, 2009

My flash cs3 is crashing every time I try to publish a file, why? I run vista business 32 bit I didn't have problems until today,using flash cs3 for the[code]...

View 9 Replies

Flash :: My Site Crashes IE

Jul 18, 2009

We created a flash site, which crashes on IE. It works fine on Firefox.The problem seems to happen when the swf tries to load some MP3 files, with 'Sound.loadSound' method.

View 7 Replies

Flash :: CS4 Crashes At Startup?

Jul 28, 2009

I have recently purchased CS4 Design Premium. The installation of all applications went fine (no error message) and all applications work perfect except Flash CS4. On startup I see shortly the stage screen and then the spinning beach ball. I tried uninstalling and reinstalling Flash only with no luck. I then uninstalled and reinstalled the complete Suite and still no luck. I work on a MacPro with 10.5.7. All other system requirements are fullfilled

View 3 Replies

Flash CS4 :: Crashes Every Time On A Mac?

Aug 4, 2009

I've been using Flash CS4 on my MAC running 10.5 for over 6 months with no issues.  But now when I open a fla file it opens but when I click anywhere it will crash within seconds.  I've restarted my computer and checked that my Flash App is up to date. 

View 1 Replies

IDE :: Flash Crashes When Opening Certain Fla's ?

May 1, 2009

just recently upgraded to Leopard. Flash now crashes when opening certain fla's (that worked fine before). The files sometimes open, but then crash the app when I select something on the stage. In these cases I can actually edit the actionscripts.I'm not sure if the crashes are related to Leopard; don't remember if I tried opening one of the problem files since upgrading.I'm on a MacBook Pro 17 2.33, 2gb ram.I repaired permissions (several times), ran various Onyx processes, zapped pram, removed all the prefs files I could find, and reinstalled the whole suite (CS3 Master suite). Bridge won't even open; it crashes on opening.

View 1 Replies

.Fla File Won't Open, Crashes Flash

Jun 16, 2000

I've got a 9MB fla file that suddenly doesn't open any more. When I try to open it, it crashes Flash. When I try to open it as a library, it crashes Flash. Someone told me a library object might be corrupted - not good, irreparable. I'm on a Mac and when I try opening the fla file it gives me an "error type 2 occurred." I imported the swf file into a new Flash file, but now it's just a one-layer straight-streaming movie with every frame a completely new, redrawn keyframe. Is there any way to resurrect the original fla file? I've got a Sunday deadline?

View 1 Replies

ActionScript 3.0 :: Flash Crashes On Publish

Aug 1, 2007

I am having a problem with Flash at work. Any time I try and publish a file, whether its a .swf, .exe, or whatever, Flash crashes and closes. I am running Windows Vista x32, and Flash CS3. Any file, as long as it is saved and publishing a copy of the file with the same name, does this. The only way I can get around it is publishing from an Untitled document that hasn't been saved yet....even then all I get is a preview, not an actual published file.

The files I am working with publish fine on other machines. I have contacted Adobe and all I got was "reinstall," and "run a clean install." I reinstalled 3 times, and have run CS3clean twice along with more reinstalls (once each using each separate level of cleaning.) None of it worked; I still get the same issue. Also, I cannot open the ActionScript tab without flash crashing; the only workaround is to open an untitled document, open the AS tab THERE, and THEN open an already existing document. From there though I can't check my syntax or auto-format.

View 16 Replies

CS4 :: Open FLA File - FLASH Crashes

Jun 23, 2009

I am just starting to learn how to use flash. I have made four diffrent fla files, but one of them is not working. Flash crashes when i try to open it, it worked last night. Is there any way to repair it or find out what i have done wrong. Dont want it to hapen again. There is no problem to run the swf file. I have uppdated flash to the latest version 10.0.2.

View 1 Replies

Image Sequence Crashes Flash?

Jun 13, 2011

I am using:

Win7 32bit
2GB RAM, Intel Core 2 Duo 2Ghz

Flash CS5

and I have this problem: i am currently trying to create a 720p movie consisting of 738 single JPG pictures; 6 frames/second. Each picture has 204 KB, all the pictures together add up to 226 MB.Yet still, Flash is crashing (due to memory overload?) once I have loaded like 100 pictures of my sequence... I loaded 90 pictures and tried exporting it as a small AVI-movie, but even that made Flash crash. I checked the Windows task manager, and I saw that even with only 90 pictures loaded, Flash already takes up 1,6 GB of my RAM.Is there a way making Flash save those pictures not on the memory, but on the disk, in a temporary folder or something? I wouldn't care if it takes way longer.

View 1 Replies

Professional :: Flash CS4 Crashes On Startup?

Jun 7, 2009

I've been running flash CS4 without error for a few months now, recently though whenever I close it I can't open it back up or I get this error:"The application Adobe Flash CS4 has unexpectedly quit.A crash report has been generated. To provide us with the best chance of fixing this problem, please select Continue to add a detailed description that includes the steps required to reproduce the crash.Recently I've been creating panel extensions and commands but deleting them from the directories to stop them loading didn't make any difference so i doubt it's that

View 9 Replies

Flash :: Cs4 Starts To Load Then Crashes

Sep 26, 2009

i convined by boss to splash out on flash cs4 for work to make the website. it worked fine for about a week. now, when i try to start it, it just starts to load then crashes. it looks as if it is going to load then doesn't. i have tried uninstalling, rebbotiong in safemode and using various registry programs and reinstalling

View 3 Replies

Flash :: Randomly Crashes While Working?

Nov 25, 2009

I am workijg on creating an animaton it is 300 mb in file size and i am running windows 7. i have also tryed working on windows xp and the same problem happens.
 
what happens is that i could be drawing or copying a layer that i need to work with and flash will think for a little bit and then crash says that an unexpected error has occured and all i get is an error excption. i am running CS4 on windows 7 with 5gb of ram.

View 4 Replies

Professional :: Flash Crashes On Open?

Jan 4, 2010

Since about 4 days ago, every time I open my Flash CS4 project file, Flash crashes.Besides reinstalling.

View 2 Replies

Flash :: CS4 On Snow Leopard Crashes?

Jan 19, 2010

I hate to start a new thread but I didn't see one pertaining to this issue. I hope I am not alone. I recently bought a new iMac and it came with Snow Leopard OS. I ported over my Web Premium Creative Suite and all of my applications work great except for Flash CS4. I open the app to the intro screen but as soon as I try to open an existing project file or even to create a new project file, the app crashes immediately. I tried calling Adobe Support but they only turn me away, saying I need to purchase a $175 Support Plan for help. I just want my Flash to open. The same app works fine on my Macbook Pro (running Leopard). It seems adobe should be willing to help seeing as how the specifications say it is supposed to be compatible with Snow Leopard.Anyway, I have tried installing all updates and Deactivating/Uninstalling and Reinstalling.

View 7 Replies

Professional :: Flash Crashes When Creating A New AS3 Doc

Jan 26, 2010

flash cs4 launches fine but crashes when starting a new action script 3 doc. (quits unexpectedly) it seems to work fine when i log on as a guest user but not as myself (admin). MACPRO desktop OS10.6.2 what can i try to aleavate this problem.

View 1 Replies

Flash :: Crashes After Changing Font

Feb 17, 2010

I experienced a very strange problem today. As I was working on my FLA file, I tried to paste some text into a static text field using CTRL+V (I am using Vista Home Premium). However, at the time the focus was on the font field in the property window instead of on the text field and all the text I wanted to paste replaced the font name. As I tried to open the font drop down list to select the correct font flash crashed.

Since then I have not being able to open any FLA files. Flash starts without a problem, but if I try to open any FLA file it crashes again. I also tried creating a new FLA file but without success. I copied the FLA in question to another machine and there the file opens without a problem, so the file itself is not corrupted.

View 4 Replies

Professional :: Flash - CS5 Crashes On Exit?

May 1, 2010

I have Adobe CS5 Master Collection trial installed on Windows XP Pro Service Pack 3, 32bit operating system.Every time I try to exit Flash CS5, no matter how (File/Exit, ALT+F4...) it crashes and won't close the window.While I work in Flash, open and close documents it works fine.

View 15 Replies

Flash :: CS4 Crashes As Soon As A New File Is Created?

May 6, 2010

or context:I just installed Snow Leopard on my Macbook Pro (2007 model) and thus just recently installed CS4 Design Premium Student Ed.

[Code]...

View 5 Replies







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