All Articles Flash
3快速效率的提示,当工作在Flash中使用ActionScript
Geoff Blake on Wed, March 16th | 0 comments
Flash is known for being an interactive animation program, but unlike animation, adding interactivity means making things happen within a movie, like creating links so that your viewers can explore yo

Flash是一个交互式的动画节目,但不像动画,添加交互手段使事情发生在电影中一样创建的链接,使你的观众可以探索您的电影,音频或视频控制,或当你的电影具有一定的事件触发,达到某一点。

闪存称为ActionScript的东西处理的互动性。 ActionScript是Flash的本地脚本语言,它允许开发人员创建高度互动的电影。闪光灯为我们提供了多种方式从一个简单的指向和点击界面(我们可视化设计器类型)使用ActionScript脚本模式(程序员乡亲)。所以,换句话说,Flash将让您使用ActionScript工作的方式,为你的作品。

In this short tutorial, we'll take a look at a few basic efficiency techniques when working with ActionScript. Before we go any further though, make sure you've created a symbol and dropped an instance of the symbol onto the Stage. Also, make sure you've given the symbol instance a name at the top of the Properties panel.

Also, it's considered best practices for Flash developers to create a separate layer in the Timeline for their ActionScript -- in other words, keeping the ActionScript isolated from all the other content in their movie. So, go ahead and create a new layer and name it Actions.

提示1 - 应用易于通过代码片段中的ActionScript

You certainly don't have to hand-code your ActionScript. The Code Snippets panel provides pre-created bits of ActionScript that are ready to be applied to your movies. Pop open the panel by choosing Window > Code Snippets.


Expand the category that contains the ActionScript snippet that you'd like to apply, then double-click on the action you'd like to apply. Flash's Actions panel springs to life, and loads in the necessary ActionScript code. Inside the Actions panel, you can make whatever adjustments you want to your code. Easy!

秘诀2 - 它与脚本捕捉协助

一旦你有一些“动作”面板内发生的动作,你可以调整你的代码的各个组成部分,通过使用脚本辅助。在“动作”面板的右上角, 单击“脚本助手 ”按钮(“魔杖”图标)。接下来,按一下内

秘诀3 - 建立与您的代码添加操作菜单

Across the top of the Actions panel, you'll find a row of very handy icons and commands, starting off with the Add Actions menu. Use the menu whenever you'd like to add items to your script. In fact, you can either use the menu at the top or you can always use the column of ActionScript elements on the left side of the Actions panel, too. This area is called the Actions Toolbox. Either way, you can easily add onto your script in a fast and easy way -- sure beats hand coding!


So as you can see, there are lots of different ways to go about working with ActionScript. Flash allows us to work in a way that's most comfortable for us -- yet whether we hand-code everything from scratch or make use of the point-and-click interface of the Code Snippets panel, we're still able to add lots of rich interactivity to our Flash movies.

想了解更多吗?退房下面这个视频教程:

Comments (0)

You must be logged in to comment. Login Now

Feedback
Course Advisor
Don't Know Where To Start?
Ask A Course Advisor
Ask Us!
Copy the link below and paste it into an email, forum, or Facebook to share this with your friends.
Make money when you share our links
Become a macProVideo.com Affiliate!
The current affiliate rate is: 50%
Classes Start Next Week!
Live 8-week Online Certification Classes for: