Flash 广告中用户启动的弹出窗口

发布于 2024-09-17 19:20:39 字数 224 浏览 3 评论 0原文

我目前正在为一家当地银行制作 Flash 广告。动画的其中一帧要求显示免责声明文本。我试图在广告中创建一个选项卡,如果单击该选项卡,将允许一个小窗口向上滑动(大约是中矩形高度的一半),显示免责声明,然后关闭。当主动画仍在进行时,就会发生这种情况。问题是我不知道该怎么做。

我在主要广告网络之一的保险广告中看到了这种技术,但无法确定如何做到这一点。

我使用的是Flash CS4。我对 AS3 还算熟练。

I am currently working on a flash ad for a local bank. One of the frames of the animation requires that the disclaimer text be displayed. I am attempting to create a tab within the ad that if clicked will allow a small window to slide up (roughly half the height of the medium rectangle), display the disclaimer and then close. This would occur while the main animation is still progressint. The problem is I'm not sure how to go about it.

I've seen this technique in an Insurance ad on one of the major ad networks but have not been able to determine how to do it.

I am using Flash CS4. I am marginally proficient in AS3.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

左耳近心 2024-09-24 19:20:39

你的意思是它从广告中弹出?

检查富媒体广告

http://googleblog.blogspot.com/2009/04/whats-rich-media-ad-anyway.html

如果您的意思是内部...那么,这只是一个简单的动画 - 在影片剪辑中制作,因此它不会随主时间轴移动...

You mean that it pops OUT of the ad?

Check Rich Media Ad

http://googleblog.blogspot.com/2009/04/whats-rich-media-ad-anyway.html

If you meant like inside... Well, it is just a simple animation - made in a movie clip, so that it does not move with the main timeline...

云巢 2024-09-24 19:20:39

创建您的 MovieClip 免责声明,当动画到达相关帧时,添加选项卡,单击该选项卡会将 MovieClip 添加到舞台。

//on the relevant frame add the tab MovieClip
var tab:MovieClip = new Tab();
tab.addEventListener(MouseEvent.CLICK , tabClickListener );
addChild( tab );

function tabClickListener(event:MouseEvent):void
{
  var disclaimer:MovieClip = new MovieClip();
  disclaimer.x = -400; //whatever position is out of the window
  addChild(disclaimer );

  //I personally use TweenMax , but you can use whatever tweening class
  //this will slide your MovieClip in
  TweenMax.to( disclaimer , .5 , {x:100 } );
  tab.removeEventListener(MouseEvent.CLICK , tabClickListener );
}

//In your disclaimer MovieClip:
//create a close button and add a click event listener to trigger the
//following

function close(event:MouseEvent ):void
{
  TweenMax.to( this , .5 , {x:-400} );
  closeButton.removeEventListener(MouseEvent.CLICK , close );
}

//to make your disclaimer look like a pop up , just add a DropShadow filter
this.filters = [new DropShadowFilter()];

Create your MovieClip disclaimer and when the animation reaches the relevant frame, add the tab which , when click will add the MovieClip to the stage.

//on the relevant frame add the tab MovieClip
var tab:MovieClip = new Tab();
tab.addEventListener(MouseEvent.CLICK , tabClickListener );
addChild( tab );

function tabClickListener(event:MouseEvent):void
{
  var disclaimer:MovieClip = new MovieClip();
  disclaimer.x = -400; //whatever position is out of the window
  addChild(disclaimer );

  //I personally use TweenMax , but you can use whatever tweening class
  //this will slide your MovieClip in
  TweenMax.to( disclaimer , .5 , {x:100 } );
  tab.removeEventListener(MouseEvent.CLICK , tabClickListener );
}

//In your disclaimer MovieClip:
//create a close button and add a click event listener to trigger the
//following

function close(event:MouseEvent ):void
{
  TweenMax.to( this , .5 , {x:-400} );
  closeButton.removeEventListener(MouseEvent.CLICK , close );
}

//to make your disclaimer look like a pop up , just add a DropShadow filter
this.filters = [new DropShadowFilter()];

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文