ActionScript 3.0 :: Flash Hangs While Loading Xml?
Oct 8, 2010
I have a xml file with size of 550kb. when I load it in the simplest way flash player hangs, while it is loading, than it runs normally here is the code
var loader:URLLoader = new URLLoader();var req:URLRequest = new URLRequest();
but.addEventListener(MouseEvent.CLICK, onClick);
function onClick(e:MouseEvent):void{ loader.addEventListener(Event.COMPLETE, onXmlLoad) loader.load(req);}
function onXmlLoad(e:Event):void{ trace(e.target.data)}
ive created an animation sequence in flash but for some reason everytime i drag across frame 426 it hangs and i see the rainbow circle thing. the animation includes graphic symbols of charecters. im pretty sure it has to do with a certan symbol that has a lot of keyframes on motion tweens. is there anything i can do to clean it up?
I have a flash program in a web page that tries to post a picture to a web page. When the user clicks a button the web browser starts to navigate to the new page then seems to hang (I can see it starts to go to the page by reading the transferring data from message in Firefox status bar)
This also seems to work in debug version but not the exported version.
Flash code:
var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream"); var jpgURLRequest:URLRequest = new URLRequest("http://myurl.com
I have made custom mouse cursor (movie clip) everything works fine, default cursor is hidden, mc is following pointer, problem is- when flash is inactive custom cursor hangs in upper left corner of flash, I want to make it dissapear untill the moment you enter flash file. That would work like this: I am opening my web page, flash is loaded but custom cursor is hidden, I am moving my mouse into zone of flash -custom cursor appears on screen and follows mouse pointer.
I am using a while() loop which does its job as soon as I fetch CDATA content from XML. The while() loop basically contains text conversions using replaceText()... Depending on the number of user defined XML nodes, the while loop executes. I see that the flash application hangs for 3 or 4 seconds when this execution happens.
anyone can offer me a way of housing an XML return in a seperate object, so that the flash movie in question doesn't hang around waiting for the feed to come back.The problem is we have an asp app which is returning the status of about 1000 citrix terminals at once.... while this only takes 10-15 seconds to return, any kind of animated loader i build into the movie, stops playing while flash holds on the XML return, as the http response status never responds dead, but says "waiting" instead.Any kind of way of adding the XML load script as an object listener maybe...?
Im using mxmlc to compile as3 on ubuntu linux. I've donwloaded flex4_b2_100509, just to use the most recent stuff...so Im typing 'mxmlc file.as' but it just hangs on me... it doesnt return anything. I checked running processes ('ps -e') and its showing both mxmlc and java as running, which tells me the compiler started. after a while the shell reports a 'segmentation fault'l.
I have a 1mb fla which publishes a 240kb swf when I save the fla and either test movie or publish it takes about 1 to 1 1/2 minutes to publish. I publish other fla's with swf's of up to 650kb in 3 seconds.
A SWF (published as AS2 for player version 9) sits on a page called home.aspx with other textual content. The SWF is a wrapper that loads in various other SWFs based on flash cookie data. Here is the problem: In I.E. (and not Firefox), sometimes the wrapper SWF hangs and fails to load the external SWFs.
The only time this happens is when returning back to this home page via another link that ends in a hash mark (home.aspx#) or to (default.aspx) which is supposed to act the same as home.aspx Also, this doesn't happen every time. Only sometimes. Anyone have any clues? I'd love to provide a link but this is on a beta server at the moment and I don't think I'm allowed to.
I'm trying to export a Flash movie to Quicktime. The movie is not very large - the SWF file is about 1700 KB. When the export program runs it shows a progress bar recording Flash content. The green bar goes to the end and then gets hung up and never finishes (at least after a half hour wait). I have installed the latest Quicktime codec with Quicktime 7 player.
I made the following animated men[url].. I got it to work after allot of effort and some help of forum members. But now I have one last problem.
When you move fast in and out with your mouse over the blocks, the mouseOut actions aren't played and the animation hangs. Resulting in a mashup of the animation.[code]...
I'm creating a video site using the flvPlayback component and telling it which video to play based on flashvars. So far everything is working well in all the browsers I've tried except Firefox on the PC. In FF/PC it hangs on the first frame of the video while showing the buffering indicator.
I have been experiencing a somewhat random inability of my player to load on a Macintosh. It doesn't happen everytime, maybe 2 out of 10 times. This does not happen on a Pc. My flash file is actionscript 2.0, and I have enabled hardware acceleration. This issue was happening before I enabled the hardware acceleration. Here is the player I am talking about:[URL]
We currenlty don't have the password for the administration console, so I haven't been able to monitor it that way.
I'm loading flv file using Video and Netstream (trivial example from docs). On Flash player 10.1 everything works fine. On 10.0.2.54 everything stops on NetStream.Play.Start.
I have a preloader on my flash website, however when it runs for its first time, the preloader will sometimes hang at a random spot, say at 27% or 50%. To continue, the user must refresh, and that second time around the page will load fully. It does not do this for every first run, it seems to be pretty random, but once it has happened to someone and they refresh through it, it won't happen again. Here is the preloader code:. Note, "bar" is the instance name for the bar object on the stage to represent how much is loaded.
Code: stop(); import flash.net.URLRequest; import flash.ui.ContextMenu; var loaded:Number; var percent:Number; bar.addEventListener( Event.ENTER_FRAME, load_progress ); [Code] .....
I have a flash program written in Action Script 3. It worked fine on XP but I recently moved to windows 7 and now I have problems. It is a simple file upload program. In Windows 7 the progress moves really fast to 100% like it is reading a buffer and not what is being sent over the internet. Once it reaches 100%, the program hangs (sometimes hangs the browser) until the file has finished uploading. The program still works in XP so is this a known issue with Windows 7?
I found the elastic code I was looking for. But...When I'm on a button and move the mouse to the bottom (The mouse has left the .swf) my button hangs... [URL]
This is the code I use: onClipEvent (load) { this._y = 101; closedy = 101; openy = 52; movey = 0; [Code] .....
I have a preloader that works fine, but when I reload the Internet explorer page with F5, it hangs, it basically stays there... keeps looping, but does not move to next scene.If I close the IE window and relaunch or if I clear cache it works fien again.Thsi is the AS3 code I am using:
I've got a 'powerpoint style' slideshow built in Flash CS5, AS3, using the basic template (ie as on frame 1 root to advance frames on cursor keys). All works perfectly until I get to a MC which has the following script (snippets):
a datagrid which renders some items. clicking on an item would bring up a popup editor (as the item has lots of properties and may not be edited right in the datagrid).
the popup contains just a form and a [Bindable] reference to the item it edits (which is passed from itemClick handler of the datagrid). form's default values are taken by binding to corresponding item properties with {} notion, while form values are bound back to the item using mx:Binding tags.
and now the problem. when the popup is brought up for the first time, everything is fine. however, when after being closed the popup is brought up again by clicking on the same item, the browser hangs (afaik because of change watchers being endlessly fired resulting in stackoverflow or something similar).
we have same behaviour in Safari, IE and Chrome, so i guess it's not to do with something browser-related. removing either [Bindable] from the item reference in the popup or mx:Binding tags from editors suppresses the problem, but of course the editing no longer works.
I have a slide show that's about 800k and I'm trying to add a preloader. I tried 6 different preloaders today including a smart clip I downloaded from Macromedia. It seems that when I add a stop action after the preloader this hangs the entire movie. I've uploaded a working example of the slideshow without a preloader and a link to the fla of my NON-working attempt to apply the smart clip preloader here I think I'm just putting the stop action in the wrong place but I can't figure it out..
I have been encoding 1920x1080i mov files (h.264/aac) to 1280x720p (vp6/mp3) flvs.However, when I add older HD content into the AMC que, content with non-standard presets, the program hangs.I tried to import about 15 files last night and the program just sat there all night in a 'NOT RESPONDING' state.The video's have different audio and video settings and it's little difficult to pinpoint exactly what they were.Some are 1440x1080, some are 1280x900, some have PCM audio some of mp3.Now I temporarily resolved this issue by simply using cs4 master on my mac pro which worked great.However I have noticed a huge speed increase in CS5 64bit AMC.It takes 2-3 hours to encode 1 flash video on my mac pro (dual quad core xeon 2.9Ghz/32GB ram) with CS4.It takes ~20 minutes on my windows 7 station (single core 2 quad 3Ghz/8GB ram) with CS5.
If I drop a single file into the AMC CS5 que, regardless of the resolution, frame rate, or sound codec; it will import.If I then add another file with a different resolution AMC will hang and become non-responsive.It never crashed but I can't wait 12+ hours to see if it accepted a job or not.As I said before this problem was not observed on CS4 for mac it worked flawlessly, albeit a little slow.[code]
We are running RedHat Enterprise Linux 5.5. I am told by the Adobe support department that only version 5.2 is supported. However, I have let them know this is basically impossible to do. You can't download 5.2 anymore and if you keep your system patched and updated you have to follow the 5.x branch.
We purchased brand new HP hardware for this server. It is a HP DL380-G6 Dual-Quad-Core Intel(R) Xeon(R) CPU E5540 @ 2.53GHz with 8GB of RAM. The fix at the moment is to restart the FMS system and everything clears itself up for some random amount of time. This this problems happens again.
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?
How would you defer loading of other graphics on the page until after the images in a Flash gallery's images.xml file are finished loading?Is there any way to detect for this, or would I only be able to check if the flash swf object is finished loading? I'm pretty sure the swf object would be loaded/ready as with document.getElementById('flashobject').onload = function(){}; before the corresponding images have loaded though, instead of after.
I am loading images of different size and then images are scaled and border is drawn for each image as shown in below link,[URL]... I want that border of images to be of the same width and height and for that I need to find out the max width and height size image before loading all the images. Is there any way that I can know the width and height of an image before loading it completely?
I'm building a flash website which uses a google map for a contact section and another one generated via external class for a projects section (for each one of the projects available there will be generated a map and a marker).This website uses SWFAddress and each of the projects receive SWFAddress dynamicaly via xml, pulling in the name of the project.The problem is when I test the website localy, on Flash IDE both the maps are loaded fine, but once I try it online on a webserver just the map on contact section is being loaded.I've tried to use a different key for each other -the contact section map key based on an url.Does anyone know what the problem might be? Is it because I'm using 2 maps on the same website? Is it because the url generated by SWFAddress is too long (I tried to generate a key based on something like URL...
I try to load an swf in my flex 4 project using the following line of code: <mx:SWFLoader id="game_swf" source="demo.swf" complete="init()" /> the demo.swf file is another project i created using flex 4. the problem is that when i run the application i see only the loading bar of the demo.swf flash file and nothing else. if i try to load a different swf file (for a example a game i downloaded), it loads just fine.
I can't see how to do this because silverlight is compiled. I don't want to load a video, I want to load a component/object that will be instantiated at runtime. Flash can easily do this as movieclip is also an component/object.