
Website designed and implemented for American Program Bureau. Integartes flash content and video with html, all styled with css. Mock-up designed and approved with photoshop; built and implemented with dreamweaver (html/css) and flash. Visit the live site at American Program Bureau.


APB Speakers Website
APB Website | Before and After
APB are the guys who organize public speakers, whoever you saw speaking at the last graduation or other ceremony was probably done through the American Program Bureau. They have connections! Many many people, from movie stars, to famous writers, to nobel peace prize winers! So for your next party, give them a try. They had a really old website from about 1999 or so. I was involved with rebuilding it! I did most of the html/css design and flash/actionscript. They just launched the site this week, so I’m just celebrating with this post!
See before and after images below:
Old:
![]()
The original site was hard to navigate and horrible to look at…
Vs
New:

These are the mock ups, all html/css and the we pushed it into drupal for content management.
APB had the final say on the finishing touches. It came together, although I was suprised that they opted to put so much movement on the page. We set it all up so all speakers have images and videos on their page all in the custom player we built for them… but then they go and embed a youtube video on their homepage… go figure. It came a long way though. Go Web 2.0! Visit American Program Bureau.
Actionscript Key Listener Tutorial AS3
Overview
Allowing users to use the keyboard as well as the mouse is a great way to incite interaction with your flash. This tutorial will show how to code it and what you can do with some keyboard events. This changed with actionscript 3, note this tutorial is AS3.
altKeY (Boolean) Indicates whether the Alt key is active (true) or inactive (false).
charCode (uint) Contains the character code value of the key pressed or released.
ctrlKey (Boolean) Indicates whether the Control key is active (true) or inactive (false).
keyCode (uint) The key code value of the key pressed or released. KeyboardEvent
keyLocation (uint) Indicates the location of the key on the keyboard. KeyboardEvent
shiftKey (Boolean) Indicates whether the Shift key modifier is active (true) or inactive (false).
Steps
- import KeyboardEvent,
import flash.events.KeyboardEvent;
- assign any keycodes
//keycodes var left:uint = 37; var up:uint = 38; var right:uint = 39; var down:uint = 40;
- add event listener KeyboardEvent.KEY_DOWN
stage.addEventListener(KeyboardEvent.KEY_DOWN,keyDownListener);
- respond to keys
function keyDownListener(e:KeyboardEvent) { trace(e.keyCode.toString()); }or
function keyDownListener(e:KeyboardEvent) { if (e.keyCode==left){ ship.x-=10; ship.rotation = 90; } if (e.keyCode==up){ ship.y-=10; ship.rotation = 180; } if (e.keyCode==right){ ship.x+=10; ship.rotation = 270; } if (e.keyCode==down){ ship.y+=10; ship.rotation = 0; } }
Example
Here we have a swf with the keyboard event listener on the stage, and feedback boxes to give us all we can know about the event. It will tell us about certain keys (alt, ctrl (cmd), and shift) with a Boolean, it will tell us the keyCode and the charCode. The keyCode is the number that is tied to the actual button pressed or key, and the charCode relates to the character represented by the button(s) pressed. So hitting ’s’ and then hitting ’shift + s’ will tell you different charCodes, ’s’ and ‘S’. but you’ll see that the s key has the same keyCode (you’ll also see the ’shift’ keyCode as well). If needed you can use the String.fromCharCode function to determine what the charCode for something is. The location on the keyboard is even reported, this helps distinguish between the left shift and the right shift and even the numbers across the qwerty and the numpad on the right of the screen.
Actionscript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | import flash.events.KeyboardEvent; //keycodes var left:uint = 37; var up:uint = 38; var right:uint = 39; var down:uint = 40; stage.addEventListener(KeyboardEvent.KEY_DOWN,keyDownListener); function keyDownListener(e:KeyboardEvent) { feedbackAlt.text = e.altKey.toString(); feedbackCharCode.text = e.charCode.toString(); feedbackChar.text = String.fromCharCode(feedbackCharCode.text); feedbackCtrl.text = e.ctrlKey.toString(); feedbackKey.text = e.keyCode.toString(); feedbackLoc.text = e.keyLocation.toString(); feedbackShift.text = e.shiftKey.toString(); if (e.keyCode == left){ ship.x-=10; ship.rotation = 90; } if (e.keyCode == up){ ship.y-=10; ship.rotation = 180; } if (e.keyCode == right){ ship.x+=10; ship.rotation = 270; } if (e.keyCode == down){ ship.y+=10; ship.rotation = 0; } } |
Download
source file download: key-listener.fla
Google Indexes SWFs and external content | Fleximagically Searchable | Ryan Stewart’s Flex SEO Contest
Ryan has announced a contest to investigate how Google is actually crawling swfs. He introduced the term “fleximagically searchable” to be included in external content, which is then loaded into the Flex swf. Hoping that google will read the external source file through the swf. Also testing how this shows up in the search results. Even though I think there a lot more to SEO than just letting Google crawl your site, there’s the pagerank and everything that Google uses in it’s top secret algorithm to determine search result position ranks.
Here’s the official rules:
- It has to be a Flex application
- ‘Fleximagically Searchable’ must be dynamically loaded. It can’t be static text inside of your application. – But I don’t care how you load it, in fact that might make a difference in how Google ranks you.
- The first link must be deep linked directly into where you load ‘Fleximagically Searchable’ into your application. Feel free to use any deep linking methods out there.
- Nothing in your code can dynamically load the phrase automatically. It has to be the result of a user interaction.
- You must provide source code and be willing to talk about exactly what you did.
- Multiple entries are allowed if you want to try different things.
They seem to be a bit vague in places, but we’ll see if Ryan decides to clarify anything.
More information: I’ve found that’s helpful at Peter Elst’s post. And Ryan explains Google and Flash’s relationship development here. Here and here is what Google has officially said. Here is the official press release from Adobe about their new
I’ll have a couple entries I’m sure… and I’ll be sure to post about those as well.
Actionscript to Reference Dynamically created instances Flash Movie Clip | Array notation | Tutorial
Overview:
Often I’ve had some dynamically created movieclip and then wanted to reference it in my code. This is hard to do if it is named dynamically as well, such as with an incrementing variable. If you use one (or more) variable to name an instance in run time, you can’t always know what it will be called.
There are two ways (that I know of) to reference these clips, one is the array operator [] and the other is using the eval() function is as2 (but I’ve noticed that as3 has removed the eval function, so I’d recommend getting used to array notation).
Steps:
- Create the object dynamically (or with a variable) (_root.myClip.duplicateMovieClip (“myClip”+i, i);)
- Reference it with either array notation or with eval. (thisOne = _root["myClip"+i];) or (eval(“myClip” + i))
Example:
I create some movie clips dynamically using a for loop and name them all incrementally with a variable (myClip+i). But then i want to refer to some of them later, specifically. I don’t know what they are named though. They are all myClip1 myClip2 myClip3 and so on. I can use array notation to reference these (or eval). I’ve found it’s easiest to create a reference to the name once and then use it to refer to the clip I want. I imagined a scenario that when you click a mc you would want a different one to be moved. So clicking myClip3 moves myClip4 and so on. I’ve made it wrap so that 5 moves 1… They change the _y property of the next to match the one that’s clicked. Clicking the refresh button will loop through all the clips and (this time using eval) randomize the y coordinate.
Actionscript:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | var myLimit = 5; //myClip._visible = false; for(var i=1; i<=myLimit; i++) { _root.myClip.duplicateMovieClip ("myClip"+i, i); thisOne = _root["myClip"+i]; thisOne._y = Math.random() * Stage.height; thisOne._x = Stage.width/(myLimit+1) * i ; thisOne.id = i; thisOne.idDisplay.text = i; thisOne.onRelease = function() { nextOne = (this.id == myLimit) ? _root["myClip"+1]: _root["myClip"+(this.id+1)]; nextOne._y = this._y; } } myClip.onRelease = function() { for (var i=1; i<=myLimit; i++) { eval("myClip" + i)._y = Math.random() * Stage.height; } } |
Download:
Source fla file: download
Reference:
Nuno Mira shows a good example:
1 2 3 4 5 6 7 | this.createEmptyMovieClip("outer_mc", 1); // create a mc called outer_mc outer_mc.createEmptyMovieClip("inner_mc", 1); // create a mc called inner_mc inside outer_mc // 3 different ways of targeting inner_mc trace(outer_mc.inner_mc); trace(outer_mc["inner_mc"]); trace(this["outer_mc"]["inner_mc"]); // all output _level0.outer_mc.inner_mc |
TheCanadian@Kirupa states it nicely:
The Problem
How can I reference objects using a variable? This is commonly a problem with dynamically created buttons:
for(i = 0; i < 3; i++) { button+i.someProp = "Hello World!"; //error }
The Answer
This is probably the question that gets asked the most. Referencing an object with a variable is done using something called associative array referencing or array notation. The fundamental concept behind this is that:
myObject.prop = "value"; //and myObject["prop"] = "value";
Are the same thing. Associative array referencing follows the pattern of scope["prop"] where scope is the object which contains the property and prop is the name of the property you wish to reference. Save appearance, array notation works in exactly the same way as dot notation.
Going back to the original, problematic, example, the correct code would look like this:
for(i = 0; i < 3; i++) { this["button"+i].someProp = "Hello World!"; }
The button string is concatenated (joined) with the i variable, forming a new reference with each iteration of the loop. First button0, then button1, et cetera.
That’s the quick, but some of you may think that that’s the same notation that is used with instances of the Array class. While that is true, the converse is actually more correct: Array instances use that notation.
Arrays are exactly the same as generic Objects, the only difference is that they have a collection of methods to deal with their properties. And because they require a need for organization, they typically only use numerical properties. Given the array myArray = ["a", "b", "c"], you could theoretically reference the indices using myArray.0, myArray.1 and myArray.2. The reason that we must use array notation is because the compiler doesn’t allow the reference of numerical properties with dot notation.
StomperTools: Ranker & Scrutinize This
StomperTools Plugin
StomperLabs is proud to announce another cool, FREE software tool. The StomperTools Firefox plug in! We’re going to pack many tools into this plugin in the future, but to start it off we’ve bundled two functions into this plug in.

StomperNet Ranker
The first is called StomperNet Ranker, and it allows your prospects to quickly survey the rankings for a keyword query. We built an interactive graphical representation of a search showing results from three top search engines: Google, Yahoo and MSN.

How to use StomperNet Ranker?
I’ll give an example… Here’s the page as it loads a search for ‘circlecube’. The green nodes represent Google results, red is Yahoo, and blue is MSN. Each result that is for an identical page is connected with a thin line, and when you hover over a node it will grow and also any nodes for identical pages. Nodes for same domain pages will grow slightly as well to give an idea of the saturation on the search results by the specific domain. Below you can see that I’m hovering over the top-left node (the screen shot helpfully removed my cursor), the title of the page is shown and you can see that the same page (my home page) ir ranked number 1 in Google and MSN (hence the line connecting them, and also they have both grown to be large nodes). Also notice that pages of the same domain (circlecube.com) are at the top 2 slots in Google, the top 3 in Yahoo, and the top 2 in MSN (the medium sized nodes). Hovering over a node displays information to the right of the node chart. Clicking on a node loads that url below the ranker ui. You can also click the Google, Yahoo, and MSN buttons above the chart to see the actual search results at each engine specifically.

Ranker had the potential to become a great comparative tool for search engine optimization and comparison.

Scrutinize This
Not only does StomperTools give you access to Ranker right in your browser, but also you can instantly “Scrutinize” any page you’re viewing right from the browser (once you have the Stomper Scrutinizer tool, so go get it too!) Use the plug in to seamlessly aim your Scrutinizer browser to whatever page you’re browsing in Firefox.

SuperBookMarker Web App Design



Social Bookmarking master site built for StomerNet SMARTS (Social Marketing Traffic Secrets) members for easy social bookmarking. Minimalist design for clear presentation of organized sortable data. Implemented javascript (jquery) libraries for sorting and paging tables, javascript used to control visibility of elements on the page. Very simple and organized design, but still contain loads of information.

























StomperNet’s Stomping The Search Engines 2 and The Net Effect Free?!
I’ve been given the all-clear to spill the beans on this insane offer that StomperNet has cooked up.
You can get StomperNet’s expert SEO Video Course, “Stomping the Search Engines 2″… for FREE.
All you need to do is just TRY their new monthly printed Action Journal called “The Net Effect” – and guess what?…
You get the First Issue of “The Net Effect” for FREE TOO!
You don’t pay anything more than Shipping and Handling, unless you LOVE it and want to get issue 2 a month from now, and then it’s only $39 a month.
That’s NUTS. They are betting the FARM that you will LOVE this stuff and stick around for more. That takes GUTS, and HUGE confidence in the quality of their stuff. They are even throwing in their world famous original “Stomping The Search Engines” series!
For FREE? You’d be FOOLISH not to check this out.
Don’t believe it? Watch this video they’ve released.