<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>flow</title>
<style type="text/css">
.div1{font-size:10pt}
.div2{font-size:10pt;cursor:hand}
html,body{height: 100%;padding:0 4 4 0;margin:0;}
</style>
<script language=javascript src=/psub.js></script>
<script language="javascript">
function getUrl(type)
{
var localname = "", pagename = "";
if (document.getElementById("localname") != undefined)
{
localname = document.getElementById("localname").value;
}
var url = location.href;
var re = /.*\/((.+?)\..+)/;
var m = re.exec(url);
var re1, t;
if (localname == "")
{
localname = m[2];
}
if (type == "ram" || localname == "debug")
{
t = new Date().getTime();
var restr = "\\w+\\d{" + (t.toString().length - 1) + "," + (t.toString().length + 1) + "}$";
re1 = new RegExp(restr);
if (!re1.test(localname))
{
localname += t;
}
document.getElementById("localname").value = localname;
}
var title = document.title;
if (title == "")
{
pagename = m[1];
title = pagename;
}
return localname + ";" + title;
}
window.onerror1 = function (sMsg,sUrl,sLine){
var str = "JavaScript脚本错误:\n";
str+="Error: " + sMsg + "\n";
str+="Line: " + sLine + "\n";
str+="URL: " + sUrl;
out.print(str);
return true;
}
var isDown = false;
var mouse0 = new Object();
function mouseover(obj)
{
obj.className = "div2"
}
function mouseout(obj)
{
obj.className = "div1"
}
function mousedown(obj)
{
isDown = true;
mouse0.mouseX0 = parseInt(event.clientX);
mouse0.mouseY0 = parseInt(event.clientY);
flashdiv.flashWidth0 = parseInt(flash.style.width);
//alert(flash.style.width);
flashdiv.flashHeight0 = parseInt(flash.style.height);
obj.setCapture();
}
function mousemove(obj)
{
if (!isDown)
{
return;
}
var offsetX = 0, offsetY = 0;
offsetX = parseInt(event.clientX) - mouse0.mouseX0;
offsetY = parseInt(event.clientY) - mouse0.mouseY0;
if (flashdiv.flashWidth0 + offsetX > 100) {
switch (obj.id) {
case "ccenter" :
break;
case "cleft" :
default :
changeSize.style.left = flashdiv.flashWidth0 + offsetX;
cleft.style.left = flashdiv.flashWidth0 + offsetX;
ccenter.style.left = (flashdiv.flashWidth0 + offsetX) / 2 - 2;
flash.style.width = flashdiv.flashWidth0 + offsetX;
flashdiv.style.width = flashdiv.flashWidth0 + offsetX;
}
changed = true;
}
if ( flashdiv.flashHeight0 + offsetY > 100) {
switch (obj.id) {
case "cleft" :
break;
case "ccenter" :
default :
changeSize.style.top = flashdiv.flashHeight0 + offsetY;
cleft.style.top = (flashdiv.flashHeight0 + offsetY) / 2 - 2;
ccenter.style.top = flashdiv.flashHeight0 + offsetY;
flash.style.height = flashdiv.flashHeight0 + offsetY;
flashdiv.style.height = flashdiv.flashHeight0 + offsetY;
}
changed = true;
}
}
function mouseup(obj)
{
isDown = false;
obj.releaseCapture();
}
function jiancha() {
if (changed) {
return "流程图已修改,放弃保存吗?";
}
}
function mouseclick(obj)
{
obj.className = "div2"
}
AC_FL_RunContent = 0;
var debugLevel = "info";
var flash = null;
function setStageSize(w, h) {
return;
if (h == undefined) {
h = 400;
}
if (w == undefined) {
w = 550;
}
flash.style.width = w;
flash.style.height = h;
changeSize.style.top = h;
changeSize.style.left = w;
cleft.style.top = h / 2 - 2;
cleft.style.left = w;
ccenter.style.top = h;
ccenter.style.left = w / 2 - 2;
if (w > document.body.offsetWidth || h > document.body.offsetHeight) {
document.body.scroll = "yes";
}
}
var changeSize = null;
var flashdiv = null;
var changed = false;
window.onload = function(){
changeSize = document.getElementById("changeSize0");
flashdiv = document.getElementById("flashdiv0");
flash = document.getElementById("flow");
flash.style.width = document.body.offsetWidth;
flash.style.height = document.body.offsetHeight;
};
window.onunload = function(){
//if ( prop != null && !prop.closed )
{
// prop.close();
// prop = null;
}
flash = null;
};
</script>
<script src="../AC_RunActiveContent.js" language="javascript"></script>
<script language=javascript src=/psub.js></script>
</head>
<body bgcolor="#ffffff" onbeforeunload="return jiancha();" scroll="no">
<div id="flashdiv0" style="border:solid 0 #aaaaaa;float:left;"><script language="javascript">
if (AC_FL_RunContent == 0) {
alert("此页需要 AC_RunActiveContent.js");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '550',
'height', '400',
'src', 'flow',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'Opaque',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#ffffff',
'name', 'flow',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', '../flow',
'salign', ''
); //end AC code
}
</script></div><div id="cleft" style="width:4px;height:4px;background-color:#000080;position:absolute;top:198px;left:550;overflow:hidden;cursor:w-resize;"
onmousedown="mousedown(this);" onmouseup="mouseup(this);" onmousemove="mousemove(this);"></div><div id="ccenter" style="width:4px;height:4px;background-color:#000080;position:absolute;top:400px;left:273;overflow:hidden;cursor:s-resize;"
onmousedown="mousedown(this);" onmouseup="mouseup(this);" onmousemove="mousemove(this);"></div><div id="changeSize0" style="width:4px;height:4px;background-color:#000080;position:absolute;top:400px;left:550;overflow:hidden;cursor:se-resize;"
onmousedown="mousedown(this);" onmouseup="mouseup(this);" onmousemove="mousemove(this);"></div>
<SCRIPT LANGUAGE="JavaScript">
<!--
var prop = null;
var time0 = 0;
var propInfo = "";
var curObj = "";
function flow::FSCommand(command, args)
{
command = command.toLowerCase();
//alert(command+"==="+args)
switch (command)
{
case "alert":
alert(args);
break;
case "status":
top.status = args;
break;
case "eval":
try {
eval(args);
} catch (e) {
}
break;
case "init":
document.getElementById("flow").execFunction("init");
break;
case "delete":
//parent.deleteEle();
flash.setDrawActionType("delete")
break;
case "addnodeafter":
changed = true;
parent.mouseclick();
//parent.addNodeAfter(args);
break;
case "addlineafter":
flash.sendDebug(args);
if (args.indexOf("错误") >= 0) {
return;
}
changed = true;
parent.mouseclick();
//parent.addLineAfter(args);
break;
case "deleteafter":
changed = true;
//parent.deleteAfter(args);
break;
case "node": //双击节点
parent.document.getElementById("nodeProp").src = "/TableAction.asp?Action=EditFlowActionProp&FlowDataID=" + args;
//NewHref("/TableAction.asp?Action=EditFlowActionProp&FlowDataID=" + (parseInt(args) + 1),
// "menubar=0,toolbar=0,location=0,status=0,width=640,height=480,scrollbars=0,resizable=0");
break;
case "line": //双击节点
parent.document.getElementById("nodeProp").src = "/TableAction.asp?Action=FlowCondition_form&FlowID=" + parent.flow_id + "&FlowDataID=" + args;
//window.open("line_prop.asp?flow_id=" + parent.flow_id + "&orderby=" + args, "_blank", "width=500,height=350,resizable=yes");
//NewHref("FlowLineProp.asp?FlowID=" + parent.flow_id + "&FlowDataID=" + (parseInt(args) + 1),
// "menubar=0,toolbar=0,location=0,status=0,width=300,height=220,scrollbars=0,resizable=0");
break;
case "loader": //作廢
parent.continueLoader();
break;
case "parent.reload":
parent.location.reloa
没有合适的资源?快使用搜索试试~ 我知道了~
flash画流程图 V2.0 正式版,支持web页面上运用flash技术画流程图
共54个文件
gif:43个
jpg:5个
htm:1个
2星 需积分: 9 131 下载量 36 浏览量
2013-12-18
14:10:37
上传
评论
收藏 141KB RAR 举报
温馨提示
支持web页面上运用flash技术画流程图,通过flash与javascript交互实现对流程图的控制。需要部署到web服务器,使用方法参照graph1.htm。 首先说明,请注意,一定要注意,那些反应“此页需要 AC_RunActiveContent.js ”的人一定要看哦,这是一个web应用,需要部署到Web服务器中访问,就是放到IIS,tomcat,apache这样的web服务器中,明白了不? 其次,这是应用中的一个产品,从最初版本到现在有一段时间了,上一个版本是1.3,后来又改了一些bug,现在已经基本稳定了 再次,具体使用方法要看graph1.html,如果需要画流程图,自己保存,需要给系统保存路径,系统会把数据post过去,这个就要自己去分析数据结构了,不过,对已开发人员,应该算很简单 最后,该应用这一系列的发布,感谢朋友们的大力支持,让我有动力更好的去更新、完善,谢谢
资源推荐
资源详情
资源评论
收起资源包目录
flow.rar (54个子文件)
images
image3.gif 362B
image27.gif 604B
image9.gif 129B
print.jpg 844B
daochu.gif 547B
daoru.gif 549B
image20.gif 325B
flow_bg0.jpg 2KB
image8.gif 379B
image24.gif 303B
image36.gif 320B
image45.gif 591B
error.gif 2KB
image51.gif 609B
lingxing.gif 64B
image2.gif 128B
image10.gif 170B
image66.gif 125B
image64.gif 127B
image30.gif 613B
hand.gif 754B
image26.gif 80B
image17.gif 369B
image14.gif 73B
image55.gif 98B
Property.gif 171B
lingjuxing.gif 60B
flow_bg1.jpg 3KB
image28.gif 365B
image62.gif 613B
image60.gif 598B
image65.gif 124B
Thumbs.db 62KB
image34.gif 304B
bg.jpg 2KB
image63.gif 123B
dragbg.gif 63B
tuoyuan.gif 59B
image41.gif 175B
image11.png 473B
switch.gif 1KB
plus.gif 85B
image59.gif 94B
exit.gif 63B
prof_acc.gif 101B
fenge.gif 62B
image37.gif 229B
fang.gif 65B
image15.gif 222B
dragbg.jpg 641B
flow.swf 85KB
AC_RunActiveContent.js 8KB
graph1.htm 28KB
flow.html 10KB
共 54 条
- 1
资源评论
- 高兴0082017-04-07不是很好,涨姿势
- ChanronWang2016-05-03没太多作用的
- asd27662016-10-31感觉还行,长知识了
jnssvh
- 粉丝: 1
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功