如何添加链接到Flash横幅 [英] How to add link to flash banner

查看:119
本文介绍了如何添加链接到Flash横幅的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我主要是一名开发人员,不知道使用Adobe Flash CS4。有没有简单的方法来添加链接到Flash横幅。我有.flv文件,在图书馆和两层的一些项目。

请给我一步一步的指示。



编辑:我觉得简单解决方案,步骤如下: 强>到 ActionScript 2.0

  • 插入新图层 使用矩形工具 ,大于横幅

  • 右键点击square并选择转换为符号... 在弹出窗口中选择 Type:Button

  • 双击库面板中的新按钮,然后将选中的按钮移动到按钮,然后返回到主场景

  •  <$ c $>右键单击新的蓝色方块并选择动作 (发行){
    getURL(http://www.example.com/,_blank);
    }


  • 关闭源代码编辑器和导出文件( File-> Export-> Export Movie )。

  • 如果您有一个显示FLV电影的FLA FLA文件,您可以在FLA文件中添加一个按钮。

      on(release){
    getURL(http: // someurl /);



    $ b $ p
    $ b

    为了让按钮透明,你可以在里面放一个方块,按钮的命中区域框架。



    我认为这将太深入解释图片如何在计算器中执行。 $ b

    I am primarily a developer and dont know to use Adobe Flash CS4. Is there a simple way to add link to flash banner. I have .flv file with some items in Library and two layers.
    Please, give me step by step instructions.

    Edit: I find simple solution, by steps:

    1. Go to File -> Publish settings and set ActionScript version to ActionScript 2.0
    2. Insert new layer
    3. Create a square with Rectangle tool, that is larger than banner
    4. Right click on square and chose Convert to symbol... In popup windows chose Type: Button
    5. Double click on new button from Library panel and move select from Up to Hit and than go back to main scene
    6. Right click on new blue square and chose Actions and paste this code in soruce editor:

      on (release) {
          getURL("http://www.example.com/", "_blank");
      }
      

    7. Close source editor and export file as movie (File->Export->Export Movie).

    解决方案

    If you have a flash FLA file that shows the FLV movie you can add a button inside the FLA file. This button can be given an action to load the URL.

    on (release) {
      getURL("http://someurl/");
    }
    

    To make the button transparent you can place a square inside it that is moved to the hit-area frame of the button.

    I think it would go too far to explain into depth with pictures how to go about in stackoverflow.

    这篇关于如何添加链接到Flash横幅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