Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » 3D

Categories 3D Flower
Author: V. Ramraj

 
Page 13
«prev 1 2 3 4 5 6 7 8 9 10 11 12 13

The Final touch

Now just two more steps to go.

  1. If you cannot see the stage, press Tab key to hide all the panels. Now, select the button you once dragged on to the stage. Scroll through the stage to find it. After it has been selected, press Ctrl+Alt+A to open the ActionScript window. Copy and paste the following code into it:
    on (keyPress "<up>") {
    by = 2;
    }
    on (keyPress "<down>") {
    by = -2;
    }
    on (keyPress "<left>") {
    bx = 2;
    }
    on (keyPress "<right>") {
    bx = -2;
    }
    on (keyPress "a") {
    bz = 2;
    }
    on (keyPress "z") {
    bz = -2;
    }
    on (keyPress "'") {
    Viewport += 5;
    }
    on (keyPress "/") {
    Viewport -= 5;
    }
    
    These just add more interactivity to the movie. Now, the user can rotate the object in any axis and also zoom in or out of it. By press in up or down keys, the user is giving a positive or negative value to the bx variable. Remember that this variable also affects rotation.

    Similarly, pressing the left and right keys rotates the object in y axis.

    Since there is no way of controlling the z axis, pressing the a and z keys rotates it on the z axis.

    The Next 2 events increment or decrement the Viewport variable. This variable is used to convert the 3d objects to 2d objects. This variable determines how close to the screen the point of origin is. So, by pressing the apostrohe(') and the slash(/) keys, you literally zoom in and out of the object.

There is one more small thing left to do. If you don't see the Library window, press Ctrl+L to invoke it. Now open the Line movieclip and select the "fat-line" like thing. If you don't see the Mixer panel, go to Window - Panels - Mixer to see the mixer panel. Now, change the alpha value of the circle to 83%.

If you want, you can give a color tween to the line movieclip so that it changes color as it moves.

Now that's it. Project Complete. Publish or save the file and view it in the standalone player.

Comments and suggestions welcome.

Author: V. Ramraj
Email: ramraj_1999@yahoo.com

«prev 1 2 3 4 5 6 7 8 9 10 11 12 13

» Level Advanced

Added: : 2002-07-05
Rating: 8.80 Votes: 1234
Hits: 5013
» Author
Age: 14 Profession: High School Student Location: Chennai, India(Not Indiana). Just doing it for fun. Ready to do small Freelance jobs.
» Download
Download the files used in this tutorial.
Download (51 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments