INIT — Constant Static Property, class com.chargedweb.swfsize.SWFSizeEvent
14 | The SWFSizeEvent.INIT constant defines the value of the type property of the
15 | event object for a onInit event; dispatched when SWFSize js is loaded and ready.
16 |
Documentation for classes includes syntax, usage information, and code samples for methods, properties, and event handlers and listeners for those APIs that belong to a specific class in ActionScript. The classes are listed alphabetically. If you are not sure to which class a certain method or property belongs, you can look it up in the Index.
14 | SWFSize class gives you the ability to:
15 |
16 | control the swf's container metrics;
17 | gather browser's window metrics & position;
18 | control the browser's native scrollbars.
19 |
20 |
21 | The SWFSizeEvent class defines events that are associated with the SWFSize object.
22 | These include the following events:
23 |
24 | SWFSizeEvent.INIT: dispatched when SWFSize js is loaded and ready;
25 | SWFSizeEvent.SCROLL: dispatched when user scrolls browser's native scrollbars;
26 | SWFSizeEvent.RESIZE: dispatched when browser's window is being resized.
27 |
28 |
14 | SWFSize class gives you the ability to:
15 |
16 | control the swf's container metrics;
17 | gather browser's window metrics & position;
18 | control the browser's native scrollbars.
19 |
20 |
21 | The SWFSizeEvent class defines events that are associated with the SWFSize object.
22 | These include the following events:
23 |
24 | SWFSizeEvent.INIT: dispatched when SWFSize js is loaded and ready;
25 | SWFSizeEvent.SCROLL: dispatched when user scrolls browser's native scrollbars;
26 | SWFSizeEvent.RESIZE: dispatched when browser's window is being resized.
27 |
28 |
Tue Jul 26 2011, 12:53 PM +04:00
--------------------------------------------------------------------------------
/docs/cookies.js:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////
2 | //
3 | // ADOBE SYSTEMS INCORPORATED
4 | // Copyright 2006-2008 Adobe Systems Incorporated
5 | // All Rights Reserved.
6 | //
7 | // NOTICE: Adobe permits you to use, modify, and distribute this file
8 | // in accordance with the terms of the license agreement accompanying it.
9 | //
10 | ////////////////////////////////////////////////////////////////////////////////
11 |
12 | /**
13 | * Read the JavaScript cookies tutorial at:
14 | * http://www.netspade.com/articles/javascript/cookies.xml
15 | */
16 |
17 | /**
18 | * Sets a Cookie with the given name and value.
19 | *
20 | * name Name of the cookie
21 | * value Value of the cookie
22 | * [expires] Expiration date of the cookie (default: end of current session)
23 | * [path] Path where the cookie is valid (default: path of calling document)
24 | * [domain] Domain where the cookie is valid
25 | * (default: domain of calling document)
26 | * [secure] Boolean value indicating if the cookie transmission requires a
27 | * secure transmission
28 | */
29 | function setCookie(name, value, expires, path, domain, secure)
30 | {
31 | document.cookie= name + "=" + escape(value) +
32 | ((expires) ? "; expires=" + expires.toGMTString() : "") +
33 | ((path) ? "; path=" + path : "") +
34 | ((domain) ? "; domain=" + domain : "") +
35 | ((secure) ? "; secure" : "");
36 | }
37 |
38 | /**
39 | * Gets the value of the specified cookie.
40 | *
41 | * name Name of the desired cookie.
42 | *
43 | * Returns a string containing value of specified cookie,
44 | * or null if cookie does not exist.
45 | */
46 | function getCookie(name)
47 | {
48 | var dc = document.cookie;
49 | var prefix = name + "=";
50 | var begin = dc.indexOf("; " + prefix);
51 | if (begin == -1)
52 | {
53 | begin = dc.indexOf(prefix);
54 | if (begin != 0) return null;
55 | }
56 | else
57 | {
58 | begin += 2;
59 | }
60 | var end = document.cookie.indexOf(";", begin);
61 | if (end == -1)
62 | {
63 | end = dc.length;
64 | }
65 | return unescape(dc.substring(begin + prefix.length, end));
66 | }
67 |
68 | /**
69 | * Deletes the specified cookie.
70 | *
71 | * name name of the cookie
72 | * [path] path of the cookie (must be same as path used to create cookie)
73 | * [domain] domain of the cookie (must be same as domain used to create cookie)
74 | */
75 | function deleteCookie(name, path, domain)
76 | {
77 | if (getCookie(name))
78 | {
79 | document.cookie = name + "=" +
80 | ((path) ? "; path=" + path : "") +
81 | ((domain) ? "; domain=" + domain : "") +
82 | "; expires=Thu, 01-Jan-70 00:00:01 GMT";
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/docs/images/AirIcon12x12.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/AirIcon12x12.gif
--------------------------------------------------------------------------------
/docs/images/P_AlternativeMetadataIndicator_30x28_N.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/P_AlternativeMetadataIndicator_30x28_N.png
--------------------------------------------------------------------------------
/docs/images/collapsed.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/collapsed.gif
--------------------------------------------------------------------------------
/docs/images/detailHeaderRule.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/detailHeaderRule.jpg
--------------------------------------------------------------------------------
/docs/images/detailSectionHeader.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/detailSectionHeader.jpg
--------------------------------------------------------------------------------
/docs/images/expanded.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/expanded.gif
--------------------------------------------------------------------------------
/docs/images/inherit-arrow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/inherit-arrow.gif
--------------------------------------------------------------------------------
/docs/images/inheritedSummary.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/inheritedSummary.gif
--------------------------------------------------------------------------------
/docs/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/logo.jpg
--------------------------------------------------------------------------------
/docs/images/swfsize_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/swfsize_logo.png
--------------------------------------------------------------------------------
/docs/images/titleTableBottom.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/titleTableBottom.jpg
--------------------------------------------------------------------------------
/docs/images/titleTableMiddle.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/titleTableMiddle.jpg
--------------------------------------------------------------------------------
/docs/images/titleTableTop.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jloa/SWFSize/c45b585500d3a4de893d5687df27af34fef2e7e6/docs/images/titleTableTop.jpg
--------------------------------------------------------------------------------
/docs/index-list.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | SWFSize lib
4 |
5 |
6 |
7 |
8 |
9 |
70 |
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | SWFSize lib
4 |
22 |
23 |
40 |
--------------------------------------------------------------------------------
/docs/override.css:
--------------------------------------------------------------------------------
1 | /*
2 | ////////////////////////////////////////////////////////////////////////////////
3 | //
4 | // ADOBE SYSTEMS INCORPORATED
5 | // Copyright 2008 Adobe Systems Incorporated
6 | // All Rights Reserved.
7 | //
8 | // NOTICE: Adobe permits you to use, modify, and distribute this file
9 | // in accordance with the terms of the license agreement accompanying it.
10 | //
11 | ////////////////////////////////////////////////////////////////////////////////
12 | */
--------------------------------------------------------------------------------
/docs/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | SWFSize lib
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Frame Alert
11 |
This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
12 |
13 | Link toNon-frame version.
14 |
The SWFSizeEvent.INIT constant defines the value of the type property of the
52 | * event object for a onInit event; dispatched when SWFSize js is loaded and ready.
The SWFSizeEvent.SCROLL constant defines the value of the type property of the
59 | * event object for a onScroll event; dispatched when user scrolls the browser's native scrollbars.
The SWFSizeEvent.SCROLL constant defines the value of the type property of the
66 | * event object for a onResize event; dispatched when the browser's window is being resized.
67 | * @eventType onResize
68 | */
69 | public static const RESIZE:String = "onResize";
70 |
71 | /**
72 | * Current browser's window leftX coordinate value
73 | */
74 | public var leftX:Number;
75 |
76 | /**
77 | * Current browser's window rightX coordinate value
78 | */
79 | public var rightX:Number;
80 |
81 | /**
82 | * Current browser's window topY coordinate value
83 | */
84 | public var topY:Number;
85 |
86 | /**
87 | * Current browser's window bottomY coordinate value
88 | */
89 | public var bottomY:Number;
90 |
91 | /**
92 | * Current browser's window width value
93 | */
94 | public var windowWidth:Number;
95 |
96 | /**
97 | * Current browser's height width value
98 | */
99 | public var windowHeight:Number;
100 |
101 | /**
102 | * Current swf container's width value
103 | */
104 | public var swfWidth:Object;
105 |
106 | /**
107 | * Current swf container's height value
108 | */
109 | public var swfHeight:Object;
110 |
111 | /**
112 | * Current scrollX value
113 | */
114 | public var scrollX:Number;
115 |
116 | /**
117 | * Current scrollY value
118 | */
119 | public var scrollY:Number;
120 |
121 | /**
122 | * Constructor; creates a new SWFSizeEvent object.
123 | * @param type:String event type
124 | * @param leftX:Number browser's leftX coordinate
125 | * @param rightX:Number browser's rightX coordinate
126 | * @param topY:Number browser's topY coordinate
127 | * @param bottomY:Number the browser's bottomY coordinate
128 | * @param windowWidth:Number the browser's window width value
129 | * @param windowHeight:Number the browser's window height value
130 | * @param swfWidth:Object swf container's width value object
131 | * @param swfHeight:Object swf container's height value object
132 | * @param scrollX:Number current scrollX value
133 | * @param scrollY:Number current scrollY value
134 | * @param bubbles:Boolean bubbles @see flash.events.Event @default false
135 | * @param cancelable:Boolean cancelable @see flash.events.Event @default false
136 | */
137 | public function SWFSizeEvent(type:String,
138 | leftX:Number,
139 | rightX:Number,
140 | topY:Number,
141 | bottomY:Number,
142 | windowWidth:Number,
143 | windowHeight:Number,
144 | swfWidth:Object,
145 | swfHeight:Object,
146 | scrollX:Number,
147 | scrollY:Number,
148 | bubbles:Boolean = false,
149 | cancelable:Boolean = false):void
150 | {
151 | this.topY = topY;
152 | this.bottomY = bottomY;
153 | this.leftX = leftX;
154 | this.rightX = rightX;
155 | this.windowWidth = windowWidth;
156 | this.windowHeight = windowHeight;
157 | this.swfWidth = swfWidth;
158 | this.swfHeight = swfHeight;
159 | this.scrollX = scrollX;
160 | this.scrollY = scrollY;
161 | super(type, bubbles, cancelable);
162 | }
163 |
164 | /**
165 | * Formats the event as string
166 | * @return the string representation of the SWFSizeEvent class.
167 | */
168 | override public function toString():String
169 | {
170 | return formatToString("SWFSizeEvent",
171 | "type",
172 | "leftX",
173 | "rightX",
174 | "topY",
175 | "bottomY",
176 | "windowWidth",
177 | "windowHeight",
178 | "swfWidth",
179 | "swfHeight",
180 | "scrollX",
181 | "scrollY",
182 | "bubbles",
183 | "cancelable");
184 | }
185 | }
186 | }
--------------------------------------------------------------------------------