PageRenderTime 14ms CodeModel.GetById 1ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/examples/KMLParser/bin-release/srcview/source/com/adobe/xml/syndication/rss/Image20.as.html

http://gmaps-utility-library-flash.googlecode.com/
HTML | 159 lines | 144 code | 14 blank | 1 comment | 0 complexity | 54077306a2b52ea52f504f91dc4981fc MD5 | raw file
  1<!-- saved from url=(0014)about:internet -->
  2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3<html xmlns="http://www.w3.org/1999/xhtml">
  4<head>
  5<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6<title>Image20.as</title>
  7<link rel="stylesheet" type="text/css" href="../../../../../../SourceStyles.css"/>
  8</head>
  9
 10<body><pre><span class="ActionScriptComment">/*
 11    Adobe Systems Incorporated(r) Source Code License Agreement
 12    Copyright(c) 2005 Adobe Systems Incorporated. All rights reserved.
 13    
 14    Please read this Source Code License Agreement carefully before using
 15    the source code.
 16    
 17    Adobe Systems Incorporated grants to you a perpetual, worldwide, non-exclusive, 
 18    no-charge, royalty-free, irrevocable copyright license, to reproduce,
 19    prepare derivative works of, publicly display, publicly perform, and
 20    distribute this source code and such derivative works in source or 
 21    object code form without any attribution requirements.  
 22    
 23    The name &quot;Adobe Systems Incorporated&quot; must not be used to endorse or promote products
 24    derived from the source code without prior written permission.
 25    
 26    You agree to indemnify, hold harmless and defend Adobe Systems Incorporated from and
 27    against any loss, damage, claims or lawsuits, including attorney&apos;s 
 28    fees that arise or result from your use or distribution of the source 
 29    code.
 30    
 31    THIS SOURCE CODE IS PROVIDED &quot;AS IS&quot; AND &quot;WITH ALL FAULTS&quot;, WITHOUT 
 32    ANY TECHNICAL SUPPORT OR ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
 33    BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 34    FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  ALSO, THERE IS NO WARRANTY OF 
 35    NON-INFRINGEMENT, TITLE OR QUIET ENJOYMENT.  IN NO EVENT SHALL MACROMEDIA
 36    OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 37    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
 38    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 39    OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
 40    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
 41    OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOURCE CODE, EVEN IF
 42    ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 43*/</span>
 44
 45<span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">adobe</span>.<span class="ActionScriptDefault_Text">xml</span>.<span class="ActionScriptDefault_Text">syndication</span>.<span class="ActionScriptDefault_Text">rss</span>
 46<span class="ActionScriptBracket/Brace">{</span>
 47    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">adobe</span>.<span class="ActionScriptDefault_Text">xml</span>.<span class="ActionScriptDefault_Text">syndication</span>.<span class="ActionScriptDefault_Text">XmlElement</span>;
 48    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">adobe</span>.<span class="ActionScriptDefault_Text">xml</span>.<span class="ActionScriptDefault_Text">syndication</span>.<span class="ActionScriptDefault_Text">ParsingTools</span>;
 49
 50    <span class="ActionScriptASDoc">/**
 51     * Class that represents an RSS 1.0 image.
 52     *
 53     * Specifies a GIF, JPEG or PNG image that can be displayed with the
 54     * channel.
 55     * 
 56     * @langversion ActionScript 3.0
 57     * @playerversion Flash 8.5
 58     * @tiptext
 59     * 
 60     * @see http://blogs.law.harvard.edu/tech/rss
 61     */</span>    
 62    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">Image20</span>
 63        <span class="ActionScriptReserved">extends</span> <span class="ActionScriptDefault_Text">XmlElement</span>
 64            <span class="ActionScriptReserved">implements</span> <span class="ActionScriptDefault_Text">IImage</span>
 65    <span class="ActionScriptBracket/Brace">{</span>
 66        <span class="ActionScriptASDoc">/**
 67         * Creates a new Image20 instance.
 68         * 
 69         * @param x The XML with which to construct the image.
 70         *
 71         * @langversion ActionScript 3.0
 72         * @playerversion Flash 8.5
 73         * @tiptext
 74         */</span>
 75        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">Image20</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">x</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">XMLList</span><span class="ActionScriptBracket/Brace">)</span>
 76        <span class="ActionScriptBracket/Brace">{</span>
 77            <span class="ActionScriptReserved">super</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">x</span><span class="ActionScriptBracket/Brace">)</span>;
 78        <span class="ActionScriptBracket/Brace">}</span>
 79
 80        <span class="ActionScriptASDoc">/**
 81         * Describes the image, it&apos;s used in the ALT attribute of the HTML
 82         * &lt;img&gt; tag when the channel is rendered in HTML. 
 83         * 
 84         * @langversion ActionScript 3.0
 85         * @playerversion Flash 8.5
 86         * @tiptext
 87         */</span>
 88        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">title</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
 89        <span class="ActionScriptBracket/Brace">{</span>
 90            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">title</span><span class="ActionScriptBracket/Brace">)</span>;
 91        <span class="ActionScriptBracket/Brace">}</span>
 92
 93        <span class="ActionScriptASDoc">/**
 94         * The URL of the site. When the channel is rendered, the image is a
 95         * link to the site. (Note: in practice the image &lt;title&gt; and &lt;link&gt;
 96         * should have the same value as the channel&apos;s &lt;title&gt; and &lt;link&gt;).
 97         * 
 98         * @langversion ActionScript 3.0
 99         * @playerversion Flash 8.5
100         * @tiptext
101         */</span>
102        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">link</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
103        <span class="ActionScriptBracket/Brace">{</span>
104            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">link</span><span class="ActionScriptBracket/Brace">)</span>;
105        <span class="ActionScriptBracket/Brace">}</span>
106
107        <span class="ActionScriptASDoc">/**
108         * The URL of a GIF, JPEG or PNG image that represents the channel.
109         * 
110         * @langversion ActionScript 3.0
111         * @playerversion Flash 8.5
112         * @tiptext
113         */</span>
114        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">url</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
115        <span class="ActionScriptBracket/Brace">{</span>
116            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">url</span><span class="ActionScriptBracket/Brace">)</span>;
117        <span class="ActionScriptBracket/Brace">}</span>
118
119        <span class="ActionScriptASDoc">/**
120         * Number indicating the width of the image in pixels. The maximum
121         * value for width is 144. The default value (if undefined) is 88.
122         * 
123         * @langversion ActionScript 3.0
124         * @playerversion Flash 8.5
125         * @tiptext
126         */</span>
127        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">width</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>
128        <span class="ActionScriptBracket/Brace">{</span>
129            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nanCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">width</span><span class="ActionScriptBracket/Brace">)</span>;
130        <span class="ActionScriptBracket/Brace">}</span>
131
132        <span class="ActionScriptASDoc">/**
133         * Number indicating the height of the image in pixels. The maximum
134         * value for height is 400. The default value (if undefined) is 31.
135         * 
136         * @langversion ActionScript 3.0
137         * @playerversion Flash 8.5
138         * @tiptext
139         */</span>
140        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">height</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>
141        <span class="ActionScriptBracket/Brace">{</span>
142            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nanCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">height</span><span class="ActionScriptBracket/Brace">)</span>;
143        <span class="ActionScriptBracket/Brace">}</span>
144
145        <span class="ActionScriptASDoc">/**
146         * Contains text that is included in the TITLE attribute of the link
147         * formed around the image in the HTML rendering.
148         * 
149         * @langversion ActionScript 3.0
150         * @playerversion Flash 8.5
151         * @tiptext
152         */</span>
153        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">description</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
154        <span class="ActionScriptBracket/Brace">{</span>
155            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">description</span><span class="ActionScriptBracket/Brace">)</span>;
156        <span class="ActionScriptBracket/Brace">}</span>
157    <span class="ActionScriptBracket/Brace">}</span>
158<span class="ActionScriptBracket/Brace">}</span></pre></body>
159</html>