Layout.as

Summary
Layout.as
events
org.silex.core.LayoutThis class represents a layout which is an object called silexLayout created at run time at the root of each layout.
silex_ptrreference to silex main Api object (org.silex.core.Api)
layers
layerContainers
defaultIcon
layouts
layoutFileName
anims
layoutContainer
currentChildLayoutContainer
currentChildLayoutContainerIndex
deeplinkNameName of the page deep link.
isContentVisibleis content visible? 
seokeywords description isAutomaticSeoActive
isDirtyset by propeties tool box when a property has been changed
xml data
_xml
xmlFileName
sectionName
cleanSectionName
xmlLoaded_bool
initDone_bool
dom
domOutOfContext
registeredVariablesStore the dynamic data.
dbdata_obj
Layout
xmlConnect
amfConnect
xmlLoadedCalled by _xml when xml data is loaded.
amfLoaded
init
closeClose the layout
closeChildclose children and then start the close transition anim
transitionCloseStopthe tracition close anim is over
transitionCloseStartthe tracition close anim started
unloadLayoutCallbackthe close anim ended
doUnloadLayoutCallback
endAnimPreloadcalled by org.silex.core.Sequencer when preload anim ends
startAnimShowcalled by org.silex.core.Sequencer when show anim ends
endAnimShowcalled by org.silex.core.Sequencer when show anim ends
registerAnimhas to be called on the 1st frame of a layout
registerLayerContainerCalled by the layout.
loadRegisteredLayer
registerLayerCalled by the org.silex.ui.Layer class before all players have been initialized.
registeredLayerAllPlayersLoadedCalled by the org.silex.ui.Layer class after all players have been initialized.
registerLayoutContainerCalled by the child layout component.
registerDefaultIcon
unRegisterDefaultIcon

events

org.silex.core.Layout

mx.core.UIObject
org.silex.core.Layout

This class represents a layout which is an object called silexLayout created at run time at the root of each layout.  Handle the loading process of the xml data.  In the repository : /trunk/core/Layout.as

Version

1

Author

Alexandre Hoyau

Summary
silex_ptrreference to silex main Api object (org.silex.core.Api)
layers
layerContainers
defaultIcon
layouts
layoutFileName
anims
layoutContainer
currentChildLayoutContainer
currentChildLayoutContainerIndex
deeplinkNameName of the page deep link.
isContentVisibleis content visible? 
seokeywords description isAutomaticSeoActive
isDirtyset by propeties tool box when a property has been changed
xml data
_xml
xmlFileName
sectionName
cleanSectionName
xmlLoaded_bool
initDone_bool
dom
domOutOfContext
registeredVariablesStore the dynamic data.
dbdata_obj
Layout
xmlConnect
amfConnect
xmlLoadedCalled by _xml when xml data is loaded.
amfLoaded
init
closeClose the layout
closeChildclose children and then start the close transition anim
transitionCloseStopthe tracition close anim is over
transitionCloseStartthe tracition close anim started
unloadLayoutCallbackthe close anim ended
doUnloadLayoutCallback
endAnimPreloadcalled by org.silex.core.Sequencer when preload anim ends
startAnimShowcalled by org.silex.core.Sequencer when show anim ends
endAnimShowcalled by org.silex.core.Sequencer when show anim ends
registerAnimhas to be called on the 1st frame of a layout
registerLayerContainerCalled by the layout.
loadRegisteredLayer
registerLayerCalled by the org.silex.ui.Layer class before all players have been initialized.
registeredLayerAllPlayersLoadedCalled by the org.silex.ui.Layer class after all players have been initialized.
registerLayoutContainerCalled by the child layout component.
registerDefaultIcon
unRegisterDefaultIcon

silex_ptr

private var silex_ptr: org.silex.core.Api

reference to silex main Api object (org.silex.core.Api)

layers

var layers: Array

layerContainers

var layerContainers: Array

defaultIcon

var defaultIcon

layouts

layoutFileName

var layoutFileName: String

anims

var anims: Array

layoutContainer

var layoutContainer: MovieClip

currentChildLayoutContainer

var currentChildLayoutContainer: MovieClip

currentChildLayoutContainerIndex

var currentChildLayoutContainerIndex: Number

deeplinkName

var deeplinkName: String

Name of the page deep link.  Used by silex.deeplinkManager::getCurrentPath.

See Also

org.silex.core.DeeplinkManager::getCurrentPath

isContentVisible

var isContentVisible: Boolean

is content visible? set bay startAnimShow

seo

keywords description isAutomaticSeoActive

isDirty

var isDirty: Boolean

set by propeties tool box when a property has been changed

xml data

_xml

var _xml: XML

xmlFileName

var xmlFileName: String

sectionName

var sectionName: String

cleanSectionName

var cleanSectionName: String

xmlLoaded_bool

var xmlLoaded_bool: Boolean

initDone_bool

var initDone_bool: Boolean

dom

var dom: Object

domOutOfContext

var domOutOfContext: Object

registeredVariables

var registeredVariables: Array

Store the dynamic data.  Used by DynDataManager class.

