The following commented code is exactly the source of our first advertisement. Use the code and comments to suit your advertisement. The reader should note the leading credit. Indeed, most of our expertise evolves from experimentation, but credit is due our guides. Please be kind and respect our intellectual investment in like fashion, or by leaving a comment on this page.
May you accrue much good karma.
# CREDITS: # Valuable guidance for this flash script came from # SWFTOOLS # (http://www.swftools.org/swfc/swfc.html) # Particularly useful documentation is included in # project downloads # (http://www.swftools.org/download.html) # # DeepGeek contributed to this first advertisement with # emotion and many frustrating hours of experimentation # for desired transitions. # # File header specifies an output filename; # accepts all other default attributes .flash name="urth.swf" ## OBJECT DECLARATIONS ## Adjunct object files may declare fonts, sounds, images, ## stackable movies, and other objects. ## ## Local object definitions may include strings, sprites, lines, ## gradients, and much more. # Make object and font files accessible by the Flash compiler # Accessibility : in the source directory ## The TrueType Vera Font is a BitStream product ## available from The Free Software Desktop Project ## GNOME ## (http://www.gnome.org/fonts/) ## Not needed for this movie #.font Vera filename="Vera.ttf" # The TrueType WineTahoma Font derived from the BitStream Vera Sans font # and is renamed Tahoma in accordance with the former product's license. # WineTahoma is available at # WineHQ # (http://winehq.org) # The source repository has source code and binary files of a few useful # fonts # (http://source.winehq.org/source/fonts) .font Tahoma filename="tahoma.ttf" # A bit of searching located the Purisa TrueType font on my workstation. # /usr/share/fonts/truetype/thai/Purisa.ttf # Purisa is a free-licensed TrueType font, enhanced by developers from # Thai Linux Working Group # (http://linux.thai.net) .font Purisa filename="Purisa.ttf" # Graphics for MyDLL URTH products and publications are published at # Wyrld of Information .png urth "URTHLogo.png" .png doit "NoExcuse.png" # This advertisement is designed for QVGA placement # Designate 320 width and 240 height (pixel units) # Override the black defaults with white color and fill .box b1 320 240 color=white fill=white # Define string objects .text designer color=black font=Purisa text="Web services" .text training color=black font=Tahoma text="Office training" .text networks color=black font=Tahoma text="Network solutions" .text software color=black font=Tahoma text="Custom software" .text telephny color=black font=Tahoma text="VoIP configuration" .text phonenum color=black font=Tahoma text="(877)871.8784" # Initialize with the background override .put b1 # DOWN in the front, please; # and take all crying babies to the lobby for their comforting. .frame 1 # Pin the center of the motivational image to # the center of the movie box # at 60% of image size and full opacity .put doit pin=center x=160 y=120 scale=60% # During the next fifty frames (perhaps one second), # decrease opacity of the motivational image to 10%. # Then, pin an infinitesimal signature (logo) image # at the approximate center of "use" in the faded "excuse". .frame 50 .change doit alpha=10% .put urth pin=center x=240 y=120 scale=0% alpha=10% # For the next 15 frames (0.3 second), expand the logo # to 0.4 of original size. Then finish shrinking the motivation. .frame 65 .change urth scale=40% alpha=10% .jump doit alpha=0% # For the next 5 frames (0.1 second), expand and move the logo # to proportionately fill from the top at full opacity. Then place the # corner of our phone number at the approximate corner of # "877 U R 1 URTH" in the logo. Start the opacity at 10%, but the # string will have no dimension. .frame 70 .change urth pin=center x=160 y=48 scale=80% alpha=100% .put phonenum x=183 y=27 scale=0% alpha=10% # For the next 30 frames (0.6 second), expand the phone number # to translucently cover "877 U R 1 URTH" in the logo. # NOTE: 27% was determined by much painful experimentation .frame 100 .change phonenum scale=27% alpha=27% # For the next 15 frames, move the phone number to center # at the bottom of our frame at full opacity. # NOTE: The y=237 was logical. The scale=40% was # estimated in later stages of development. # The x=150 was purchased with some pain # and frequent adjustment during the movie # development. .frame 115 .change phonenum x=150 y=237 scale=40% alpha=100% # For the next 30 frames, let attention focus on the phone number. # # Begin streaming URTH products into a descending list at a rate of # approximately three products/second. Start each product at the # vortex of the logo spiral at full opacity and no dimension. Each # product descends to its list position at the 40% scale before the # next product is placed in the spiral vortex. .frame 145 .put designer x=150 y=40 scale=0% .frame 160 .change designer x=3 y=110 scale=40% .put training x=150 y=40 scale=0% .frame 175 .change training x=3 y=135 scale=40% .put networks x=150 y=40 scale=0% .frame 190 .change networks x=3 y=160 scale=40% .put software x=150 y=40 scale=0% .frame 205 .change software x=3 y=185 scale=40% .put telephny x=150 y=40 scale=0% .frame 220 .change telephny x=3 y=210 scale=40% # Let the audience digest information for the next # 2.3 seconds before starting the movie again. .frame 235 .frame 350 .end
| Attachment | Size |
|---|---|
| urth.swf | 126.92 KB |