topical media & game development
lib-flex-ximpel-editor-net-ximpel-classes-DefaultOverlay.ax
lib-flex-ximpel-editor-net-ximpel-classes-DefaultOverlay.ax
(swf
)
[ flash
]
flex
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Javier Quevedo Fernández 05-2009.
*/
package net.ximpel.classes
{
public class @ax-lib-flex-ximpel-editor-net-ximpel-classes-DefaultOverlay implements IHasXMLRepresentation
{
public var time:int;
public var x:int;
public var y : int;
public var width : int;
public var height : int;
public var leadsTo : String;
public var label:Array;
public function @ax-lib-flex-ximpel-editor-net-ximpel-classes-DefaultOverlay()
{
time = 0;
x = 0;
y = 0;
width = 0;
height = 0;
leadsTo = new String();
}
public function toXML():XML
{
var attributes:String = "";
/*for (var i:int; i < position.length; i++) {
if(position[i])
attributes += " position" + String(i+1) + "=\"" + position[i] + "\"" +
" size" + String(i+1) + "=\"" + size[i] + "\"" +
" label" + String(i+1) + "=\"" + label[i] + "\"";
}*/
var defaultOverlay:XML =
<overlay time={time} {attributes}/>;
return defaultOverlay;
}
}
}
(C) Æliens
19/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.