Categories

在某些页面上跳过flash标题动画

Template-help.com Team 2010年11月15日
No votes yet.
Please wait...
Q: 我怎么做闪光 header 只在某些页面上播放完整的动画,但在其他页面上跳过它? A: In the HTML 我们的模板代码,你会发现以下两个代码块之一: 第一个(你会在我们之前的模板中找到):
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0″ width=”880″ height=”800″> header.htm”> header.Htm " quality= " high " pluginspage= "http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”880″ height=”800″>
The 2nd one:
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0″ width=”745″ height=”328″> Header.htm”> header.htm”> <–> Header.htm” width=”745″ height=”328″ type=”application/x-shockwave-flash”> header.htm”> http://www.macromedia.com/go/getflashplayer”> FAIL (the browser 应该渲染一些flash内容,而不是这个).
您应该在这些代码块的帮助下将参数放入Flash中. In the .FLA文件中应该有一个Action Script 接受并处理该参数的代码. 要添加参数,请执行以下操作: 在第一种情况下 update 代码是这样的:
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0″ width=”880″ height=”800″> flash/header.swf?par=skip“> flash/header.swf?par=skip" quality= " high " pluginspage= "http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”880″ height=”800″>
在第二种情况下 update it in this way:
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0″ width=”745″ height=”328″> Header.htm”> flash/header.swf?par=skip“> <–> Header.htm” width=”745″ height=”328″ type=”application/x-shockwave-flash”> flash/header.swf?par=skip“> http://www.macromedia.com/go/getflashplayer”> FAIL (the browser 应该渲染一些flash内容,而不是这个).
在ActionScript代码中,这个参数可以作为 _root.par . 这意味着你可以使用这样的条件:
if(_root.par == “skip”){ //你的代码在这里 //you usually use gotoAndStop(); or gotoAndPlay(); functions to skip a certain number of frames }
在实际情况下,您通常会将此条件合并到预加载程序的代码中. 预加载器的代码如下所示:
onClipEvent(负载) { total = _root.getBytesTotal (); } onClipEvent (enterFrame) { loaded = _root.getBytesLoaded (); % = int(loaded/total*100); Text = % + " % "; gotoAndStop(百分比); If ((loaded == total)) && (_root.Par == " skip ")) { _root.gotoAndStop(200); // usually the frame number where animation finishes } else if (loaded == total) { _root.gotoAndPlay (2); } }
See also:
这个条目被张贴了出来 综合教程, 使用Flash and tagged animation, flash, skip. Bookmark the permalink.

提交罚单

如果您仍然无法找到关于您的问题的足够的教程,请使用以下链接向我们的技术支持团队提交请求. 我们将在接下来的24小时内为您提供我们的帮助和协助: 提交罚单