得天独厚的大河文明(市二等奖)[上学期]

资源下载
  1. 二一教育资源

得天独厚的大河文明(市二等奖)[上学期]

资源简介

FileIO Xtra for Macromedia Authorware 6.0
Copyright 2001 Macromedia, Inc.
FileIO provides a set of functions allowing users of Macromedia Authorware 6.0 to programmatically access files using scripting.
Using FileIO
============
As an Xtra the FileIO Xtra must be in your application's Xtras folder.
Each instance of FileIO can reference a single open file. If multiple files are to be opened simultaneously, a new instance of FileIO is required for each opened file. A single instance can be used to open multiple files, as long as the file is closed before a new file is opened. To create a new instance use NewObject, defined below. To dispose of an instance, set the instance variable to 0. All functions that read from or write to the file must be called after the file has been opened using openFile. If a new file is to be opened using the same instance, the old file must first be closed using closeFile. Files can be opened in three different modes: Read, Write and Read/Write. When writing to a file, the contents of the file after the current position are overwritten.
Example Script:
-- Create an instance of FileIO
myFile := NewObject("fileio")
-- Display an "open" dialog and return the file name to Authorware
myFileName := CallObject(myFile, "displayOpen")
-- Open the file
CallObject(myFile, "openFile", myFileName, 1)
-- Read the file and return a string to Authorware
theFile := CallObject(myFile, "readFile")
-- Close the file
CallObject(myFile, "closeFile")
-- Dispose of the instance
myFile := 0
In this example, a new instance was created and stored in the variable myFile. Next, a call to displayOpen is used to display an open dialog to allow a file to be selected. The file name is returned as a fully qualified path string to Authorware. The file is then opened in read-only mode, the contents of the file are read, and the file is closed. Lastly, the instance is disposed.
There is also an Authorware Show Me (xtraio.a6p) which demonstrates how to use the Xtra. It can be found in the Show Mes installed with Authorware 6.
Known Problems
==============
The FileIO Xtra cannot use a net-based file when supplied with a URL for the file name. It is limited to accessing files available via file systems mounted on the local system.
The displaySave function does not directly inform Authorware whether a user is replacing an existing file. A workaround is to attempt to create the file using createFile and check the error code for a "File Already Exists" error.
Function Reference
==================
closeFile
CallObject(object, "closeFile")
Closes a file that has been previously opened using openFile.
createFile
CallObject(object, "createFile", "fileName")
Creates a file. The fileName must be either a fileName to be created in the current directory, or a fully qualified path and fileName. Relative paths are not supported. After creating the new file, the file must be opened before it can be written to.
delete
CallObject(object, "delete")
Deletes the currently opened file. The file must be open to use this function.
displayOpen
CallObject(object, "displayOpen")
Displays a platform specific "open" dialog allowing a user to select a file. Returns a fully qualified path and fileName to Authorware. The setFilterMask function can be used to control what file types are displayed in the dialog.
displaySave
CallObject(object, "displaySave", "title", "defaultFileName")
Displays a platform specific "save" dialog allowing a user to specify a file. Returns a fully qualified path and fileName to Authorware. The setFilterMask function can be used to control what file types are displayed in the dialog. The title and defaultFileName parameters allow you to specify a default filename to be displayed, as well as title text for the save dialog.
error
CallObject(object, "error", status)
Returns a readable error string. A numeric error code is passed in as the third argument. (Also refer to the 'status' function.) The errors returned can be any of the following:
"OK"
"Memory allocation failure"
"File directory full"
"Volume full"
"Volume not found"
"I/O Error"
"Bad file name"
"File not open"
"Too many files open"
"File not found"
"No such drive"
"No disk in drive"
"Directory not found"
"Instance has an open file"
"File already exists"
"File is opened read-only"
"File is opened write-only"
"Unknown error"
fileName
CallObject(object, "fileName")
Returns the file name string of the current open file. The file must be open use this function.
getFinderInfo
CallObject(object, "getFinderInfo")
Returns the Type and Creator of the current file as a string. This function does nothing when used under Windows. The file must be open to use this function.
getLength
CallObject(object, "getLength")
Gets the length of the currently opened file. Returned as an integer. The file must be open to use this function. The value returned is the length of the file in bytes.
getOSDirectory
getOSDirectory()
A function that returns the full path to either the Windows directory, or the System Folder depending on which OS is currently being used. Does not require a child instance to call.
getPosition
CallObject(object, "getPosition")
Gets the file position of the current open file. Returned as an integer. The file must be open to use this function.
NewObject
NewObject("fileio")
This is called to create a new instance of FileIO. It returns an instance variable used to reference the instance.
openFile
CallObject(object, "openFile", "fileName", mode)
Opens the named file. This call must be used before any read/write operations can take place. The filename can be either a fully qualified path and filename, or a relative filename. The openMode parameter specifies whether to open the file in Read, Write or Read Write mode. Valid Flags are: 0 Read/Write, 1 Read, 2 Write.
readChar
CallObject(object, "readChar")
Reads the character (either single or double-byte) at the current position and then increments the position. The character is returned to Authorware as a string. The file must be open in read or read/write mode to use this function.
readFile
CallObject(object, "readFile")
Reads from the current position to the end of the file and returns the file to Authorware as a string. The file must be open in read or read/write mode to use this function.
readLine
CallObject(object, "readLine")
Reads from the current position up to and including the next Return, increments the position, and returns the string to Authorware. The file must be open in read or read/write mode to use this function.
readToken
CallObject(object, "readToken", "skip", "break")
Reads the next 'token' starting at the current position. Characters matching the 'skip' parameter are "skipped" and the file is read until 'break' is encountered. The file must be open in read or read/write mode to use this function. This function will read double-byte tokens as long as the skip and break are single-byte characters. It will not detect double-byte skip or break characters.
readWord
CallObject(object, "readWord")
Reads the next word starting at the current position. The file must be open in read or read/write mode to use this function.
setFilterMask
CallObject(object, "setFilterMask", "mask")
Sets the filter mask used by calls to displayOpen and displaySave. The filter mask determines what files to show when displaying an "open" or "save" dialog. The third parameter is a string representing the filter mask to set.
On Windows, this is a comma-separated string of file types and associated extensions (e.g. "All Files,*.*,Text Files,*.TXT"), and a string of types on the Macintosh (e.g. "TEXTPICT"). On Windows, the filter mask string is limited to 256 characters.
On the Macintosh, you are limited to four four-character types. When a new instance of FileIO is created, the filter masks defaults to all files. To reset the filter mask to display all files after it has been set, just pass in an empty string, e.g. CallObject(object, "setFilterMask", "").
setFinderInfo
CallObject(object, "setFinderInfo", "attributes")
Sets the Type and Creator of the current file. The string takes the form of a space-separated set of TYPE and CREATOR codes (e.g. "TEXT TTXT"). This function does nothing when used under Windows. The file must be open to use this function.
setPosition
CallObject(object, "setPosition", position)
Sets the file position of the current open file. The file must be open to use this function.
status
CallObject(object, "status")
Returns the error code returned by the last function called. The value is returned as an integer. (Also refer to the 'error' function.)
version
CallParentObject("fileio", "version")
Returns FileIO version and build information. Useful when filing bug reports, or determining installed version while authoring. No practical use beyond this.
writeChar
CallObject(object, "writeChar", "theChar")
Writes a single character to the file at the current position. The file must be open in write or read/write mode to use this function.
writeString
CallObject(object, "writeString", "theString")
Writes a string to the file at the current position. The file must be open in write or read/write mode to use this function.
===第二单元 文明的起源
第一课 得天独厚的大河文明(第1课时)
教学整体设计
教学目标
(1)知识与技能:图文配合,了解古代埃及和古巴比伦文明产生的自然环境,两大文明的起源,勾勒人类文明起源的脉络和方向。
(2)过程与方法:尝试通过网络、书籍、报纸等途径收集历史资料,并且学会分析资料、对比资料,用历史的眼光认识人类文明的发展进程。
(3)情感、态度与价值观:体会大河流域在古埃及文明和巴比伦文明中的重要作用,认识到自然环境是人类文明的发源和形成的先决条件,从而树立人与自然环境应和谐相处的观念。
■ 教学重点与难点分析
教学重点:了解大河流域对古埃及、古巴比伦文明产生的重要作用。
教学难点:理解和体会自然环境对人类文明的培育和制约作用,理解和领会人类活动与自然环境的相互影响。
教学准备
教师准备:收集相关图片、资料等制成多媒体教学课件。
学生准备:课前查阅并收集古埃及、古巴比伦文明的相关资料。
教与学的过程
情景导入
课件播放四大文明古国象征性的建筑,提问学生:“大家是否熟悉图中的这些建筑,它们分别是哪些国家的,大家把它们分分类。”课件演示,古代埃及、古巴比伦、印度、中国四大文明古国。“你们是否知道这些国家对世界文明的影响”由此引出本课的主题。今天这节课就让我们一起来追寻古埃及和古巴比伦文明的踪迹吧。
新课教学
【师生互动——尼罗河的赠礼】
播放有关介绍古埃及文明的视频,激发学生学习和探索神秘埃及文明的兴趣。展示古埃及地图,提问:请你结合七年级上册所学的自然环境的知识,分析古埃及的自然环境:(1)古代埃及位于哪个洲?(2)那里的自然条件如何(气候、河流)?引导学生回忆七年级学过的气候类型,描述古代埃及的地理环境和气候条件。(干旱、少雨;尼罗河水长、水量大)
让学生阅读课文,提问:我们都知道河水泛滥会造成水灾,可为什么埃及人们却渴望尼罗河泛滥呢?
课件演示古埃及的农业发展的相关图片,提问:“从以上这些图片,你能看出古埃及什么文明比较发达?”(农业文明)
角色扮演:假如你是图中的收割者,请你向我们讲述一下你们是如何利用尼罗河发展农业的?鼓励学生形象地描述图中的情景,再现尼罗河畔古代埃及人们的生产生活风貌。
古埃及文明发展线索:师生一起梳理古代埃及的历史发展的线索。
自然条件 农业发展 形成村落 人口增多 手工业商业发展 出现早期小国(公元前3500年) 统一国家的建立(公元前3000年) 地跨亚欧非(公元前15世纪) 埃及灭亡(公元前6世纪)
学生参照古埃及文明发展线索进一步深刻体会古埃及文明的发展与自然环境的关系。最后让学生齐读赞美尼罗河的诗篇,达到感情的升华。
【活动探究——新月形沃土】
学生小组探究:
1、古代巴比伦在亚洲的什么方位?
2、古代巴比伦的气候和古代埃及一样吗?属于什么气候?
3、为什么把古代巴比伦称为“新月形沃地”?
4、古巴比伦文明发源于什么河流?
5、你能根据课本内容梳理出西亚的文明发展线索吗?
6、两河流域曾经有哪些人生活定居,他们创造了哪些灿烂的文明吗?
7、古代巴比伦城的遗址现在位于哪个国家?2003年以来该地区成为世界热点,你能说出该地区发生的世界重大事件吗?
然后教师分析问题:
演示亚洲政区图,了解古巴比伦的位置。
演示世界气候分布图,了解古巴比伦的气候。
演示新月沃地图,掌握幼发拉底河和底格里斯河。
演示汉谟拉比法典、空中花园、楔形文字了解古巴比伦人们创造的灿烂的文明。
演示海湾战争的相关资料,用遭到破坏的环境和文化遗产与古代文明成就进行对比,激发学生热爱和平,珍爱生命的情感。
【探讨研究】
知识的拓展:如果没有尼罗河、幼发拉底河、底格里斯河的滔滔河水,人类历史上还会出现古埃及与古巴比伦这样的文明发源地吗?
知识的迁移:在人类文明高度发展的今天,大江大河失去了它在刀耕火种时期的优势,对人类文明发展的影响似乎越来越微乎其微了,于是一些人们渐渐地抛弃了它,更多的人们向它毫无节制地索取、掠夺,对它造成破坏性的灾难,对此你有什么看法。
【课堂感悟】
人类最初发源于大河,古代埃及、巴比伦都受患于大河母亲的哺育,创造了灿烂的文明成就。自然环境是人类文明发源及形成的先决条件,人类要实现自身文明的进一步发展,必须学会与自然的和谐相处。
【课后探究】
瑞安也有悠久的历史,我们的祖先也创造了丰富的文化,有兴趣的同学可以去收集有关资料,来探究我们瑞安文明的起源。(写成一篇调查报告或介绍材料)《历史与社会》八年级上册
第二单元 第一课 得天独厚的大河文明(第1课时)
瑞安市玉海中学 朱霄云
课件使用说明:
(一)课件特点:
本课件是用authorware软件制作的教学课件(已打包),Windows 3.x以上均可播放,使用800*600的分辨率和256色以上的显示方式。课件内容丰富,交互性强。
(二)具体操作:
1、课件内容分“情境导入”、“古代埃及”、“古巴比伦”、“探讨研究”“退出” 五个部分,只要把鼠标移到这些文字上面单击鼠标即可进入每一板块。
2、在每一板块中只要按鼠标或任意键均可继续(特殊操作部分有文字提示)。
5、若想退出请按“退出”键。

展开更多......

收起↑

资源列表