荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: hellrock (地狱乐队I~地狱之王), 信区: Multimedia
标  题: 比较在Authorware中插入Flash文件的方法
发信站: BBS 荔园晨风站 (Fri Dec 15 19:55:37 2000), 转信

发信人: Rock (杰子), 信区: MultiMedia
标  题: 比较在Authorware中插入Flash文件的方法
发信站: BBS汕头大学郁金香站 (Tue Nov 14 10:23:41 2000), 转信

通过ActiveX 方式插入Flash文件的优势在于占用资源少,而AW5.1提供的直接插入方法
自用资源比较大,这样在一定程度上影响了程序的运行速度。但是通过Active X方式插入
Flash文件的不足之处是层的不可调整性,这在直接插入法可以做的很好,直接插入法还
可以调整Flash层与其他层的关系,这是ActiveX方式所不能比拟的!下面列出用ActiveX
方式插入Flash的相关函数,供大家参考:

--SetIconProperty(@"FlashMovie", #actionsEnabled, boolean) -- receive actio
ns from the sprite
--SetIconProperty(@"FlashMovie", #broadcastProps, boolean) -- do sprites rec
eive changes made to icon
--SetIconProperty(@"FlashMovie", #bufferSize, integer) -- size of memory buf
fer
--SetIconProperty(@"FlashMovie", #buttonsEnabled, boolean) -- buttons active

--SetIconProperty(@"FlashMovie", #centerRegPoint, boolean) -- sets the regis
tration point True or False
--SetIconProperty(@"FlashMovie", #clickMode, value) -- #boundingBox (complet
e sprite) | #opaque (only opaque parts) | #object (only non-background parts
)
--SetIconProperty(@"FlashMovie", #defaultRect, rect) -- use Rect( x1, y1, x2
, y2 ) to set the size of sprite from this icon to other thenpecified with
Point( x, y )
--SetIconProperty(@"FlashMovie", #originH, number) -- x coordinate of the po
int around which AW scales and rotates the swf
--SetIconProperty(@"FlashMovie", #originV, number) -- x coordinate of the po
int around which AW scales and rotates the swf
--SetIconProperty(@"FlashMovie", #pathName, filepath) -- set path+filename
--SetIconProperty(@"FlashMovie", #pausedAtStart, boolean) -- stop swf from s
tarting playing directly
--SetIconProperty(@"FlashMovie", #playBackMode, mode) -- #normal (tempo of t
he original swf) | #lockstep (with GlobalTempo variable) | #fixed (set the p
layback rate to a fixed number)
--SetIconProperty(@"FlashMovie", #posterFrame, framenumber) -- which frame i
s displayed in the preview window
--SetIconProperty(@"FlashMovie", #preload, boolean) -- if True preload the e
ntire movie (external only)
--SetIconProperty(@"FlashMovie", #quality, value) -- what quality should the
 icon/sprite have ( #high | #low | #autohigh | #autolow )
--SetIconProperty(@"FlashMovie", #rotation, degree) -- set the angle over wh
ich the movie is rotated
--SetIconProperty(@"FlashMovie", #scale, percent) -- set the percentage of s
caling
--SetIconProperty(@"FlashMovie", #scaleMode, mode) -- #showAll (fit to frame
, filize) -- size of memory buff
er
--Result:=GetIconProperty(@"FlashMovie", #buttonsEnabled) -- buttons active
--Result:=GetIconProperty(@"FlashMovie", #centerRegPoint) -- sets the regist
ration point True or False
--Result:=GetIconProperty(@"FlashMovie",-Result:=GetIconProperty(@"FlashMovie",
#imageEnabled) -- visible or not
--Result:=GetIconProperty(@"FlashMovie", #linked) -- is swf linked or intern
al to icon
--Result:=GetIconProperty(@"FlashMovie", #loop) -- does sprite loop or play
once
--Result:=GetIconProperty(@"FlashMovie", #originMode) -- #center (middle of
the swf) | #topleft (upper left corner of the swf) | #point (a point specifi
es with #originH and originV)
--Result:=GetIconProperty(@"FlashMovie", #originPoint) -- sets the originpoi
nt of the swf to the point specified with Point( x, y )
--Result:=GetIconProperty(@"FlashMovie", #originH) -- x coordinate of the po
int around which AW scales and rotates the swf
--Result:=GetIconProperty(@"FlashMovie", #originV) -- x coordinate of the po
int around which AW scales and rotates the swf
--Result:=GetIconProperty(@"FlashMovie", #pathName) -- set path+filename
--Result:=GetIconProperty(@"FlashMovie", #pausedAtStart) -- stop swf from st
arting playing directly
--Result:=GetIconProperty(@"FlashMovie", #percentStreamed) -- which percenta
ge of the swf is already streamed into AW
--Result:=GetIconProperty(@"FlashMovie", #playBackMode) -- #normal (tempo of
 the original swf) | #lockstep (with GlobalTempo variable) | #fixed (set the
 playbr (fit to frame, crop if neccesary) |
 #exactFit (fit to frame, scale all dimensions)
--Result:=GetIconProperty(@"FlashMovie", #sound) -- play sound
--Result:=GetIconProperty(@"FlashMovie", #state) -- state of streaming for t
he swf (-1 indicates an error occured)
--Result:=GetIconProperty(@"FlashMovie", #static) -- if there's no animation
, make this True for improved performance
--Result:=GetIconProperty(@"FlashMovie", #streamSize) -- number of bytes cur
rently in stream
--Result:=GetIconPropertyroperty(@"FlashMovie", #loop, boolean) -- does sprite
loop or pl
ay once
--SetSpriteProperty(@"FlashMovie", #originMode, value) -- #center (middle of
 the swf) | #topleft (upper left corner of the swf) | #point (a point specif
ies with #originH and #originV or #point)
--SetSpriteProperty(@"FlashMovie", #originPoint, point) -- sets the originpo
int of the swf to the point specified with Point( x, y )
--SetSpriteProperty(@"FlashMovie", #originH, number) -- x coordinate of the
point around which AW scales and rotates the swf
--SetSpriteProperty(@"FlashMovie", #originV, number) -- x coordinate of the
point around which AW scales and rotates the swf
--SetSpriteProperty(@"FlashMovie", #playBackMode, mode) -- #normal (tempo of
 the original swf) | #lockstep (with GlobalTempo variable) | #fixed (set the
 playback rate to a fixed number)
--SetSpriteProperty(@"FlashMovie", #quality, value) -- what quality should t
he icon/sprite have ( #high | #low | #autohigh | #autolow )
--SetSpriteProperty(@"FlashMovie", #rotation, degree) -- set the angle over
which the movie is rotated
--SetSpriteProperty(@"FlashMovie", #scale, percent) -- set the percentage of
 scaling
--SetSpriteProperty(@"FlashMovie", #scaleMode, mode) -- #showAll (fit to fra
me, fill rest i
版权所有:魔岩设计工作室


--
魔岩设计工作室-Rock Studio*[0

※ 来源:·BBS 荔园晨风站 bbs.szu.edu.cn·[FROM: bbs.stu.edu.cn]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店