ActionScript 3.0 :: Understanding System.totalMemory?

Mar 17, 2007

For a long time I've been puzzled by the new System.totalMemory variable. Whenever I make an AS3 project, I try using the following code:

Code:
package whatever {
import flash.system.System;

[code].....

View 2 Replies


Similar Posts:


Actionscript 3.0 :: Exactly Does System.totalMemory Test?

Apr 7, 2010

before somebody screaming RTFM, let me clarify. does system.totalMemory test the memory used in movie which invokes it, or used by all movies running on the browser/system?

I want to initiate garbage collaction for my app when it reaches a certain limit and i dont want the process to be initialized by the user watching funny cats youtube video.

View 2 Replies

ActionScript 1/2 :: Finding An Alternative For System.TotalMemory?

Aug 2, 2011

Is there an alternative for System.TotalMemory in actionscript 2.0?I would like to know how much memory is used by flash players.Also is it possible to clear the memory.

View 3 Replies

Flash :: Sytem.totalMemory Keeps Increasing

Jun 19, 2009

I have this blank project, just to check out System.totalMemory variable. As far as I can see, i get this values[code]...

View 5 Replies

ActionScript 3.0 :: Unload FLVPlayer Component - TotalMemory Increases Every Time

Jan 26, 2010

I have added a FLVPlayer component to my clip/class. On REMOVED_FROM_STAGE I call the unloadAndStop on the Loader object and null all references but the totalMemory increases every time. What can I do to remove it completly?

View 2 Replies

ActionScript 3.0 :: System.useCodePage - Getting Error 1120: Access Of Undefined Property 'System?

Aug 7, 2009

I got a textfile who i am reading on a serverside script and passing it as a script to my client side as3 code. The problem is that i am using characters like ä,ö,ü,ß and this isn't well displayed. I tried System.useCodePage but the compiler complains about : 1120: Access of undefined property 'System'. It doesnt matter if I tried this on the first line of the 'Action' in the first scene or in the first line of the first .as file i am loading. (btw i am only working with .as file and not in the timeline). When i am importing flash.System.* the compiler complains he dont know useCodePage.

View 3 Replies

ActionScript 3.0 :: Understanding Mc.name.slice(5 - 9)

Oct 21, 2011

This may be a bit of an easy question for some, but I'm having difficulty understanding what mc.name.slice(5,9) does. What is this name slice bit about?

View 5 Replies

MX04 Understanding 'for' Loop Iterations

Mar 25, 2009

How come every time I run this script:[code]Where does the Undefined come into things? I have only asked the script to fire 3 times so the first time through the text in position [0] in the script Carp should be printed out?

View 2 Replies

Actionscript 3 :: Understanding An AMF Polling Call

Sep 19, 2011

One of my testers is asking me about an AMF polling that we do in our app:[code]They are seeing values of 0 and 5.

View 1 Replies

Flash: Understanding Program Flow?

Mar 9, 2012

Specifically, I have a demo of a flash game (sort of super mario style). In it I have two types of weapon - a simple fire and big fireball. I reviewed the code in order to learn flash better [I am very new - since around monday this week].

I saw that the program has a variable that keeps track of the number of uses I have left in each weapon. I tried to review all the places this variable was used but I couldn't find where it affects the drawing onto the screen.

I even tried removing the variable declaration and then testing it - so I may find all references to the variable -- By the way any convinient way of finding all references to a variable/method/class [I am using ADOBE FLASH CS5.5]?
Also, I tried changing the variables starting value to "12" and I noticed that when I test the game, the weapon has 12 uses indeed.

So my problem:1. It seems that this variable is somehow affecting the drawing. Yet, I don't know how it does so since all the code I have found that uses this variable has nothing to do with drawing. It is all, logic, like

if(var <= 0){
var--;
} else{
return false;
}

Where is this influence coming from?get all references to a variable[like in eclipse ctrl+shift+g]?

View 1 Replies

ActionScript 2.0 :: Missing Key Understanding About Arrays

Dec 19, 2009

I've been using arrays and for loops in flash for some time now. Mostly successfully.But I'm missing some important understanding of how they really work. Here's the simple code that turns my head around and makes me realize I know nothing.[code]When I trace _root.term_array later in the code, it gives me the list of words and then a ton of 'undefined's. When I trace _root.term_array.length it says it's got 130 items. In my mind it should only have 13.

View 3 Replies

ActionScript 2.0 :: Understanding The Currentframe Concept

May 19, 2005

so I'm still learning the basic concepts. Attached to a movieclip used as a button I have this actionscript:

[Code]...

Which basically causes the movieclips 'leaf1' to shrink, 'vinefade' to go to its first frame, 'artween_mc' to unload, and for all other commands on this button to be disabled. I also want it to check another movieclip called 'leaf9', and see if it's current frame is at less than a particular frame number (73), because if so I want it to start playing forward. Once it reaches this frame number (73), I want to cause linkstween_mc to become visible and hit9button (also a movieclip) to become enabled. My current script does absolutely nothing to leaf9

View 6 Replies

ActionScript 3.0 :: Understanding Basics Of Random Motion

Apr 15, 2011

I started out learning AS3 on my own a while ago without any programming experience whatsoever. I'm still in my diapers, but slowly progressing. Currently I'm working on a short animation with some code involved. Part of the animation is a herd of cows grazing in a pasture. I have a class called Cow which extends MovieClip and on the Cow timeline I have the walk cycle and other cow movements animated. When a cow is walking it slowly moves horizontally, along the x axis. I want the cows, when walking to also randomly move up and down (along the y axis) which would basically look as though the cow is moving further away or moving closer towards us. I'll be resizing each cow, according to its y position to create the effect of perspective (near and far).

What I'm trying to figure out is how to make the cow move either up or down the y axis in a somewhat random way. By "somewhat random" I mean that I don't want the cow to switch directions every second, but rather something like: 5 seconds moving up the y axis, then maybe 8 seconds moving down, then possibly 4 up, then 11 down, etc. It would be super if I could also have a velocity factor involved, meaning that when changing directions - from up to down, or down to up - I prefer that the change is smooth, like as in a ease out and then ease in.

[Code]...

View 2 Replies

ActionScript 3.0 :: Understanding Script For Rotating Objects

Aug 13, 2009

I am trying to understand what part of AS3 script says loop through(create a continues 360 loop of objects) the images from an XML file, does this make any sense.[code]is this the part that says loop the images/objects.this is a little more to the script including the above to maybe understand better?[code]

View 40 Replies

ActionScript 3.0 :: Understanding A Basic Scripting Concept

Jan 16, 2010

I'm currently reading the book Learning ActionScript 3.0 and have dificulties understanding some programing basics due to my total lack of prior programing knowledge.For example now I'm looking at this script from the book that traces a list of all display objects on the stage and their children:[code]I understand everything except one thing. When there is an object with children (DisplayObjectContainer), the function traces the object but doesn't proceed and calls itself starting all over again this time analyzing the first child of the object. And if the child also have children itself the list will branch out until there is an object without children.What I don't understand is how the function at this point knows how to return to the last parent object and continue to analyzes its other children if any.For example when the function analyzes the stage of a scene with the following content how does the function know to continue analyzing child0. To me, looking at the code, I would expect the function to exit after listing [object StaticText]. I have hard time understanding what makes the function go back to largeContainer and continues with its child0 and so on.[code]This all what the book says regarding this which is not enough for me to understand this process:the function calls itself again. passing in the object currentlybeing inspected. This concept is called recursion. A function calling itself mayseem redundant, but it can be very useful. In this case, each time the functionis called, it receives a new display object to analyze, so the function reportsthe contents of that specific display object. The result is a complete walkthroughof all display objects, no matter how many children each may have.

View 5 Replies

Flex :: Understanding Remote Shared Objects?

Oct 20, 2009

I have 2 questions about remote shared objects in Flex/ActionScript3:1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect

View 2 Replies

Flex4 - Understanding Flash Packages And Dependencies

Sep 13, 2010

I'm trying to understand how packages and dependencies work with Adobe Flash Builder 4. I've copied an example here and put it in a .as file called DependencyGraph. However I get the error message:
A file found in a source-path must have the same package structure '',
as the definition's package, 'DependencyGraph'.
I understand that the original file has a package name called package flare.apps. What should I change to enable this to run?

View 1 Replies

ActionScript 3.0 :: Understanding Transfer Matrix Operations

Nov 14, 2010

I'm editing the MotionPath LinePath2D by Greensock to make it become LinePath3D. However I'm stuck in editing this method:

[Code]....

I don't get the operations Greensock does to find the y and x inside the atan2. Why does he multiply xChange (which is a scalar and it should be the delta-x of the Line segment [IMG]) to the b component of the matrix and then sum it to the other thing?

[Code]....

View 0 Replies

ActionScript 2.0 :: Modifying/Understanding Flash Counter?

Jul 2, 2008

fix a counter on one of the flash applets he hired someone to make for him. It's AS2 and done in Flash 8.

http:[url]....

It pulls from the current time on the system clock.Essentially it's counting 4 times too slow. I am awful with even reading AS let alone trying to find the equation running this. what I need to edit in the AS to speed this up?

View 12 Replies

ActionScript 3.0 :: Understanding The Load / Unload Event

Jul 20, 2009

My problem is understanding the load/unload event. What I have at the moment is a test file. There is one button that loads an external swf (carnival.swf). This seems to work ok as far as i can tell, although I think the way I have hidden the button once the SWF loads is wrong....anyway... On the carnival.swf there would be a "back to main page" button that would simply remove the carnival.swf from the stage and reactivate the button on the main swf, which in the future would have other buttons that would load other swf's on to the stage.

View 2 Replies

ActionScript 3.0 :: Understanding Doc Class And Adding Functions Via External .as File?

Sep 9, 2010

Say I have 3 fla files, each with it's own document class. I want to define some unique variables in each of those 3 files.Now once the variables (unique to each fla) are set, I want to call the same function - setting up the files. I want this function in a separate as file so i only have to make changes in one spot.How do I link the 1 .as file to each of the 3 doc class files and have it's function called in the constructor of each on

View 2 Replies

Understanding Flash SWC's Imported Into Flex Builder 3 And Key Framed Animation

Mar 25, 2010

I am trying to understand what is going on in a SWC that I am importing from Flash CS4 into Flex Builder 3. Specifically I am using a SWC supplied by a Designer as the animation for a custom preloader (a subclassed DownloadProgressBar).The issue I am trying to understand is, once the FlexEvent.INIT_COMPLETE is fired, I cleanup by removing the swc by running this [code]though even after I have removed this (which is successful, as I have checked by comparing this.numChildren before and after the call) the key framed animation still continues to run (not visibly). This has been detected by the Designer placing a trace in the time line of the animation (in Flash). Can anyone tell me why is it, that even after I have removed the animation from the subclassed DownloadProgressBar, it still keeps running ? Also, is it standard practice when importing SWCs to manage the cleanup of resources from the Flash side of things (much like releasing memory in obj-c). I find it counter intuitive that removing the child from the Flex side does not stop the animation.

View 1 Replies

Actionscript 3 :: Not Understanding Basics Of Dynamic DataBinding (bindPropety) In Flex

Jun 6, 2010

I need to dynamically bind properties of components created at runtime. In this particular case please assume I need to use bindProperty. I don't quite understand why the following simplistic test is failing (see code). When I click the button, the label text does not change. I realize that there are simpler ways to go about this particular example using traditional non-dynamic binding, but I need to understand it in terms of using bindProperty.

[Code]...

View 2 Replies

ActionScript 3.0 :: Particle System And Masking - Particle System Movieclips To Display An Image?

Dec 29, 2010

Is it possible to make this a mask? The system contains one movieclip of a circle called ball, also a class called ball and a class called particle. I want the particle system movieclips to display an image...I'm sure this is possible...just have not been able to find a way. A little backround, I'm a completely selftaught n00b when it comes to AS3, but I'm grasping it fairly well... the tutorial is on this website, called A Simple Particle System Using Actionscript 3.

View 0 Replies

Understanding The "Instantiation" Of Actionscript/Flash Objects?

Jul 28, 2009

clarify the different logical instantiations of objects in actionscript?So far it seems there are 3 layers of instantiations, for lack of a better term.The first one is declaring a variable/type.Next is instantiating that variable with something solid in the code, like a method or function? Is this just a way to glue things together? Then after that you instantiate it on the stage, is this something you have to do explicitly, or is it a side effect? Is this "3 layer" concept the correct way of looking at it, kind of like the MVC for flash app logic?

View 2 Replies

Flash :: Not Understanding A "term Is Undefined" Error

Jul 24, 2011

Here is an example of the code I'm working on:

[Code]...

Note that I do have auto declare enabled in my script settings. How should I fix this?

View 1 Replies

Flex :: Input - Flex On Touch Screen System: Web Sites In Flex Works On Touch Screen System?

Sep 22, 2010

I build a web site in flex that some time take input. Will this website works on Touch Screen environment(KIOSK).My question is we have to make any change to handle input such as prompt on screen keyboard when input fields are get focused or it will manage my device and OS of system(KIOSK, Touch screen system) itself.

View 2 Replies

Bugs In IK System?

Jun 2, 2009

When I use IK system to build a man and move it to perform poping, I found the more poses I gave to it the more its arms and legs would drift away. I didn't use alt and mouse to move the limbs. I only use my mouse to pose it. But WHY after I finished some poses, the limbs of the figure would get loosened?What was worse, If i adjusted those limbs(by alt and left click-drag) to fix the drift, the poses I have finished would be messed. So, what should I do?

View 3 Replies

CS3 Adding An 'inventory' System?

Mar 5, 2012

I'm making a sort of interactive graphic novel and was wondering how would I implement some sort of inventory system. Btw, I'm using Actionscript 2.0

----INVENTORY SYSTEM 001----

You see, I would like the ending screen to show a summary of what the player has done in the game.And certain points in the game would add certain 'items' into the inventory which will in turn affect what is displayed in the summary screen.The 'items' here being words or phrases.eg:

Quote:
You _______ with the _______ and proceeded to _______. But you _______.


For example, if the player chooses Path A, summary screen will show: eg:

Quote: You stabbed the unicorn with the shark fin and proceeded to shag your mistress. But you ate a pecan pie.But if the player chooses Path B, the summary screen will instead show eg:

Quote: You stabbed the tree with the shark fin and proceeded to shag the corned beef. But you smashed a watermelon and caused a civil war.

----INVENTORY SYSTEM 002----

I think with a few modifications, this inventory system could also be used to affect the outcome of the movie depending on what item the player currently owns? Please enlighten me if this system is feasible.

The player is given a choice to pick up a spoon or a fork in the beginning of the game.The player is later faced with a soup crisis. If the player has previously picked up a spoon, the soup can be consumed. Otherwise, the soup is left well alone.

View 13 Replies

Professional :: System.gc() Recognized In AIR 3 For IOS?

Mar 6, 2012

is System.gc() recognized in AIR 3 for iOS ? Or am I putting on a line a code that's just for pasterity ? I have made every effort to dispose(),null and removeEventListener any unused Object, hence to be able to tell the Garbbage Collector to "go ahead" is a really awesome feature.

View 5 Replies







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