logo
g Text Version
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
Action Movies
Bible Basics
Houseplants
Romance Movies
Creativity
Family Travel
Southwest USA


dailyclick
All times in EST

Autism Spectrum Disorders: 4:00 PM

Full Schedule
g
g Flash and Animation Site

BellaOnline's Flash and Animation Editor

g

Setup to Load External SWF


Finally, we have come to the end of our journey. We have built the intro swf for our ecard and we are ready to load the external ecard swf into our Flash intro swf.

There are two things to remember when choosing your ecard for this project. First, the Frame Rate in the Document settings should be the same for both this intro swf and the external ecard swf. Second, you will want to put the ecard swf in the same location (folder) on your server as this FlashR intro swf. If you decide to place it in another location, you will need to make adjustments to the code in this tutorial. The URL of the external swf being loaded can be relative or absolute.

At this point we have completed the animation that opens the envelope and enlarges the thumbnail to full size. We have created this intro swf with the same height and width dimensions as the ecard swf that we will be loading into this intro swf. Therefore, it will appear that the thumbnail and the external swf are the same.

It would make sense to put the ActionScript that loads the external ecard swf on the last frame of the intro animation, which is Frame 150. But the external ecard swf will take time to load. Depending on the size of your external ecard swf, there might be a visible delay from the time the thumbnail enlarges to full size and the swf begins to play. Therefore, we need to start loading the external ecard swf a few frames before the end of the intro animation.

Because the ecard swf will be loading onto the stage into a layer above the thumbnail's layer, we should not be able to see the thumbnail once the swf has loaded. This should give us a smooth transition.

In the example, I decided to load the swf on Frame 136. But, you might need to choose a different frame, depending on the size and load time of your external ecard swf. Just experiment a little with a few frames and use the frame that gives you the best results.

There is just one more thing that we need to do in preparation for the ActionScript. We need the HTML page that goes with our intro swf. We can get this simply by publishing the intro fla file. Flash will generate both the swf and HTML files. Open your fla project file into Flash CS4.

From the Menubar, click File Publish. This will give you both an HTML and swf file in the same folder as your project fla file.

Next →Join us in the Flash forum.




Add Setup+to+Load+External+SWF to Twitter Add Setup+to+Load+External+SWF to Facebook Add Setup+to+Load+External+SWF to MySpace Add Setup+to+Load+External+SWF to Del.icio.us Digg Setup+to+Load+External+SWF Add Setup+to+Load+External+SWF to Yahoo My Web Add Setup+to+Load+External+SWF to Google Bookmarks Add Setup+to+Load+External+SWF to Stumbleupon Add Setup+to+Load+External+SWF to Reddit



 



RSS | Related Articles | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


For FREE email updates, subscribe to the Flash and Animation Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor


Content copyright © 2014 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Diane Cipollo for details.

g


g features
Motion 5 Parallax Effect - The Graphics

Animate Lower Third in Motion 5

Drop Zone and Lower Third in Motion 5

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor