Skip to content
This repository
Browse code

Removal of bin-debug in examples. Moved to gitignore.

  • Loading branch information...
commit dd2d931c79c2e4bdc237655b11b5643fb2175d07 1 parent 1c81cca
authored

Showing 30 changed files with 0 additions and 3,302 deletions. Show diff stats Hide diff stats

  1. 105  examples/flex/AuthorizationFlexExample/bin-debug/AuthorizationFlexExample.html
  2. BIN  examples/flex/AuthorizationFlexExample/bin-debug/AuthorizationFlexExample.swf
  3. 16  examples/flex/AuthorizationFlexExample/bin-debug/README
  4. 9  examples/flex/AuthorizationFlexExample/bin-debug/as3couchdb.config
  5. BIN  examples/flex/AuthorizationFlexExample/bin-debug/framework_4.0.0.14288.swf
  6. 6  examples/flex/AuthorizationFlexExample/bin-debug/history/history.css
  7. 710  examples/flex/AuthorizationFlexExample/bin-debug/history/history.js
  8. 29  examples/flex/AuthorizationFlexExample/bin-debug/history/historyFrame.html
  9. BIN  examples/flex/AuthorizationFlexExample/bin-debug/osmf_flex.4.0.0.13495.swf
  10. BIN  examples/flex/AuthorizationFlexExample/bin-debug/playerProductInstall.swf
  11. BIN  examples/flex/AuthorizationFlexExample/bin-debug/rpc_4.0.0.14288.swf
  12. BIN  examples/flex/AuthorizationFlexExample/bin-debug/spark_4.0.0.14288.swf
  13. BIN  examples/flex/AuthorizationFlexExample/bin-debug/sparkskins_4.0.0.14288.swf
  14. 777  examples/flex/AuthorizationFlexExample/bin-debug/swfobject.js
  15. BIN  examples/flex/AuthorizationFlexExample/bin-debug/textLayout_1.0.0.595.swf
  16. 105  examples/flex/BasicFlexExample/bin-debug/BasicFlexExample.html
  17. BIN  examples/flex/BasicFlexExample/bin-debug/BasicFlexExample.swf
  18. 16  examples/flex/BasicFlexExample/bin-debug/README
  19. 7  examples/flex/BasicFlexExample/bin-debug/as3couchdb.config
  20. BIN  examples/flex/BasicFlexExample/bin-debug/framework_4.0.0.14288.swf
  21. 6  examples/flex/BasicFlexExample/bin-debug/history/history.css
  22. 710  examples/flex/BasicFlexExample/bin-debug/history/history.js
  23. 29  examples/flex/BasicFlexExample/bin-debug/history/historyFrame.html
  24. BIN  examples/flex/BasicFlexExample/bin-debug/osmf_flex.4.0.0.13495.swf
  25. BIN  examples/flex/BasicFlexExample/bin-debug/playerProductInstall.swf
  26. BIN  examples/flex/BasicFlexExample/bin-debug/rpc_4.0.0.14288.swf
  27. BIN  examples/flex/BasicFlexExample/bin-debug/spark_4.0.0.14288.swf
  28. BIN  examples/flex/BasicFlexExample/bin-debug/sparkskins_4.0.0.14288.swf
  29. 777  examples/flex/BasicFlexExample/bin-debug/swfobject.js
  30. BIN  examples/flex/BasicFlexExample/bin-debug/textLayout_1.0.0.595.swf
