Packagecom.soma.view
Classpublic class PageExternal
InheritancePageExternal Inheritance Page Inheritance flash.display.MovieClip
ImplementsIPage

Author: Romuald Quantin - www.soundstep.com

Information:
Blog page - SomaUI
How does it work - Soma Protest
Project Host - Google Code
Documentation - Soma ASDOC
Class version: 2.0
Actionscript version: 3.0

Copyright:

The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.mozilla.org/MPL/

Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied.
See the License for the specific language governing rights and
limitations under the License.

The Original Code is Soma.
The Initial Developer of the Original Code is Romuald Quantin.
Initial Developer are Copyright (C) 2008-2009 Soundstep. All Rights Reserved.

Usage:
PageExternal is not meant to be extended, it is internally used by the PageManager to load external SWF that is going to act as a normal page. Here is a node example, it will load a MovieName.swf at the same location of the current SWF:

<page id="external page id" type="MovieName" urlfriendly="external-page" external="true">
    <title><![CDATA[External Page]]></title>
</page>
     
You can use a path attribute in case your SWF file is located elsewhere, this example will load "assets/swf/MovieName.swf":
<page id="external page id" type="MovieName" path="assets/swf/" urlfriendly="external-page" external="true">
    <title><![CDATA[External Page]]></title>
</page>
     

See also

Soma
PageEvent
Page
PageManager
ClassImport


Public Properties
 PropertyDefined by
 Inheritedassets : Array
Get an array containing the assets created by the NodeParser instance (all assets that are DisplayObject subclasses, you wont find XML in this array)
Page
 InheritedbaseUI : BaseUI
BaseUI instance for layout purpose.
Page
 Inheritedcontent : XML
content node (XML) of the page, it is use by the NodeParser instance.
Page
 Inheriteddepth : int
depth of the page (depth attribute in the page node).
Page
 InheritedhasExternalContent : Boolean
Whether or external assets have been found (pictures for example, assets that have to be loaded).
Page
 Inheritedid : String
id of page (attribute id of the page node).
Page
  isLoaded : Boolean
[read-only] Whether or not the SWF File has been loaded.
PageExternal
 Inheritedloader : SomaLoader
SomaLoader instance used by the NodeParser instance to load external assets.
Page
 InheritedloaderContext : LoaderContext
LoaderContext instance of the SomaLoader instance of the page (null by default).
Page
  page : Page
[read-only] Get the SWF file that has been loaded (the Main class of the SWF file must extend a the Page class).
PageExternal
 InheritedpageXML : XML
page node (XML) of this page.
Page
 Inheritedparser : NodeParser
NodeParser instance that will be used to create and load the assets found in the content node.
Page
 InheritedparserTarget : DisplayObjectContainer
the target where the assets will be added to the display list (the page itself is the default but you can specify another container).
Page
 Inheritedtype : String
type of the page (type attribute in the page node).
Page
 InheritedwillBeRemoved : Boolean
Whether or not the page is about to be removed by the PageManager.
Page
Public Methods
 MethodDefined by
  
PageExternal(targetID:String)
Creates a PageExternal instance
PageExternal
 Inherited
getAssetByID(id:String):DisplayObject
Get an asset created and/or loaded by the NodeParser instance using the id attribute of its XML node.
Page
 Inherited
info():String
Get a String describing the page.
Page
 Inherited
transitionIn():void
Method that should be overridden, beginning of the showing process.
Page
 Inherited
Method that should be overridden, end of the showing process.
Page
 Inherited
Method that should be overridden, beginning of the hiding process.
Page
 Inherited
Method that should be overridden, end of the hiding process.
Page
Property detail
isLoadedproperty
isLoaded:Boolean  [read-only]

Whether or not the SWF File has been loaded.

Implementation
    public function get isLoaded():Boolean
pageproperty 
page:Page  [read-only]

Get the SWF file that has been loaded (the Main class of the SWF file must extend a the Page class).

Implementation
    public function get page():Page
Constructor detail
PageExternal()constructor
public function PageExternal(targetID:String)

Creates a PageExternal instance

Parameters
targetID:String — id attribute of the page node.