incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1351402 - in /incubator/flex/trunk/templates/automation-runtimeloading-files: ./ RunTimeLoading.html build.bat runtimeloading.mxml
Date Mon, 18 Jun 2012 16:22:10 GMT
Author: cframpton
Date: Mon Jun 18 16:22:10 2012
New Revision: 1351402

URL: http://svn.apache.org/viewvc?rev=1351402&view=rev
Log:
Adobe donation: Adding automation-runtimeloading-files template to SDK/template. http://bugs.adobe.com/jira/browse/FLEXENT-1225.

Added:
    incubator/flex/trunk/templates/automation-runtimeloading-files/
    incubator/flex/trunk/templates/automation-runtimeloading-files/RunTimeLoading.html   (with
props)
    incubator/flex/trunk/templates/automation-runtimeloading-files/build.bat   (with props)
    incubator/flex/trunk/templates/automation-runtimeloading-files/runtimeloading.mxml   (with
props)

Added: incubator/flex/trunk/templates/automation-runtimeloading-files/RunTimeLoading.html
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/templates/automation-runtimeloading-files/RunTimeLoading.html?rev=1351402&view=auto
==============================================================================
--- incubator/flex/trunk/templates/automation-runtimeloading-files/RunTimeLoading.html (added)
+++ incubator/flex/trunk/templates/automation-runtimeloading-files/RunTimeLoading.html Mon
Jun 18 16:22:10 2012
@@ -0,0 +1,70 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- saved from url=(0014)about:internet -->
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>FlexApp</title>
+ <style type="text/css">
+<!--
+body {
+	margin-left: 0px;
+	margin-top: 0px;
+	margin-right: 0px;
+	margin-bottom: 0px;
+	background-color: #808080;
+}
+#fileLayer {
+	position:absolute;
+	width:319px;
+	height:30px;
+	z-index:1;
+	left: 486px;
+	top: 603px;
+	visibility: hidden;
+}
+-->
+</style></head>
+
+<body scroll="no" top="0" left="0" >
+<script language='javascript' charset='utf-8'>
+function getQueryVariable(variable)
+{
+  var atquery = window.location.search.substring(1);
+  var atstr = atquery.split("&");
+  for (var i=0;i<atstr.length;i++)
+  {
+    var atvar = atstr[i].split("=");
+    if (atvar[0] == variable)
+	{
+      return atvar[1];
+    }
+ }
+ }
+
+document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="app"
width="100%" height="100% codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">');
+document.write('<param name="movie" value="runtimeloading.swf" />');
+document.write('<param name="quality" value="high" />');
+document.write('<param name="bgcolor" value="#869ca7" />');
+document.write('<param name="allowScriptAccess" value="sameDomain" />');
+document.write('<param name="flashvars" value="automationswfurl='+getQueryVariable("automationswfurl")+'"
/>');
+document.write('</object>');
+</script>
+
+
+</body>
+</html>

Propchange: incubator/flex/trunk/templates/automation-runtimeloading-files/RunTimeLoading.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/flex/trunk/templates/automation-runtimeloading-files/RunTimeLoading.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/flex/trunk/templates/automation-runtimeloading-files/build.bat
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/templates/automation-runtimeloading-files/build.bat?rev=1351402&view=auto
==============================================================================
--- incubator/flex/trunk/templates/automation-runtimeloading-files/build.bat (added)
+++ incubator/flex/trunk/templates/automation-runtimeloading-files/build.bat Mon Jun 18 16:22:10
2012
@@ -0,0 +1,19 @@
+@echo off
+rem Licensed to the Apache Software Foundation (ASF) under one or more
+rem contributor license agreements.  See the NOTICE file distributed with
+rem this work for additional information regarding copyright ownership.
+rem The ASF licenses this file to You under the Apache License, Version 2.0
+rem (the "License"); you may not use this file except in compliance with
+rem the License.  You may obtain a copy of the License at
+rem
+rem     http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+
+SET OPTS=-include-libraries+=..\..\frameworks\libs\automation\automation.swc;..\..\frameworks\libs\automation\automation_agent.swc;..\..\frameworks\libs\automation\automation_dmv.swc;..\..\frameworks\libs\automation\qtp.swc;..\..\frameworks\libs\automation\automation_spark.swc;..\..\frameworks\libs\automation\automation_flashflexkit.swc;
+
+..\..\bin\mxmlc.exe %OPTS% runtimeloading.mxml

Propchange: incubator/flex/trunk/templates/automation-runtimeloading-files/build.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/flex/trunk/templates/automation-runtimeloading-files/build.bat
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/flex/trunk/templates/automation-runtimeloading-files/build.bat
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/flex/trunk/templates/automation-runtimeloading-files/runtimeloading.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/templates/automation-runtimeloading-files/runtimeloading.mxml?rev=1351402&view=auto
==============================================================================
--- incubator/flex/trunk/templates/automation-runtimeloading-files/runtimeloading.mxml (added)
+++ incubator/flex/trunk/templates/automation-runtimeloading-files/runtimeloading.mxml Mon
Jun 18 16:22:10 2012
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="actionScriptFunction()"
>
+	<mx:Script>
+		<![CDATA[
+		import flash.external.*;
+
+		 
+ 	public function init():void
+	{
+	 myLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
+  	}
+	private function ioErrorHandler(event:IOErrorEvent):void {
+            trace("ioErrorHandler: " + event);
+        }
+	public function actionScriptFunction():void
+	{
+		init()
+ 	 
+	 	myLoader.source = Application.application.parameters.automationswfurl;
+      }
+
+]]>
+	</mx:Script>
+	
+	 <mx:SWFLoader  id="myLoader"   width="100%" height="100%" preinitialize="myLoader.loaderContext
= new LoaderContext(false, ApplicationDomain.currentDomain)" >
+	</mx:SWFLoader>
+	
+	
+</mx:Application>

Propchange: incubator/flex/trunk/templates/automation-runtimeloading-files/runtimeloading.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/flex/trunk/templates/automation-runtimeloading-files/runtimeloading.mxml
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message