Actionscript 3 :: Adobe AIR: Prevent GC From Running?

Feb 25, 2012

For a game (using AIR for iOS) I want to prevent the GC from running during a specific 30 seconds sequence (because it causes very notable lags). What I already do is calling System.gc() right before the sequence starts. During the sequence, i don't create many new objects and only some animations play and objects move (in 3D). some of the objects move out of the stage.

[Code]...

When the GC fires, the System.privateMemory drops to 74 MB, but causes a lag of aproximately one second. The GC fires twice during this 30 second sequence.

So my question is about any techniques, hacks or workarrounds (other than optimizing the memory usage in general - obviously i'm already working on that) to prevent the GC from firing during this 30 seconds?

View 3 Replies


Similar Posts:


Prevent Swf Running Out Off Of Server

Dec 22, 2009

I searched everywhere for a peice of code to prevent a web page from loading when it is not on a server.Finally found this one and I swear it was working last night.Am I placing the function in the wrong place?I have everything in 2 framesif the flash swf is currently running on the propper server it should skip to frame 2 and if it is running on a computer or the wrong server it should stay at frame 1.[code]

View 5 Replies

Flex :: Prevent A Locally-running SWF (AS3) From Downloading From My Website?

Jan 9, 2011

I've got a crossdomain.xml file which allows SWFs running on only a certain few domains to download resources from my domain. However, one simple way around this is for a user to download the SWF to their local machine, and run it there (i.e. by double-clicking on it within Windows Explorer, not by running through [url]... It seems that when this happens, the crossdomain.xml file is ignored.[code]...

Is it possible to do something on the server side to stop a locally running SWF to download from my site? I tried checking the referrer but this field often isn't populated.

View 2 Replies

Flash :: Prevent Android From Sleeping While The Flashplayer Is Running

Oct 14, 2011

I've written a videoplayer for Android based on Flash (10.2) which plays videostreams. In some cases (*), the player begins to buffer for quite some time. Now, while the player is acually playing the stream, Flash (somehow) signals the OS to prevent entering the sleep-mode. But while buffering, this is not the case and the phone will eventually enter sleep mode before the stream has restarted. So the user has to unlock the phone again - not very convenient. Is there a way to set a signal with Flash/AS3 to prevent the Andoid-phone to go into sleep mode? (*) mostly over the mobile network when the network access performes a handover between 3G and 2G or vice versa

View 1 Replies

ActionScript 2.0 :: OnPress GetURL - How To Prevent OnRollout Function Running

Jun 14, 2006

When I use:
on (release){
this.stop();
getURL("page.html", "_blank");
}
Why is it that when that new page window is loaded the background flash window then runs my
on (rollOut){
this.play();
}
function? I am trying to pause the timeline I am clicking from in Flash. If I take this line out (this.play() it pauses, but if I were to go that way how would I start getting my MC to play again when the user gets back to the flash window?

View 3 Replies

Flex :: Adobe Prevent Model Tainting?

Mar 29, 2011

I have some values stores in my model. I need to create a copy of those values, make some changes, and then output those changes without affecting the model values.

var my_source:Array = model.something.source
var output:Array = new Array();
for each (var vo:my_vo in my_source) {

[code].....

View 2 Replies

Flex :: Adobe AIR Detect If Running In ADL?

Jul 15, 2009

I need to detect if running in ADL or not, I can't seem to fine an answer that is guaranteed...I found a couple posts online that say "this might work..." Is there a reliable way to check?

View 1 Replies

Actionscript 3 :: Prevent Screen Timeout With Adobe AIR For Mobile On Android And IOS?

Jul 23, 2011

I have a pure AS3 app that I'm deploying to both Android and iOS. In some cases I need the screen to not turn off for 60+ seconds. Is there a way to do this with AIR for mobile?

View 1 Replies

Professional :: Running Adobe Flash CS5 Trial

Nov 8, 2010

Adobe Flash Pro to create my own Flash animation for an online class assignment.I downloaded the trial fine but I have no idea how to open it and get into the program.There's no icon for it and it's nothing in the Start Menu.I'm running Windows XP by the way.There's a folder that says adobe Flash Pro CS5, but I don't know how to open the program itself to get into the work area.I also extracted the zip files but nothing changed.Just s folder named "Flash Pro CS5" which contains "Adobe Flash Professonal" and "Goodies" folders with a Readme.pdf.

View 1 Replies

Php :: Sql - Transform Flex Application Into Adobe Air - Running A PHP

Feb 27, 2010

I'm a newbby in Adobe AIR/Flex. I have developed a simple Flex web app. that through 2 Php's, can connect to a DB and return an XML result of the query. I uploaded the PHP and Flex files to my internet server, and the app. works fine. My question is: How can I make the same app. work in Adobe AIR? In other words, I have made a new AIR project, and I copy/paste the Flex code. When I run the project, it does not work and say things like:

[Code]...

View 1 Replies

Javascript :: Determine If Adobe AIR App Is Running From Browser?

May 11, 2010

Is it possible to determine if Adobe AIR app is running from browser?

So I want to check if app is on, how to do such thing?

View 2 Replies

ActionScript 3.0 :: Running A Project Outside Of Adobe Flash Professional CS5.5?

Jun 29, 2011

I'm working on a project in Adobe Flash Professional CS5.5, but I have to present it to someone who doesnt have Adobe Flash Professional CS5.5.

my Project consists of two .as files and two .fla files.(one .as per .fla)

How do I run my two programs outside of flash professional? I tried using Flash Player 10 but all it did was play my .fla files, and not any of my code...

View 4 Replies

Flex :: Running A Java Program With A .dll From Adobe AIR's Native Process

Jun 18, 2010

I would like to be able to operate a scanner from my AIR application. Since there's no support for this natively, I'm trying to use the NativeProcess class to start a jar file that can run the scanner. The Java code is using the JTwain library to operate the scanner. The Java application runs fine by itself, and the AIR application can start and communicate with the Java application. The problem seems to be that any time I attempt to use a function from JTwain (which relies on the JTwain.dll), the application dies IF AIR STARTED IT.[code]

View 2 Replies

Actionscript 3 :: Can Adobe AIR Retrieve The Hardware Specifications Of The Device It Is Running On

Mar 14, 2012

I am writing an application which is supposed to work on various mobile devices, and i need to retrieve the device hardware on which it is running.Is it possible, and how ( if it is ) to retrieve the device hardware parameters ?

View 1 Replies

Flex :: Adobe AIR For Mobile Connect To Running Debug Session?

May 26, 2011

I have a AIR for mobile pure AS3 project that saves a file on the device the first time it runs into the file.applicationStorage directory. The second and subsequent times the application launches I need it to look at that file I've saved.

My problem is that when I debug the application from Flex Builder 4.5 it wipes the application and application storage. So the application always behaves like it is running for the first time. I can't get into a debug session and step through my code as I read in that file.

Does anyone know how to connect to a debug session running on the device? My device in this case is an Android Samsung Galaxy S.

View 1 Replies

Flex :: Adobe Alchemy Tool Create Faster Running Flash Byte Code Than The Compiler?

Dec 8, 2009

I have seen a few blog entries on this and have had a discussion or two with my team mates but I would like to see what the stack overflow community thinks.

So why does the Adobe Alchemy Tool create so much faster running flash byte code than the flex compiler?

Also, when will the flex compiler be able to make similar performance gains? Will it require programmer specific use of special Array's or something of that nature to get the same performance?

View 2 Replies

Professional :: Exe Projector Running Slow While Swf Running Fine?

Mar 19, 2012

I have a strange problem. When I run an exe projector that I exported from flash cs5.5, and on few of my client's computers it running very slow in full screen.When I running an swf file (not exe projector), also in full screen, it running well!I checked my clients computer hardware, and it match the system requirements of flash player.

View 3 Replies

IDE :: Site Is Running Inside The Dreamweaver But When I Publish, It Is Not Running?

May 11, 2009

I have a problem in Flash Site uploading.That is, i have created a flash site & in the dreamweaver i inserted the flash site as insert -> media -> Shockwave.The site is running inside the dreamweaver but when i publish it, flashsite is not running.

View 2 Replies

ActionScript 3.0 :: Adobe.utils.Extension Not Found In Adobe Flash Professional CS5

Dec 23, 2010

In my machine I have installed only  Adobe Flash CS5 proffesional trial version. Now this installation is not supporting adobe.utils.Extension class in this version. I have tried with all latest updates from adobe site. My doubt is does adobe.utils.Extension class is available in licensed version of Adobe Flash CS5 proffesional?

View 12 Replies

Actionscript 3 :: Network Game By Adobe Air Programming In Adobe Flash

Dec 28, 2011

I want to create a simple game (Adobe Air) based on 2 players using ActionScript 3.Let's assume I want to create online chess game.So that I can play with my friend at work, at home, from anywhere via internet.Should I use flash server? Or something similar for this purpose, or there is simpler way to connect 2 players and make fully functional interaction between them?

View 2 Replies

ActionScript 3.0 :: Programmatically Detecting Between Adobe Air And Adobe Flex?

Feb 12, 2010

I have some shared code between an Adobe AIR App and an Adobe Flex App.

On one line of this code, the program must behave differently depending on if it is running within the Air runtime, or the Flex runtime.

How can I programmatically detect the difference?

View 1 Replies

Flash :: Adobe 10 GPU And Adobe AIR For Android

Jan 27, 2011

How can i make the Augmented Reality applcation on Android mobile phone (HTC Nexus One) that i have developed using the flash platform faster, since flash doesnt support OpenGL for 3D graphics. Can I make it faster using GPU Acceleration? Or there is any way to combine Flash and OpenGL? Any online sources talking about this subject will be very useful..

View 1 Replies

Flex :: Dynamically Create Axis Via ActionScript In Adobe Flex Charting Library; Adobe Bug?

Mar 21, 2011

Multiple axis creation via MXML works fine:
http:[url]...

But when I'm trying dynamically create horizontal and vertical axis then I'm getting extra axes. I believe this is Adobe bug. How I can fix this behavior?

<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code].....

View 2 Replies

ActionScript 2.0 :: Prevent Swf Always On Top?

May 5, 2010

When I embed swf in HTML it always stays on top of other HTML objects.Is there any work-arround for this issue?

View 3 Replies

IDE :: Prevent FLV From Preloading?

Mar 21, 2009

I have an FLV embedded in a SWF, and it preloads whenever a user visits the page it's on. Is there a way to prevent it from preloading, or force a user to click play before it loads?

View 2 Replies

ActionScript 2.0 :: How To Prevent SWF Caching

Aug 29, 2010

I've been searching on google and through forums for hours now trying to find a way to prevent my site from cache in browsers. I know it's not possible to "prevent" it from caching, but it's a way to trick the browser into thinking it needs to load the SWF again instead of just getting the one from the cache.

Now I've tried many types but I can't get it to work. I don't understand how to implement it into AS or Javascript and what goes where..

My site is set up by one parent SWF combined with a HTML script and 6 child SWF's, and they are updating all the time so I really need this function.

See it here: [URL]

The most used one is this I think or something close:

myIdentifier=Math.round(Math.random()*10000);
loadMovie("myAnim.swf?uniq="+myIdentifier,1);

But how do I use it? where it goes and will it work on several child SWF's?

View 4 Replies

Prevent Swf Files Being Downloaded?

Nov 10, 2009

I'm a teacher and I have some animations made in flash language (swf). I would like to publish these animations on my web site so my students could see, but I wonder if there is any way to prevent these animations being downloaded.

Example: when I see an animation published on my web site, this animation is stored in Internet Temporary Files and I can save this animation anywhere. How can I prevent an animation is stored in the temporary folder? In other words, this animation can only be seen if the user is logged on the site.

View 11 Replies

Professional :: Prevent SWF From Caching?

Aug 29, 2010

I've been searching on google and through forums for hours now trying to find a way to prevent my site from cache in browsers. I know it's not possible to "prevent" it from caching, but it's a way to trick the browser into thinking it needs to load the SWF again instead of just getting the one from the cache.Now I've tried many types but I can't get it to work. I don't understand how to implement it into AS or Javascript and what goes where.My site is set up by one parent SWF combined with a HTML script and 6 child SWF's, and they are updating all the time so I really need this function.The most used one is this I think or something close:

View 5 Replies

Flash :: How To Prevent SWF From Decompiling

Oct 29, 2009

How do I prevent my SWF from decompiling?

Is there any difference between ActionScript 1/2 and ActionScript 3 in the perspective of decompile prevention?

This is an opposite question of the following question:

How do you decompile a swf file? [URL]

View 2 Replies

Flash :: How To Prevent Flv Hotlinking

Jul 1, 2010

I am loading an flv file from an s3 location. I want to prevent its hotlinking.
crossdomain.xml does not seem to work for flvs Anybody has nay idea, why crossdmain does not work? and what are the ways we can prevent other flash containers to extract the content from our location?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved