iebook Actionscript2.0 脚本

注:在插入的内页flash中,要想调用以下参数(或函数)或者自制按钮的自定义函数,请在舞台第一帧添加this._lockroot=false语句。——感谢zmaker的指导

转到封面 _root.Zine1.gotoCover()
转到目录 _root.Zine1.gotoContent()
转到封底 _root.Zine1.gotoBCover()
转到某页 _root.Zine1.gotopage(int(pageNumber)+1) (注:pageNumber 从0开始)
设置音量 _root.Zine1.setmusicvol(v) (注:取值范围0~100)
获取音量 _root.Zine1.getmusicvol()
转到上一页 _root.Zine1.prevpage()
转到下一页 _root.Zine1.nextpage()
当前页 _root.Zine1.getpage()
当前帧 _root.Zine1.getframeplayed()
总页数 _root.Zine1.getmaxpage()
全屏/1:1显示 _root.Zine1.screenfull()
最小化 _root.Zine1.minimize()
退出 _root.Zine1.exit();
单页宽度 _root.Zine1.getpageW();
单页高度 _root.Zine1.getpageH();
屏幕宽度 System.capabilities.screenResolutionX;
屏幕高度 System.capabilities.screenResolutionY;
隐藏底部版权 _root.Zine1.copy_mc.Copyright._visible=false

========================

iebook内页专用
获取深度  this._parent.getDepth();
获取角度  this._parent._rotation;
获取比例  this._xscale;

=====================

复制地址 _root.Zine1.AppCommand(“CopyUrl”, “”)

加载 ie搜索按钮 _root.Zine1.loadTool(“iesearch”, “iesearch.swf”)

加载在线交流按钮 _root.Zine1.loadTool(“comment”, “comment.swf”)

加载即时通信功能

var Info = _root.Zine1.getZineInfo();
if (Info.IM.toLowerCase() == "qq") {
    getURL (("tencent://message/?uin=" + Info.QQ) + "&Site=iebook.cn&Menu=yes");
} else {
    getURL ("msnim:chat?contact=" + Info.MSN);
}

加载涂鸦按钮 _root.Zine1.loadTool(“booktag”, “booktag.swf”)

加载打印按钮 _root.Zine1.loadTool(“print”, “print.swf”)

加载帮助按钮 _root.Zine1.loadTool(“help”, “help.swf”)

加载设置按钮 _root.Zine1.loadTool(“config”, “config.swf”)

加载统计系统 _root.Zine1.loadTool(“count”, “count.swf”)

其他按钮

Question.swf 文件调查

recommend.swf

=====================

获取名称变量(赋值:caption)

 _root.Zine1.getCaption()
if (caption.type.toLowerCase() == "string") {
    this.caption_txt.autoSize = "left";
    this.caption_txt.text = caption.value;
    bg._width = caption_txt._width + 10;
    bg._height = caption_txt._height;
} else {
    bg._visible = false;
    caption_txt._visible = false;
    this.createEmptyMovieClip("logo", 0);
    eobj.onLoadInit = function (t) {
        t._y = 18 - t._height;
    };
    mc_l.addListener(eobj);
    mc_l.loadClip(caption.value, this.logo);
}

打开名称链接 getURL (caption.link, “_blank”);

获取版权信息 _root.Zine1.getCopyright()

获取版权链接 _root.Zine1.getCopyLink()

====================

on(rollOver){
    _root.showalt("提示内容"); //显示提示信息
}

on(releaseOutside,rollOut){
    _root.hidealt();//隐藏提示信息
}

====================

内容定位

function reposmc(mc, bottom, right) {
    mc._x = mc._x + (right * (mag_w - 375));
    mc._y = mc._y + (bottom * ((mag_h - 550) / 2));
}

var comm1 = this.attachMovie("communicate", "comm1", -1);
stop();
br.prve_b._visible = false; //上一页按钮不可见
var eobj = new Object();
eobj.Magflipover = function (target) {
    br.prve_b._visible = true; //上一页按钮可见
    br.next_b._visible = true; //下一页按钮可见
    if (_root.Zine1.getpage() == _root.Zine1.getmaxpage()) {
        br.next_b._visible = false;
    }
    if (_root.Zine1.getpage() == 0) {
        br.prve_b._visible = false;
    }
};

_root.Zine1.addEventListener("Magflipover", eobj);
if (_root.Zine1.getshowplaystate() == false) {
    bl.playstate.unloadMovie();
}
var mag_w = _root.Zine1.getpageW();
var mag_h = _root.Zine1.getpageH();
reposmc(br, 2, 2);
reposmc(bl, 2, 0);
reposmc(tr, 0, 2);
reposmc(iebookbq, 2, 0.5);
reposmc(cpt, 2, 0.5);
reposmc(hidenbt, 0, 2);

