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
I'm developing a flash game in cs5 and it works fine on the offline player. When running in browsers, they crash. The game is has a multifile loader and basically when all the files are almost loaded, the browser crashes. At first, it was only working on IE. Then i made some modifications and it was only working on FF 5.0.1. It never run on chrome or safari. On another computer with IE8, and finally, the flash gave me a stack trace: Stack trace from IE Then I got some stack traces on FF and I managed to change some class names and another minor stuff and it worked on FF perfectly. But not on IE or chrome. So I downloaded and installed the debugger version of flash player 10.3, but now on FF it finishes loading and then I get a crash message ( :( )from ff.
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];
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.
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?
The so-called "programmer" who bailed on this project obviously was not web savvy and did so many stupid things, this is just the latest thing I need to fix. The site owner is an artist & author. Luckily I like her work as otherwise the number of hours I have in this would amount to an astronomical bill.
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.
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)
My loader component works when I publish to Flash Player 7 but not when I publish to Flash Player 8, why? The publish setting are for ActionScript 2.0 on both.
I have a flash file with frame labels, home, profile, contact.it also has 4 separate photogalleries, gal1, gal2, gal3, gal4 also in frame labels. the galleries are all separate swf files. I used the UI loader and added gal1.swf and 3 more separate loaders for the rest of the galleries. What happens is after you select the first gallery the mouse becomes invisible because the loader is still on the stage. How do I remove the loader from the stage each time I use a button?
[code]I've marked two locations where this fails in the function pause(). I'm new to Flex/Actionscript/Flash. From what the error says, I assume that from the function, I cannot clea/remove the child loader, because it has a different parent. If I am correct with that, how do I know what the parent is?[code]
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.
var loader:Loader = new Loader();loader.load(new URLRequest("gallery.swf"));loader.x = 20;loader.y = 75; gallery_btn.addEventListener(MouseEvent.CLICK,addGallery); function addGallery(event:MouseEvent):void { addChild(loader);}
Fine up to here. I need to remove the loader when another button is clicked because the loader remains on stage.
I tried the code below (just used on 1 button for now but I have 5)
I have bought a flash template in which I want to incorporate into another movie but I need to remove the preloader and button control. So in other words as soon as I preview it, it should play automatically without first seeing a preloader or having to click on a button to play the movie.
My problems comes in when you have to open a different image album and have to eliminate all the previously loaded children in the movieclip. When i load a new album i used a code you posted here: AS3 How to remove previous loadersbut the problem is that sometimes the user leaves the album page before ALL the pics laod so when they click on a new album to open it a new image is placed somewhere else cause the loader has already been launched. I've tryd to close() the loader but it doesn't seem to work.Here you can see the working site to see what im talking abouy you have to click on an album, leave before all the pictures load and open up another one.
getImage(dataList[0].file) function getImage(href:String):void { var loader:Loader = new Loader();
i successfully managed to work out the loader script, and load a external swf file into my current project. Now that its working and all is well, i realised that only way to get back to 'main menu' was to close the whole thing. I tried to sort it out with a simple 'back' button but no success there. As mentioned in the title thats the options i found so far but cant seem to quite understand them tbh. I just want it to work so that I easily can manouvre back to 'main menu'.
This is the code i used in a gallery that loads images sequentally. My problems comes in when you have to open a different image album and have to eliminate all the previously loaded children in the movieclip. The problem is that sometimes the user leaves the album page before ALL the pics laod so when they click on a new album to open it a new image is placed somewhere else cause the loader has already been launched. I've tryd to close() the loader but it doesn't seem to work. Here you can see the working site www.barbarabritvin.com (to see what im talking about you have to click on an album, leave before all the pictures load and open up another one.
getImage(dataList[0].file) function getImage(href:String):void { var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, imageReady);
Using ActionScript can I do with my game, which is running in a browser, verify that the user already has the files needed to run the game installed on your computer? If he had these files do not need anything else that was born and can play the game immediately. If he did not have the files, they would be loaded so that the browser does not erase these files. So when he returned to play the same game day after,as the files already on your computer, nothing need be loaded.How do I remove one of the main memory image that was loaded using the Loader class? I tried using the unload () method but nothing happened.
Yes I know this topic has been discussed before, and I know that Senocular has a class that does it. But the question is...
1) Why did Adobe remove duplicateMovieClip();?
2) Did they intend to have any similar function? Or did they totally forget about external assets?
3) Is there a "Adobe reccomended" code that will do the same thing? (Not that I've got anything against Senocular :bow : but it'll be nice to know if there's a "certified" way of doing it.
Id like some help creating a file that will load separate SWF files that I have created for my website. So far I have created the first SWF file which includes an animated intro, functions (mainly enlarge thumbnail images and buttons for more info), and an outro (again animated out of stage).
What Id like to create is a parent file that loads SWF1, then when its loaded SWF2 is loaded ready to be told to play via a next button or after a period of time the SWF file is automatically loaded (which would require the outro of SWF1 to be played then the intro of SWF2 following straight after.
Iļæ½ve had little experience with action script, the last time I used tried this was in AS2 and I found that difficult enough but AS3 has me stumped (though its becoming more familiar)
this is so embaresing and my whole business is suffering from this[URL].. the key point in my TextArea class which extends TextField is to load external swf files and I use the .parent property of the Loader class to access the textfield... with the new security updates coming with 11.2 I cannot access the parent and the whole thing crashes to give you more insight:
imagine that we have file.swf being loaded into the project using the flash.display.Loader class. from the document class of file.swf, I can access the loader like this, all ok till here _loader = this.parent as Loader
[Code]...
every day that one of my clients updates their player to the new version, their website fails. I need to fix this a.s.a.p.
I have a music player and because of my fast connection I cannot test if the pre-loader and or bar works. Also no matter what I do I can't get the second track to play.
I am working on a webpage where i have to include an embedded video.The video is hosted on some other domain.I am able to embed the video and autoplay once the web page is loaded.However i have a requirement where i have to remove the div displaying the video once it is played , and in place of the video i have to now display some text.
The problem is i am able to do autoplay by the autostart variable in the embed tag...but how do i know that the video has ended.The hosting company only provides an embed tag and they donot have any player apis to use.
One way (or rather a workaround) that i feel is to start a eventlistener in the background and see for the total time of the video and when that time is reached remove the content.But the problem is what if the user pauses the video, then also the div would be deleted.
I'm embedding a video of YouTube by using their chromeless player, stretched and fit to all screen. the player includes by default their logo and it looks so huge so it ruins the graphic.in youtube site, they offer you to replace the original logo with new one - "Powered by Youtube", but they don't explain how to remove the original first.[code]...
I've created a startup screen for a CD and have published it to exe format. When it plays from the CD however, it opens in a Flash Player 10 window. I am wanting to create a standalone splash screen without the Flash Player bar along the top.