Archive for the “flash” Category


I often get emails telling me that my training for putting FLV files into Flash doesn’t work as it should once the files are on the web. In other words, people can insert a video into Flash just fine using File > Import > Import Video, and all is well when testing on a computer, but when the files are uploaded to a web server, everything breaks. A few days ago, I was teaching a Flash class and experienced the problem myself after moving my SWF and FLV files into another folder. As soon as I moved them, everything stopped working! What the crap!?

Here’s the problem- when you set the video path for the FLV playback component in Flash on a Mac (only a Mac, not a PC), Flash does not create a relative URL. Instead, Flash tells the FLV Playback component to look for the file in Users/username/somefolder/someotherfolderthatholdsyourFLVfile/flvfile.flv. So, when you move the FLV, the code breaks because Flash is looking in that absolute location (kinda dopey, huh?). Try as you might, it is literally impossible in Flash on a Mac to set a relative path like flvfile.flv for the source of the FLV Playback component. If you type it in the component inspector manually, Flash finds the file and changes it to an absolute path. Quite annoying indeed.

Now the solution- you have to do it with code. It’s really simple code though, so it’s not a huge pain.

  1. Give the FLV Playback component and instance name (first you have to select it, and then click in the instance name field in the Properties panel).
  2. Add the code instanceName.source = “flvfile.flv”; (of course, you have to replace instanceName with the actual instance name of your FLV Playback component, and flvfile.flv with the actual name of your movie file).
  3. Test the movie to create the SWF file that has the relative path.
  4. Upload the files, and watch everything work in all its majestical majesty.

That’s it!

Comments 16 Comments »

In response to Brian’s request, here are my top three tips for boosting your Flash based site’s ranking in search engine results.

First, add a page title to your HTML file. When you publish HTML from Flash, you get an HTML page to house your SWF file, and the page title is generated for you. The problem is that many people don’t take the time to change it, and use file names like project_1_new.fla, so the title for the page ends up being project_1_new. Not very descriptive, seeing as a page’s title is your biggest chance for impact when your site shows up in a search. If you’re new to Search Engine Optimization (SEO), then you may think of page titles as those things at the top of your browser window that don’t matter too much:

Viewing the page's title in Safari

But check out the significance of page titles in a web search:

Sample search results in Google

To add a page title to your page, open up your HTML page (created from Flash, or whatever app you use) in a text editor (Dreamweaver, Notepad, TextEdit), and type a descriptive title for your page in the title tag. It looks like <title></title>. So your descriptive title tag should look something like <title>This is the new, improved, descriptive title tag</title>. Your page’s title should accurately describe the content of your page, and should contain keywords that are relative to that page in your site. In other words, your goal is to write a concise description of the page’s content that contains keywords people are likely to search for to find sites like yours.

Read the rest of this entry »

Comments No Comments »

Well, the results are in, and a winner has been chosen to receive a copy of the book Search Engine Optimization for Flash. The winner is…wait for it…Brian(!), with this comment:

What are the top 3 things you can do to your Flash file for search engine optimization (hey, if I don’t win the book, I’d like to get the answer from somewhere).

Congratulations to Brian, and thanks to everyone who participated in the contest. As promised, Brian will receive a copy of the book and the answer to his question via blog post within the next few days. And since there were so many high quality questions, we’ll use them as a basis for blog posts in the future, so even if you didn’t win, you might get your answer after all!

Comments 1 Comment »

Today is the last day to enter to win a copy of Todd’s book Search Engine Optimization for Flash. Tomorrow, we’ll announce the winner, and that person will be filled with unspeakable joy, beyond the likes any human has heretofore seen…probably.

Comments No Comments »

I’m really excited about my new book- Search Engine Optimization for Flash. The book shows how to optimize Flash based websites to rank higher in search engine results. As an effort to promote this book, we’re giving away a free copy through this site.

All you have to do to win a copy of the book is make a comment on this post, following these rules:

  • One comment per person, per day
  • Comment must contain a Flash related question that can be answered via a blog post (e.g. How do you create HTML links in Flash?)
  • Comment must be made on this post before 12:00am Pacific Time Wednesday, April 15

The winner will be chosen based on the quality of the Flash question asked (chosen by me- i.e. my favorite question wins), and will receive one copy of Search Engine Optimization for Flash, as well as the answer to the question in the form of a blog post on this site. Have fun!

Comments 26 Comments »

This week, Lee Brimelow posted that Adobe will announce Creative Suite 4 on September 23. That means you’ll see new versions of Flash, After Effects, Photoshop. Dreamweaver, etc. really soon. Awesome!

Being a Flash guy, I’m naturally most interested in Flash. From what’s leaked so far on the web, Flash CS4 is going to be pants-wettingly amazing. So amazing, in fact, that I’m beginning to change my mind about how I think about the application. Move on past the break to see footage of some of the new features in action.

Read the rest of this entry »

Comments 10 Comments »