We've been trying every trick to fix a problem with long lag time in video startup in some environments. In particular, there's a long time gap between the time the custom .swf skin appears and the video starts to play. Only some combinations of OS for the FMS server and client browser shows the problem, but for those combinations it is consistent and appears to be a constant of approximately 59 seconds, regardless of the length of .mp4 or number of times played in our custom .swf. (Our .swf accepts a supplied file location for the .mp4 to stream.)
On our main server (Win2008R2), we run a virtual machine that has Win2008R2 installed. If you click on the video URL from a Mac Safari browser on MacBookPro, the load is FAST (a few seconds). On the other hand if you click from IE on any Windows machine (VM or native, Win7 or WinX), the load is SLOW (one minute). If you try locally on the server virtual machine with the FMS and web server (IIS) installed, the load is also SLOW. The reference flash video (i.e. NOT through our .swf) loads FAST. [code]...
My flex application has a very bad load time (approx 5 to 8 wasted seconds) but only for FF and IE, Chrome appears fine.I've determined there is some kind of useless idle time before the application's initalization event fires. This is not just my development box, it happens everywhere. It is consistent across Flash version, OS and browser versions too. I've tried multiple. Chrome consistenly works very fast, IE and FF have this strange lag.However locally, whether via localhost or remote IP, it doesn't have this issue. I'm sure you'll think it is the download time, but my SWF is very small (400K) and I've purposely made external images that are very small. I also prefetch the images via JavaScript, and firebug reports the the cache is used later. The download size can't really justify the wait time. Not to mention, why is it so much faster in chrome? Is chrome really that fast downloading images and SWF files?
Also, minimal JavaScript is called from Flex, and I've more or less ruled out that is the issue.So it isn't Chrome's super fast handling of JavaScript.I don't see any large load times with Firebug.I see JavaScript excute in the browser inline during a page load, but then the appliation init within the SWF doesn't fire for about 5 to 8 seconds later.I don't see why flash on Chrome is so much faster, nor what could be taking so long for Flash to kick in.Tried the Flex Profiler, but memory usage spikes AFTER the bad load time.Otherwise, I don't know enough or see enough to recognize a problem with it.
Here's the problem: In some browsers, the navigation bar at the top works how I want it to. The "slider" moves over the various buttons rapidly. This is the case for Firefox and Safari on my PC. In others, namely Internet Explorer on my PC, or Firefox on my Mac, the "slider" moves much slower than I would like. Check it out. It might go fast for you, it might go slow.I've programmed before, in other languages, and I have found Flash to be challenging but not impossible. One thing you'll notice right away is that my code is very very messy. I haven't got all the efficient ways down pat just yet.At any rate, here's the entirety of the code involved:
Code: Select all////////////// BEGIN CODE //////////////////////// stop(); var mcButtons:MovieClip; var vLmc:URLRequest;[code]............
The sfw goes like lightening in explorar (yes) and in firefox and like a tortoise in chrome. Do I need to download a plugin for chrome or is there a problem with flash and chrome. It's important as I am about to release an important program in schools.
I have a fairly complex animation movie clip within my main timeline in a Flash file. When you click a button, it plays the movie clip, then goes back out to the main timeline. The first time the movie clip runs, it plays choppy and slow, but if I play it two or more times, it plays correctly (smoothly). Is there some actionscript I need to preload the movie clip, or some other solution to the first-run slowness?
I'm always checking this nice forum since I started to learn AS3 2 months ago It was always helpful and I learned a lot I'm making a simple game but I'm stuck I finished the game but at certain stage the SWF file become slow I don't know why
basically the AI players make their call/raise/fold decisions at the speed of light and I want to slow them down for a custom length of time before they act. Ideally what I would like is a prototype that I could call with a custom time length and it would count that long before executing their actions e.g.
I have a game loop written in Haxe/Flash. For some reason it slows down over time. At first it runs reasonably, but my laptop fan starts spinning up and it gets slower and slower. Why would this happen?
I have made a scene with a flv in it. The problem is that when I first run my scene the flv plays slow, then when I have played thru it and starts at the beginning again it plays in the speed I want it to. I would really like it to play in normal speed first time as well.
Calling RemoteObject service for creating new record. On success of method I am adding new record in existing list collection. Functionality is working fine however for subsequent calls of adding new record response time of the services is increasing. For first call it takes 3-4 seconds while for 5 on words it takes 10 secs and so on. If I remove addItem(obj) line in below code in green, response time is quiet stable 4-5 seconds.
My code is as below
for each (var item:Hierattrmetadatanode in arrHierarchyData) { //Add new Item if(item.hierattrmetadatanodeid ==
I inherited a flash website about a year ago.. not sure what version it was originally done in. I've made changes on the model last year using CS3 Flash Action script 2, but don't remember the flash version when published. The audio in question is the music that plays in the background when you get on the website:
[URL]
When I changed the image of the model this last week using CS4, I published it as Flash8 actionscript 2... now, the music plays on Mac Safari and Mac Firefox, but not on the Windows versions of IE or Firefox..
this is the code called sound control
onClipEvent(load) { _root.soundstatus="on"; _root.mySound = new Sound(_level0);
[Code]....
then there's the stop() that's used when the music is toggled off..
I've tried updating the flash player in Windows to the latest release, and I even tried republishing as flash 10, just not sure where to troubleshoot this..
i have a site developed in AS3 www.macweb.com.br and the link Portfolio load data from a XML file.
Some people that uses Windows XP 64 Bit with Internet Explorer 8 and Flash Player 10.0.45.2 (and others IE with Flash Player version as mentioned) are reporting that the Portfolio Icons and informations are not show.
I have tested this behave with my browsers IE 8 (on Win XP 32), Chrome, FireFox, Safari and Opera and the problem dont occur to me, so i need some light to look for the problem, if it is in my Flash file.
i hv made a game i split them in two files 1 file is index which have preloader and other is game which have game... problem is, some mozilla browsers can't load the game swf...l
I'm busy creating a mp3 player (for a music store). Everything works perfectly. Some of the files will be redirected to the original source (located on other server) when Flash wants to load the stream. In all major browsers this works perfectly except Webkit browsers such as Chrome and Safari. I have tried to send a "Moved Permanently" 301 header as well as a normal redirect but does not work. Also when i try to download it from the address bar nothing happen (in other browsers i get a popup to download the stream).
My problem is this: I built a Flash website, but it is painfully slow to load up (3-5 minutes) when I visit the site (via Firefox, etc). Once it does load up, everything is fine with navigation, etc. I'm having a hard time figuring out why its taking so long to load up on the web because, basically, I don't know how to trouble shoot.Details: the site is just a portfolio site with pictures and a few motion-things, no complicated animations. The swf file is about 9MB. I do have a flash preloader, but it doesn't show up until after the 3-5 minute "load-up" time. When I do the testing via Flash, its Ok and doesn't show the lag. But once I upload the website files and try to visit my website, the load time problem occurs.My thoughts: do I have to purge my Flash file/library of unused images before creating my swf file? Is there a problem with my html code in my index fil Just in case, here is the html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
I was just wondering if anyone could help me to figure this out - I'm afraid I'm really not sure what the problem is so I'll try to be as specific as I can, if you need me to provide any extra info then just ask.Basically I have a fla file -the menu of my game- that loads external swf files (the various game modes) when the user clicks a button. I can get everything loaded in fine, but it runs at a snails pace and occassionally generates errors (mainly caused by the game mode calling removeChild()) that don't happen when the 'game modes' are run as stand-alone swf files.
Does anyone have any idea what could be causing this? I remove almost all listeners from the menu before I run the game modes, so there's almost nothing that could be using up processor power that's needed for the game - it's a pretty basic game anyway so it shouldn't be processor-intensive to my computer anyway. I've spotted a few other topics similar to this, but they're either not answered or the solution doesn't fit what I'm trying to do.
I only changed the size from 34 x 34 to 10 x 10. Everything else remained the same. I'm not sure if this is supposed to happen, but it literally takes almost a minute to load/publish preview. One other thing. I have it on the very first layer. I have some simple text on top and it doesn't show. My expertiese in AS is vast. I know enought AS to make a button.
I am working on this website and I decided to add some flash to the front page in the form of a little image gallery with a nifty slide effect. The problem is this. For some reason its squishing my images. When you look in the scripting you will see that I've set the image width to the full width of the stage, but when you test the movie they are getting squished to about 3/4th's the width of the stage (ive double checked the image size as well).
Observe the Flex program below (I'm using Flex Builder 3 w/ 3.5 SDK). The second combobox is conditional on the first. If a 'first name' is chosen, then you are allowed to choose a 'last name'. If 'none' is chosen, then you are not allowed to choose a last name, but rather prompted to choose a first name.
To see the mysterious issue of the disappearing labels, run this program and choose a first name. Then choose a last name. All is well. Then choose 'none' in the first combobox. The prompt of the second combobox changes back, and the last names are removed. All is still well. Then try selecting a first and last name again. You will see that after choosing a first name, the last names do not appear, although the spaces for them do (and if you debug the program, the correct data appears in the dataprovider).[code]...
I am implementing a charting tool for my project, which is very similar to Google's finance chart but much more tailored-made to meet different requirements. The charting interface is made up of the following core components:
Time selection panel: to change the time span of the chartMeasurement points panel: to select different points of measurementChart area: to display the measurement data of the selected measurement points over the selected time span
For example, the Apartment's power administrator can view the total power consumption in Unit 101 of Building A, in the Pacific Apartment's complex (a made-up name). Similarly, the administrator can also "stack" up charts of multiple measurement points, having an all-in-one view like below:
Only the chart is implemented in Flash/AS3, the other panels are JSP, JavaScript and Dojo. When an user clicks on a measurement point to add a chart to the chart area, the following things happen in order (briefly):
User clicks on a link (say, Total Amps)Dojo event listener attached to the link picks up the mouse click eventThe Dojo event listener calls an AS3 method (addChart) through the External Interface to add a chart to the Flash chart:The Flash chart picks up the method call, adds a chart to the stage and reposition all charts on the stage. Since the stage height is fixed at 600 pixels, each chart added will be fitted into the 600 pixels. Eg, 1 chart on the stage = 600 px/chart, 2 charts = 300 px/chart, 3 charts = 200 px/chart...etc.This is what the Flash chart looks like, when 3 charts have been added, before display the chart on the actually page (see below) Once a chart has been successfully added to the stage, Dojo will stretch the <div> tag that the chart resides so that each chart still "looks" like 400 pixels tall. For example, 3 charts on the stage means each chart is 200 pixels tall, but Dojo will stretch the entire <div> to 1200 pixels, making each chart look like 400 pixelsThe above step is the same concept as resizing the stage When an user adds more than 7 charts, the 8th chart will start have Flash contents disappeared. To be exact, I used firebug to increment the <div> height, and found that when height exceed 2924 (a magic number) pixels, Flash contents start to disappear. See below (the red-boxes indicate the missing contents)The situation gets worse when continue to add charts, eventually half of the bottom chart will disappear.
Some pre-work I have done:I have unit tested this component in standalone Flash movie, with 3 LCD monitors totalling 4000 pixels in height. I produced 10 charts in a single flash movie, and then resized the window from 600px to 4000px, no charts disappear. This happens in all of IE7, IE8, FF3+, and Chrome. Although slightly different manifestation, but they all have contents mysteriously disappeared. This also happens to GOOGLE's finance chart, when you enlarge the chart's <div> to over 10000 pxs (yet another magic number) The funny thing is, however, when a graph has been cut in half, the visible half is still operatable. For example, if the zoom window as been cut in half, I can still move it, zoom in and zoom out.
I have a dynamic text box and 5 MCs that trigger eachother in turn. The end of MC1 would then trigger the start of MC2 so they go round in a loop. Each image fade tells a dynamic text box to say something different about that image.But one bit of text causes the text box to stay STUCK and display only that text from then on. It got so frustrating that I had to create a fresh dynamic text box for each corresponding MC... but then I realised that when we finally loop back from MC5 to MC1, it wants to again display the stuck text!Get file here.Stuck text is "Monitoring Migration Routes and Settlements" - notice it when the whole movie loops back to the start.I made a little green box appear just to prove that the offending MC had actually stopped and wasn't looping somehow.
I'm developing a little site for a friend. Though the filesize is v. small and it seems to load quickly, there is a delay playing. There are many objects duplicated in AS so undoubtedly this is the problem, but is there any way of initializing them so that the delay is slower? I'm using flash cs3.
How to remove a carriage return that's inserted mysteriously by flash. I have a text input box and it auto adds a enter key press carriage return. <IMAGE Names="Josh ">My imputed text</IMAGE></GALLERY> %20Names%3D%22Josh%26%23xD%3B%22%3EMy imputed text%3C%2F This is the mess of crap its auto inserting %26%23xD%3B%22%3E
The problem is: When I press my buttons twice, the text in the scroller disappears.Everything is set so that It shouldnt be possible to press the same button twice though.The situation in short is as follows. I have 4 scenes and 4 buttons, every button linking to respectively another scene / page. The buttons all are in movieclips. I have 4 different movieclips all containing all buttons. For the page movieclip the-button in the movieclip getsœswitched o by ungrouping it and so on, and so on.On every scene I put the movieclip, with the correct button switched of, on top, with thenction. The other movieclips are made invisible by the visible = true˜delete this.onEnterFrame; function.Im not a develloper but a graphic designer. Dont know much about AS2. I bought the photoslider and textscroller on FlashDen and thought d finnish of this project pretty quickly, but I thinking m almost there" for already many hours now.
Does anyone know of a way to track the load time of an XML document? I have an xml document that has over 150,000 lines and it takes a little time to load. I am ok with the load time in general however I would like to create a preloader to tack its process.
I have tried putting the xml load/onLoad code in a movie clip and use getBytesTotal and getBytesLoaded to track the mc progress but it seems as though when that mc is loaded the application freezes until the xml is fully loaded.
I have a Flash 8 a/s2 site but I feel the load time when a visitor visits the site is too long. The site does have music, pictures and videos but they are all loading externally.
Is there a way I can reduce the load time of the SWF?