Flash.utils - Details Adobe ActionScript 3 (AS3) API Reference

This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.htm l

The documentation for setTimeout() is incorrect. It claims that...
If you do not call the clearTimeout() function to cancel the setTimeout() call, the object containing the set timeout closure function will not be garbage collected.
However at least in the current version of Flash, this is not correct. Once the closure has been executed the reference will be removed and the object may be garbage collected.
See discussion at: http://stackoverflow.com/questions/16489536/does-flash-utils-settimeout-leak-memory-if-cle artimeout-is-not-called

Similar Messages

  • Condition - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/concurrent/Condit ion.html

    Hi aligned2009,
    I'm sorry that the description wasn't what you were hoping for.
    I'm actually surprised by the sentence "the methods and properties only reflect inherited methods and properties." The .mutex and .isSupported property descriptions are pretty short, but the notify() and notifyAll() method descriptions are several paragraphs each. When I wrote these I was trying to keep them concise enough to be clear, but include all the details from my conversations with the engineers who worked on this API.
    If I'm understanding correctly and you're only seeing inherited methods and properties, I wonder if a filter setting is preventing you from seeing some of the documentation. To check this look near the top of the page in the "Filters" section (you may have to expand it by clicking the tab in the center). Move your mouse over the word "Runtimes" then make sure "AIR 3.6 and earlier" and "Flash Player 11.6 and earlier" are selected.
    Hopefully that fixes the problem and allows you to see the descriptions for the properties and methods at least. (Admittedly there's still no example...it's definitely something that could be useful but it's complicated enough that I haven't had a chance to make one yet.)

  • Accelerometer - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.stage.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/sensors/Acc elerometer.html

    Hi All,
    I am facing an issue with mouse hiding. In my as3 app i am trying to load an as2 swf using Local connection.
    after 3-5 times loaded/unloaded its getting hidden the mouse cursor.i tried to call the Mouse.show() methode. but no results found.
    I am trying to load a print2flash as2 doc swf.Help me if anybody have a solution for this.
    thanks in advance.
    Arunraj.

  • ByteArray - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/ByteArray.h tml

    I think the documentation needs to specify for each method whether it will change the position pointer or not.  I have to find out the hard way that only the write methods move the position, while the Socket.read doesn't, nor the read methods.  Basically, if you're using this class, don't rely on it; always set the position yourself.  Also, I tried to optimize by reusing ByteArray, but not a good idea; always create new ByteArray.

  • TextField - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.ht ml

    "For AIR content in the application security sandbox, AIR ignores img tags in HTML content in ActionScript TextField objects. This is to prevent possible phishing attacks,"
    Are you kidding me, right? O.o

  • DisplacementMapFilter - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/Displacem entMapFilter.html

    I think there may be a typo:
    dstPixel[x, y] = srcPixel[x + ((componentX(x, y) - 128) * scaleX) / 256, y + ((componentY(x, y) - 128) *scaleY) / 256)
    shouldn't this be:
    dstPixel[x, y] = srcPixel[x + ((componentX(x, y) - 128) * scaleX) / 128, y + ((componentY(x, y) - 128) *scaleY) / 128)

  • IME - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/IME.html

    useful

  • DisplayObjectContainer - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayOb jectContainer.html

    textInput does not get tabIndex if placed inside a MovieClip. For that you need to set it like: myTextInput.textField.tabIndex = 1;

  • DatagramSocket - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/DatagramSocke t.html

    Why is this not supported for Flash Player runtime? Any plans to do this? It would really help for fast paced multiplayer games.

  • StyleSheet - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/StyleSheet.h tml

    I try to set fontFamily property with string "UnknownFont1, UnknownFont2, _typewriter" and it doesn't work. If I use "UnknownFont1, Courier" or just "_typewriter" all works perfectly.
    Please, fix this bug in future versions of FlashPlayer and Adobe AIR.

  • XMLSocket - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/XMLSocket.htm l

    There is no ProgressEvent discpathing from XMLSocket, right?
    So this is not needed: dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);

  • IFilePromise - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/IFileProm ise.html

    How to cancel file download operation, if i am using URLFilePromises to download a file(drag and drop to desktop)???

  • File - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml

    The File.browseForOpen functionality worked correctly (as described in this reference) in AIR 3.5, however does not work as described in AIR 3.6 or AIR 3.7.  It was possible (when working) to preload the File with a directory before calling the File.browseForOpen so the dialog box could be opened in a previously  selected directory.  Starting in AIR 3.6 this functionality no longer works.  It opens in the last directory selected by the user, which may not be the desired location, thus requiring the user to manually navigate to the appropriate directory (assuming the user remembered where that directory was)!
    Adobe has acknowledged the problem.   It was identified as a high priority problem, but has since been reduced to medium priority for some reason.  No workaround has been identified.

  • PerspectiveProjection - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/geom/PerspectiveP rojection.html

    The image of frustum volume is wrong. The viewpoint in the image should be (projectionCenter.x, projectionCenter.y, -focalLength), instead of (0, 0, -focalLength).

  • MultitouchInputMode - Adobe ActionScript 3 (AS3 ) API Reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/ui/MultitouchInpu tMode.html

    yes, touch devices work well with MouseEvent.MOUSE_DOWN.
    and yes, you can have multiple buttons listening for mousedown events.  and yes, those buttons can check for simultaneous mousedown events.
    one way to check for simultaneous mousedown events (and there are better ways especially if there might be more than 2 simultaneous events to check) is to use:
    var btnsDownA:Array = [];
    btn1.addEventListener(MouseEvent.MOUSE_DOWN,btnDownF);
    btn1.addEventListener(MouseEvent.MOUSE_UP,btnUpF);
    btn2.addEventListener(MouseEvent.MOUSE_DOWN,btnDownF);
    btn2.addEventListener(MouseEvent.MOUSE_UP,btnUpF);
    function btnDownF(e:MouseEvent):void}
    if(btnsDownA.indexOf(e.currentTarget.name)==-1){
    btnsDownA.push(e.currentTarget.name);
    if(btnsDownA.length==2){
    // do whatever -  simultaneous mousedown events.
    function btnUpF(e:MouseEvent):void}
    if(btnsDownA.indexOf(e.currentTarget.name)>-1){
    btnsDownA.splice(btnsDownA.indexOf(e.currentTarget.name),1);

Maybe you are looking for