Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Macromedia flash( action scripting), Slides of Information Technology

Macromedia

Typology: Slides

2015/2016

Uploaded on 07/02/2016

cpatial59
cpatial59 🇮🇳

4

(1)

1 document

1 / 24

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Macromedia flash( action scripting) and more Slides Information Technology in PDF only on Docsity!

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”);

Lets Move on to the flash 8

Action Panel

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.”); }