Internet Marketing Blog
Home      Archives      Tools      Advertising      About      Contact      Free Shipping Subscribe to our Full RSS Feed

 

How to Create an Alert Box in Flash

We got a call the other day from a prospective client telling us that another interactive agency in town was claiming that they made the Crawford Group web site which we actually created a few years back.

The best solution to this problem would have been to put a signature at the bottom of the site that says ‘Website designed by Kinoli‘. This is not always possible for us because we work with a lot of creative agencies who prefer that we don’t put a link on their site back to ours. In return, many of these agencies outsource all of their web work to us.

Hidden Flash Alert Box

The web site we created for the Crawford Group is Flash based, which lends it self well to hidden easter eggs. We told this prospective client to go to the web site and click on the flash part of the site and type in the word ‘kinoli’. An alert box pops up saying, ‘Another fine site brought to you by Kinoli. www.kinoli.com’. This proved that we were the creators.

To create an alert box in Flash, put the following action script on the first frame of your file. Change the word ‘kinoli’ in the easterEgg function to the key combination you want to trigger the alert box, and change ‘Another fine site brought to you by Kinoli. www.kinoli.com’ to the text that you want to appear in the alert box.

/**
* sets an easter egg listener
* @txt - text required to be typed by user
* @alertTxt - text to be displayed in alert window
*/

function alert(txt:String):Void {
getURL("javascript:alert(\""+txt+"\");");
}

function easterEgg(txt:String, alertTxt:String):Void {
var egg:String = ”;
var myObj:Object = new Object();
myObj.onKeyDown = function() {
var x:String = String.fromCharCode(Key.getAscii());
egg += x;
if (egg.length == txt.length) {
if (egg == txt) {
alert(alertTxt);
trace(alertTxt);
egg = "";
} else {
egg = "";
}
}
};
Key.addListener(myObj);
}

easterEgg(’kinoli’, ‘Another fine site brought to you by Kinoli. www.kinoli.com’);

This action script was created by my brother Jesse Knowles who is an amazing Flash developer.

The best way to prevent people from claiming your work as their own is to put a very obvious link back to your site on the web sites you create. When that is not possible and the site is in Flash you can use an alert box to prove that you created it. There are also many other good uses for alert boxes in Flash, like to notify users when they make a mistake filling out a form.


Spread the word: del.icio.us Digg Furl Reddit StumbleUpon Technorati

If you like this post, then consider subscribing to our full feed RSS.


       Posted in: Web Development
     by: Luke Knowles
Your Thoughts? [ 0 ]      
August 14, 2007       
 
 
   
  Leave a Comment
Please respond with a comment using the form below.

  
  
  
Comments

 
   
 
   
  Internet Marketing Campaigns  
  Sony Bravia Campaign Goes Viral Again
Dove Onslaught Viral Video
Into the Wild Internet Marketing Cross Promotion
Halo 3 Internet Marketing Campaign
Hundai - Lattes vs Airbags "Think About It"
Heinz Top This TV Challenge
McDonalds Uses Viral youTube Video in its Latest TV Ad
The Simpsons Movie Marketing Madness
 
  Must Read Posts  
  Free Shipping Web Site Launches
SEO For Wordpress Series
How to Make Money with Facebook
Everything You Need to Know About rel=nofollow
7 Tips For Starting Your Own Facebook Group
Internet Marketing Case Study: WH Bed & Breakfast
9 Ways to Improve Google Image Search Rankings
Free Samples Equals Viral Marketing Success
4 Reasons Not To Put Your Company in the Wikipedia
Learn How to Make Facebook Applications
Easy Auction Ads Wordpress Plugin
 
  Categories  
 
 
  RSS Feed  
  Subscribe to RSS
Subscribe by Email
 
  Search  
 
 
  Sites  
   
  Commenters
   
 
Home      Archives      Tools      Advertising      About      Contact      Coupons © 2008 Virtual Marketing Blog