ActionScript 3.0 :: Performance Fine Tuning For Flash?
Dec 10, 2010
I am into an AS3 project where we have used strict OOP . We have around 2000 different controls(in different views) which can be classified into around 30 different types. Each of them have a base class and the rest are derived from them. Now we are reaching the finall stages of the project and we badly need some performance improvement.
We can broadly classify views into Single view(only one particular control is displayed) and group view(where 16 to 256 controls may be grouped). When dealing with these groups the performance comes down significantly that the knobs and faders jerk on moving. The single view knobs and the group view knobs logic is derived from the same base class..
Now i tried to listen to mouse move events at the stage level and on tracing the event target i found that all the objects are sending out mouse events.. Is there anyway to capture all the unwanted mouse events at the object level itself?
View 4 Replies
Similar Posts:
Aug 28, 2009
I'm wondering if there is (and I feel there HAS to be) a way to fine tune movements with the 3D rotation tool. Using the mouse works to an extent, but just like nudging movements with the arrow keys, it's sometimes impossible to get the placement I want with mouse dragging.
View 1 Replies
Aug 28, 2009
I'm wondering if there is (and I feel there HAS to be) a way to fine tune movements with the 3D rotation tool. Using the mouse works to an extent, but just like nudging movements with the arrow keys, it's sometimes impossible to get the placement I want with mouse dragging.I'm pretty new to using these tools so maybe it's super obvious and I'm missing it?
View 1 Replies
Oct 25, 2006
I'm using the stage object to align multiple MC's. My question is how do I affect a MC's position if I want to have it be centered on both axis but 100px away from the bottom margin instead of the top relative to the size of the window?here's my positioning code:
[AS]
navBar._y = Stage.height;
navBar._x = Stage.width/2;
tpShadow._x = Stage.width/2;
[code].....
Also if i'm using an empty MC to load external swf's, do the external swf's have to have AS for positioning as well or do I position the empty MC in the base movie?
View 1 Replies
Aug 7, 2011
sample Application, etc. .xml that would provide optimal tuning for many 4-way video chats?Using the "live" application out-of-the-box ended up in very significant delays (~7sec)
View 1 Replies
Sep 12, 2011
this is what i'm trying to accomplish; With a click on a movieclip (cannon_mc)a shot is being fired (ball_mc)
The longer mouse is down, the speed of wich the ball is fired with should increase.My question to you is;
What is the most efficient way to accomplish this? With a timer or something like this;
[Code]...
View 2 Replies
Jan 11, 2011
I'm devloping some library classes for flocking/steering behaviours on large numbers of objects (2000+). I'm finding that at < 500 instances, performance is reasonable. As the numbers increase, framerate bogs down.
I've seen remarkable performance with libraries such as Flint or Box2D with ridiculous #'s of particles / objects, so it should be possible to optimize / refactor my code to be a bit better.
I'm aware of the basic optimizations, such as bitwise operations and optimized for loops. Are there any more fundamental approaches I should be considering? For example, currently each instance is a vector-based MovieClip. Would working with BitmapData be more efficient?
View 1 Replies
Nov 4, 2011
Will I take a big hit in performance using nested ViewStacks? Should I strive to handle all navigation in one ViewStack and push children manually or will the affected performance be negligible?
eg.
<viewstack>
<tabnavigator />
<tabnavigator />
<tabnavigator />
</viewstack>
View 2 Replies
Mar 19, 2012
We have a medium size Flex 3.6 application that contains around 20 different page views (managed via a single lazy ViewStack) each having multiple components. Most use custom renderers.All model data is loaded at startup and changes to model instances are communicated via binding and/or collection change events.Once the user has viewed each page at least once, all page views are instantiated and happily listen to update events.Which in effect means that each time a model instance changes, all interested views receive that event and compute derived data or trigger item-renderers.I have tested and confirmed this behaviour in a proof-of-concept application. Even when setting a list to being invisible, it still listens to collection change events and invalidates any renderer affected.What would you do?
View 1 Replies
Jul 12, 2009
I am using CS3. I am having trouble viewing my FLASH content online. It loads fine in DW locally, but once on the server I have the following errors: Webpage error details
[Code]...
View 1 Replies
Oct 25, 2006
Here's the site: [URL] From feedback I've gotten, it appears that under certain circumstances the first image in a set of images does not load properly, although I haven't seen it myself. I'm told this happens only in Firefox. And I believe only Flash player 8. Works fine with FF and Flash player 9, or IE with 8 or 9 I believe.
View 14 Replies
Jul 11, 2009
I'm converting a several-years-old all-Flash site for a friend. I can activate the site in any browser if all the files are stored on my local drive but when I FTP the files to a server and try to launch, I get an error indicating either that the server has timed out or that the process is taking too long. I suspect the problem is in the index.html file which refers to some very old locations where the Flash Player is probably no longer obtainable, but I'm not sure.
[Code] .....
View 1 Replies
Feb 11, 2010
Building a website and the navigation menu is flash (.swf file). The mnuLoader.swf file retrieves information from settings.xml file. Everything worked perfectly when I tested in localhost/website/page.html. When I upload to hosting server www.website/index.html the mnuLoader.swf displays but does not load (its like it can't find the settings or picture files and displays the same as when you are waiting for something to load etc).
I have tried changing the xml file path from relative to absolute and no change. All three files index.html - mnuLoader.swf - settings.xml are in the same directory and the mnu_imgs folder contains the img icons for the menu. I don't understand why it would work on localhost but not on the actual server? Also directly underneath on the website I have another flash banner (just looping text pretty much) that works fine both on localhost and actual server so am pretty sure is not an access issue etc.
The mnuLoader.swf is Flash 8
View 2 Replies
Apr 7, 2011
Basically it's a font called Scene Pro and it's Open Type. I have a guy working on a Mac and the font does this on his computer.But it's completely fine on my PC. It's the same font.He has Font Book and we disabled all the fonts except Scene Pro - and still this happens. We need this guy to do more work in Flash but on a Mac he's kinda held back a bit with the text behaving like this. I end up Publishing the file from my computer.
View 17 Replies
May 22, 2011
I have a flash menu on this site: www.lakecenter.org. The menu works fine in all browsers EXCEPT IE9. It looks like this javascript file is not loading:
<script type="text/javascript" src="scripts/ActiveContentDropDownWide.js"></script>
In IE9 it just displays BUTTON1, BUTTON2 etc but in all other browsers it displays the complete menu. This is what happens when the ActiveContentDropDownWide.js script is removed which is why it seems to be a problem with that script and IE9. But I could be wrong?
View 3 Replies
Oct 14, 2009
I have a problem that seems very strange. A flash script is using URLLoader to update some records and send back a message. In the flash IDE there is no problem. However, when I upload to the server, or viewing the swf file locally in any browser, the browser just hangs and does not show anything. I have also added a IOErrorEvent.IO_ERROR handler which does not give me any information. The URLloader is communicating with a php script. I have found out that it works with a .txt file. Is the anything that needs to be included in the php script?
View 1 Replies
Aug 29, 2010
I've put together a little flash activity for my educational website, and although it works perfectly on my PC (I also zipped it up and passed it onto my laptop, where it also works perfectly), when I try to open it after uploading it to the website, all it shows is the background.
[URL]
To download the ZIP file I passed onto my laptop: [URL]
View 5 Replies
Sep 27, 2011
Ok my Flash movie tests and runs fine on i publish preview it in Flash, but when i upload it to server it is not working like it is supposed to. is there a way to debug it or trace what is happening while it is running??
details: i have 113 Dynamic text fields names tcname_1 --> tcname_113 i have 113 buttons named button_1 --> button_113 The dynamic textboxes get their data from a file named trees1.txt
i tried changing three of the text boxes to use device fonts but that didnt make a difference
here is my AC3 code :
// button links: to all buttons to open in iframe 'tdes'
// link corrosponds to button number
// i have 113 buttons.
[Code]....
View 4 Replies
Jan 10, 2007
It seems that when I test my PHP mail in flash it works perfectly fine, but when I export it and try it in a browser it doesn't. Whats the deal, is it server-side?
View 7 Replies
Jun 29, 2010
This slideshow used to work fine, until you install 10.1. I run it in the Flash CS4 and CS5 IDEs and it works fine. Does the Flash CS5 IDE use the 10.1 player? If not, how can I make it?
View 3 Replies
Aug 20, 2010
I have AIFF streaming audio in Flash CS4 (does it in CS5 too) and it sounds fine in Flash, but when I publish it I get a glitch/noise sound in a few places. It does this no matter what audio format I export, including RAW.The source doesn't have the glitch sound, it doesn't have it in Flash itself, but it does when I publish it.
View 2 Replies
Jan 19, 2010
A simple flash video doesn't appear in IE. I've looked at answers to the same problem by NineBerry, however, I've tried those suggestions without luck.[code]I didn't include the file mulholland_intro_slideshow.fla as I doesn't seem necessary.I'm also aware that when encoding with Flash the object can only be made to played locally or via the network. I encoded locally for testing but it also plays across the network. Is that even relevant? I don't know.
View 1 Replies
Nov 19, 2009
I have a swf that loads in other swf files and interacts with the loaded swfs, everything works great when I hit ctrl-enter to test movie from from flash, but if I go out and doubleclick the generated swf on the harddrive at first it appears to work correctly, but some of my class methods do not function properly, or throw errors claiming there are null object references. If I compile to an exe file instead of swf it works fine as well.I am nearly 100% positive this is not a code related issue, as I said the only time I run into the problem is when I doubleclick the generated swf to run it.
View 4 Replies
Dec 29, 2009
I am having some issue with the Flash actionscript 2 php contact form Actually the form is uploaded on an asp server The code worked just fine before on a php server but when uploaded to an asp server it is not working Need to find something that tells the php code that server is asp and port is so and so..Below is the code and php...
[Code]...
View 9 Replies
Aug 6, 2009
My full screen flash site works oerfectly on Mac's (I have a mac). But on PC IE and Firefox the full screen flash site is cut off 1/4 of the way down the page (see screen shots in zip or test if you are on PC). live site [URL] The site uses a swf object (files included in the zip). I got this from a template on flashDen. my problem is that I only have my mac and can't test on PC IE / firefox. Not that I would know where to start. I think that the problem might be the swf object from [URL] but not sure? I need to sure my site to apply for jobs. But recruiters use PC and it is very embarrassing that they can only see 1/4 of the screen.
View 2 Replies
Dec 9, 2011
I have built a flash game. It seems to load fine. I have a landing screen that clicks to the first question. At the first question I can mouse across the answers, but it will not progress. In addition the music does not play. After a few minutes it does play and plays each time. If I empty my cache file it does the same.
View 1 Replies
Oct 8, 2009
In summary, I think my question is this: How can I force hxcpp to compile haxe code for Flash 8 ? Here's where I'm at. I'm new to haxe, and am trying to get a sample from here: [URL] to compile using hxcpp, in my tests to see how haxe compiled apps work on the iphone. I've gotten other samples to compile fine and put them on the iphone, but when I compile this sample, it complains with things like:
[Code]...
View 2 Replies
Dec 2, 2009
PowerMac Dual 2.3 GHz G5/8 GB RAM I suspect I'm not using best practices, as this is my first project, but my the flash file is getting very sluggish to work on. The swf (AS 2.0) publishes fine and runs OK off the server and in the browser, but the Flash application is slowing down to a crawl making work very unpleasant indeed. Not that it was ever that fast to begin with. The Flash file size is presently 15 megs. It's got a log of symbols in the library and a lot of small jpgs used as navigational buttons, and utilizes many instances of the loader component to dynamically load external files: Is this too much of a demand on the app's resources? I do think that some of this has to do with a poorly implemented user interface (first attempt by Adobe to make Flash "look and feel" like a CS app), but I'm sure there are other issues.
View 1 Replies
Mar 2, 2009
I am using a flash website template (basically stripped of 95% of the code they provided, and just using their graphics) from [URL] I needed to add streaming video, and I elected to use PHP streaming found on www.flashcomguru.com; as modified by lance of courierwebcasts [URL].
The problem I have is that when I use the scrubber.swf to play a video, updating variables and addresses as appropriate, it works fine. However when I take it and recreate every element of the player in a movie on the timeline of my template site, everything but the time counter works fine. It plays fine, it scrubs fine, etc.; it just always displays 00:00/00:00. I am guessing it has to do with variable definition or somethingbut it is beyond me... any help?
Here is just the bit that I am pretty sure is the issue;
code: ns["onMetaData"] = function (obj) {
duration = obj.duration;
durationMinute = Math.floor(duration/60);
[code].....
View 3 Replies
May 10, 2010
I'm using a PHP script to read an RSS feed in my Flex 4 app. The script works when I put the URL of the feed in the actual script, but I can't get it to work when I try to send the URL as a parameter from a HTTPService in Flex. Can anyone tell me what I'm doing wrong? Here is the HTTPService from Flex 4 that I'm using:
[Code]....
View 1 Replies