ReadingRoom

Kind of class: public class
Package:
Inherits from:
Version: 27 Apr 2010 Now extends FullScreenSite
20 Apr 2010 Uses ContentPanel and ContentContainer components
12 Apr 2010 Added sidebar
11 Apr 2010 Updated content xml to conform to (mostly) DocBook markup
4 Apr 2010
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.application.ReadingRoom
File last modified: Thursday, 24 February 2011, 22:09:57
An xml-based full-screen flash site template.

Summary

Constructor
Instance methods

Constructor

ReadingRoom

function ReadingRoom()

Instance properties

hasIntro

hasIntro:Boolean = false(read,write)

Instance methods

addSectionContainer

override function addSectionContainer() : void

Adds content container

changeSection

override function changeSection(newSection:int) : void

Change section

Parameters
 

configureContainer

override function configureContainer() : void

Sets container position and size

createNav

override function createNav() : void

Create navigation

createNavButton

override function createNavButton(buttonText:String) : Sprite

Creates and retruns a sprite for a single nav button instance

loadContentXML

function loadContentXML(url:String) : void

loadFooter

override function loadFooter() : void

Loads optional sidebar

loadHeader

override function loadHeader() : void

Loads header ContentPanel

loadMasthead

override function loadMasthead() : void

Loads optional masthead

loadSection

override function loadSection(sectionIndex:int) : void

Loads section

Parameters
sectionIndex:Section index to load

loadSidebar

override function loadSidebar() : void

Loads optional sidebar

onButtonSelect

override function onButtonSelect(event:UIEvent) : void

Actions initiated when nav button is clicked

onContentXMLLoadComplete

function onContentXMLLoadComplete(event:Event) : void

Actions initiated after content xml load is complete

onContentXMLLoadError

function onContentXMLLoadError(event:Event) : void

Content xml load error handler

onFooterLoadComplete

override function onFooterLoadComplete(event:Event = null) : void

Actions initiated after footer load is complete

onHeaderLoadComplete

override function onHeaderLoadComplete(event:Event = null) : void

Actions initiated after header load is complete

onMastheadClick

override function onMastheadClick(event:MouseEvent) : void

Actions initiated when masthead is clicked

onMastheadComplete

override function onMastheadComplete(event:Event = null) : void

Masthead complete handler

onRuntimeAssetsLoadComplete

override function onRuntimeAssetsLoadComplete(event:Event = null) : void

Load content after fonts load complete

onScroll

override function onScroll(event:UIEvent) : void

Scrolls content

onScrollComplete

function onScrollComplete() : void

Actions initiated when scroll is complete

onSectionLoadComplete

override function onSectionLoadComplete(event:Event) : void

Actions initiated after header load is complete

onSidebarLoadComplete

override function onSidebarLoadComplete(event:Event = null) : void

Actions initiated after sidebar load is complete

onStageResize

override function onStageResize(event:Event = null) : void

Stage resizing manager