===============================================

zine1 有以下成员

ws: _level0.Zine1.ws
initmc: _level0.Zine1.initmc
bg: _level0.Zine1.bg
fullscreen: true
maxp: 4
bgimgurl:
sendreport: false
TemplateMode: true
screenH: 768
screenW: 1024
pageH: 650
pageW: 475
ShowInit: false
Shadowdepth: 26
ShadowFilter: 7
pagefengdis: false
showplaystate: false
AutoSpeedSetting: 6000
AutoEnabledSetting: false
BscreenH: 768
BscreenW: 1366
bs: [object Object]
toolscon2: _level0.Zine1.toolscon2
toolscon: _level0.Zine1.toolscon
toolbar1: _level0.Zine1.toolbar1 // 按钮
dface: [object Object]
mag: _level0.Zine1.mag
eObject: [object Object]
BaseURL:
toolsloader: [object Object]
dispatchQueue: [type Function]
dispatchEvent: [type Function]
removeEventListener: [type Function]
addEventListener: [type Function]
toolbar1: _level0.Zine1.toolbar1
initmc: _level0.Zine1.initmc
ws: _level0.Zine1.ws
timer: _level0.Zine1.timer
toolscon2: _level0.Zine1.toolscon2
toolscon: _level0.Zine1.toolscon
mag: _level0.Zine1.mag
copy_mc: _level0.Zine1.copy_mc // 版权
bg: _level0.Zine1.bg

===============================================

2013年11月16日

代码来源经典视频收藏版4

_root.online 电子杂志是否为在线版本

_root.getFLVPath(path) 获取FLV视频路径(此函数可能程序自带,或自定义函数);如:_root.getFLVPath(“1.flv”)

function getFLVPath(path){
    return ("http://"+ path);
}

video 为FLVPlayback组件

video 的事件

onClipEvent (construct){
    autoPlay = true;
    autoRewind = true;
    autoSize = false;
    bufferTime = 1.000000E-001;
    contentPath = "";
    isLive = false;
    maintainAspectRatio = true;
    skin = "";
    skinAutoHide = false;
    totalTime = 0;
    volume = 100;
}
video.bufferingBar = my_bufferingBar; //my_bufferingBar为用户定义的元件名
video.pauseButton = my_pauseButton; //同上
video.contentPath = _root.getFLVPath(_parent._parent.attachfile4); //参阅楼上
listenerObject = new Object();
listenerObject.ready = function (eventObject){
    playpauseButton.gotoAndStop(2);
    if (video.width < 485){
        video._x = (485 - video.width) / 2 + 0;
    }
    if (video.height < 270){
        video._y = (270 - video.height) / 2 + 30;
    }
};
listenerObject.complete = function (eventObject){
    playpauseButton.gotoAndStop(1);
};
video.addEventListener("ready", listenerObject);
video.addEventListener("complete", listenerObject);



/*----------------华丽的分割线------------------*/
listenerObject = new Object();
listenerObject.ready = function (eventObject){
    ctr.playpauseButton.gotoAndStop(2); //ctr为影片剪辑,内含播放、暂停按钮
    video.maintainAspectRatio = false;
    video.width = 485;
    video.height = 270;
};
listenerObject.complete = function (eventObject){
    ctr.playpauseButton.gotoAndStop(1);
};
video.addEventListener("ready", listenerObject);
video.addEventListener("complete", listenerObject);

 

 

Windows 7 下通过 VHD 安装 Windows 8,实现双系统

  1. 在开始菜单的【计算机】上单击右键,选择【管理】,找到右侧的【计算机管理(本地) > 存储 > 磁盘管理】并展开该项目。
  2. 单击【磁盘管理】的【更多操作】,选择【创建VHD】

    创建VHD
    创建VHD
  3. 在弹出的【创建和附加虚拟硬盘】对话框中,选择VHD文件的存储位置,虚拟硬盘大小为20~30G()。单击【确定】后,需要稍等一段时间等待创建。
  4. 创建完成后,需要对虚拟硬盘进行初始化及新建简单卷
  5. 将Win8.1安装光盘放入光驱,重新启动计算机并设置从光驱启动。
  6. 在进入到选择分区界面时,按下【Shift + F10】快捷键,打开命令提示符窗口。
  7. 输入diskpart
  8. 继续输入diskpart select vdisk file=”F:\win8.vhd”。注:划线部分的路径填写之前创建的vhd文件路径
  9. 继续输入diskpart attach vdisk
  10. 关闭命令提示符窗口,回到分区界面后,单击【刷新】,随后就能看到附加的VHD分区,选中这个分区,进行安装。注:不必理会无法安装提示。
  11. 安装完成后,重新启动计算机即可。

