Template Categories

templates categories Automobiles
templates categories Business
templates categories CSS Templates
templates categories E-Commerce
templates categories Education
templates categories Fashion
templates categories Greeting Cards
templates categories Hotels
templates categories Jewelry
templates categories kids
templates categories Models
templates categories Music - Films
templates categories Night Club
templates categories Real Estate
templates categories Restaurant
templates categories Software
templates categories Sports
templates categories Travel
templates categories Web-design
templates categories Wedding

Tutorial Categories

tutorial categories AJAX
tutorial categories CSS
tutorial categories Dreamweaver
tutorial categories Flash
tutorial categories FTP - File Transfer
tutorial categories HTML Emails
tutorial categories Javascript
tutorial categories Microsoft Excel
tutorial categories Microsoft Windows
tutorial categories Microsoft Word
tutorial categories MySql
tutorial categories Photoshop
tutorial categories Php
tutorial categories Windows Movie Maker
tutorial categories Xhtml / Html

Flash - Load Unload movie clips / images

BELOW IS THE EXAMPLE OF WHAT WE ARE GOING TO CREATE.
 

1. Fire up your flash application and create a new document as per your requirement. In my case I have set the document size to 490px by 125px.

2. Create 3 images of 450px X 125px size in photoshop or any other application.

3. Next create a folder and and place all your images in this folder.

4. In your flash application either create your own buttons ( 4 numbers ) or use the default flash buttons available via windows >> common libraries >> buttons.

5. In my case I have created the button in photoshop and imported in flash.

6. Now create a empty movie clip by choosing Insert >> symbol >> movie clip. Name this movie clip EmptyClip.

7. Go back to scene 1 and click drag the newly created movie clip on the working area. Give it an instance name of emptyclip. Move this movieclip to top and on the left of the canvas keeping some space for buttons. ( Refer the movie above ).

8. Now drag the button from the library on to the working area on the extreme left. Place four buttons giving each button a unique instance name.

9. Right click the top button and choose actions from the context menu. Place the following code.

on (release) {
emptyclip.loadMovie("1.jpg");
}

10. Choose the second and the third button and in the actions window place the above code but change the image name for each, example 2.jpg and 3.jpg ( you have to use your own image names ).

10. For the last button ( unload button ) place the following code in the actions window.

on (release) {
emptyclip.unloadMovie();
}

Ctrl + Enter to view the movie. This is how a movie is loaded and unload. We have not used movies but images, but you can create individual movies just like images and use them instead.

11. We will go one step further and create fade in effect for individual movies, in our case images. by placing the following code in the emptyclip movie.

onClipEvent (load) {
this._alpha = 0;
}

onClipEvent(enterFrame) {
if (this._alpha <100) {
this._alpha += 10;
}
}

Hope you enjoyed this small tutorial on how load unload movies.
travel to india - kerala travel to india - Goa forums gatewa2internet ... myspace & home page gatewa2internet ... myspace & home page