Archive for June, 2005

Flash, TV Themes, and Proximity

I just create a fun little app that allows you to hear the theme music for a bunch of different 80’s sitcoms. The volume of each theme is controlled by the proximity of your mouse to the thumbnail. You can listen to some interesting mixes between themes by going halfway between 2 or 3 shows.

I am going to be uploading a tutorial called “Flash Math 2″ to gotAndLearn() tongiht which shows how to accomplish this type of thing. I hope you enjoy it!.

On a side note, the lower right hand corner doesn’t have a show because of the “8 sounds at a time” issue in Flash. Is there any way around this. I want to have the themes all playing all the time so that there is a constant flow. Any ideas?

Thanks!
Lee

HTML, CSS, & Flash Tutorial

Earlier today I uploaded a new tutorial at http://www.gotoandlearn.com which explains how to import an external HTML and CSS file into Flash, as well as how to properly render them in a dynamic text field.

Lee

FLV Meta Injection Tutorial

I just finished a new tutorial called “FLV Meta Injection” which shows you how to use the free FLV Metadata Injector tool to enhance your FLV files. I embed some string data into an FLV file and then extract that data for use in Flash. I hope you find it helpful. Check it out at http://www.gotoandlearn.com.

Lee

Flash Tooltip Class

Here is another class that I just wrote which creates a tooltip using the drawing API. All you do is create a single instance and then use the “showTip()” method to show it and change the text. You send the fill and stroke colors in hex format to the constructor. See the usage below:

[as]var tt:Tooltip = new Tooltip(0xFFFFEC,0×000000);
butt1.onRollOver = function() {
tt.showTip(“Button 1 Tip”);
}
butt1.onRollOut = function() {
tt.removeTip();
}[/as]

See below for an example:

You can download the class here.
Lee

Flash Timecode Class

I’ve written a Timecode class that will take the ns.time property and return a timecode string in the “00:00″ format. See below for how it is used.

[as]var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
thevideo.attachVideo(ns);
ns.play(“yourFLV.flv”);
var tc:Timecode = new Timecode(ns);
this.onEnterFrame = function() {
trace(tc.getTimecode());
}[/as]

There is also a “setDelimiter()” method available if you want change the colon to some other character.
tc.setDelimiter(“|”);

You can download the class here.

Lee

Flash XML Security Bypass with PHP

For those of you who are trying to load an XML file from another domain into your Flash movie, I’m sure you’ve noticed the security restriction. Files can only be imported from the same domain that your SWF file is in. There is a way to put a special file on another domain but this isn’t practical if you want to load an RSS feed from Yahoo or something. Its doubtful that they will host your security file :-)

Below is a snippet of PHP code that you can use to retrieve an external XML file. Just make sure this PHP file is in the same domain as your SWF.
[php]< ?PHP
$line=file("http://rss.news.yahoo.com/rss/topstories");
foreach ($line as $line_num => $line) {
echo $line;
}
?>[/php]

Lee

FLV Encoding Basics Tutorial

I just uploaded a new tutorial called “FLV Encoding Basics” to http://www.gotoandlearn.com which explains the various methods available for encoding FLV files. First I start in Sorenson Squeeze, and then move to using Flash itself, and then finally I show how to use the Flash Video Exporter from After Effects. At 23 minutes, this is the longest tutorial yet. But this type of information needed some in-depth explanations in order to make sense.

Hope you enjoy it!
Lee

Next Page »