Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


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

Search Tutorials


Categories Virtual Tours using Flash and panoramic pictures.
Author: Matt Byrnes | Website: http://www.inflash.com |

 
Page 3
«prev 1 2 3 4 5 next»

The Code

Initializing

Frame 1's Action Script is some initializing:

Set Variable: "stagewidth" = 540
Set Variable: "leftmcwidth" = GetProperty ( "/leftmc", _width )
Set Variable: "centermcwidth" = GetProperty ( "/centermc", _width )
Set Variable: "rightmcwidth" = GetProperty ( "/rightmc", _width )
Set Variable: "left" = "slow"
Go to and Play ("left")


Code
Set Variable: "stagewidth" = 540
Comment
Basically, we're setting a variable 'stagewidth' to the width of the stage. If you change your .fla's stage width, you must make the number here match it.

Code
Set Variable: "leftmcwidth" = GetProperty ( "/leftmc", _width )
Set Variable: "centermcwidth" = GetProperty ( "/centermc", _width )
Set Variable: "rightmcwidth" = GetProperty ( "/rightmc", _width )

Comment
We get the width of each movie clip and store it in a value.

Code
Set Variable: "left" = "slow"
Go to and Play ("left")

Comment
The movie is also set to play slow starting in the 'left' direction. We'll take a look at what the computer does with the variable "left" set to the value "slow" at the end of the tutorial.

«prev 1 2 3 4 5 next»

» Level Advanced

Added: : 2001-05-31
Rating: 8.50 Votes: 85
Hits: 11715
» Author
No details available.
» Download
Download the files used in this tutorial.
Download (647 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
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers