字体: | 推荐给好友 上一篇 | 下一篇

Director 扩展专辑--webXtra

发布: 2010-6-26 18:35 | 作者: JarodLee | 来源: 网络转载 | 查看: 164次

Director的功能是十分强大的,然而不少功能仅仅靠这些软件本身是无法实现的。因此就诞生了第三方插件。 通过这些扩展我们可以实现一些Director和Authoware本身所局限的一些功能。5D Director小组和Authorware小组测试了其中的一些扩展。并且撰写了测试报告给大家做一个参考。
  在此提出两点:
  1、插件有很多是商业版本的。因此请不要来信或者在论坛中发帖子向我们索取。同样,如果您想在商业作品中运用这些插件请注意他们的版权问题。
  2、虽然插件很强大,但是有很多问题随着Authorware Director的本身的发展现在已经有了解决的方案。所以本文提倡的观点是,插件虽好,但是也要善用。我们认为滥用插件将会带来创造力的下降而忽略了这两个软件本身的深入应用。

 3、Xtra遵循Macromedia的 MOA架构体系有些Authoreware Director都能使用。UCD,U32是Authorware的扩展函数
WebXtra 2.1

测试软件:
测试平台:NT WorkSation 4.0

和TABULEIRO 公司其它软件的一样,WebXtra的帮助说明的范例都很全,WebXtra 2.1可以在Dirctor 和Authorware上用,在这里我只写一下Dirctor上的使用方法:

1. 开始:
开始前,你应该设置Director的工作环境,编辑DIRECTOR.INI文件,
修改Palette部分:
[Palette]
Animation=0
; 1: allows director to take control of the palette for fast palette effects
; and transitions.
; 0: prevents director from taking control of the palette so other apps,
; wallpaper etc. look better but palette effects and transitions will
; be slower.
打开"Animate in Background"选项也是一个很好的办法。

2. 属性对话框
在任何一个webxtra 的member上双击就可以弹出属性对话框。

A. 链接一个新的网页,这个网页可以是本地硬盘上的文件,也可以是一个URL地址。
正确的例子:
"www.5dmedia.com",
"http://www.5dmedia.com",
"C:\myproj\index.htm".
缺省值为"C:\windows\system\blank.htm".

B. 选中复选框,表示角色开始的时候便开始加载网页内容,不选择的话,则需要用Navigate() 命令来控制它什么时候开始加载内容。

C.浏览按钮(略)

D.是否打开一个新的游览器窗口:
1.不允许新窗口。
2.打开新的窗口(若用户用的是Internet Explorer 3,此命令将不工作)
3.在同一窗口链接到新的URL.


E. 内容过滤:
Access only URL's that contain:
只有在这列表中的网页才链接
Block URL's that contain
拒绝的链接

F.输入注册信息

3. 属性
Cast Member:

the startURL of member
检测、设置"Starting URL"域的内容:
Example 1 :put the startURL of member 1
"http://www.5Dmedia.com"
Example 2: set the startURL of member 1 to "http://www.5Dmedia.com"

the blockenabled of member
检测、设置"Load URL at startup"的状态:
Example 1:put the loadURL of member 1
-- 1
Example 2:set the loadURL of member 1 to 0

the loadURL of member
"Load URL at startup"
the opennewwindow of member
"Response to Request for a new window"
the allowenabled of member
"Allow only URL's that contain"
这几个用法一样,在此不多说。

Sprite 属性:
the width of sprite
the height of sprite
the rect of sprite
the locH of sprite
the locV of sprite
你可以使用脚本语言来改变WebXtraSprite的属性,这和其它Director内建的sprite的属性的调整方法是一样的。

WebXtraSprite 特有的属性

the lasttitle of sprite
游览器的标题

the lastevent of sprite
浏览器最后的返回信息。

the lastdownloadevent of sprite
游览器中最后的下载事件。"下载开始, 下载完全。"

the statustext of sprite
状态栏信息

the laststatustext of sprite
返回不是空的窗口的最后状态的信息

the gobackenabled of sprite
后退按钮的状态(即是否可以后退)
the goforwardenabled of sprite
前进按钮的状态(是否可以前进)


4. 形为动作:
UnloadMSHTMLNow(member)
在内存中卸掉 MSHTML.DLL ,这个命令不要用在Internet Explorer 3.02或更高的版本上。
Example:UnloadMSHTMLNow ( member 1 )

Register(member, registrationnumber)


Navigate(sprite, location)
链接到指定的网址

GoStartURL(sprite)
链接到 startURL的地址

GoBack(sprite)
在历史记录中后退一页
GoForward(sprite)
在历史记录中前进一页
GoHome(sprite)
返回首页
GoSearch(sprite)
链接到Internet Explorery设置里的默认搜索页
Stop(sprite)
停止
Refresh(sprite)
刷新
Refresh2(sprite)
强迫从服务器刷新内容
GetLocationName(sprite)
返回当前的URL的名字
Example: put GetLocationName(sprite 1) into field "myfield"
or
GetLocationName(sprite1)
put the result
"Tabuleiro da Baiana Homepage"
GetLocationURL(sprite)
返回当前URL的路径
Example: put GetLocationURL(sprite 1) into field "myfield"
or
GetLocationURL(sprite1)
put the result
"http://www.tbaiana.com/webx.htm"

GetBusy(sprite)
返回游览器当前状态 1,忙 0,闲
Example: GetBusy(sprite 1)
if the result=1 then
animateyourbrowsericon
else
stopyourbrowsericon
end if


GetType(sprite)
浏览器现在打开的文件的文件类型。
Example: put GetType(sprite 1) into field "myfield"
or
GetType(sprite1)
put the result
"Microsoft Word Document"

BrowserSaveAs(sprite)
保存浏览器中的文件为一个member
Example: BrowserSaveAs(sprite 1)

BrowserSelectAll(sprite)
选择浏览器窗口的所有的内容。
Example: BrowserSelectAll(sprite 1)

BrowserClearSelection(sprite)
在浏览器窗户中清除所有的选择。
Example: BrowseClearSelection(sprite 1)

BrowserCopy(sprite)
拷贝当前的选择到剪贴板.
Example: BrowserCopy(sprite 1)

BrowserPaste(sprite)
在浏览器窗口中粘贴剪贴板的内容。这功能只能用于 Internet Explorer 4。
Example: BrowserCopy(sprite 1)

BrowserPageSetup(sprite)
显示页面设置窗口
Example: BrowserPageSetup(sprite 1)

BrowserPrint(sprite)
打印浏览器窗口的内容
Example: BrowserPrint(sprite 1)

BrowserPrintNoPrompt(sprite)
打印浏览器窗口的内容,并不出现打印设置对话框
BrowserPrintNoPrompt(sprite 1)

GetURLToNavigate(sprite)
打开一个需要输入URL的对话框,
Example: set whichURL to GetURLToNavigate(sprite 1)
Navigate (sprite 1, whichURL)

GetFileToNavigate(sprite)
打开能被用来定位一个文件被用于航行的一个对话框。
Example: set whichURL to GetFileToNavigate(sprite 1)
Navigate (sprite 1, whichURL)

GetLastTitle(sprite)
获取当前浏览器窗户的当前标题,也可以使用"the lasttitle of sprite"来得到这数值
Example: put GetLastTitle(sprite 1)
--- "5Dmedia Homepage"
put the lasttitle of sprite 1
--- "5Dmedia Homepage"

GetLastEvent(sprite)
获取浏览器的最后响应事件,也可以使用"the lastevent of sprite"来得到这值。
Example: put GetLastEvent(sprite 1)
-- "NavigateBlocked"
put the lastevent of sprite 1
-- "NavigateComplete"

GetLastDownloadEvent(sprite)
和"the lastdownloadevent of sprite" 一样。
Example: put GetLastEvent(sprite 1)
-- "DownloadBegin"
put the lastevent of sprite 1
-- "DownloadBegin"

GetStatusText(sprite)
见"the statustext of sprite"
Example: put GetStatusText (sprite 1)
--"Loading Applet..."
put the statustext of sprite 1
--"Loading Applet..."

GetLastStatusText(sprite)
见"the laststatustext of sprite"
Example: put GetLastStatusText (sprite 1)
--"Loading Applet..."
put the laststatustext of sprite 1
--"Loading Applet..."


5.生成打包文件

TAG: director webxtra xtra

 

评分:0

我来说两句

Creative Commons License本站作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
欢迎向站长短信举报非法信息,站长短信接收平台:+ 086 138 6514 1572