dbdata_obj

var dbdata_obj: Object

Layout

function Layout(api: org.silex.core.Api,
parent: MovieClip,
sectionName_str: String,
layoutFileName_str: String,
deeplinkName_str: String)

xmlConnect

function xmlConnect()

amfConnect

function amfConnect()

xmlLoaded

function xmlLoaded(success: Boolean)

Called by _xml when xml data is loaded.  Create the dom object corresponding to the xml data.  Load layers objects in the registered layerContainers.  Push the show anim in the sequencer.

Parameters

target_mcmovie clip in which the section (the layout) is loaded

amfLoaded

function amfLoaded(resultObj: Object)

init

function init()

close

function close()

Close the layout

closeChild

function closeChild()

close children and then start the close transition anim

transitionCloseStop

function transitionCloseStop()

the tracition close anim is over

transitionCloseStart

function transitionCloseStart()

the tracition close anim started

unloadLayoutCallback

function unloadLayoutCallback()

the close anim ended

doUnloadLayoutCallback

function doUnloadLayoutCallback()

endAnimPreload

function endAnimPreload()

called by org.silex.core.Sequencer when preload anim ends

startAnimShow

function startAnimShow()

called by org.silex.core.Sequencer when show anim ends

endAnimShow

function endAnimShow()

called by org.silex.core.Sequencer when show anim ends

registerAnim

function registerAnim (target_mc: MovieClip,
animName_str: String)

has to be called on the 1st frame of a layout

registerLayerContainer

function registerLayerContainer(layerContainer: MovieClip,
layerName_str: String)

Called by the layout.  The target is filled with a layer object.  To be efficient, it has to be called on the 1st frame of a layout.

loadRegisteredLayer

function loadRegisteredLayer(layerContainer: MovieClip)

registerLayer

function registerLayer(target_mc: org.silex.ui.Layer)

Called by the org.silex.ui.Layer class before all players have been initialized.  Store the layer into layers array and retrieve the layer’s name from layer container.

registeredLayerAllPlayersLoaded

function registeredLayerAllPlayersLoaded(ev: Object)

Called by the org.silex.ui.Layer class after all players have been initialized.  Check for deeplinks or default icons.

registerLayoutContainer

function registerLayoutContainer(layoutContainer_mc: MovieClip)

Called by the child layout component.  The target will contain the child layouts.  It has to be called on the 1st frame of a layout. org.silex.core.Application openSection can create one automatically at the layout root.

registerDefaultIcon

function registerDefaultIcon(player: org.silex.ui.players.PlayerBase)

unRegisterDefaultIcon

function unRegisterDefaultIcon(player: org.silex.ui.players.PlayerBase)
private var silex_ptr: org.silex.core.Api
reference to silex main Api object (org.silex.core.Api)
var layers: Array
var layerContainers: Array
var defaultIcon
var layoutFileName: String
var anims: Array
var layoutContainer: MovieClip
var currentChildLayoutContainer: MovieClip
var currentChildLayoutContainerIndex: Number
var deeplinkName: String
Name of the page deep link.
var isContentVisible: Boolean
is content visible? 
var isDirty: Boolean
set by propeties tool box when a property has been changed
var _xml: XML
var xmlFileName: String
var sectionName: String
var cleanSectionName: String
var xmlLoaded_bool: Boolean
var initDone_bool: Boolean
var dom: Object
var domOutOfContext: Object
var registeredVariables: Array
Store the dynamic data.
var dbdata_obj: Object
function Layout(api: org.silex.core.Api,
parent: MovieClip,
sectionName_str: String,
layoutFileName_str: String,
deeplinkName_str: String)
function xmlConnect()
function amfConnect()
function xmlLoaded(success: Boolean)
Called by _xml when xml data is loaded.
function amfLoaded(resultObj: Object)
function init()
function close()
Close the layout
function closeChild()
close children and then start the close transition anim
function transitionCloseStop()
the tracition close anim is over
function transitionCloseStart()
the tracition close anim started
function unloadLayoutCallback()
the close anim ended
function doUnloadLayoutCallback()
function endAnimPreload()
called by org.silex.core.Sequencer when preload anim ends
function startAnimShow()
called by org.silex.core.Sequencer when show anim ends
function endAnimShow()
called by org.silex.core.Sequencer when show anim ends
function registerAnim (target_mc: MovieClip,
animName_str: String)
has to be called on the 1st frame of a layout
function registerLayerContainer(layerContainer: MovieClip,
layerName_str: String)
Called by the layout.
function loadRegisteredLayer(layerContainer: MovieClip)
function registerLayer(target_mc: org.silex.ui.Layer)
Called by the org.silex.ui.Layer class before all players have been initialized.
function registeredLayerAllPlayersLoaded(ev: Object)
Called by the org.silex.ui.Layer class after all players have been initialized.
function registerLayoutContainer(layoutContainer_mc: MovieClip)
Called by the child layout component.
function registerDefaultIcon(player: org.silex.ui.players.PlayerBase)
function unRegisterDefaultIcon(player: org.silex.ui.players.PlayerBase)