Wednesday, October 3, 2007

DryerFox - Moxie Beta 2 Upgrade Completed

This post updates a couple of earlier posts about DryerFox in particular and how to deploy AIR apps with a seamless install from your web page.

Click on the "Install Now" button in the sidebar to get the latest DryerFox executable, or click here for the source.

Updating from AIR Beta 1 to AIR Beta 2

This step was pretty straight forward. The foo-app.xml schema has changed (again!) in FB3B2, so the simplest thing to do (and the sequence recommended in the release notes) was:
  1. Create a new AIR project
  2. Cut-n-paste the few project descriptors and icon paths from the old project to the new project. The same information exists in both projects, but the location of each XML node has changed.
So far, each public beta of AIR has changed the app.xml schema, so this seems to be an area of churn. Not a biggie though. It took about 3 minutes to do this.

Once DryerFox was compiling in FB3B2, I found that the stage.window property was renamed to stage.nativeWindow, so I have to update the startMove(), minimize(), and close() handlers. That took another 5 minutes, and then DryerFox was up and running again.

Adding UpdateManager

This was quite straightfoward. Kudos to Rich at the EverythingFlex blog for posting this useful class.
  1. I copied the com.everythingflex.air.managers.UpdateManager.as class to my project.
  2. I created a version.xml that matched the new version in -app.xml
  3. Added the following two lines to the onAppInit() method:

import com.everythingflex.air.managers.UpdateManager;
var um:UpdateManager = new UpdateManager("http://www.dryerfox.com/blog/DryerFox/version.xml");

Seamless Installation update (imageurl is gone!)

I followed the instructions in the AIR release notes, and updated my install badge to the latest version bundled in the SDK. This folder can be found at "installRoot/Adobe Flex Builder 3/sdks/3.0.0/samples/badge".
In doing so I found that the new badge.fla no longer attempts to frame a supplied image with the button. I quite liked the embedded, so I just updated my older badge flash project from here, simply replacing older install.as with the newer, more robust version included in FB3B2.

Feel free to steal my backwards-compatible badge.swf if you want something you can just drop in as a replacement. Also note that Adobe now recommends setting Flash 8 as the minimum flash version. Since Flash 9 has well over 90% market penetration, that's a pretty reasonable setting.

SWFObject 2.0

Geoff Stearns and Bobby van der Sluis have been busy improving their individual SWF-hosting efforts into a combined project, just released on Google code. I've updated my "Install Now" button to use the SWFObject 2.0 script, and it seems to be working well. There is a syntax change from the previous use case, but it is still pretty simple to use.

Here's the new syntax:

<script type="text/javascript" src="swfobject.js"/>

<div id="dryerfox_flashcontent">
Whoa. You need to install <a href="http://www.adobe.com/go/flashplayer">Adobe Flash Player</a>.
</div>

<script type="text/javascript">
var flashvars = {
appname: "DryerFox",
appurl: "DryerFox.air",
imageurl: "dryerfox_badge.jpg",
airversion: "1.0.M5",
buttoncolor: "008811",
messagecolor: "000000"
};
swfobject.embedSWF( "badge.swf", "dryerfox_flashcontent", "217", "180", "8", "expressInstall.swf", flashvars );
</script>
The first two sections are unchanged. Include the swfobject.js script in a <script> tag, and your app's alternate content in a <div> tag. Then use a swfobject.embedSWF() method call to replace the alternate content with your SWF and viola!

DryerFox demoed at Best Buy!

Thanks for reading this far. I just thought I'd send a shout out to the techs at Best Buy (is that still Geek Squad?) for leaving their Vista demo systems wide open. On the weekend I was able to install DryerFox on a sweet HP 19" touchscreen system, and associate DryerFox with the .HTML file extension. Who sets up demo accounts with admin privileges?

Oh well, it was fun to drag the dryer around with my finger.

16 comments:

Anonymous said...

Thanks again, Doug. I updated my ChipWits install page tonight by cutting and pasting from your blog. I appreciate it.
-Doug Sharp

Anonymous said...

One bug I've run into - If you try to install from IE while running Vista you are told to install Flash whether you've installed it or not. IE on XP works fine. FireFox works fine on both XP and Vista.

This behaves the same way on your page as on my page - http://www.chipwits.com/installnew.html.

Doug Schmidt said...

Thanks Doug. I'll forward the info to the SWFObject lads. Cheers

Doug Schmidt said...

OK Doug, I've just updated to SWFObject 2.0 Beta 3 (just released today). Can you give it a go and let me know? (I don't have access to a Vista install).

