AdvancED ActionScript 3.0: Design Patterns by Ben Smith

AdvancED ActionScript 3.0: Design Patterns by Ben Smith

Author:Ben Smith
Language: eng
Format: epub
Publisher: Apress®
Published: 2011-09-06T16:00:00+00:00


Figure 6-9. The Singleton making use of the Abstract Factory

Listing 6-32. FaceBook

package

{

public class FaceBook extends EventDispatcher

{

[Event(name="Connect", type=" FaceBookEvent")]

[Event(name="Complete", type=" FaceBookEvent")]

static public const COMPLETE : String = "complete";

static public const CONNECT : String = "connect";

protected var _faceBook : iFaceBook;

protected var _shortProfile : ShortProfileInformation

protected var _hasProfile : Boolean

public function Login( target : IEventDispatcher = null )

{

_shortProfile = new ShortProfileInformation()

_hasProfile = false

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.