Actionscript 3 :: Profile CPU / Memory Inside An Adobe AIR Application?

Mar 29, 2010

Couldn`t find any ActionScript native APIs even in the beta documentation, am I right supposing that this means the only way to measure CPU / memory consumption is by cooking up a custom native solution, hooking it up with AIR and making it work on each targeted platform?

Basically the aim is to be able to have this information available inside AIR and not having to use an external application for profiling, not even Flex / Flash builder.Seems for the CPU load the only solution will be some command line scraping using NativeProcess.

View 4 Replies


Similar Posts:


Ios :: Embed Adobe Air / Flex Application Inside A Standard Application

Aug 29, 2011

I have a native (Obj-C, standard Xcode project) application and I'd like to integrate a partners iOS application (or specifically, it's functionality) into it as just another view in my application. The problem is that their application is a Flex/Air app. I really don't understand the Adobe compilation process on how it gets from a bunch of flex code down to an IPA. I don't see intermediate projects, shared objects, etc on the disk to produce that IPA. It looks like it doesn't rely on the Apple tool chain... as I understand it, you can produce the IPA on Windows as well. Is there any way to build that Flex app in such a way that I can import it into Xcode so I can link against it and use it as a library from within my application? While I specifically used iOS as an example since that is the most important platform, we'll want to apply this solution to our respective Android and Blackberry 6 apps as well.

View 1 Replies

Flex :: Embed A Streaming .swf File Inside Another Flash Or Adobe Air Application

Sep 24, 2010

I currently have a network camera that streams video as a .swf (and also as a motion JPEG as well...) and I want to be able to embed the stream inside of either a Flash or Air project that I'm creating myself. The only examples i've been able to find though, require the .swf to be saved as a resource of the project; clearly, this is undesirable for a live stream.

Another option is to utilize the motion JPEG. I have some generated code (shown below), but unfortunately only the first image is displayed when viewed via adobe air (if I were to view it in a HTML browser, the image would automatically update, effectively showing the stream:

<SCRIPT LANGUAGE="JavaScript">
function displayImage( )
{
// Set the BaseURL to the URL of your camera

[Code].....

View 1 Replies

Flash :: Php - Getting Profile Picture In A Application

Jan 25, 2012

I have a PHP script that returns to me my (and my friends) profile pictures, using the following: [URL] where $ID is the ID retrieved using the PHP API. I then use the following for loading the images in my app:

[Code]...

I've verified repeatedly that the ID being sent back from the PHP is in-fact my ID, and I've copy/pasted the address traced BEFORE the loading function into a browser and I get my correct profile picture, but somewhere in there it's bugging out for my ID in the load and only my ID in the load (I should rephrase it to say it bugs out for WHATEVER user is logged in to Facebook, not just me).

View 1 Replies

Flex :: Flash - Connect To Adobe Stratus Server In A Application From Inside A Proxy

Jan 19, 2010

I am trying to develop a P2P conferencing application in flex using RTMFP. So I have to make connection to Adobe Stratus server for Id of Flash Player instance. I am a student and behind the http proxy. I have checked in NetConnection class but, didn't find anything related proxy configuration.So, How can I configure proxy settings for my flex application.

View 1 Replies

Flex :: Adobe AIR Application To Receive Back Events From Native Windows Application?

Oct 8, 2010

I'm trying to develop a simple mxml Flex application to start Skype from the AIR/Flashplayer runtime. Is it possible to get back events from a native Windows application? In the simple example of Skype, the OS returns control to the Flex app when Skype exits. But what about native applications which have their own event model and wants to communicate with the Flex event model. For example, a Face detection system which shows "Hello" on a Flex app when the camera detects a face. Can this be done in the current Flex framework?

View 1 Replies

Actionscript 3 :: Resizing Container On Resize Of Application Window In Adobe Flex/AIR Application?

Mar 4, 2011

I am working on an Adobe AIR Application. The size on Application window is 800X600 and is contains border container and border container contains many controls. What I want is to if user re-sizes the application then that container should also be re-sized according to scale. i.e If user maximizes or minimizes the window then that border container should also be maximized or minimized respectively.

View 3 Replies

Flex :: Memory Leak When Using SWFLoader In Adobe AIR

Aug 11, 2011

I'm trying to load windowed sub-application in another windowed application, The requirement is to replace one loaded application with another on user action.

I tried the documented method of unloadAndStop() on the swfLoader in the main windowed application, but somehow during memory profiling I could see the instances of those applications were maintained in the memory even after explicitly running garbage collection.

Where as If I make those windowed application as modules, and then try to load them using the Moduleloader things work smoothly and unloaded modules are removed from memory.

View 2 Replies

Flash - What Is The Maximum Amount Memory Adobe AIR Can Utilize

Jul 1, 2011

I've been doing some rapid prototyping for a game I'm thinking of building. one of the main things i want to do is map generation for a tile type map. While generating the map i end up using large amounts of ram. I'm building the map as an array of random integers for my test. When i try to generate maps of a large scale flash gives me the out of memory error:

Error: Error #1000: The system is out of memory.

I've already figured i could write to a file instead, to solve that problem. but does anybody know the actual maximum size? I've tried searching around to no avail.Activity monitor reports that ADL is using around 500MB "real memory" and around 700MB "virtual memory". The System.privateMemory property seems to match the "real memory" value.as a side note i'm developing in OSX Snow Leopard (64) with 8gb ram

EDIT:

Here the example test i am running

var ba:ByteArray = new ByteArray();
for(var i:uint = 0; i<100000000; i++)
{
ba.writeInt(int(Math.random()*100));

[code]....

When i run this script from a browser, stand-alone debugger or AIR i get roughly the same memory usage readouts (which i know vary anyway). What is constant however is the final length of the byte array:

Browser (Firefox): TM: 540413952 FM: 19116032 PM: 562573312 BALENGTH: 13421778
Stand-alone: TM: 540577792 FM: 1810432 PM: 545361920 BALENGTH: 134217728
AIR (2.6): TM: 5410816 FM: 1159168 PM: 551464960 BALENGTH: 134217728

My testing methods might not be perfect, though i dont know how to do deeper profiling.

View 2 Replies

Flex Application Memory Usage?

Mar 4, 2011

System.totalMemory gives the total memory used by the flash player and not one particular application. Is there any way I can get the flex application's memory usage in code/actionscript?

View 3 Replies

Flex :: Find Where Is Memory Leak In Application?

Sep 7, 2010

How to find where is memory leak in a flex application?

Are there some tools to catch and analyze this problem?

View 2 Replies

Flex :: Track Down Memory Leaks In The Application?

Feb 14, 2011

I've been trying to track down memory leaks in our application, and keep finding myself back looking at Spark components as the culprit.

Many classes in Spark use RichEditableText for displaying their text properties (ComboBox,TextInput).RichEditableText has a local textContainerManager property, and frequently calls compose() on this.Here's the relevant abridged extract from TextContainerManager

// Line 282 - 292:
static private var stringFactoryDictionary:Dictionary = new Dictionary(true);
static private function inputManagerStringFactory(config:IConfiguration):StringTextLineFactory
{

[code]...

Line 1242 is the crucial line here, as it gives the static dictionary a reference to our component.(Note - I've checked this with the debugger to confirm which branch of the ternary gets executed.) This would prevent the instance from ever being garbage collected.

Eg: Static dictionary has a value with a reference to the instance -- instance cannot be GC'd.In turn, this would prevent any other instances which have a reference to the instance of TextContainerManager from being GC'd also.While this theory certainly matches what I'm seeing in our app, I can't beleive that there really is a memory leak in such a low-level spark component.

View 1 Replies

ActionScript 3.0 :: Application That Is Showing A Memory Leak

Jul 10, 2009

Iam trying to debug someone elses AS3 application that is showing a memory leak. The application is built with PureMVC.I have managed to locate the place where the memory leak seems to start. There is a button that causes the application to launch a slideshow. This draws a new graph every 8 seconds or so by creating a Timer. In the Timer handle function the code uses sendNotifaction() to set off series of events which basically boil down to getting information from a server and drawing a new graph.Now if I comment out the sendNotification() the memory leak stops, but if I leave the senNotification() in but comment out the code that subsribes to it the memory usage starts to build up.So my question is can simply firing off a sendNotification() every 8 secs in PureMVC cause a memory leak, even if not other code runs from this?

View 1 Replies

Flex :: Preview A PDF Inside AIR Application Inside Transparent And Custom Window?

Sep 20, 2011

I have a transparent windows (skinnable). Inside, I'd like to preview some pdf file. BUT, in the only a black screen appear

View 3 Replies

Flex :: Check The Performance & Memory Usage Of Flash Application At Run Time?

Aug 17, 2010

I have a flash application which consist of Grid Components, Button, Label, and Combo-box Components. All these components are used more than 70 times(simultaneously) with in the application. So Its takes too much of memory. So How can I test the memory usage of each component at the time of running. Is there any plug-in available for browsers to find the memory usage. I'm using flash CS3 and ActionScript 3.0. The application suppose to run in browsers.

View 4 Replies

ActionScript 3.0 :: Variables Inside Functions In Memory?

Mar 19, 2011

clarification. let's say i have a function

function myFuction():void
{
var myArr:Array = new Array();

[code]......

View 2 Replies

ActionScript 3.0 :: Memory Leaks - Variable Reference Inside A Function Or Outside It?

Mar 11, 2009

I wonder what the most common reasons for memory leaks in AS3 are.First thing what I am not sure about is: is it better to have a variable reference inside a function or outside it. Will the variable be null-d automaticly inside a function or when do I have to null it and when not?I have massive problems with my game with memory leaks. I noticed I reference some of the clips of the timeline even inside my debugging clip to display propertys and this was causing collecting huge amount of memory.But even before I go into the game with bigger objects the System.memory is slowly growing and growing.I just have a socket connection and some interval loops and enter_frame events.

View 5 Replies

Flex :: Can Adobe Air Application Use P2p?

Feb 11, 2010

I've already built a flash 10 flex application which use the p2p feature (I'm using a developer key to connect to stratus), currently everything works fine. Now I want my application to run on Adoble Air Runtime, but it seems that p2p does not work for Air. I can successfully connect to stratus server in Air application, but after that, when I try to use NetConnection.nearID, an error occurs saying:"ReferenceError: Error #1069: Property nearID not found on flash.net.NetConnection and there is no default value."I've tried flex sdk 3.2 and 3.4, and neither of them works. Does anyone ever developed an Air Application that use p2p and can provide some hints?

View 2 Replies

Update Adobe Air Application After Install?

Jun 26, 2009

How to update air application after install in system . updated not be reinstall will be automatically?

View 2 Replies

Flash :: Determine If Application Is Ran On 64 Bit OS (Adobe AIR )?

May 19, 2010

How to determine if an application (e.g. Adobe AIR) is running on a 64-bit OS? What function could one use to check this?

View 2 Replies

Flex :: Converting Adobe AIR To Application?

Sep 20, 2010

We have a Adobe AIR desktop client which talks to a WAMP server. How can i convert this AIR app to a Flex app to be used in the browser.

View 2 Replies

Flex :: Adobe - Pointing To A Tab Within Application?

Oct 21, 2010

Does anyone know how I would load up a flex application and on load the application would open on a different tab within the application. The only thing I can think of is sending a parameter into the application to tell it where to go, but how does the app load that tab then?

View 1 Replies

Flex :: Fonts In An Adobe Application?

Nov 2, 2010

Is it possible to use sFIR fonts in an Adobe Flex Web Application (I mean I want to use the sFIR font to apply it to some text on spark controls)?

View 1 Replies

Flex :: Set Publisher Name To An Adobe Air Application?

Nov 16, 2011

I am trying to create my own certificate for a adobe air application, I created one already based on this link[url]...

But when I install my application the publisher field is still set with unknown, which is at the end what I am trying to do, I need to set the publisher with one specific value.

View 1 Replies

Flex :: Set Icon To An Adobe Air Application?

Nov 21, 2011

I am developing an Adobe Air app. I need to set an icon to the app so it is shown on the task bar. I added the icon tag to the descriptor file but it is not working and I really don't know why

View 2 Replies

ActionScript 3.0 :: Adobe Air Application Uppdater Ui?

Jun 28, 2011

I'm going to be swift and concise.The other day my ApplicationUppdater worked just fine but now it wont run in flash IDE. Note that it works in FDT. When I compile, I get no errors, but also the app isn't initiated.However, when i force-quit it i get this error,Error: Error #1503: A script failed to exit after 30 seconds and was terminated.at air.update::ApplicationUpdater/stateReady()[C:wwwperforceApolloMainuildwinintFramewor ksApplicationUpdateruiairupdateApplicationUpd ater.as:153][code]...

View 1 Replies

Php :: Display XML Data (extracted From PHP) In An Adobe Air Application?

Jul 14, 2009

I would like to create a small Adobe Air application which would extract XML data from my site and display it in my Adobe air application.I have the xml part setup, when i run the xml file, it displays the results in the browser. Now what i need is to display the same results in my adobe air application.For e.g. I have a simple form

<form name="review" action="admin_xml.php" method="post">
<textarea name="xml" cols="40" rows="10"></textarea>
<input class="submit" type="submit" value="Submit Request">[code]............

When i submit the form, i get all the order id's from 2009-01-01 till date and it get displayed in the browser.Is there a way to run that HTML form in an adobe air application such that I enter the XML element values it should go through the admin_xml.php file and get the results.I dont want to enter the XML Skeleton again and again. I only want to able to enter the values for those elements.

View 1 Replies

Flex :: Restart A Standalone Adobe Air Application

Nov 30, 2009

How can I get a standalone Adobe Air/Flex application to restart itself? It doesn't work with the suggested solution on: UL...

View 2 Replies

Flex :: Requirements To Create Adobe AIR Application?

Dec 17, 2009

i am working with Flex for quite sometime. but i hadn't get any chance to even look at Adobe AIR platform. I am planning to do some personal softwares using AIR.

Provided the background that am an absolute zero in AIR, what all should I have in my system apart from Flex builder? And how fast i can learn AIR if I am pretty comfortable in Flex?

View 2 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







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