Anonymous said...

Your page still tells me I need Flash in IE Vista. (Not going to upgrade mine until I see yours working ;^)

Doug Schmidt said...

Doug, I had a chance to run a Vista VM, and I was able to get my blog page to work via SWFObject. I think you can too.

Yes, when I first loaded my blog page, IE7 said I needed to install Flash player (which was true). I installed FP9, restarted IE7, and SWFObject worked.

I did have to click the "install the AdobeFlashPlayer ActiveX control" warning bar at the top of the screen.

Do you have any other screenshots or descriptions of how IE7+Vista is not working for you?

Click here to confirm your currently installed version of Flash Player.

Cheers,
Doug

Anonymous said...

Went to your link and it tells me "You have version 9,0,60,235 installed" and that 9,0,47,0 is the latest. Hmmm. Going to reinstall and be right back.

Anonymous said...

Just sent screenshots.

Anonymous said...

1000 2500 payday loans
1000 loan payday quickcom
11 instant payday loan money 16
11 top payday loan 16
12 advances loan military payday 18

Anonymous said...

pharmacy no prescription
pharmacy online
canadian pharmacy
cheap pharmacy
cheap pharmacy
discount pharmacy
mail order pharmacy
generic pharmacy
online pharmacy
no prescription pharmacy
without prescription pharmacy
pharmacy in canada
pharmacy online
drugstore online
pharmacy online
pharmacy online
discount canadian pharmacy
сheap canadian pharmacy
generic pharmacy
overnigth pharmacy
purchase pharmacy
pharmacy no prescription
pharmacy without prescription
cheap pharmacy

Anonymous said...

payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
payday loans
buy accupril
buy aciphex
buy actonel
buy actos
buy advair
buy aldactone
buy allegra
buy altace
buy amaryl
buy amoxil
buy antabuse
buy arava
buy aricept
buy atarax
buy atrovent
buy avandia
buy avapro
buy bactroban
buy benicar
buy biaxin
buy buspar
buy cardura
buy carisoprodol
buy ceftin
buy celexa
buy celebrex

Anonymous said...

buy cephalexin
buy cialis
buy cipro
buy clarinex
buy claritin
buy clomid
buy clonidine
buy colchicine
buy combivent
buy compazine
buy coreg
buy coumadin
buy cozaar
buy depakote
buy detrol
buy ditropan
buy doxazosin
buy effexor
buy elavil
buy evista
buy famvir
buy flomax
buy flonase
buy flovent
buy fosamax
buy glucophage
buy hyzaar
buy imitrex
buy keppra
buy lamisil
buy lanoxin
buy lasix
buy levaquin
buy levitra
buy lexapro
buy lipitor
buy lisinopril
buy lotensin
buy lotrisone
buy meclizine
buy medrol
buy metformin
buy mircette
buy motrin
buy naprosyn
buy neurontin
buy nexium
buy nizoral
buy norvasc
buy paxil
buy plavix
buy plendil
buy pravachol
buy prednisone
buy premarin
buy prevacid
buy prilosec
buy propecia
buy proscar
buy protonix
buy prozac
buy relafen
buy remeron
buy risperdal
buy serevent
buy seroquel
buy singulair
buy skelaxin
buy buysoma
buy synthroid
buy tetracycline
buy toprol
buy tramadol
buy trazodone
buy tricor
buy ultracet
buy ultram
buy viagra

Anonymous said...

Imitrex works fast, not a pain killer... so there are no groggy side effects. Used for several years without any problems.

For more details, visit at:
Buy Imitrex

Unknown said...

Discount Christian Louboutin
Ugg Boots
ugg boots
Christian Louboutin Shoes
discount ugg boots
discount ugg boots
Christian Louboutin Manolo Blahnik
ugg boots sale
ugg boots sale
Christian Louboutin Boots
cheap ugg boots
cheap ugg boots
Christian Louboutin Pumps
ugg winter boots
ugg winter boots
Buffalo Bills jerseys
Discount Christian Louboutin
Ugg Boots
ugg boots
Christian Louboutin Shoes
discount ugg boots
discount ugg boots
Christian Louboutin Manolo Blahnik
ugg boots sale
ugg boots sale
Christian Louboutin Boots
cheap ugg boots
cheap ugg boots
Christian Louboutin Pumps
ugg winter boots
ugg winter boots
Buffalo Bills jerseys

webmaster said...

マジコン
R4 DS
R4DS
R4i
R4 Card

xanax online said...

sounds kindof good if you think of it