Bootmgr is missing. please press Ctrl+Alt+Delete to restart!

今天帮叔装系统时,看到分区都被设为了主分区,一时觉得奇怪就百度了一下主分区、活动分区的区别。随便看了几眼后就把E盘设为活动分区。然后进行了后续的激活等操作。准备收工回家时,为了保险起见,我将电脑重启了下,结果屏幕上出现“Bootmgr is missing! Please press Ctrl+Alt+Delete to restart”。
⊙_⊙,怎么这样了。刚才哪里操作错了么,回想起刚才的种种,顿时觉得自己太随意了。以后还是多了解清楚再动手。
此时的当务之急是恢复系统,百度一下说是用安装光盘里的自带修复功能修复下,有些说是进去WinPE,重设下活动分区啥的。博主先试试自带修复功能,很快就提示系统启动项有问题,试着修复了下,没成功,系统还是出现同样的缺失文件提示。此时时间已晚,估计来不及重装一次了,就抱着试试的心态重新修复一次,这次一开始就提示哪个盘的启动有问题(这是之前所没有的),单击修复后过了一会,出现了登录界面。(o^^o)?好了,可以回家陪老婆了。

附上分区区别:

“向程序发送命令时出现问题”解决方案

之前用着好好的,最近不知为啥,双击打开Flash、xls、word等文档时,弹出窗口“向程序发送命令时出现问题”,如图:

“向程序发送命令式出现问题”截图
“向程序发送命令式出现问题”解决方案

经过多番百度一下、谷歌一下之后,找到解决方案:在程序快捷方式上单击鼠标右键,选择【属性】,转到【兼容性】选项卡,勾选【以兼容模式运行这个程序】,选择【Windows7】。如果勾选了【以管理员身份运行此程序】,请去掉。如图:

“向程序发送命令时出现问题”解决方案截图
“向程序发送命令时出现问题”解决方案

如何执行添加到解决方案里的批处理文件

前不久重新做了系统,还没来得及装iebook超级精灵等软件,今天得空要装时,想起既然做了一个辅助工具了,干脆把iebook的安装、卸载功能集成进去,一来省去重新安装的烦恼,二来以后修改到iebook时,也不用重新生成安装包,可谓一举两得。

于是有了新版本 v1.1。

通过此次补充还学到了另一个知识。如何执行添加到解决方案里的批处理文件。有关链接参阅:http://wenwen.sogou.com/z/q170165608.htm

命令如下(tmp.bat为添加到解决方案里的批处理文件):

shell(“cmd /c tmp.bat”, AppWinStyle.Hide, True)

重建图标缓存

来源:http://zhidao.baidu.com/link?url=v1z0ZfpasbvsRiU2X7A_VGPg4jvVwbC6VlS1xfk3W-vsw55eqcH54g6haQ8Yadb1ICAMPjjaicAXWavW5ocxGa

把下面的文字复制到文本文档,改后缀名为.bat,双击运行,ok

rem 结束 explorer 进程
taskkill /f /im explorer.exe

rem 清理系统图标缓存数据库
attrib -h -s -r “%userprofile%\AppData\Local\IconCache.db”
del /f “%userprofile%\AppData\Local\IconCache.db”
attrib /s /d -h -s -r “%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*”
del /f “%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_32.db”
del /f “%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_96.db”
del /f “%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_102.db”
del /f “%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_256.db”
del /f “%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_1024.db”
del /f “%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db”
del /f “%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db”

rem 清理 系统托盘记忆的图标
echo y|reg delete “HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify” /v IconStreams
echo y|reg delete “HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify” /v PastIconsStream

rem 重启Windows外壳程序explorer
start explorer

解决“打开 Excel 时,弹出配置Microsoft Visual Studio ”问题

昨天重新做了下系统,安装完各种程序后,启动Excel时,弹出配置Microsoft Visual Studio对话框。解决办法如下:

以管理员身份启动Excel(否则在取消选项时会出现“无法更改HKEY_LOCAL_MACHINE中注册的Office加载项的连接状态”),单击【开始】>【Excel选项】,在加载项里找到【COM加载项】管理,单击【转到】,去掉【Chinese Translation Addin】,确定后,重启就行!

关闭 Excel COM 加载项 Chinese Translation Addin
关闭 Excel COM 加载项 Chinese Translation Addin

“驰名商标”自5月1日起不得用于商品、商品包装或者容器上,或者用于广告宣传、展览以及其他商业活动中

国家工商总局商标局副巡视员吴群表示,在新《商标法》5月1日正式实施后,生产、经营者如果还将”驰名商标”用于商品、商品包装或容器上,或广告宣传、展览、其他商业活动中,将按修改后的新商标法处理,处10万元罚款。