105  examples/flex/AuthorizationFlexExample/bin-debug/AuthorizationFlexExample.html
... ...
@@ -1,105 +0,0 @@
1  
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2  
-<!-- saved from url=(0014)about:internet -->
3  
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">	
4  
-    <!-- 
5  
-    Smart developers always View Source. 
6  
-    
7  
-    This application was built using Adobe Flex, an open source framework
8  
-    for building rich Internet applications that get delivered via the
9  
-    Flash Player or to desktops via Adobe AIR. 
10  
-    
11  
-    Learn more about Flex at http://flex.org 
12  
-    // -->
13  
-    <head>
14  
-        <title></title>         
15  
-        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
16  
-		<!-- Include CSS to eliminate any default margins/padding and set the height of the html element and 
17  
-		     the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as 
18  
-			 the percentage of the height of its parent container, which has to be set explicitly.  Initially, 
19  
-			 don't display flashContent div so it won't show if JavaScript disabled.
20  
-		-->
21  
-        <style type="text/css" media="screen"> 
22  
-			html, body	{ height:100%; }
23  
-			body { margin:0; padding:0; overflow:auto; text-align:center; 
24  
-			       background-color: #ffffff; }   
25  
-			#flashContent { display:none; }
26  
-        </style>
27  
-		
28  
-		<!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
29  
-        <!-- BEGIN Browser History required section -->
30  
-        <link rel="stylesheet" type="text/css" href="history/history.css" />
31  
-        <script type="text/javascript" src="history/history.js"></script>
32  
-        <!-- END Browser History required section -->  
33  
-		    
34  
-        <script type="text/javascript" src="swfobject.js"></script>
35  
-        <script type="text/javascript">
36  
-            <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. --> 
37  
-            var swfVersionStr = "10.0.0";
38  
-            <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
39  
-            var xiSwfUrlStr = "playerProductInstall.swf";
40  
-            var flashvars = {};
41  
-            var params = {};
42  
-            params.quality = "high";
43  
-            params.bgcolor = "#ffffff";
44  
-            params.allowscriptaccess = "sameDomain";
45  
-            params.allowfullscreen = "true";
46  
-            var attributes = {};
47  
-            attributes.id = "AuthorizationFlexExample";
48  
-            attributes.name = "AuthorizationFlexExample";
49  
-            attributes.align = "middle";
50  
-            swfobject.embedSWF(
51  
-                "AuthorizationFlexExample.swf", "flashContent", 
52  
-                "100%", "100%", 
53  
-                swfVersionStr, xiSwfUrlStr, 
54  
-                flashvars, params, attributes);
55  
-			<!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
56  
-			swfobject.createCSS("#flashContent", "display:block;text-align:left;");
57  
-        </script>
58  
-    </head>
59  
-    <body>
60  
-        <!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough 
61  
-			 JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
62  
-			 when JavaScript is disabled.
63  
-		-->
64  
-        <div id="flashContent">
65  
-        	<p>
66  
-	        	To view this page ensure that Adobe Flash Player version 
67  
-				10.0.0 or greater is installed. 
68  
-			</p>
69  
-			<script type="text/javascript"> 
70  
-				var pageHost = ((document.location.protocol == "https:") ? "https://" :	"http://"); 
71  
-				document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='" 
72  
-								+ pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" ); 
73  
-			</script> 
74  
-        </div>
75  
-	   	
76  
-       	<noscript>
77  
-            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="AuthorizationFlexExample">
78  
-                <param name="movie" value="AuthorizationFlexExample.swf" />
79  
-                <param name="quality" value="high" />
80  
-                <param name="bgcolor" value="#ffffff" />
81  
-                <param name="allowScriptAccess" value="sameDomain" />
82  
-                <param name="allowFullScreen" value="true" />
83  
-                <!--[if !IE]>-->
84  
-                <object type="application/x-shockwave-flash" data="AuthorizationFlexExample.swf" width="100%" height="100%">
85  
-                    <param name="quality" value="high" />
86  
-                    <param name="bgcolor" value="#ffffff" />
87  
-                    <param name="allowScriptAccess" value="sameDomain" />
88  
-                    <param name="allowFullScreen" value="true" />
89  
-                <!--<![endif]-->
90  
-                <!--[if gte IE 6]>-->
91  
-                	<p> 
92  
-                		Either scripts and active content are not permitted to run or Adobe Flash Player version
93  
-                		10.0.0 or greater is not installed.
94  
-                	</p>
95  
-                <!--<![endif]-->
96  
-                    <a href="http://www.adobe.com/go/getflashplayer">
97  
-                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
98  
-                    </a>
99  
-                <!--[if !IE]>-->
100  
-                </object>
101  
-                <!--<![endif]-->
102  
-            </object>
103  
-	    </noscript>		
104  
-   </body>
105  
-</html>
BIN  examples/flex/AuthorizationFlexExample/bin-debug/AuthorizationFlexExample.swf
Binary file not shown
16  examples/flex/AuthorizationFlexExample/bin-debug/README
... ...
@@ -1,16 +0,0 @@
1  
-Necessary compiler options:
2  
-
3  
-------------
4  
-Metadata
5  
-------------
6  
-In order to recognize the custom metadata used for the model entities, the following metadata need to be added to the
7  
--keep-as3-metadata compiler option:
8  
-
9  
--keep-as3-metadata=DocumentService,ServiceMediator,RequestType 
10  
-
11  
-------------
12  
-Config
13  
-------------
14  
-An additional flex configuration is added in order to compile in necessary classes from as3couchdb library.
15  
-
16  
--load-config+=as3couchdb.config 
9  examples/flex/AuthorizationFlexExample/bin-debug/as3couchdb.config
... ...
@@ -1,9 +0,0 @@
1  
-<flex-config>
2  
-	<includes append="true">
3  
-		<symbol>com.custardbelly.as3couchdb.mediator.CouchDatabaseActionMediator</symbol>
4  
-		<symbol>com.custardbelly.as3couchdb.mediator.CouchDocumentActionMediator</symbol>
5  
-		<symbol>com.custardbelly.as3couchdb.mediator.CouchSessionActionMediator</symbol>
6  
-		<symbol>com.custardbelly.as3couchdb.service.HTTPCouchRequest</symbol>
7  
-		<symbol>com.custardbelly.as3couchdb.service.HTTPSessionRequest</symbol>
8  
-	</includes>
9  
-</flex-config>
BIN  examples/flex/AuthorizationFlexExample/bin-debug/framework_4.0.0.14288.swf
Binary file not shown
6  examples/flex/AuthorizationFlexExample/bin-debug/history/history.css
... ...
@@ -1,6 +0,0 @@
1  
-/* This CSS stylesheet defines styles used by required elements in a flex application page that supports browser history */
2  
-
3  
-#ie_historyFrame { width: 0px; height: 0px; display:none }
4  
-#firefox_anchorDiv { width: 0px; height: 0px; display:none }
5  
-#safari_formDiv { width: 0px; height: 0px; display:none }
6  
-#safari_rememberDiv { width: 0px; height: 0px; display:none }
710  examples/flex/AuthorizationFlexExample/bin-debug/history/history.js
... ...
@@ -1,710 +0,0 @@
1  
-BrowserHistoryUtils = {
2  
-    addEvent: function(elm, evType, fn, useCapture) {
3  
-        useCapture = useCapture || false;
4  
-        if (elm.addEventListener) {
5  
-            elm.addEventListener(evType, fn, useCapture);
6  
-            return true;
7  
-        }
8  
-        else if (elm.attachEvent) {
9  
-            var r = elm.attachEvent('on' + evType, fn);
10  
-            return r;
11  
-        }
12  
-        else {
13  
-            elm['on' + evType] = fn;
14  
-        }
15  
-    }
16  
-}
17  
-
18  
-BrowserHistory = (function() {
19  
-    // type of browser
20  
-    var browser = {
21  
-        ie: false, 
22  
-        ie8: false, 
23  
-        firefox: false, 
24  
-        safari: false, 
25  
-        opera: false, 
26  
-        version: -1
27  
-    };
28  
-
29  
-    // if setDefaultURL has been called, our first clue
30  
-    // that the SWF is ready and listening
31  
-    //var swfReady = false;
32  
-
33  
-    // the URL we'll send to the SWF once it is ready
34  
-    //var pendingURL = '';
35  
-
36  
-    // Default app state URL to use when no fragment ID present
37  
-    var defaultHash = '';
38  
-
39  
-    // Last-known app state URL
40  
-    var currentHref = document.location.href;
41  
-
42  
-    // Initial URL (used only by IE)
43  
-    var initialHref = document.location.href;
44  
-
45  
-    // Initial URL (used only by IE)
46  
-    var initialHash = document.location.hash;
47  
-
48  
-    // History frame source URL prefix (used only by IE)
49  
-    var historyFrameSourcePrefix = 'history/historyFrame.html?';
50  
-
51  
-    // History maintenance (used only by Safari)
52  
-    var currentHistoryLength = -1;
53  
-
54  
-    var historyHash = [];
55  
-
56  
-    var initialState = createState(initialHref, initialHref + '#' + initialHash, initialHash);
57  
-
58  
-    var backStack = [];
59  
-    var forwardStack = [];
60  
-
61  
-    var currentObjectId = null;
62  
-
63  
-    //UserAgent detection
64  
-    var useragent = navigator.userAgent.toLowerCase();
65  
-
66  
-    if (useragent.indexOf("opera") != -1) {
67  
-        browser.opera = true;
68  
-    } else if (useragent.indexOf("msie") != -1) {
69  
-        browser.ie = true;
70  
-        browser.version = parseFloat(useragent.substring(useragent.indexOf('msie') + 4));
71  
-        if (browser.version == 8)
72  
-        {
73  
-            browser.ie = false;
74  
-            browser.ie8 = true;
75  
-        }
76  
-    } else if (useragent.indexOf("safari") != -1) {
77  
-        browser.safari = true;
78  
-        browser.version = parseFloat(useragent.substring(useragent.indexOf('safari') + 7));
79  
-    } else if (useragent.indexOf("gecko") != -1) {
80  
-        browser.firefox = true;
81  
-    }
82  
-
83  
-    if (browser.ie == true && browser.version == 7) {
84  
-        window["_ie_firstload"] = false;
85  
-    }
86  
-
87  
-    function hashChangeHandler()
88  
-    {
89  
-        currentHref = document.location.href;
90  
-        var flexAppUrl = getHash();
91  
-        //ADR: to fix multiple
92  
-        if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) {
93  
-            var pl = getPlayers();
94  
-            for (var i = 0; i < pl.length; i++) {
95  
-                pl[i].browserURLChange(flexAppUrl);
96  
-            }
97  
-        } else {
98  
-            getPlayer().browserURLChange(flexAppUrl);
99  
-        }
100  
-    }
101  
-
102  
-    // Accessor functions for obtaining specific elements of the page.
103  
-    function getHistoryFrame()
104  
-    {
105  
-        return document.getElementById('ie_historyFrame');
106  
-    }
107  
-
108  
-    function getAnchorElement()
109  
-    {
110  
-        return document.getElementById('firefox_anchorDiv');
111  
-    }
112  
-
113  
-    function getFormElement()
114  
-    {
115  
-        return document.getElementById('safari_formDiv');
116  
-    }
117  
-
118  
-    function getRememberElement()
119  
-    {
120  
-        return document.getElementById("safari_remember_field");
121  
-    }
122  
-
123  
-    // Get the Flash player object for performing ExternalInterface callbacks.
124  
-    // Updated for changes to SWFObject2.
125  
-    function getPlayer(id) {
126  
-        var i;
127  
-
128  
-		if (id && document.getElementById(id)) {
129  
-			var r = document.getElementById(id);
130  
-			if (typeof r.SetVariable != "undefined") {
131  
-				return r;
132  
-			}
133  
-			else {
134  
-				var o = r.getElementsByTagName("object");
135  
-				var e = r.getElementsByTagName("embed");
136  
-                for (i = 0; i < o.length; i++) {
137  
-                    if (typeof o[i].browserURLChange != "undefined")
138  
-                        return o[i];
139  
-                }
140  
-                for (i = 0; i < e.length; i++) {
141  
-                    if (typeof e[i].browserURLChange != "undefined")
142  
-                        return e[i];
143  
-                }
144  
-			}
145  
-		}
146  
-		else {
147  
-			var o = document.getElementsByTagName("object");
148  
-			var e = document.getElementsByTagName("embed");
149  
-            for (i = 0; i < e.length; i++) {
150  
-                if (typeof e[i].browserURLChange != "undefined")
151  
-                {
152  
-                    return e[i];
153  
-                }
154  
-            }
155  
-            for (i = 0; i < o.length; i++) {
156  
-                if (typeof o[i].browserURLChange != "undefined")
157  
-                {
158  
-                    return o[i];
159  
-                }
160  
-            }
161  
-		}
162  
-		return undefined;
163  
-	}
164  
-    
165  
-    function getPlayers() {
166  
-        var i;
167  
-        var players = [];
168  
-        if (players.length == 0) {
169  
-            var tmp = document.getElementsByTagName('object');
170  
-            for (i = 0; i < tmp.length; i++)
171  
-            {
172  
-                if (typeof tmp[i].browserURLChange != "undefined")
173  
-                    players.push(tmp[i]);
174  
-            }
175  
-        }
176  
-        if (players.length == 0 || players[0].object == null) {
177  
-            var tmp = document.getElementsByTagName('embed');
178  
-            for (i = 0; i < tmp.length; i++)
179  
-            {
180  
-                if (typeof tmp[i].browserURLChange != "undefined")
181  
-                    players.push(tmp[i]);
182  
-            }
183  
-        }
184  
-        return players;
185  
-    }
186  
-
187  
-	function getIframeHash() {
188  
-		var doc = getHistoryFrame().contentWindow.document;
189  
-		var hash = String(doc.location.search);
190  
-		if (hash.length == 1 && hash.charAt(0) == "?") {
191  
-			hash = "";
192  
-		}
193  
-		else if (hash.length >= 2 && hash.charAt(0) == "?") {
194  
-			hash = hash.substring(1);
195  
-		}
196  
-		return hash;
197  
-	}
198  
-
199  
-    /* Get the current location hash excluding the '#' symbol. */
200  
-    function getHash() {
201  
-       // It would be nice if we could use document.location.hash here,
202  
-       // but it's faulty sometimes.
203  
-       var idx = document.location.href.indexOf('#');
204  
-       return (idx >= 0) ? document.location.href.substr(idx+1) : '';
205  
-    }
206  
-
207  
-    /* Get the current location hash excluding the '#' symbol. */
208  
-    function setHash(hash) {
209  
-       // It would be nice if we could use document.location.hash here,
210  
-       // but it's faulty sometimes.
211  
-       if (hash == '') hash = '#'
212  
-       document.location.hash = hash;
213  
-    }
214  
-
215  
-    function createState(baseUrl, newUrl, flexAppUrl) {
216  
-        return { 'baseUrl': baseUrl, 'newUrl': newUrl, 'flexAppUrl': flexAppUrl, 'title': null };
217  
-    }
218  
-
219  
-    /* Add a history entry to the browser.
220  
-     *   baseUrl: the portion of the location prior to the '#'
221  
-     *   newUrl: the entire new URL, including '#' and following fragment
222  
-     *   flexAppUrl: the portion of the location following the '#' only
223  
-     */
224  
-    function addHistoryEntry(baseUrl, newUrl, flexAppUrl) {
225  
-
226  
-        //delete all the history entries
227  
-        forwardStack = [];
228  
-
229  
-        if (browser.ie) {
230  
-            //Check to see if we are being asked to do a navigate for the first
231  
-            //history entry, and if so ignore, because it's coming from the creation
232  
-            //of the history iframe
233  
-            if (flexAppUrl == defaultHash && document.location.href == initialHref && window['_ie_firstload']) {
234  
-                currentHref = initialHref;
235  
-                return;
236  
-            }
237  
-            if ((!flexAppUrl || flexAppUrl == defaultHash) && window['_ie_firstload']) {
238  
-                newUrl = baseUrl + '#' + defaultHash;
239  
-                flexAppUrl = defaultHash;
240  
-            } else {
241  
-                // for IE, tell the history frame to go somewhere without a '#'
242  
-                // in order to get this entry into the browser history.
243  
-                getHistoryFrame().src = historyFrameSourcePrefix + flexAppUrl;
244  
-            }
245  
-            setHash(flexAppUrl);
246  
-        } else {
247  
-
248  
-            //ADR
249  
-            if (backStack.length == 0 && initialState.flexAppUrl == flexAppUrl) {
250  
-                initialState = createState(baseUrl, newUrl, flexAppUrl);
251  
-            } else if(backStack.length > 0 && backStack[backStack.length - 1].flexAppUrl == flexAppUrl) {
252  
-                backStack[backStack.length - 1] = createState(baseUrl, newUrl, flexAppUrl);
253  
-            }
254  
-
255  
-            if (browser.safari) {
256  
-                // for Safari, submit a form whose action points to the desired URL
257  
-                if (browser.version <= 419.3) {
258  
-                    var file = window.location.pathname.toString();
259  
-                    file = file.substring(file.lastIndexOf("/")+1);
260  
-                    getFormElement().innerHTML = '<form name="historyForm" action="'+file+'#' + flexAppUrl + '" method="GET"></form>';
261  
-                    //get the current elements and add them to the form
262  
-                    var qs = window.location.search.substring(1);
263  
-                    var qs_arr = qs.split("&");
264  
-                    for (var i = 0; i < qs_arr.length; i++) {
265  
-                        var tmp = qs_arr[i].split("=");
266  
-                        var elem = document.createElement("input");
267  
-                        elem.type = "hidden";
268  
-                        elem.name = tmp[0];
269  
-                        elem.value = tmp[1];
270  
-                        document.forms.historyForm.appendChild(elem);
271  
-                    }
272  
-                    document.forms.historyForm.submit();
273  
-                } else {
274  
-                    top.location.hash = flexAppUrl;
275  
-                }
276  
-                // We also have to maintain the history by hand for Safari
277  
-                historyHash[history.length] = flexAppUrl;
278  
-                _storeStates();
279  
-            } else {
280  
-                // Otherwise, write an anchor into the page and tell the browser to go there
281  
-                addAnchor(flexAppUrl);
282  
-                setHash(flexAppUrl);
283  
-                
284  
-                // For IE8 we must restore full focus/activation to our invoking player instance.
285  
-                if (browser.ie8)
286  
-                    getPlayer().focus();
287  
-            }
288  
-        }
289  
-        backStack.push(createState(baseUrl, newUrl, flexAppUrl));
290  
-    }
291  
-
292  
-    function _storeStates() {
293  
-        if (browser.safari) {
294  
-            getRememberElement().value = historyHash.join(",");
295  
-        }
296  
-    }
297  
-
298  
-    function handleBackButton() {
299  
-        //The "current" page is always at the top of the history stack.
300  
-        var current = backStack.pop();
301  
-        if (!current) { return; }
302  
-        var last = backStack[backStack.length - 1];
303  
-        if (!last && backStack.length == 0){
304  
-            last = initialState;
305  
-        }
306  
-        forwardStack.push(current);
307  
-    }
308  
-
309  
-    function handleForwardButton() {
310  
-        //summary: private method. Do not call this directly.
311  
-
312  
-        var last = forwardStack.pop();
313  
-        if (!last) { return; }
314  
-        backStack.push(last);
315  
-    }
316  
-
317  
-    function handleArbitraryUrl() {
318  
-        //delete all the history entries
319  
-        forwardStack = [];
320  
-    }
321  
-
322  
-    /* Called periodically to poll to see if we need to detect navigation that has occurred */
323  
-    function checkForUrlChange() {
324  
-
325  
-        if (browser.ie) {
326  
-            if (currentHref != document.location.href && currentHref + '#' != document.location.href) {
327  
-                //This occurs when the user has navigated to a specific URL
328  
-                //within the app, and didn't use browser back/forward
329  
-                //IE seems to have a bug where it stops updating the URL it
330  
-                //shows the end-user at this point, but programatically it
331  
-                //appears to be correct.  Do a full app reload to get around
332  
-                //this issue.
333  
-                if (browser.version < 7) {
334  
-                    currentHref = document.location.href;
335  
-                    document.location.reload();
336  
-                } else {
337  
-					if (getHash() != getIframeHash()) {
338  
-						// this.iframe.src = this.blankURL + hash;
339  
-						var sourceToSet = historyFrameSourcePrefix + getHash();
340  
-						getHistoryFrame().src = sourceToSet;
341  
-                        currentHref = document.location.href;
342  
-					}
343  
-                }
344  
-            }
345  
-        }
346  
-
347  
-        if (browser.safari) {
348  
-            // For Safari, we have to check to see if history.length changed.
349  
-            if (currentHistoryLength >= 0 && history.length != currentHistoryLength) {
350  
-                //alert("did change: " + history.length + ", " + historyHash.length + "|" + historyHash[history.length] + "|>" + historyHash.join("|"));
351  
-                var flexAppUrl = getHash();
352  
-                if (browser.version < 528.16 /* Anything earlier than Safari 4.0 */)
353  
-                {    
354  
-                    // If it did change and we're running Safari 3.x or earlier, 
355  
-                    // then we have to look the old state up in our hand-maintained 
356  
-                    // array since document.location.hash won't have changed, 
357  
-                    // then call back into BrowserManager.
358  
-                currentHistoryLength = history.length;
359  
-                    flexAppUrl = historyHash[currentHistoryLength];
360  
-                }
361  
-
362  
-                //ADR: to fix multiple
363  
-                if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) {
364  
-                    var pl = getPlayers();
365  
-                    for (var i = 0; i < pl.length; i++) {
366  
-                        pl[i].browserURLChange(flexAppUrl);
367  
-                    }
368  
-                } else {
369  
-                    getPlayer().browserURLChange(flexAppUrl);
370  
-                }
371  
-                _storeStates();
372  
-            }
373  
-        }
374  
-        if (browser.firefox) {
375  
-            if (currentHref != document.location.href) {
376  
-                var bsl = backStack.length;
377  
-
378  
-                var urlActions = {
379  
-                    back: false, 
380  
-                    forward: false, 
381  
-                    set: false
382  
-                }
383  
-
384  
-                if ((window.location.hash == initialHash || window.location.href == initialHref) && (bsl == 1)) {
385  
-                    urlActions.back = true;
386  
-                    // FIXME: could this ever be a forward button?
387  
-                    // we can't clear it because we still need to check for forwards. Ugg.
388  
-                    // clearInterval(this.locationTimer);
389  
-                    handleBackButton();
390  
-                }
391  
-                
392  
-                // first check to see if we could have gone forward. We always halt on
393  
-                // a no-hash item.
394  
-                if (forwardStack.length > 0) {
395  
-                    if (forwardStack[forwardStack.length-1].flexAppUrl == getHash()) {
396  
-                        urlActions.forward = true;
397  
-                        handleForwardButton();
398  
-                    }
399  
-                }
400  
-
401  
-                // ok, that didn't work, try someplace back in the history stack
402  
-                if ((bsl >= 2) && (backStack[bsl - 2])) {
403  
-                    if (backStack[bsl - 2].flexAppUrl == getHash()) {
404  
-                        urlActions.back = true;
405  
-                        handleBackButton();
406  
-                    }
407  
-                }
408  
-                
409  
-                if (!urlActions.back && !urlActions.forward) {
410  
-                    var foundInStacks = {
411  
-                        back: -1, 
412  
-                        forward: -1
413  
-                    }
414  
-
415  
-                    for (var i = 0; i < backStack.length; i++) {
416  
-                        if (backStack[i].flexAppUrl == getHash() && i != (bsl - 2)) {
417  
-                            arbitraryUrl = true;
418  
-                            foundInStacks.back = i;
419  
-                        }
420  
-                    }
421  
-                    for (var i = 0; i < forwardStack.length; i++) {
422  
-                        if (forwardStack[i].flexAppUrl == getHash() && i != (bsl - 2)) {
423  
-                            arbitraryUrl = true;
424  
-                            foundInStacks.forward = i;
425  
-                        }
426  
-                    }
427  
-                    handleArbitraryUrl();
428  
-                }
429  
-
430  
-                // Firefox changed; do a callback into BrowserManager to tell it.
431  
-                currentHref = document.location.href;
432  
-                var flexAppUrl = getHash();
433  
-                //ADR: to fix multiple
434  
-                if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) {
435  
-                    var pl = getPlayers();
436  
-                    for (var i = 0; i < pl.length; i++) {
437  
-                        pl[i].browserURLChange(flexAppUrl);
438  
-                    }
439  
-                } else {
440  
-                    getPlayer().browserURLChange(flexAppUrl);
441  
-                }
442  
-            }
443  
-        }
444  
-        //setTimeout(checkForUrlChange, 50);
445  
-    }
446  
-
447  
-    /* Write an anchor into the page to legitimize it as a URL for Firefox et al. */
448  
-    function addAnchor(flexAppUrl)
449  
-    {
450  
-       if (document.getElementsByName(flexAppUrl).length == 0) {
451  
-           getAnchorElement().innerHTML += "<a name='" + flexAppUrl + "'>" + flexAppUrl + "</a>";
452  
-       }
453  
-    }
454  
-
455  
-    var _initialize = function () {
456  
-        if (browser.ie)
457  
-        {
458  
-            var scripts = document.getElementsByTagName('script');
459  
-            for (var i = 0, s; s = scripts[i]; i++) {
460  
-                if (s.src.indexOf("history.js") > -1) {
461  
-                    var iframe_location = (new String(s.src)).replace("history.js", "historyFrame.html");
462  
-                }
463  
-            }
464  
-            historyFrameSourcePrefix = iframe_location + "?";
465  
-            var src = historyFrameSourcePrefix;
466  
-
467  
-            var iframe = document.createElement("iframe");
468  
-            iframe.id = 'ie_historyFrame';
469  
-            iframe.name = 'ie_historyFrame';
470  
-            iframe.src = 'javascript:false;'; 
471  
-
472  
-            try {
473  
-                document.body.appendChild(iframe);
474  
-            } catch(e) {
475  
-                setTimeout(function() {
476  
-                    document.body.appendChild(iframe);
477  
-                }, 0);
478  
-            }
479  
-        }
480  
-
481  
-        if (browser.safari)
482  
-        {
483  
-            var rememberDiv = document.createElement("div");
484  
-            rememberDiv.id = 'safari_rememberDiv';
485  
-            document.body.appendChild(rememberDiv);
486  
-            rememberDiv.innerHTML = '<input type="text" id="safari_remember_field" style="width: 500px;">';
487  
-
488  
-            var formDiv = document.createElement("div");
489  
-            formDiv.id = 'safari_formDiv';
490  
-            document.body.appendChild(formDiv);
491  
-
492  
-            var reloader_content = document.createElement('div');
493  
-            reloader_content.id = 'safarireloader';
494  
-            var scripts = document.getElementsByTagName('script');
495  
-            for (var i = 0, s; s = scripts[i]; i++) {
496  
-                if (s.src.indexOf("history.js") > -1) {
497  
-                    html = (new String(s.src)).replace(".js", ".html");
498  
-                }
499  
-            }
500  
-            reloader_content.innerHTML = '<iframe id="safarireloader-iframe" src="about:blank" frameborder="no" scrolling="no"></iframe>';
501  
-            document.body.appendChild(reloader_content);
502  
-            reloader_content.style.position = 'absolute';
503  
-            reloader_content.style.left = reloader_content.style.top = '-9999px';
504  
-            iframe = reloader_content.getElementsByTagName('iframe')[0];
505  
-
506  
-            if (document.getElementById("safari_remember_field").value != "" ) {
507  
-                historyHash = document.getElementById("safari_remember_field").value.split(",");
508  
-            }
509  
-
510  
-        }
511  
-
512  
-        if (browser.firefox || browser.ie8)
513  
-        {
514  
-            var anchorDiv = document.createElement("div");
515  
-            anchorDiv.id = 'firefox_anchorDiv';
516  
-            document.body.appendChild(anchorDiv);
517  
-        }
518  
-
519  
-        if (browser.ie8)        
520  
-            document.body.onhashchange = hashChangeHandler;
521  
-        //setTimeout(checkForUrlChange, 50);
522  
-    }
523  
-
524  
-    return {
525  
-        historyHash: historyHash, 
526  
-        backStack: function() { return backStack; }, 
527  
-        forwardStack: function() { return forwardStack }, 
528  
-        getPlayer: getPlayer, 
529  
-        initialize: function(src) {
530  
-            _initialize(src);
531  
-        }, 
532  
-        setURL: function(url) {
533  
-            document.location.href = url;
534  
-        }, 
535  
-        getURL: function() {
536  
-            return document.location.href;
537  
-        }, 
538  
-        getTitle: function() {
539  
-            return document.title;
540  
-        }, 
541  
-        setTitle: function(title) {
542  
-            try {
543  
-                backStack[backStack.length - 1].title = title;
544  
-            } catch(e) { }
545  
-            //if on safari, set the title to be the empty string. 
546  
-            if (browser.safari) {
547  
-                if (title == "") {
548  
-                    try {
549  
-                    var tmp = window.location.href.toString();
550  
-                    title = tmp.substring((tmp.lastIndexOf("/")+1), tmp.lastIndexOf("#"));
551  
-                    } catch(e) {
552  
-                        title = "";
553  
-                    }
554  
-                }
555  
-            }
556  
-            document.title = title;
557  
-        }, 
558  
-        setDefaultURL: function(def)
559  
-        {
560  
-            defaultHash = def;
561  
-            def = getHash();
562  
-            //trailing ? is important else an extra frame gets added to the history
563  
-            //when navigating back to the first page.  Alternatively could check
564  
-            //in history frame navigation to compare # and ?.
565  
-            if (browser.ie)
566  
-            {
567  
-                window['_ie_firstload'] = true;
568  
-                var sourceToSet = historyFrameSourcePrefix + def;
569  
-                var func = function() {
570  
-                    getHistoryFrame().src = sourceToSet;
571  
-                    window.location.replace("#" + def);
572  
-                    setInterval(checkForUrlChange, 50);
573  
-                }
574  
-                try {
575  
-                    func();
576  
-                } catch(e) {
577  
-                    window.setTimeout(function() { func(); }, 0);
578  
-                }
579  
-            }
580  
-
581  
-            if (browser.safari)
582  
-            {
583  
-                currentHistoryLength = history.length;
584  
-                if (historyHash.length == 0) {
585  
-                    historyHash[currentHistoryLength] = def;
586  
-                    var newloc = "#" + def;
587  
-                    window.location.replace(newloc);
588  
-                } else {
589  
-                    //alert(historyHash[historyHash.length-1]);
590  
-                }
591  
-                //setHash(def);
592  
-                setInterval(checkForUrlChange, 50);
593  
-            }
594  
-            
595  
-            
596  
-            if (browser.firefox || browser.opera)
597  
-            {
598  
-                var reg = new RegExp("#" + def + "$");
599  
-                if (window.location.toString().match(reg)) {
600  
-                } else {
601  
-                    var newloc ="#" + def;
602  
-                    window.location.replace(newloc);
603  
-                }
604  
-                setInterval(checkForUrlChange, 50);
605  
-                //setHash(def);
606  
-            }
607  
-
608  
-        }, 
609  
-
610  
-        /* Set the current browser URL; called from inside BrowserManager to propagate
611  
-         * the application state out to the container.
612  
-         */
613  
-        setBrowserURL: function(flexAppUrl, objectId) {
614  
-            if (browser.ie && typeof objectId != "undefined") {
615  
-                currentObjectId = objectId;
616  
-            }
617  
-           //fromIframe = fromIframe || false;
618  
-           //fromFlex = fromFlex || false;
619  
-           //alert("setBrowserURL: " + flexAppUrl);
620  
-           //flexAppUrl = (flexAppUrl == "") ? defaultHash : flexAppUrl ;
621  
-
622  
-           var pos = document.location.href.indexOf('#');
623  
-           var baseUrl = pos != -1 ? document.location.href.substr(0, pos) : document.location.href;
624  
-           var newUrl = baseUrl + '#' + flexAppUrl;
625  
-
626  
-           if (document.location.href != newUrl && document.location.href + '#' != newUrl) {
627  
-               currentHref = newUrl;
628  
-               addHistoryEntry(baseUrl, newUrl, flexAppUrl);
629  
-               currentHistoryLength = history.length;
630  
-           }
631  
-        }, 
632  
-
633  
-        browserURLChange: function(flexAppUrl) {
634  
-            var objectId = null;
635  
-            if (browser.ie && currentObjectId != null) {
636  
-                objectId = currentObjectId;
637  
-            }
638  
-            pendingURL = '';
639  
-            
640  
-            if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) {
641  
-                var pl = getPlayers();
642  
-                for (var i = 0; i < pl.length; i++) {
643  
-                    try {
644  
-                        pl[i].browserURLChange(flexAppUrl);
645  
-                    } catch(e) { }
646  
-                }
647  
-            } else {
648  
-                try {
649  
-                    getPlayer(objectId).browserURLChange(flexAppUrl);
650  
-                } catch(e) { }
651  
-            }
652  
-
653  
-            currentObjectId = null;
654  
-        },
655  
-        getUserAgent: function() {
656  
-            return navigator.userAgent;
657  
-        },
658  
-        getPlatform: function() {
659  
-            return navigator.platform;
660  
-        }
661  
-
662  
-    }
663  
-
664  
-})();
665  
-
666  
-// Initialization
667  
-
668  
-// Automated unit testing and other diagnostics
669  
-
670  
-function setURL(url)
671  
-{
672  
-    document.location.href = url;
673  
-}
674  
-
675  
-function backButton()
676  
-{
677  
-    history.back();
678  
-}
679  
-
680  
-function forwardButton()
681  
-{
682  
-    history.forward();
683  
-}
684  
-
685  
-function goForwardOrBackInHistory(step)
686  
-{
687  
-    history.go(step);
688  
-}
689  
-
690  
-//BrowserHistoryUtils.addEvent(window, "load", function() { BrowserHistory.initialize(); });
691  
-(function(i) {
692  
-    var u =navigator.userAgent;var e=/*@cc_on!@*/false; 
693  
-    var st = setTimeout;
694  
-    if(/webkit/i.test(u)){
695  
-        st(function(){
696  
-            var dr=document.readyState;
697  
-            if(dr=="loaded"||dr=="complete"){i()}
698  
-            else{st(arguments.callee,10);}},10);
699  
-    } else if((/mozilla/i.test(u)&&!/(compati)/.test(u)) || (/opera/i.test(u))){
700  
-        document.addEventListener("DOMContentLoaded",i,false);
701  
-    } else if(e){
702  
-    (function(){
703  
-        var t=document.createElement('doc:rdy');
704  
-        try{t.doScroll('left');
705  
-            i();t=null;
706  
-        }catch(e){st(arguments.callee,0);}})();
707  
-    } else{
708  
-        window.onload=i;
709  
-    }
710  
-})( function() {BrowserHistory.initialize();} );
29  examples/flex/AuthorizationFlexExample/bin-debug/history/historyFrame.html
... ...
@@ -1,29 +0,0 @@
1  
-<html>
2  
-    <head>
3  
-        <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
4  
-        <META HTTP-EQUIV="Expires" CONTENT="-1"> 
5  
-    </head>
6  
-    <body>
7  
-    <script>
8  
-        function processUrl()
9  
-        {
10  
-
11  
-            var pos = url.indexOf("?");
12  
-            url = pos != -1 ? url.substr(pos + 1) : "";
13  
-            if (!parent._ie_firstload) {
14  
-                parent.BrowserHistory.setBrowserURL(url);
15  
-                try {
16  
-                    parent.BrowserHistory.browserURLChange(url);
17  
-                } catch(e) { }
18  
-            } else {
19  
-                parent._ie_firstload = false;
20  
-            }
21  
-        }
22  
-
23  
-        var url = document.location.href;
24  
-        processUrl();
25  
-        document.write(encodeURIComponent(url));
26  
-    </script>
27  
-    Hidden frame for Browser History support.
28  
-    </body>
29  
-</html>
BIN  examples/flex/AuthorizationFlexExample/bin-debug/osmf_flex.4.0.0.13495.swf
Binary file not shown
BIN  examples/flex/AuthorizationFlexExample/bin-debug/playerProductInstall.swf
Binary file not shown
BIN  examples/flex/AuthorizationFlexExample/bin-debug/rpc_4.0.0.14288.swf
Binary file not shown
BIN  examples/flex/AuthorizationFlexExample/bin-debug/spark_4.0.0.14288.swf
Binary file not shown
BIN  examples/flex/AuthorizationFlexExample/bin-debug/sparkskins_4.0.0.14288.swf
Binary file not shown
777  examples/flex/AuthorizationFlexExample/bin-debug/swfobject.js
... ...
@@ -1,777 +0,0 @@
1  
-/*!	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
2  
-	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
3  
-*/
4  
-
5  
-var swfobject = function() {
6  
-	
7  
-	var UNDEF = "undefined",
8  
-		OBJECT = "object",
9  
-		SHOCKWAVE_FLASH = "Shockwave Flash",
10  
-		SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
11  
-		FLASH_MIME_TYPE = "application/x-shockwave-flash",
12  
-		EXPRESS_INSTALL_ID = "SWFObjectExprInst",
13  
-		ON_READY_STATE_CHANGE = "onreadystatechange",
14  
-		
15  
-		win = window,
16  
-		doc = document,
17  
-		nav = navigator,
18  
-		
19  
-		plugin = false,
20  
-		domLoadFnArr = [main],
21  
-		regObjArr = [],
22  
-		objIdArr = [],
23  
-		listenersArr = [],
24  
-		storedAltContent,
25  
-		storedAltContentId,
26  
-		storedCallbackFn,
27  
-		storedCallbackObj,
28  
-		isDomLoaded = false,
29  
-		isExpressInstallActive = false,
30  
-		dynamicStylesheet,
31  
-		dynamicStylesheetMedia,
32  
-		autoHideShow = true,
33  
-	
34  
-	/* Centralized function for browser feature detection
35  
-		- User agent string detection is only used when no good alternative is possible
36  
-		- Is executed directly for optimal performance
37  
-	*/	
38  
-	ua = function() {
39  
-		var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF,
40  
-			u = nav.userAgent.toLowerCase(),
41  
-			p = nav.platform.toLowerCase(),
42  
-			windows = p ? /win/.test(p) : /win/.test(u),
43  
-			mac = p ? /mac/.test(p) : /mac/.test(u),
44  
-			webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
45  
-			ie = !+"\v1", // feature detection based on Andrea Giammarchi's solution: http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html
46  
-			playerVersion = [0,0,0],
47  
-			d = null;
48  
-		if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
49  
-			d = nav.plugins[SHOCKWAVE_FLASH].description;
50  
-			if (d && !(typeof nav.mimeTypes != UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && !nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) { // navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin indicates whether plug-ins are enabled or disabled in Safari 3+
51  
-				plugin = true;
52  
-				ie = false; // cascaded feature detection for Internet Explorer
53  
-				d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
54  
-				playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
55  
-				playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
56  
-				playerVersion[2] = /[a-zA-Z]/.test(d) ? parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0;
57  
-			}
58  
-		}
59  
-		else if (typeof win.ActiveXObject != UNDEF) {
60  
-			try {
61  
-				var a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
62  
-				if (a) { // a will return null when ActiveX is disabled
63  
-					d = a.GetVariable("$version");
64  
-					if (d) {
65  
-						ie = true; // cascaded feature detection for Internet Explorer
66  
-						d = d.split(" ")[1].split(",");
67  
-						playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
68  
-					}
69  
-				}
70  
-			}
71  
-			catch(e) {}
72  
-		}
73  
-		return { w3:w3cdom, pv:playerVersion, wk:webkit, ie:ie, win:windows, mac:mac };
74  
-	}(),
75  
-	
76  
-	/* Cross-browser onDomLoad
77  
-		- Will fire an event as soon as the DOM of a web page is loaded
78  
-		- Internet Explorer workaround based on Diego Perini's solution: http://javascript.nwbox.com/IEContentLoaded/
79  
-		- Regular onload serves as fallback
80  
-	*/ 
81  
-	onDomLoad = function() {
82  
-		if (!ua.w3) { return; }
83  
-		if ((typeof doc.readyState != UNDEF && doc.readyState == "complete") || (typeof doc.readyState == UNDEF && (doc.getElementsByTagName("body")[0] || doc.body))) { // function is fired after onload, e.g. when script is inserted dynamically 
84  
-			callDomLoadFunctions();
85  
-		}
86  
-		if (!isDomLoaded) {
87  
-			if (typeof doc.addEventListener != UNDEF) {
88  
-				doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, false);
89  
-			}		
90  
-			if (ua.ie && ua.win) {
91  
-				doc.attachEvent(ON_READY_STATE_CHANGE, function() {
92  
-					if (doc.readyState == "complete") {
93  
-						doc.detachEvent(ON_READY_STATE_CHANGE, arguments.callee);
94  
-						callDomLoadFunctions();
95  
-					}
96  
-				});
97  
-				if (win == top) { // if not inside an iframe
98  
-					(function(){