In addition to mark-and-sweep, the garbage collectors for .Net and Java both also run a compaction phase to cut down on memory fragmentation. I am not able to find any documentation on a compaction/defragmentation phase for the Flash 9 garbage collector - does Flash not have any compaction phase?
...
I am writing a mxml component
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" preinitialize="onPreInitialize();" "creationComplete()">
<mx:Script>
<![CDATA[
private function onPreInitialize():void
{
addEventListener( "RemoteResourceLoaded", remoteResourceLoaded );
loadARemoteResource();
}
]]>
</mx:Script>
I have ...
Hi community,
I have the following problem, I have a canvas with some axes and grids I drawed on it by Shapes and added them to the rawchildren of the canvas. Now I created a custom component with only a VBox and a BezierSpline (degrafa) embedded. Now as I added the spline component to my canvas (addChild(spline) the spline is behind th...
What's the ActionScript equivalent of this MXML?
<mx:RemoteObject id="Server" destination="Server" source="gb.informaticasystems.Server" fault="handler_backendCommunicationFails(event)" >
<mx:method name="executeQuery" result="handler_fetchDataRequestSuccess(event)"/>
</mx:RemoteObject>
TIA!
...
My Friend and I have this debate about it is faster in AS3 to pass this to another object to be able to have communication/interaction between the two or if Events are the way to go. While using Events to accomplish this task is pretty standard, here is some dummy code to illustrate the question:
public class ClassA{
public var i...
Intro to the problem -
With AS3 I want that when people clicks an email address, it opens their email program. Therefore I do this:
mc.addEventListener(MouseEvent.CLICK, sendEmail);
function sendEmail(e:MouseEvent):void{<br />
navigateToURL(new URLRequest("mailto:[email protected]"));<br />
}
The problem:
Every time a user cl...
I have a flash file here, when the flash plays, it works fine, but in IE and if the flash was already loaded once and is now cached, it freezes up. After digging super deep on the internet I was able to find out the following:
There are a bunch of known bugs in
flash 9 and 10, one of those being an
issue with the Event.COMPLETE n...
I work on a 2D shooter game with lots of moving objects on the screen (bullets etc).
I use BitmapData.copyPixels(...) to render entire screen to a buffer:BitmapData.
Then I "copyPixels" from "buffer" to screen:BitmapData. The framerate is 60.
private var bitmap:Bitmap = new Bitmap();
private var buffer:Bitmap = new Bitmap();
private f...
Two of our apps are web applications with a Flex 3 front end and a SOAP-style WCF back end. To communicate with the back end, I generate web service client classes through Flex Builder 3. Everything's functional, but maintaining those generated classes has been quite annoying, and I'm looking for a better way to do things (without havi...
I am writing a pure actionscript 3 application in Adobe Flex. I want my application to be exposed to scripting in a browser. It seems that there are two options: Adobe's Ajax Bridge (typically used with a Flex application that uses mxml?) and Adobe's External Interface class (flash.external.ExternalInterface). Is there any reason to u...
I would like to embed just a subset of characters from a font (for example only a certain number of Chinese characters instead of the whole character set).
The traditional way I've known how to do this is using the "Include these characters" input box method outlined below:
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?conten...
I have created a Sprite in Actionscript and rendered it to a Flex Canvas. Suppose:
var fooShape:Sprite = new FooSpriteSubclass();
fooCanvas.rawChildren.addChild(myshape);
//Sprite shape renders on screen
fooShape.rotation = fooNumber;
This will rotate my shape, but seems to rotate it around the upper-left
point of its parent contai...
I've been working on this for awhile, now. You might also call it a 'reverse mask', or an 'inverse mask'.
Basically, I'm creating a view window within a display object. I need to allow objects on the stage that are under the window to be able to interact with the mouse.
This is similar to a WPF question: http://stackoverflow.com/ques...
Hello all, I seem to have made a booboo somewhere in my actionscript 3 (flash cs4).
I have this here page: http://tinyurl.com/ll92o5 with a portfolio section. The buttons work until you reach one of my frames wherein I have a second set of buttons (in the description), that are meant to take you to other views of the project.
Any ideas...
Flex Builder defaults some components to "fit to content" if you don't specify a set width or height. I'm trying to fill a mx:Tile component with Actionscript, but the layout has some strange spacing when I don't specify the width of a component I add to it. Is there a way to set the components to "fit to content" using Actionscript?
...
Hi community I have the following problem,
given this xml
<test>
<comp>
<id>1</id>
<content>bar</content>
</comp>
<comp>
<id>2</id>
<content>foo</content>
</comp>
</test>
I want to change the value of the content of the comp element with id 2. Therefore I loop with a foreach loop
for each (var x ...
I've been struggling with how I can build mxml from the displaylist created within an application. For example, create a number of components on a canvas, then click a button to get a formatted xml document, in mxml, of the canvas and its properties.
Is there a simple method for this?
Many thanks for any help...
...
From what I understand of ActionScript, there are two kinds of casts:
var bar0:Bar = someObj as Bar; // "as" casting
var bar1:Bar = Bar(someObj); // "class name" casting (for want of a better name)
Also, and please correct me if I'm wrong here, as casting will either return an instance of the class or null, while "class name" casting...
Hello Everyone,
I want to create a notification icon like the the red one in the bottom right-hand corner of Facebook. I tried using a ToolTipManager to create a tooltip but since Tooltips appear in their own layer in Flex and, as far as I am able to figure, cannot be anchored to any part of the page. When the user uses the browser's ...
Hi.
In AS2 was easy to change a value from a variable that was in other timelines...
Now i cant do the old way!
Basically what i need is to change a value from a variable that is in the main timeline, from other timeline.
Example:
main timeline
var totalA:int = 0;
other timeline, after adding the eventListener to the function:
p...