CWD Cool Web Designs - Photoshop Web Design Ideas, Web Site Links
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 8

In the previous article of Flash 5 Tutorial Series we had discussed While Statement, If & Else Statement, Start & Stop Drag, Focus Rectangle, Sound Buftime, & High Quality. Now let’s Continue with Mouse Properties, Mouse Methods, Duplicate Movie Clip, Remove Movie Clip.

Mouse Properties

Using the mouse properties, x and y position of the mouse pointer can be obtained. They can be obtained in two ways i.e. _x mouse and _y mouse.

x mouse
This is a read only property. It returns the x co-ordinate of the mouse pointer.

Syntax :
instance ._xmouse

Example :
on (press)
{
outx = plane._xmouse ;
}

Where plane is the instance name of movie clip. _xmouse is the properties of mouse.

y mouse

This is also an read-only property. Using _y mouse the y co-ordinate of mouse position can be determined.

Syntax :
instancename._ymouse

Example :
on (press)
{
outy = plane._ymouse;
}

While pressing the button, the y co-ordinate can be viewed in the out y text box.

Mouse Methods

Mouse methods are used to hide and show the mouse cursor in the movie. By default, the mouse pointer is visible and it can be hided. There are two methods. They are:

Hide
This method hides the cursor and the cursor is visible by default.

Syntax :
mouse .hide( );

Example :
on (press)
{
Mouse.hide ( ) ;
}

while pressing the button, the mouse cursor becomes invisible it has to made visible only by using some other method.

Show
Using this method the mouse can be made invisible, if it has been hided. In other case, by default mouse is visible.

Syntax :
mouse.show ( );

Example :
on (press)
{
mouse.show ( );
}

The button is pressed and the mouse pointer becomes visible. (By default, pointer will be visible).

Duplicate Movie Clip

Using duplicate movie, the instance of a movie clip can be created while playing the movie file. If the parent movie clip is deleted, then the duplicated movie clip is also deleted.

Syntax:
duplicate movie clip (target, new name, depth) where target is the name of the movie clip.

new name is the unique identifier of the movie clip. depth is the stacking order of the duplicate movie clip. The first movie clip will be given a depth of zero and the next is given 1 and so on. To avoid this overlapping, specify the depth level properly.

Example:
on (press)
{
duplicate movie clip ("car", car +x, x);
}

where car is the instance name of movie clip

car + x is the new name (identifier) of the movie clip.

x is the variable which holds the value of depth.

Remove Movie Clip

Using this command, a movie clip which is created using duplicate movie clip methods of movie clip object can be deleted. The movie clip can be deleted with remove movie clip.

Syntax:
remove movie clip (target);

Target is the name of the movie clip.

Example:
remove movie clip ( );
On (press)
{
remove movie clip ("Car");
}

on pressing the button the movie clips created using duplicate movie clip can be deleted.

Where car is the name of the movie clip.

Article by:

Layout Galaxy web site design templates for photoshop and Flash.

All accompanying logos, brands and product names are trademarks of their respective companies.

Blood for humans comes only from humans : Donate Blood
http://www.donate-blood.org   E-mail- om@donate-blood.org


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