ActionScript 3.0 :: Control User's Computer Performance?
Oct 8, 2009
I've made a Flash project which uses a lot of animations based on Actionscript, and I've checked that in old computers those animations have a low framerate.So in order to optimize it, I thought to disable some of them depending on the capabilities of the user's computer, but the only thing I've found which could be useful is the property System.totalMemory
Is there any way to calculate the user's CPU performance in order to act in consequence?In these cases, would it be useful to replace some vector graphics with bitmaps? If I'm not wrong it would make use of more memory but would lower CPU charge, wouldn't it?
I am working on this cd-rom and have just reached testing stage for part 1 (of 5). There are lots of interactive activities, video and animations. For the activities, I dont know if I am just too tired but there seems to be items which are visible on my .swf on my computer that sometimes are visible and sometimes are not visible on the cd-rom, also in testing yesterday there sere some activities that seemed to not be working correctly (Althought they perform fine on the desktop version, on a reset of the cd-rom they then seemed to work. Is there anything that I need to take into account for the code being read off a CD to make it more bullet proof? I am stressing out a bit at the Unknown factor- I cannot continue to produce this resource if I cannot guarantee how it will perform in real life?
I am developing an application running in Flash Player. The applicatiosn requestes access to the camera and/or microphone available on user computer.Is there a way in the application I prevent users from seeing this question? i.e. without having user to change his/her Adobe Flash Player setting?
In my Flash application, I would like a user to be able to import a picture from their hard drive. Basically, the app allows the user to customize an object. One of the steps of customization should be to add an image of their choice.
Is there a way in Flash to allow the user to pick a file from their hard drive, which is then read into memory and made accessible to an application? I would like to take the data and upload it to a server to store it for future sessions.
I've been searching for quite a while now on a few different sites for information on testing the cpu speed of users computers. I've done this search before about a month ago and remember fidning something about this. Problem is, now I can't seem to find anything. The reason I need to know is because I have an MC on my stage which is using actionscript to animate but on older computers with slow cpu's all the animation slows down terribly. I would like to be able to test cpu speed and redirect to a different page based on cpu speed.
I'm a developer on nice space MMO using Flash. On new PCs performance is quite good, but some features shouldn't be enabled on older PCs because the framerate drops to shit if we do. Flash wasn't made for this, but hey, pushing boundaries is fun.
An example is fullscreen mode. Of course every user can manually enable it, but "advertising" it to a user with and oldie PC would be a bad idea - but for the Alienware crowd it would be dumb not to.
So I want to find out how "capable" a user's PC is to decide if I should enable or disable some features for him.
I want to save a jpg of dynamically loaded swf's to the user's computer. Everything works great, except the loaded swf's don't appear in the jpg (everything on the stage renders fine). Any thoughts?
I'm thinking of varying content in my app depending on user machine performance. Is there any good standard methods? Like a mini-benchmark-test first thing in the app. I guess you could measure both the time of a function (quick but true?) or framrate of some drawing.
how to allow the user to upload some image of his/her choice from his/her local computer, plus adding some control on size and dimension limit.
I've seen this performed for instance in webs where they sell sunglasses. The movie allows you to upload your own picture of yourself so that you can virtually try them on.
On the site [URL] there is a .swf that prevents users from opening multiple instances of the site at the same time on the same computer. If you open the site, and try to open it a second time in another window, it won't load. You can't open the site again until the first window is closed. How did they implement this?
From my analysis it is NOT:
1. Cookies - The block still takes place if you try opening it in IE and also try opening it in Firefox simultaneously.
2. Flash Cookies - The block still takes place if I disable flash cookies.
3. IP Based Block - You are not blocked if you open the site on two separate computers with the same outbound IP address. From my analysis, their server does not assist in the block at all.
It seems as if their .swf is creating some kind of global system-wide object that can be detected in other instances of the application on the same machine. How did they implement this?
On the site oldnavyweekly.com there is a .swf that prevents users from opening multiple instances of the site at the same time on the same computer. If you open the site, and try to open it a second time in another window, it won't load. You can't open the site again until the first window is closed. How did they implement this? From my analysis it is NOT:1. Cookies - The block still takes place if you try opening it in IE and also try opening it in Firefox simultaneously.2. Flash Cookies - The block still takes place if I disable flash cookies.3. IP Based Block - You are not blocked if you open the site on two separate computers with the same outbound IP address. From my analysis, their server does not assist in the block at all. It seems as if their .swf is creating some kind of global system-wide object that can be detected in other instances of the application on the same machine. How did they implement this?
I am using sifr 2.0.7 and here's the deal. The sifr is working (I can see it in the DOM) however, the font is wrong.It doesn't pick up my swf font (DIN) unless you have it installed on your computer?The css font style is: HelveticaNeue which is what the sifr seems to render if you don't have DIN installed.I see it on my computer but my friend see DIN.
What is the fastest way for a Adobe AIR program program to index all images on a users' computer? Using Open Source ActionScript-3, MXML Libs and classes.
Fastest - Same pc configuration, different time (seconds) To index - get a list of absolute links (like c://bla-bla/file ) and save them into file (index.txt) All images (like JPEGs, PNGs)
I'd like to know how to allow the user to upload some image of his/her choice from his/her local computer, plus adding some control on size and dimension limits, and to check that the file to be uploaded is actually a JPG/PNG/GIF and not another else.
I've seen this performed for instance in webs where they sell sunglasses. The movie allows you to upload your own picture of yourself so that you can virtually try them on.
I got a new computer several days ago and it doesn't have Flash 8 or Higher. how to transfer Flash 8 programs from my old computer to my new computer? where to find free downloads of Flash 8 or higher?
I'm not really good with AS3 yet so maybe somebody can help meI found a pong game tutorial and it works fine.[code]Now I want that two computers play against eachother.So no player input only two computer that play.I tried a lot with the script but it doesn't work.
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?
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?
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?
I have an idea for a simple game/program and not sure if Flash is the way to go.After reading many articles I've come to the conclusion that if I wanna make my idea a reality then I need to do it myself but not sure where to start.Before spending the money on buying cs 5.5 want to make sure it can do what I need.So my question is can you have users input data that would then control your animations? For a simple example:I want a user to be able to input a number then depending on the number a certain animation sequence would occur.So say a user inputs the number 10 then my animation would walk over to a pile of say apples and pick up 10 apples. If they input 5 the animation would pick up 5 apples etc...So my idea has nothing to do with apples but revolves around the user inputting numerical data which would then control what the animations do.
I want to modify the Flex 3 TextInput control to accept a tab character as valid input (The app allows the user to enter an arbitrary delimiter string for file output formatting, and tab is a common use case). However, clearly in the default implementation the tab key changes the form focus away from the selected control.
I have a mc on the stage - a strand of photos moving from left to right, like a filmstrip. I need each photo to come to center and pause for, say 7-10 seconds (no user control). I can get the filmstrip to move left to right (but only once and only controlling the time from start to end)... But can I script it such that the clip will pause where I want it to and for however long I need it to? And then move again from the new point, to the next new point? I'm having no luck. I could motion tween, but want to keep it more compact (and more simple)... I'm working in flash 8 but publishing for 5...
I have a wheel of fortune application.Say,it has 18 segments or pie slices. This is how I have done for rotation
[Code]....
- I know if I make my rotation angle vary by 20 degress ,I can make it stop on desired pie segment. - For instance if I have to make stop on 18 slice,I have to do rotation by 20 degrees. - What I want is that user puts some value say 10, then my application have to stop on 10 slice and it follows above logic. - I am bit confused on how to implement this with my above logic. - Further ,the number of segment can vary and I do want to make a logic that works for any number of segments i.e. user can control on which rotation to stop.