
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Macromedia
Typology: Slides
1 / 24
This page cannot be seen from the preview
Don't miss anything!
Amitoj Duggal
(^) Adobe Flash Professional is used to create content for the Adobe Engagement Platform (such as web applications, games and movies, and content for mobile phones and other embedded devices).
(^) It features support for vector and raster graphics, a scripting language called Action Script and bi-directional streaming of audio and video.
(^) Strictly speaking, Adobe Flash Professional is an integrated development environment (IDE) while Flash Player is a virtual machine used to run, or parse, the Flash files.
In order to program things the way
we want them to be
Provide dynamicity to applications
Interaction with other applications
Database connectivity
Incorporating design with code
The action window is the window
where a design specific code is written for flash animations or applications.
The code written is based on the
object its associated with namely---
1.Movie clip
2.Symbol
3.Button
4.timeline
In Flash, the events can be grouped into several categories. The two most common types of events are what we’ll call time-based and user-based. The most common time-based example
is that of the playhead entering a new frame. Each time this happens, it is an event. User-based events include mouse and keyboard activity
Trace()
the trace function is same as print function we have in other languages Its used only for debugging purposes
Syntax:
Trace (“Flash”);
Working with Strings
Strings are characters or words. String values must always be enclosed in either single quotes or double quotes. Here are a few examples of strings:
“a”
‘b’
“1”
Casting Data ActionScript allows you to tell Flash to convert a value to a specific datatype by what is known as casting. When you cast a value, you use the following syntax: Datatype(value) For example, you can cast a string to a number as follows: Number(“123”)
A variable is a named container that
you can use to hold or reference some particular data.
Once you have created a variable,
you can store and retrieve data in the variable
To declare a variable using strong
typing, use the following pattern:
var variableName:Datatype;
All types of operators work with flash
also
Arithmetic Operators
(^) Assignment Operators
(^) Comparison Operators
(^) Logical Operators
(^) String Operators
Control structures group multiple sub statements together and control the flow of code execution.
✦ if —This statement makes the execution of the substatements conditional.
✦ for —This statement loops the substatements a specific number of times.
✦ switch —This statement selects
and executes specific substatements determined by the value of the expression you specify
USER DEFINED INBUILD Defining : function functionName():datatype { statements } Eg. function displayGreeting():Void { trace(“Hello.”); }