Print a page from Flash
You can easily print a page from a Flash button or movieclip by using the following code. Since you can call a JS function right from Flash it makes it easy. You can also put this function in the page that the Flash sits in and call it from there.
on (release) {
getURL("javascript:window.print();");
}
No comments
Flash audio problems in 10.0.45
If you have run across problems with Flash and audio exporting to MP3 you have come to the right place. Sadly I have become and expert in this over the past couple of weeks.
The easy fix is of course to upgrade your Flash player. Since the Flash player in IE, Safari and FF for Mac all seem to be fine. But for PC it seems to be a vexing problem.
This audio problem should not be confused with the dreaded PC audio not playing at all problem which is basically all your find when you look for this topic.
This problem stems from bad AIF or WAV files and continues through Flash CS4 right through to the output stage. An easy fix for this problem is to bring your MP3 compression export to 56kbps or below, but for those of us who like sound this is just not gonna do it. You can see what might be the cause of this audio problem, by the fact that this info panel for a piece of audio has an author of “Pro Tools”. In my case all the other audio was fine except for these files which had an author of pro tools.
The first thing to do is to redo the audio files.
1. Open them in your audio program (Soundforge, Soundtrack pro, etc..) and copy and paste the audio into a new file and save it as new file.
2. Delete the audio that is in your Flash file and re-import the new sound files and place them in your timeline, actionscript etc..
3. Goto “publish Settings” and set your MP3 Kbps setting to 80 or above for better sound settings.
4. uncheck the “compress movie” setting just to make sure they is no more compression taking place
5. Republish your SWF
This has worked for me, but it might not solve all your problems.
Good luck
No commentsGoogle Chrome Color Shift / Contrast
I hadn’t looked at Google Chrome in a while so I decided to download the newest version. A surprising thing I noticed was how it rendered color compared with FireFox and Safari. Looked around and haven’t found an explanation for this color shift yet. There was a small bug report about it here.

Turns out this is more a problem of color correction and Google Chrome than just a Chrome issue.
No commentsSatisfaction
The amount of satisfaction you get from life depends largely on your own ingenuity, self-sufficiency, and resourcefulness. People who wait around for life to supply their satisfaction usually find boredom instead.
- William Menninger
No commentsadd leading zeros to a dynamic variable in Flash
Found a great utility to help with little chores like this in Flash.
http://casalib.org/ has made a nice Flash framework that you can use for AS 2.0 or 3.0 to do lots of stuff. Great DOCs section of the site as well that shows how each function works.
I used the NumberUtil.format function to add leading zeros to a variable that I was outputting to a text box and it was as easy as pie. Unpack the ZIP file that you can download from the site and put the “org” folder that is inside the code folder in the same directory as your Flash file (fla).
import that class at the head of your actionscript
import org.casalib.util.NumberUtil;
Next use this trace command as a guide on how the NumberUtil.format command works.
trace(NumberUtil.format(1234567, 8, ",")); // Traces 01,234,567
Mine worked something like this. I didn’t need the commas to separate the numbers I just needed the leading zeros. This turned my original number that was something like this 5045345 to this 005045345.
tf.text = NumberUtil.format(tf.text, 9);
I find myself Twittering more and more as it is easier to throw little daily things than it is to fill a paragraph or two
check me out:
fuzzyraygun on twitter
The Pareto Principle
Every time I turn around I find some weird thing that comes back to this. 80/20. I’m wouldn’t be surprised if his and the golden ratio turn out to govern vast amounts of human growth and behavior.
Wiki article on Pareto Principle | Wiki Golden Radio
No commentsWinter Wait
Horsefeathers play from the stereo and I tend the stove
The high speed tum tum comes from your sewing machine as diapers are made
The whines for more potato snacks as the heat from the kitchen dissipates
The dryer hums, the heater whirs and the fire crackles
I love all of these sounds of our home
Each one in rhythm and time
At night the silence is deafening and brings fitful sleep until our bundle arrives
We are outlaws laying low so the heat can pass.
We know it never will.
Best / Most listened to records of 2009
This is a tough list because I could include lots of records that are not from 2009 that I listened to pretty regularly this year. I will try to keep this to just records that came out this year. Some made it to the list of the decade and others didn’t.
Neko Case – Middle Cyclone
Phoenix – Wolfgang Amadeus Phoenix
Fruit Bats – Ruminant Band
Built to Spill – There is no enemy
Wilco – The Album
Tegan Sara – Sainthood
Grizzly Bear – Veckatimest
M. Ward – Hold Time
Telekinesis – Telekinesis
Doves – Kingdom of Rust
Best albums – 2000-2009
I can’t really narrow down this list. There were such great records over the last ten years. Some bands have two records on this list because I just couldn’t decide between them. While I’m sure that there are lots of records that could be on this list, I don’t own them or haven’t heard of them. Don’t even know how I would keep this list to 20 like I originally wanted.
American Analog Set – Promise of Love
Trail of Dead – Source Tags and Code
Augie March – Moo you bloody Choir
Calexico – Feast of Wine
Fleet Foxes – Ragged Wood
Foxboro Hot tubs – Stop drop and Roll
Fruit Bats – Ruminant Band, Spelled in Bones
Helio Sequence – Keep your eyes Ahead
Jeremy Enigk – The missing Link
Kings of Leon – Only by the night
Liam Finn – I’ll be Lightning
Mgmt – Oracular Spectacular
Miracle Fortress – Five Roses
The National – Bxer
Neko Case – Fox Confessor
Sea Wolf – Leaves in the River
Arcade Fire – Funeral
At the Drive in – Relationship of Command
Band of Horses – Everything all the time
Beck – Guero
Bloc Party – Silent Alarm
Bon iver – For Emma forever ago
Broken Social Scene – You forgot it in people
Califone – Roots and Crowns
Cloud Cult – Advice from the Happy Hippo
Death Cab for Cutie – Plans
Death Cab for Cutie – Transatlanticism
Decemberists – Castaways and Cutouts
Decemberists – Her Majesty The Decemberists
Doves – Some Cities
Elliot Smith – Figure 8
French Kicks – Two Thousand
Gillian Welch – Time
The Glands – The Glands
Green Day – American Idiot
Guided By Voices – Isolation Drills
The Hold Steady – Boys and Girls in America
Interpol – Turn on the Bright Lights
Iron and Wine – Our endless Numbered Days
Jayhawks – Rainy Day music
Jets to Brazil – Perfecting Lonliness
M. Ward – Transfiguration of Vincent, Transistor Radio
My Morning Jacket – Z
Nada Surf – The Weight is the Gift, Proximity Effect
New Pornographers – Electric Version
Nick Lowe – The Convincer
Our Lady Peace – Spiritual Machines
Pinback – Summer in Abandon
The Postal Service – Give up
Queens of the Stoneage – Rated R
Roge Wave – Decending Like Vultures
Rosebuds – The RoseBuds Make out
Ryan Adams – Gold, Heartbreaker
Shins – Oh, inverted World, Chutes to Narrow
Snow Patrol – Final Straw
Soundtrack of our Lives – behind the Music
Silversun Pickups – Carnavas
Spoon – Kil the Moonlight
Working for a nuclear Free City
Steve Earle – Transcendental Blues
The Strokes – Is this it?
Superdrag – In the valley of dying stars
Tegan and Sara – So Jealous
Thievery Corp – the mirror conspiracy
Whiskeytown – Pneumonia
The Wrens – Meadowlands
Yeah Yeah Yeahs – Fever to Tell