http://...">
论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > Flash教程
Tag:flash cs,flash 8,鼠绘,as,手绘,工具,文字,loading,入门,初学,mc,影片剪辑,声音,mtv,游戏,引导,遮罩,菜单,补间,广告条,时钟,视频教程

开启Java视窗

文章类别:Flash | 发表日期:2008-9-21 20:11:34

   ※闪吧※<a target=_blank href=http://www.flash8.net<img src=../img/flash/2008921207254377801.gif border=0 align=absMiddle height=16 width=16> <a href="www.flash8.net" TARGET=_blank>[ 点击下载 ]</a></a>]                         FLASH 4 : 开启Java视窗          
                                                                                                                                                                                                                                                                                                                                                           http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="300" height="300">                                        http://file.flash8.net/Tutorials1/1015/3/3.swf";>                                                                                http://file.flash8.net/Tutorials1/1015/3/3.swf"; quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" width="300" height="300">                                                                               

                                                                                                                                                                                                 在Flash里的取得URL动作指令中,提供了一个可以开启新的浏览视窗的方式                                     _blank,而以这种方式来开启新视窗,相信大家都知道,在视窗上无法定义所要开启视窗的大小,而且在视窗的最上面会有一排功能选项,此篇将告诉您如何在Flash中开启JavaScript视窗来达到您想要的方式....                                                                                                                                                                http://file.flash8.net/Tutorials1/1015/3/line1.gif"; width="358" height="241">                                  场景大小:                                     300px X 300px                                                                                                                                                                http://file.flash8.net/Tutorials1/1015/3/line2.gif"; width="454" height="320">                                                                                                   元件名称--Push                                     Bar:(按钮)                                     

图层名称--button:

                                    

首先,先从图库里将做好的按钮拉到场景中,如左图所示。

                                    

p.s                                       这里要介绍2种形式,所以用到2个按钮

                                    

                                                                                                                                                                                                   http://file.flash8.net/Tutorials1/1015/3/line3.gif"; width="295" height="338">                                  图层名称--text:                                     

新增一个图层,用文字工具(A),在场景中输入如左图的提示文字。                                                                                                                                                                                                  设定第一个按钮的动作指令:                                     

在第一个按钮上,设定元件实体内容的动作指令如下:

                                    

於                                                                              (按下)
                                                                                取得                                        URL ("javascript:openwin('开启Java视窗.html'                                       , 'newwindow'                                       , 'width=300,height=300')")
                                      结束於
                                                                                                                                                                            openwin                                     : Javascript函数名称                                     

粉红色                                       欲连结的网页位址

                                    

咖啡色                                       开启新视窗

                                    

绿色                                       定义新视窗的形式、大小(宽、高)                                                                                                                                                                                                  http://file.flash8.net/Tutorials1/1015/3/line4.gif"; width="576" height="250">                                                                                                                                                               设定第二个按钮的动作指令:                                     

在第二个按钮上,设定元件实体内容的动作指令如下:

                                    

於                                                                              (按下)
                                                                                取得                                        URL ("javascript:openwin('开启Java视窗.html'                                       , 'newwindow'                                       , 'width=300,height=200,scrollbars=yes')")
                                      结束於
                                                                                                                                                                            openwin                                     : Javascript函数名称                                     

粉红色                                       欲连结的网页位址

                                    

咖啡色                                       开启新视窗

                                    

绿色                                       定义新视窗的形式、大小(宽、高)

                                    

p.s                                       这里的视窗大小改为                                       300                                       x                                       200,而多加了                                       scrollbars=yes                                                                              这样比较轻易看得出有 scrollbars 的用途。                                                                                                                                                                                                   http://file.flash8.net/Tutorials1/1015/3/line5.gif"; width="577" height="250">                                                                                                                                                               发布                                       HTML:                                                                          

Flash的按钮已经做好了,现在可以存档做发布的动作了,按下(F12),让Flash产生HTML档。

                                    

检视                                        HTML                                        原始档,在原始档的<HEAD></HEAD>之间,加入下面这段JavaScript语法:

                                    

<script                                       language="javascript">
                                          function openwin(url,name,features){
                                          newwin = window.open(url,name,features) 
                                      }
                                      </script>

                                    

参考下图所示:                                                                                                                                                                                                  http://file.flash8.net/Tutorials1/1015/3/line6.gif"; width="303" height="185">                                                                                                                                                                                                    

                                       以上若有操作步骤不了解之处,或是觉得文章内容太过於简单或过於艰深,欢迎随时至Flash问题讨论区内提出您的意见....

                                                                                                                                                               下一课:http://file.flash8.net/Tutorials1/1015/2.htm";>无限连续动画                                    
                                                                                                                              
                                                                                                                       
上一篇:{教程}载入提示画面(3) 人气:2492
下一篇:{教程}无限连续动画 人气:1578
Flash视频教程

Flash视频教程
Windows视频教程
Windows操作
[文]
WORD教程
Word教程
[文]
Excel教程
Excel教程
[文]
PowerPoint教程
PowerPoint
[文]
Dreamweaver
Dreamweaver
[文]
FIREWORKS
Fireworks
[文]
FLASH教程
Flash教程
[文]
photoshop平面设计
PhotoShop
[文]
CorelDraw
CorelDraw
[文]
C语言教程
C语言教程
[文]
html
Html教程
[文]
DivCss布局
Div+Css布局
[文]
Javascript
Javascript
[文]
ACCESS数据库
ACCESS数据库
[文]
ASP教程
ASP教程
[文]
SQLServer数据库
SQLServer
[文]
ASP.NET教程
ASP.NET教程
[文]
FlashAS
FlashAS
[文]
视频教程列表
计算机基础入门及办公自动化: 网页制作开发视频教程: 平面广告设计视频教程 初级程序设计及ASP动态网站开发 Asp.net动态网站开发视频教程 Flash 动画角本编程视频教程
文章教程搜索
 
Flash推荐教程
Flash热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058