A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11246 Flash Movies | 9 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Gurgen Tagvorian
» Title: Perpetuum Mobile
» Description: It's just a Perpetuum Mobile for you
» More by Gurgen Tagvorian


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

Featured Site

» Posted in the Flash Kit Links section
» Title: Atlantis Media Ltd
» Comments: Greg Rudman new media creative & website design - Atlantis Media Ltd


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

» How to convert FLV video to MP3 audio for Mac OS
» Join flv videos together with just a few clicks
» How to convert flv file to avi for mac os x
» How to Create Christmas Flash Greeting eCard without programming skills
» How to Create Real Estate Flash Photo Gallery Presentation
» How to burn DVD, VCD, SVCD
» How to convert FLV to ASF with FLV to ASF converter for Mac os X
» 5 ways to convert PowerPoint to video
» How to Make Vista Buttons
» Unknown Tag: Title10
Random Tutorial | Add Site

bbm.netBBM.net is designed to save you time and deliver the highest quality royalty-free music for your multimedia projects. Features include: over 450 Music Loop Packages from some of the best composers in the business, our music search engine to speed your selection process, alternate music versions & bonus sounds to use for rollovers or transitions, free technical support and free consulting.

Click here for details »

Senior Web Analytics Engineer
Professional Technical Resources
US-OR-Portland

Justtechjobs.com Post A Job | Post A Resume


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

Search Tutorials


Tutorials Tutorials » Tips_And_Techniques

Categories Loading external swfs in the right position
Author: k-giannis | Website: http://users.hol.gr/~kgiannis |

 
Page 1
1

Loading external swfs in the right position

Introduction

This is a simple tutorial answering a simple question: How can I place a loaded movie in the position I want?
It's about the loadMovie action. The loadMovie loads external swfs in movie clips of our movie.
So, how we create the host movie clip and what we have to keep in mind?

Answer

Always have in mind that the top-left corner of the loaded movie clip will be placed in the registration point of the "host" movie clip.

The registration point in a movie clip is this little cross inside each movie clip that defines the position of our elements.
Why is this happening? Flash places the registration point of the external movie (which is always the top-left corner) in the position of the registration point of the host clip.
We can have an ordinary clip or a blank one as our host (the target for our loadMovie action), it makes no difference. We just place the host clip in the position we want, having in mind the above rule.
Below we see our stage with a blank clip on the left and a filled one on the right. See how a blank clip is presented in the stage? The little circle exists to show us where the clip is placed and is also the registration point of our clip. Also notice the registration point of our filled clip. It's the cross in the top-left corner of the orange rectangle.

I have named the blank's instance blankhost and the filled's host. The two buttons contain the script to load an external swf (mov.swf) in each host clip:

on (release) {
 loadMovie ("mov.swf", "blankhost");
 }

and

on (release) {
 loadMovie ("mov.swf", "host");
 }

And now the real thing:

Also keep in mind that the loaded movies, apart from taking the hosts' place, are taking their names also.
So when we want to call them we use the instance names of our original host clips. In this movie: host and blankhost.
The black buttons unload the clips using their instance names.

I hope this is a useful tutorial.
Happy Flashing!

1

» Level Basic

Added: : 2001-12-23
Rating: 6.72 Votes: 71
Hits: 200
» Author
No details please.
» Download
Download the files used in this tutorial.
Download (16 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
 
   
 

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers