ActionScript 3.0 :: Allowing Flash To Use 75% CPU Instead Of 50% Max?
Jun 20, 2011
Did you notice that, at least inside Firefox 4, Flash cannot go above 50% CPU? Of course there are valid reasons for that, but it's not the topic.
About a week or so ago I stumbled upon a SWF that managed to use 75% of my CPU. (It was doing 3D stuff) I would like to know if you guys know if there is a way to reproduce this; maybe Adobe put some option somewhere in the API? Or maybe it's specific to what that SWF was doing.
That would be great for games or web applications on which users are entirely focused and can therefore afford to dedicate more resources.
Unfortunately I can't find the URL anymore, I think it was some Alternativa3D demo or something. Not sure.
View 4 Replies
Similar Posts:
Sep 3, 2009
I created an FLA file through Adobe Flash CS4. My problem is, I compressed the file as a .sitx and put it on my server, so that I can use it on another machine. However, on a different machine, using the same version of Flash, it will not open. Flash says:
Failed to open document (FIle Path)
The SWF file can be opened through Flash, just not the FLA.
View 1 Replies
Nov 15, 2011
As stated in the title an odd blue box appears around my drawing not allowing me to continue with what I was creating. I tried to get rid of it but just dont know how.
View 5 Replies
Jun 2, 2011
I have video player chrome buttons designed with HTML/CSS. The full screen button needs to tell Flash to go full screen, but Adobe forbids this Javascript-to-Actionscript interaction.I'm making a web based video player that supports many plugins - Flash, VLC, HTML5, iPhone's Quicktime etc... I would like all these players to share the same chrome buttons - play, pause, mute, volume slider, resolution picker, and full screen. These buttons are layed out with HTML/CSS.[code]This has caused me a lot of pain and agony. Whenever I need to make a change, I update the HTML and JS. This change is reflected across the VLC, HTML5, and whatnot players. But since Flash does not share the same HTML chrome buttons, I have to duplicate the changes in Flash/AS. So I'm looking for a better solution that reduces the amount of duplicate code. It doesn't have to be stylistically clean. I just want easy maintainability.
View 3 Replies
Jan 20, 2008
is there a way to make it so that on any one computer.. only 1 instance of my flash movie will run?Like if they go to a site.. with my flash movie on it.. and they open up another tab.. of the same page.. only one of those flash movies will run..
View 2 Replies
Dec 31, 2011
With the select tool, I placed my mouse over the edge & it changed to the little curve sign, but when I dragged it, it just moved the rectangle. Same thing when using the transform tool.
View 3 Replies
Nov 8, 2011
Which,in theory would be faster using a conditional or allowing the Flash engine to automatically convert the values?
-Conditional...Actionscript Code:var output:int;var b:Boolean = true;var i:int = 5;output = i + ((b) ? 1 : 0);trace(output); // 6
-Conversion...Actionscript Code:var output:int;var b:Boolean = true;var i:int = 5;output = i + b;trace(output); // 6 Obviously, allowing Flash to convert the Boolean to a int value is easier to read, but would it be faster?
View 1 Replies
Oct 2, 2011
so i was getting people embedding my player to there site and stealing my thunder.. so i changed allow all to my domain and well i cant connected with fme
View 29 Replies
Oct 4, 2009
I have a scrollplane instance onstage that I need to skin, but flash is not allowing me to double click the instance to edit its timeline. Does anyone know why this may be?
View 1 Replies
Oct 14, 2011
I'm working on a site that allows administrators to upload arbitrary SWFs and embed them on the page. Administrators are in theory trusted, but I still want to protect against potentially malicious administrators or misguided administrators from harming the site.
A part of the functionality of the site is that the SWFs can communicate to the containing browser page when it's finished and for the page to react.
Now, I can think of two ways to do this:
Use ExternalInterface.addCallback to create a global callback named something like isComplete that does logic and returns true or false depending on whether the Flash app is in a completed state. Then, just do something like setTimeout to just call that function repeatedly. I don't think this would require me to open up allowscriptaccess to the movie. Embed the movie with allowscriptaccess and have the movie call something like ExternalInterface.call('done') when it's finished. This option seems like it requires me to open up allowscriptaccess, which is a potential threat since I can't control the SWFs that would be embedded with this directive.
View 1 Replies
Oct 20, 2011
I'm working on a web app built in Flash AS3. At a high level - the app has a main screen, and several "modal dialog"-type screens that pop-up to manage various user interactions. (This is a similar pattern I use in most of the apps I develop...) Typically - when the user clicks a UI control on the dialog screen (e.g., button, text box, slider bar, etc.) - the main screen needs to react, or manage the consequences. It seems like there are two general ways to handle this: Have the dialog screen dispatch events that the main screen listens for Allow the dialog screen to call functions in the main screen when those controls are clicked (which requires that the dialog screen maintain a reference to the main screen, and that the functions in the main screen are public)
In general - I understand that one of the key benefits of the first method is that the dialog screen isn't so tightly coupled; it's only responsibility is to broadcast the event. This would allow me to more easily use the dialog class in other contexts, or applications. But for many RIAs I develop - a particular screen is SO SPECIFIC to the the application that there's no chance I'd ever reuse it in another application. So, the "easy re-use" benefit is minimal. So - if you eliminate that benefit - which method is actually better? (More performant, less resource-intensive?) For example - if I use events, then Flash needs to manage many listeners for events that may never occur. So - it might be more efficient if the dialog window could call a function in the main screen directly, instead of dispatching an event.
View 3 Replies
Sep 27, 2009
I would like that the user couldn't move the MC anymore on frame 2, is that possible?Because when I am in frame 2, I can still move the MC and it goes back to frame 1 again [code]...
View 4 Replies
Dec 12, 2006
In my main flash page I'm trying to have other swf files load into it. When I test the movie in flash, everything works as it should. But when I upload it to a server, it only allows one swf movie to load. Anyone know why this is? Does it have to do with security?
View 4 Replies
May 31, 2009
I made some animated buttons, and now I'm trying to assign script to them to link them to their pages, on the script box it says I cannot assign script to them? Is it because they're animated or am I going wrong somewhere else? It's in Flash CS3, I can upload any files as a link if I've not explained myself well enough
View 1 Replies
Mar 19, 2010
I am working on a project where the user can click a button to download a pdf file. My issue is that it works fine, until you try to download it in IE. IE shows something happen, but then nothing happens... looks as though you download the file but then when you go to look for it, its not there. I have tried 2 different methods, both work until, like i said I bring it into IE. [code]...
View 1 Replies
Nov 7, 2010
I am creating a historical timeline and I want the viewer to be able to zoom in and out from the timeline. How do I do this?
View 1 Replies
Feb 4, 2011
Im trying to get this to work so it moves the objects by the defined speeds when the key is down. I cant see any issues with the code at all, yet it still does not work correctly.
ActionScript Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
addEventListener(Event.ENTER_FRAME, enterFrameFunc);
[Code].....
View 0 Replies
Jan 8, 2004
How can I achieve this...is it even possible? Searched for a tutorial,
View 1 Replies
Jan 11, 2005
I'm using two functions, one for an onRollOver event and the other onRollOut.
The problem is that when the second mc calls either of the functions, the inital function running ends its cycle, leaving that animation unfinished.
View 3 Replies
Sep 18, 2009
I have had success with loading an swf on the timeline (from a button) and having it close when clicked on. However, I'd like to have a "Close" button on the loaded swf (not just the whole swf). Right now it just closes and goes back to main timeline when clicked on. The code I have so far:
var myLoader:Loader=new Loader ();page1_mc.addEventListener(MouseEvent.CLICK, page1content);function page1content(myevent:MouseEvent):void { var myURL:URLRequest=new URLRequest("page1.swf"); myLoader.load(myURL);
[code]......
View 12 Replies
Sep 14, 2010
I added a contact form to a site, and the input fields aren't allowing numbers or certain letters. If I test the contact form swf by itself, it works fine. But as soon as I test it in the site, the problem occurs. I haven't got any other actionscript around the contact form, so am puzzled. The site is [URL] - the contact link is on the bottom left menu.
View 2 Replies
Jul 24, 2011
I have a 420 KB XML. Fairly large, yes. Its structure is fairly simple:
Code:
<Nodes>
<Node ID="1">
[code].....
View 8 Replies
Jul 31, 2011
don't have any experience with it but I've designed a tool for people to use on my website.I need a way for them save a section of the flash interactive flash to their computer Hard disk.link here
View 1 Replies
May 29, 2007
Here's the thing. I'm implementing a navigation system into a project, that requires you to click a button, so that you may advance to other pages.it goes like this: it is a slide-based navigation system, with 4 buttons. To advance to page 2, on page one you must click a button, and so on. Otherwise, no matter how much you click the button linked to page 2, it will never work. And the cycle continues. I guess it's not all that easy to understand..so i've attached a link to the .fla [the file does not have any navigation restrictions
View 1 Replies
Jul 15, 2004
I want to use a gradient as background for my flash movie, but I want this background to cover the whole browser's window just like Adopt Design does it (check out Adopt Design). The content of the flash movie should NOT be resizable with the browser's window though. So, I used this code:
[Code]...
in the HTML file I did set the margins to 0pix and the SWF's height and width to 100%. But when I type in the address in the browser to open the page the first time, I see the flash movie in the center with white background around it anyway, and when I resize the browser's window (even if just 1pix) everything is perfect. What's happening? check the problem in a JPG: the site (notice what changes when you resize the window, after opening)[URL]
View 4 Replies
Apr 13, 2009
Is there a way to able/allow potential customers to fully download mp3 tracks from my site?
Flash CS4
Mac Pro
AS3
View 6 Replies
Jul 17, 2009
I have this complex XML processing code that builds up thousands of objects on stage. This might take some time. Perhaps not that big time to bring up that message about slow code execution, however signifficant enough to cause interface uncomfortabilities. I understand very well that I can restructure my code in order to save all contextual variables, all counters in an object that is passed down to onEnterFrame events that process it a little bit and then pass it further, until the job is done. However, before I go into dissecting my code, I wanted to make sure if there really is not a way how tom tell flash player do it's frame rendering routine while a complex code is executed in background (without splitting it up).
View 1 Replies
Feb 4, 2010
I want to publish camera over FMS. But I don't want to use adobe security panel to be displayed(not even once) with setting as "access" by default.I wan't to set it allowed programatically.
View 3 Replies
Jan 23, 2011
I've set up a game, where the user has to guess what a picture is by moving a small hole/ portal around.I've used the mask feature to do this and managed to attach the portal to the mouse.However,I need to stop the mouse dragging the portal when it moves outside of the picture/instance.This is so the user can then press buttons to go back to main menu etc. Here's the code I've used to attach the portal
onClipEvent (load) {
startDrag("", true);
Mouse.hide();
}
View 1 Replies
Aug 13, 2009
I'm developing an application in AIR via Flex, but I'm not seeing where I'm going wrong with SQLite (I'm used to MySQL). Parameters work, but only in certain instances. Is this part of the built-in sanitation system against sql injection?
Works:
sqlite
"INSERT :Fields FROM Category", where the parameter is :Fields = "*"
AS3
var statement:SQLStatement = new SQLStatement();
statement.connection = connection;
statement.text = "INSERT :Fields FROM Category";
statement.parameters[":Fields"] = "*";
statement.execute;
[Code] .....
View 3 Replies