Recent Forum Posts
From categories:

check this link out I agree with the post that Singletons can simply be enforced with a tiny bit of documentation, but this is interesting nonetheless.

Re: Singletons not supported in AS3 - Why? by edoleckiedolecki, 1213153941|%e %b %Y, %H:%M %Z|agohover

Greetings, glad that inspired something. I hope you find the time to contribute here.

Re: A Hearty Hello by Anonymous (71.184.137.x), 1213153752|%e %b %Y, %H:%M %Z|agohover
A Hearty Hello
jschertzjschertz 1212162353|%e %b %Y, %H:%M %Z|agohover
in discussion ActionScript 3 Code / General Discussion » A Hearty Hello

Might as well introduce myself, I'm a mid-level Flash Dev working out of Chicago. I'm currently with Whittmanhart Interactive. I've been a longtime reader of Eric's work, he kind of got me to break the boundary from design to development when I first saw his Speaker wire test.

A Hearty Hello by jschertzjschertz, 1212162353|%e %b %Y, %H:%M %Z|agohover

Why are singletons not supported in AS3? Are there any inventive ways to work around this? I find myself translating a lot of classes from AS2 and AS3 and I run into this problem a lot.

Singletons not supported in AS3 - Why? by jschertzjschertz, 1212162136|%e %b %Y, %H:%M %Z|agohover
removeAllChildren
edoleckiedolecki 1203692330|%e %b %Y, %H:%M %Z|agohover
in discussion ActionScript 3 Code / General Discussion » removeAllChildren

Flex has removeAllChildren, but outside of Flex, you need to roll your own for now. An example.

private function removeAllChildren( containerObj:* ):void
{
    while ( containerObj.numChildren > 0 )
    {
        container.removeChildAt(0);
        // Of course this does not ensure Garbage Collection,
        // You'll still need to provide this logic.
    }
}
removeAllChildren by edoleckiedolecki, 1203692330|%e %b %Y, %H:%M %Z|agohover

Thanks so much Helmut, I really do appreciate it!

Re: This is a test Thread by edoleckiedolecki, 1203683634|%e %b %Y, %H:%M %Z|agohover

Hi from the community forum - I took a look at your question !

I was gone through the link you provided…

[*http://ericd.wikidot.com/forum/c-31717/general-discussion | AS3 General]

Best regards
Helmut


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

Re: This is a test Thread by Helmuti_pdorfHelmuti_pdorf, 1203669379|%e %b %Y, %H:%M %Z|agohover
ECMAScript 4: Moock & Francis Cheng
edoleckiedolecki 1203623919|%e %b %Y, %H:%M %Z|agohover
in discussion ActionScript 4 / Grapevine » Moock

Francis Cheng's blog about ECMAScript4.

Moock's lecture notes can be found here.

  • Generic Functions: This functionality will add Java-style method overloading to ActionScript. A function must be defined with the keyword generic, but then mutliple methods (with different method signatures) can be used.
  • Iterators and Generators: Increased support for iterating over a series of values using a class defined iterator. Both of these items are very Python-like.
  • Proper Tail Calls: A function can properly call another function as its last operation - this adds increased support for recursion patterns.
  • New Number Types: byte, double, decimal (and the current generic ‘Number’ type would be removed)
  • Numeric Suffixes: As in Java, numeric literals will have suffixes to denote their specific numeric type.
  • Vector Type: As in Java, there will be a mono-typed array called Vector. Length can optionally be pre-defined at creation.
  • Record Type: Describes the details of an object - easier to create than a class. I believe it is dynamic - in that it has required values, but additional properties can be defined per instance.
  • Array Type: A type that describes what will be contained within an array. For example - you could say that you will have a 7-element array made up of Strings.
  • Union Types: A property (or argument) could be one of a list of types (as opposed to now where a property has to be of one type - or no type). This would give you the ability to have an argument that could be a String or XML - but nothing else.
ECMAScript 4: Moock & Francis Cheng by edoleckiedolecki, 1203623919|%e %b %Y, %H:%M %Z|agohover
test code
edoleckiedolecki 1203614660|%e %b %Y, %H:%M %Z|agohover
in discussion ActionScript 3 Code / General Discussion » test code
// ActionScript 3 event handler
function clickSubmit(event:MouseEvent):void {
     stage.invalidate();
     gotoAndStop("submitFrame");
}

// add clickSubmit event handler as listener of the 
// click event received by submit_button instance
submit_button.addEventListener(MouseEvent.CLICK, clickSubmit);
test code by edoleckiedolecki, 1203614660|%e %b %Y, %H:%M %Z|agohover
This is a test Thread
edoleckiedolecki 1203611903|%e %b %Y, %H:%M %Z|agohover
in discussion ActionScript 3 Code / General Discussion » This is a test Thread

Hey there!

This is a test Thread by edoleckiedolecki, 1203611903|%e %b %Y, %H:%M %Z|agohover
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License