Website Designs Gallery, Web Design Reference - CWD Cool Web Design
Cool web design sites


  www.print-templates.com

 
Photoshop 5.5
Front Page 2000
HTML
XML
PageMaker 6.5

Community
 
Login
Create Profile
Forgot Password

Functions
 
Home
About cwd.dk
Contact Us

Inspiration
 
New Sites
Search
'Accepted by' Logo
Submit Site
Reminder
FAQ's
 Category
Animation
Audio/Sound
Business Style
Clean and Simple
E-Commerce
Entertainment
Experimental
Heavy Graphic
Intro
Just Nice
Navigation
Personal
Sports
Webportals
All Categories


www.imageonline.co.in




Articles

  By: Layout Galaxy
  Published   05-06-2003
  Category   Flash 5.0 Tutorial
  Type   Advance
  Rating
   0%
100%
Rate this article:  Bad  Good 

Advance Scripting In Flash - Part 4

In the previous article of Flash 5 Tutorial Series we had discussed about FS Command, Stop all Sounds, Tell Target, If Frame is Loaded. Now let’s Continue with Set Variable, Set Property, Get Property, XY Position, XY Scale, Visibility, Rotation & Alpha.

Set Variable

Using set variable, any value can be set to a variable. The name of the variable is declared and a value is assigned to it.

Syntax:
set variable = value;

Example:
x = 2;

where x is the variable name & 2 is the value of the variable.

Set Property

Using this command, the property of the movie clip can be changed while playing the movie.

The instance name of a movie clip is needed while making changes to the property of it. The set property has three arguments.

Syntax:
set property (target, property, value);

target takes the name of the movie clips.

Property can be _xscale, _yscale, _x, _y, _alpha, _visibility etc.
Value takes any user-entered value.

Example:

On (press)
{
set property ("plane", _xscale, 100);
}

where

target is instance name of movieclip.

Property is the _xscale.
Value is 100.

The Movie clip will expand in width by 100 of its original width.

Get Property

Using this action the value for the movie clip can be returned.

Syntax:
Get property (target, property);

target is the instance name of movie clip.

Property is the property of movie clip (_x, _y, _xscale etc)

Example:

On (press)
{
galaxy = get property ("plane", _x) +10;
set property ("plane", _x, galaxy);
}

The x position of plane movie clip will be increased by ten (whenever the button is pressed) and stored in x variable. Now the set property will set the x value to the movie clip.

In the above discussed example, We have

galaxy = get property(); in which we have involvement of Set Variable and Get property commands.

The next line explain us the Set Property command.

Goto Page
 
1
 
 
 
 
 
 



Login
 
Enter your username and password, and press 'Submit'
Auto Login
Create Profile

Articles
 
 Search Engine   Optimization
Where does your Site Rank on Google?
Title Tag and Meta Description Tag Optimization
Anchor Text Optimization
Working with the robots.txt file
Google PageRank Algorithm Explained
 
 General
Alexa - The Smart Browsing
Web Promotion with Pay Per Click
Fonts in Layout
Basics of Color - 2
Basics of Color
 
 Dreamweaver
How to create a webpage using layers?
 
 Photoshop
Fine tune / touch up dull Image using Photoshop
Create thumbnails using Action and Automate in Adobe Photoshop.
Designing Top Panel in Photoshop - 2
Designing Top Panel in Photoshop
How to animate a banner using Adobe ImageReady?
 
 Flash
Publishing digital video on web page using Flash 2004
Creating Feedback form using Flash MX & send the data to email.
Image Transitions in Flash Mx
Creating Top Panel in Flash along with navigation bar
Creating Scrolling Buttons Menu in Flash MX
 
 Flash 5.0 Tutorial
Advance Scripting In Flash - Part 8
Advance Scripting In Flash - Part 7
Advance Scripting In Flash - Part 6
Advance Scripting In Flash - Part 5
Advance Scripting In Flash - Part 4
 
 Professional steps of  web designing
Professional Step-by-step Guide To Web Designing
Modify the ready-made Layout to incorporate your client's detail
Make Layout Web Compatible
Provide links using web-authoring tool like Macromedia Dreamweaver

Feedback
 

 

Layout Galaxy is ready to use photoshop & flash web site design templates
Copyright © 2001 Cool Web Design