Flex :: Print Out An Object Memory Address At Runtime?
Feb 20, 2010How to write an AS3 object's memory location for example to a label?
View 3 RepliesHow to write an AS3 object's memory location for example to a label?
View 3 RepliesIn my project i need to add a button to print. When i press that button i need to print the current screen(or frame).
View 1 RepliesI want my flex 4 application to print proper picture when I click on print in context menu of Adobe Flash Player.Is it possible?
View 1 RepliesI try to convert Movie snapshot at runtime and allow user to print or save images. Found examples of using AS3 JPGEncoder but I got empty image.
[code]...
Suppose that I have two applications running on the same page. I have the Libraries compiled into the SWF file: [code]Is RSL intended to just improve the download time (via caching) or does it also lower the memory foot print of an applicaiton?
View 1 RepliesNot talking video here. Talking interactive apps, like chat. Ours crashes at about 500 connected users. When I report this I'm told "make sure you're not creating too many objects serverside" or "increase the JSRuntimeSize setting in your application.xml file to the max". Have now done both of those things but still get this out of memory error. Let's say I optomized my app and got 100% more connection capacity. That would be 1,000 connected users - still nowhere near enough. Are my dreams of 6,000 or 10,000 connected users enjoying all of the fruits of the FMS interactivity pipe dreams?Is it not meant for sessions of that size?
View 3 RepliesFMS has print error 'JavaScript runtime is out of memory', Is their any way to check the js runtime memory used for specific instance?
View 7 RepliesI used to write programs in the android sdk for google phone. One of the android developers guide that I read says that it is more efficient to declare a const public static const NO:String = "no";
var1 == NO;
var2 = NO;
than to do this
[code].....
I'm making a game for the browser that has a lot of assets, but not all of them are needed at once. I'm deciding whether to embed my assets at compile time or load them at run time. I'm not concerned about loading time -- only the performance of the game during run-time.
If I load these assets and store them into memory for eventual use later in the game, will they consume system resources just being latent in an AssetLoader? Will that affect performance?
If I embed these assets, will they consume system resources just being latent in the compiled SWF?
Is there a difference in performance between these 2 methods?
By default, the iconFunction of List and Tree return only Class as the icon, which is for embeded images or iconUtility kindly provided by this site http:[url]...... It works very well with pre-created images.But what I really want is to accept a completely runtime generate sprite object, similar to what is done by Legend, with the color changes according to what the current status. I assume I could do something to make the ListBase to accept icon argument other than Class.
View 2 RepliesThere are a three public variable
[Code]...
I am creating an object pool to cache some recyclable objects in memory at the outset of my application in order to avoid (as much as possible) the performance issues caused by GC running; if possible I'd like to minimize the memory my object pool reserves, so I'm attempting to pool generic forms of the objects (with no methods) and then casting the generic variants to more specific and complex object types which extend the generic form when I actually want them on the stage.
The trouble is that to do this requires the generic variant class to import/extend MovieClip (because the more complicated objects are themselves MovieClips and make use of DisplayObject methods)-- does simply importing and/or extending a class add to the memory an object takes up when instantiated even if it never uses methods from the inherited class? It makes sense that it would, and some light profiling seems to suggest that it does, but I'm not 100% certain. About how large should an 'empty' MovieClip instance be in bytes?
I'm getting this error with one chat application. According to
[URL]
..I should "Check the JavaScript runtime size for this application in the configuration file". By default it was set to 1024. Any attempt to increase it causes FMS not to start again. This problem just came out of the blue. This same chat app has been in operation with no trouble for about 10 months. I restart the server machine on which it resides before each new chat session.
Is there a way to get the address of object? Or some kind of Flash resource identifier for the object? I'm having an issue where certain fields in an object are different from the original object, but I'm not sure whether the object is the original object I expect it to be.
View 0 RepliesI wrote an application in flash AS3, and when I trace from flash the total memory usage of the total application is only about 9MB, But at the same time Task Manager Shows the memory usage as 110MB. Around 100MB difference.Flash Trace Method System.totalMemory difference of the Trace from the Beginning of the application to end of the application.
View 2 RepliesI have made a image gallery in xml. where i have a main.swf which loads thumbs.swf ( thumb comes from xml file).when i click on thumbnail it loads a slide.swf file.where i have 2 buttons next and prev.next button loads the next swf.prev button loads the previous swf.i want a unique url for each swf loads from xml in next and prev button..i tried a lot by using swf address and swf object for deep linking.
View 4 Repliesinside a MouseEvent.CLICK function, I usually used e.target to address the movieClip that I clicked, but that only work with a movieClip that doesn't have any children (such as text and other symbols) inside. When it has children inside, the e.target return the child inside the Mc but not the Mc itself. The e.currentTarget didn't work, either; it returned [object MovieClip] but not the instance name of the Mc.
View 3 RepliesWhy this code doesn't print anything in the screen?
var ball:Ball = new Ball();
ball.x = 300;
ball.y = 300;
addChild(ball);
I have in the library a Movie Clip with the name "Ball" and the class name "Ball".
I have a print button with this code in it:
Code:
var pj:PrintJob = new PrintJob();
var printOptions:PrintJobOptions = new PrintJobOptions();
[code].......
Is there any way to print the contents of a textfield or string using the pring command in AS?
View 2 Replieswhat I have is:
- listener added with weak refference, therefore it shouldn't keep the GC away
- object set to null
- trace of the object m shows null
- debugger shows the value of m as null
But the "frame" trace still keeps on appearing, so where exactly is that object and how to check for it, how to delete it and kill it. I know that listeners keep objects in the memory, but then how to find them, and at the end of the day also used weakReference=true while assigning it, so that should take care of it. What exactly is going on here?
When debugging, I see an objects memory reference next to its value. Is it possible to get that as a string or assign a variable based off memory location?
var myInt:int = 5; debugger shows(@afff222)
var copy:int = memor(@afff222);
I have this line
Code:
this.parent.removeChild(this);
So basicaly the object is removing it self from the parent object,but I still think that it exisits in memory and doing its backend job.How can I remove it completely from memory?
how to get your logo to appear next to the address of your web site when your website address is typed in,
for example if you look at the website address at the top of the screen you see (logo) [URL]
I am trying to create a print button on the last frame that will allow the user to print just that frame. I've tried using the printjob object, but all that I can get to happen is print a blank sheet of paper. Here is the code that I have so far:
function printScore(event:MouseEvent):void
{
var printJob:PrintJob = new PrintJob();
[code].....
i want to simply print 2 movieClips when i press a Print button. so i have the "_root.container_mc" and "_root.logo_mc"... paste the simplest code for printing a "landscape" page with these 2?
View 3 RepliesI am trying to make a print button that will print the contents of a mc...this mc basically holds a dynamically drawn floorplan which can be zoomed and panned...I want to be able to print the contents of the mc, and only what is viewable in the mc at the time of the print...so if you are zoomed in, all that prints are the actual objects visibly seen in the mc...I think it may be with the print command using bmovie but I have no idea how to assign a #b lable to the frame.
View 3 Replies[Code]... and go to the print section and then check out the print pieces. for some reason my resizing gallery movie is doing some weird stuff and i cant figure out how to fix it. my actionscript goes like this :
[Code]...
I am getting problem of memory of having repeating object. Below is my code.
import flash.system.System;
var counter:Number=0;
var systemMemory:TextField=new TextField();
systemMemory.x=200;
stage.addEventListener(Event.ENTER_FRAME,showNext);
function showNext(event:Event){
[Code] .....
Above code does repeat textField Object continuously. Now I want to destroy previous created textField Object. So that my memory will not be hang. I got some where in the blog that with System.gc() could clear garbage collection. But currently I am not working with system.gc any more I want to clear previous object in programatically way. Is there any way that I could destroy previous created object?
There are a number of posts on here about merging XML with Java, but I can't seem to find any reference to Actionscript for the same task. I have a group of XML files that I need to load. I want them to sort into one XML Object in memory. For example, let's say these were my XML files:
[Code]...