 |
 |
   |
 |
 |
| Create
a Preloader for Your Wildform Wild FX Flash Text
Effects |
 |
| Contents |
|
Download
the .FLA and tutorial pack |
| Top |
 |
 |
| Introduction |
 |
This
system is developed to 'preload' external swf-files
within your main movie. It contains a simple
preloader which checks to see if the main movie
is completely loaded and then continues to the
external swf-files preloader.
The FLA accompanying this tutorial allows you
to add both sound and background images. |
| Top |
 |
 |
| Checking
to See if the Main Movie is Loaded |
 |
The
main movie preloader has a simple check to see
if the frame with label "end" has loaded,
if so it will go on from label "continue".
This action remains within keyframe-label-"load":
If Frame Is
Loaded ("end")
Go to and Play ("continue")
End Frame Loaded
If "end" is not loaded yet, it is told
to loop by a keyframe with action:
Go to and Play ("load") |
| Top |
 |
 |
| External
SWF Files Preloader |
 |
After
frame/label "continue", it will go
to frame/label "loadtext" where the
external swf-files will be loaded into the main
movie. In my case it loads 4 swf's into 4 instances
of movieclip "empty", instance names
empty1 till empty4:
Load Movie ("external1.swf", "/empty1")
Load Movie ("external2.swf", "/empty2")
Load Movie ("external3.swf", "/empty3")
Load Movie ("external4.swf", "/empty4")
The next frame/label "check" has the
actual external-files preloader. It will check
to see if the sizes of all MovieClip instances
(in this case empty1 till empty4) are greater
then 0, starting from empty1. If they are all
greater then 0, it means all external files are
loaded and it has the action to continue at label "go".
Note: To prevent empty1,empty2 and so
on from continuing to play while the rest has
not been completely loaded, I added the action
to "stop each one/empty-instance" the
moment it has loaded its external swf.
If you do not do this, empty1 might already finish
and return blank before the last one has completely
loaded and the loop will never finish:
If (GetProperty("empty1",_width) > 0)
Begin Tell Target ("/empty1")
Go to and Stop (1)
End Tell Target
If (GetProperty("empty2",_width) > 0)
Begin Tell Target ("/empty2")
Go to and Stop (1)
End Tell Target
If (GetProperty("empty3",_width) > 0)
Begin Tell Target ("/empty3")
Go to and Stop (1)
End Tell Target
If (GetProperty("empty4",_width) > 0)
Begin Tell Target ("/empty4")
Go to and Stop (1)
End Tell Target
Go to and Play ("go")
End If
End If
End If
End If
As long as all movies have not been loaded, it
will loop between frame above and next keyframe
with action:
Go to and Play ("check")
When completely finished, it starts playing at
frame/label "go". |
| Top |
 |
 |
| Applying
Effects |
 |
All
instances of empty (1 to 4) are initially placed
off-stage right-bottom to 'hide' them. The moment
they should appear I created a new keyframe and
put its position at x-y 0-0, with the action
to start from beginning. For example:
Begin Tell Target
("/empty1")
Go to and Play (1)
End Tell Target
Now, you may apply tons of great effects to your
imported swfs, such as movement, alpha-tweening
etc. (I have used a fade-out effect in my example.)
Note: There is a minor 'bug'
in Wild FX, which does not allow you to stop
the first letter from your Wild FX effects to
start animating. (This is due to the fact that
it is already initiated and has a timeline of
its own.) The workaround is to simply add a space
before your text (space as first letter) in Wild
FX.
Note: Free webspace sometimes
turns out to have the Flash mime type configured
incorrectly (personal experience ;-). To be sure
the preloader does not 'hang', add to your source
code the correct mime:
<EMBED src="../../../../tutorials/Wild FX_preloader/freelance2/wildform/load
external/moviename.swf" type=application/x-shockwave-flash ></embed>
Good luck! |
| Top |
|
 |
   |
| |
|
| ©2008 Wildform, Inc | Policies | Contact
Us | Newsletter
Options |
| |
| Wildform
provides a 100% satisfaction guarantee on all our Flash software.
If you are not completely satisfied with our Flash multimedia software
for any reason you may request a refund within 15 days
of purchase.
|
|
|
 |
 |
|