I have listened to CBC Radio 2 in the morning for a long time. Tom Allen is teh(sic) awesome. This fall CBC really shook things up and changed the format of Radio 2 Morning and Radio 2 Drive. LOVE IT LOVE IT LOVE IT. Were Tom Allen and Rich Terfry separated at birth? There is definitely some overlap between their shows but it seems to me that Rich sticks to more recent fare. Hey Tom. 70′s era Stampeders and King of the Road … er … doesn’t really turn my crank. But hey, those are just a few bumps. Wait! Hold the click publish button! I googled Rich Terfry to get the spelling of his name and I discovered he is Buck 65. I DIDN’T KNOW! (I didn’t know). Explains a few things … especially the comment that he was not used to a regular paycheque. His interviews are stellar especially the one he did a few weeks ago with Beck. Rich stated that a recent Radiohead concert was the best concert experience of his life and followed this bombshell up with some Weird Fishes.
Rich, you mentioned that once you turned down a chance to meet Neil Young because you didn’t know what you would say. I think you should have met him just to say “Old man, look at my life. I’m a lot like you were.”
I am developing a custom video player for a client and I am using the Flash CS3 TileList component which loads thumbnails from a CDN. Sometimes the URL fails resulting in a runtime error and a dialogue thrown up by the Flash Player (if you have the debug version installed):
Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found.
Only a tiny number of viewers will have the debug version installed and will not see this error, but those people count because they will be my colleagues and fellow flash developers and they will judge me harshly as a result. Oh yes. I really dislike it when other websites (like my blog
cause the Flash Player to throw up runtime errors, sometimes crashing my browser.
All you need to do add an event handler to catch the IO Event. But in this case it is not incredibly obvious where to add the event listener. Many thanks to Lanny McNie for pointing out how I can extend the TileList Class and add the event handler to the "activeCellRenderers". Change the linkage to the TileList component in the library to point to your new class and you should be good to go.
Actionscript:
-
package com.channelflip.video.control{
-
import fl.controls.TileList;
-
import flash.events.IOErrorEvent;
-
-
public class VideoTileList extends TileList{
-
public function VideoTileList(){
-
super();
-
}
-
override protected function drawList():void{
-
super.drawList();
-
var length:Number = activeCellRenderers.length;
-
for (var index:Number=0; index
-
activeCellRenderers[index].addEventListener(IOErrorEvent.IO_ERROR, handleIOError, false, 0, true);
-
}
-
}
-
protected function handleIOError(p_evt:IOErrorEvent):void{
-
trace("caught IO Error: " + p_evt);
-
-
}
-
-
}
-
}
Recently I had a Flash problem to solve where the content needed to pan and zoom in one smooth motion to the point where a user clicked. The technique was a little tougher to figure out than I originally thought but I got it down to essentially three lines (using Grant Skinner's gTween).
The source FLA is available here. Below is a code snippet that assumes you are panning to center and zoom to 400%:
Actionscript:
-
var xStop:Number = base.x + ((stage.stageWidth/2)*4 - (mouseX*4));
-
var yStop:Number = base.y + ((stage.stageHeight/2)*4 - (mouseY*4));
-
var gTween:GTween = new GTween(base,.5,{y:yStop, x:xStop, scaleX:4, scaleY:4},{ease:Circular.easeOut});
Example: click on the blue circles to zoom in and anywhere around the circles to zoom out.