|
Retains all of your special effects like:
Discussed on this page:
The first line of ActionScript code means the following: the onRelease event (when the user clicks and releases the mouse over the button – a “standard” mouse click) for the imgbtn1 button will execute a function. What will be executed is found {between the curly braces}.
If you don't have Flash you might need 1 free program called MotionSWF and PowerPoint although you don't even need PowerPoint as any presentation app that outputs the presentation as a series of .jpg or .png slides will work. Download the Source file for this tutorial (zipped .fla, flash 5) So you have decided, you tried the demo of Flash and you really want to learn more about it ? Good choice. Flash is a wonderful piece of software. It is a door that opens on a land of wonders. Now all you need is to unlock that door. This article will hopefully help you to find your own keys. Left or right brain ? Flash is the software that tries to reconciliate the big divide that exists in the IT world : between the left brain developers and the right brain designers. If you are coming from a hardcore programming world like C++, java or other programming languages, you will find some reassurance in the fact that Actionscript is an ECMAScript-based programming language. If you are coming from a more artistic background, you will be pleased to know that Flash is packed with tools that are very similar to the ones you might have been using in Fireworks, Photoshop or other graphic software. If you are not belonging, yet, to any of the two categories mentioned above it's very good too, maybe it's even better because Flash is a software that will release its full potential in the hands of people who are part of both worlds. Flash reconciliates the duality. If they want to become more efficient, developers will have to get their hands dirty and learn to use, to some extent, the drawing tools and learn the concepts of Flash animation. Designers will have to get that left brain working and try to grasp the basic concept of programming in actionscript if they want to be able to inject a bit of life in those static graphics. An Object Oriented based software : Timelines and Movie clips Flash is, in itself, an Object Oriented software. Working with Flash is working with objects. An object in Flash is a container that can hold other containers. A timeline contains Movie clips that contain other timelines that contain Movie clips.... and so one. You can see it a bit like the famous russian dolls. It is very important to understand the concept of Timelines and Movie clips. What we call a Flash movie can also be called a Flash movie clip. It is the main movie (which can be seen as the Flash player) that contains all the other Movie clips. Each movie has a main timeline and each movie clip had its own timeline with its own independent timeline activity. In a way it can be seen as a universal concept; the universe contains other smaller universes that contain planets that contain creatures...etc and each of those living entities have their own parameters (called properties in actionscript) and activities, but they are all inter-related. Actionscript : An Object Oriented programming language Once you have grasped the concept of timelines and movie clips you shouldn't have too much difficulty to understand how OOP applies to actionscript too. OOP rotates around : How it works The system is based on two variables: midframe and _root.currMovie. midframe is a variable on the first frame of the main timeline of each swf. This variable holds the number of the frame at which the swf stops. Each swf has this variable, and it can be different for each swf, but it doesn't have to. This variable will be used with the buttons: when you press a button of another section, it will check if the current swf is at it's midframe. If so, then the current swf will be told to play() – that means it starts its outro animation, because the outro animation begins at the frame after the midframe. _root.currMovie is a variable that holds the name of the currently viewing section. It is created in _root, because this variable has to be accessed by both the swfs and the main movie. This variable is used for three purposes: The first involves the buttons: when you press a button on the main timeline, that button must check if the requested section is not the one being currently viewed, or, if no swf is being loaded automatically at the start of the main movie, if _root.currMovie is undefined. If it is undefined, then there has been no section loaded yet, and the one corresponding with this button must be loaded, and _root.currMovie must be set to the name of that section. It will first check if it is undefined or not, and if it is not undefined, then check if it's different than the currently showing section. The second use goes together with the first. A button is pressed, and the code on the button checks if the requested swf is different than the one in place. If this is true, then we must check if the current movie is at or further than it's midframe. Checking also if it's further than the midframe enables the user to change the movie to be loaded when the outro is already playing (see the third purpose), for example when they accidentally pressed the wrong button. So if the current frame is the midframe or somewhere in the outro (further than midframe), then _root.currMovie must be set to the name of the new section, and the swf currently in place must also be told to play – if it's at midframe, it will start playing the outro animation, and if it's already playing it's outro animation, the play() will have no effect because it is already playing.
49. Full Browser SWF
For Top quality web hosting at great prices check out OSWebhosting.com There are two ways to make flash file transparent, one is to export as a transparent file when you are publishing from Macromedia Flash and another to insert a line of code in the HTML. We will cover both ways in this tutorial. Ans 1: By doing this tutorial, you can run a certain movie/scene first without having to wait for the whole movie to load finish, as usually a single movie had to finish its loading before start playing anything. 58. Free Flash Tutorials, Loading External Data, External Sources, Loading Images and SWF - Webzo Studio
|
| w_ww.j__a__v__a2__s___._co_m__ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |