PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://gmaps-utility-library-flash.googlecode.com/
HTML | 139 lines | 125 code | 13 blank | 1 comment | 0 complexity | daa1e55673ae3c7d10f9a7af961ad37d 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>Image10.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">Namespaces</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">XmlElement</span>;
 49    <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>;
 50
 51    <span class="ActionScriptASDoc">/**
 52     * Class that represents an RSS 1.0 image.
 53     *
 54     * An image to be associated with an HTML rendering of the channel. This
 55     * image should be of a format supported by the majority of Web browsers.
 56     * While the later 0.91 specification allowed for a width of 1-144 and
 57     * height of 1-400, convention (and the 0.9 specification) dictate 88x31.
 58     * 
 59     * @langversion ActionScript 3.0
 60     * @playerversion Flash 8.5
 61     * @tiptext
 62     * 
 63     * @see http://web.resource.org/rss/1.0/spec#s5.4
 64     */</span>    
 65    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">Image10</span>
 66        <span class="ActionScriptReserved">extends</span> <span class="ActionScriptDefault_Text">XmlElement</span>
 67            <span class="ActionScriptReserved">implements</span> <span class="ActionScriptDefault_Text">IImage</span>
 68    <span class="ActionScriptBracket/Brace">{</span>
 69        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">rss</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Namespace</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Namespaces</span>.<span class="ActionScriptDefault_Text">RSS_NS</span>;
 70        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">rdf</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Namespace</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Namespaces</span>.<span class="ActionScriptDefault_Text">RDF_NS</span>;
 71
 72        <span class="ActionScriptASDoc">/**
 73         * Create a new Image10 instance.
 74         * 
 75         * @param x The XML with which to construct the image.
 76         *
 77         * @langversion ActionScript 3.0
 78         * @playerversion Flash 8.5
 79         * @tiptext
 80         */</span>
 81        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">Image10</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>
 82        <span class="ActionScriptBracket/Brace">{</span>
 83            <span class="ActionScriptReserved">super</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">x</span><span class="ActionScriptBracket/Brace">)</span>;
 84        <span class="ActionScriptBracket/Brace">}</span>
 85
 86        <span class="ActionScriptASDoc">/**
 87         * URL to the image. If present, must also be present in channel
 88         * element.
 89         * 
 90         * @langversion ActionScript 3.0
 91         * @playerversion Flash 8.5
 92         * @tiptext
 93         */</span>
 94        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">about</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
 95        <span class="ActionScriptBracket/Brace">{</span>
 96            <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">rdf</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">about</span><span class="ActionScriptBracket/Brace">)</span>;
 97        <span class="ActionScriptBracket/Brace">}</span>
 98
 99        <span class="ActionScriptASDoc">/**
100         * The alternative text (&quot;alt&quot; attribute) associated with the channel&apos;s
101         * image tag when rendered as HTML.
102         * 
103         * @langversion ActionScript 3.0
104         * @playerversion Flash 8.5
105         * @tiptext
106         */</span>
107        <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>
108        <span class="ActionScriptBracket/Brace">{</span>
109            <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">rss</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">title</span><span class="ActionScriptBracket/Brace">)</span>;
110        <span class="ActionScriptBracket/Brace">}</span>
111
112        <span class="ActionScriptASDoc">/**
113         * The URL to which an HTML rendering of the channel image will link.
114         * This, as with the channel&apos;s title link, is commonly the parent site&apos;s home or news page.
115         * 
116         * @langversion ActionScript 3.0
117         * @playerversion Flash 8.5
118         * @tiptext
119         */</span>
120        <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>
121        <span class="ActionScriptBracket/Brace">{</span>
122            <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">rss</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">link</span><span class="ActionScriptBracket/Brace">)</span>;
123        <span class="ActionScriptBracket/Brace">}</span>
124
125        <span class="ActionScriptASDoc">/**
126         * The URL of the image to used in the &quot;src&quot; attribute of the channel&apos;s
127         * image tag when rendered as HTML.
128         * 
129         * @langversion ActionScript 3.0
130         * @playerversion Flash 8.5
131         * @tiptext
132         */</span>
133        <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>
134        <span class="ActionScriptBracket/Brace">{</span>
135            <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">rss</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">url</span><span class="ActionScriptBracket/Brace">)</span>;
136        <span class="ActionScriptBracket/Brace">}</span>
137    <span class="ActionScriptBracket/Brace">}</span>
138<span class="ActionScriptBracket/Brace">}</span></pre></body>
139</html>