July 25th, 2008 by Kyle
Tags: , , , ,
Posted in: Flash Player, Flex

A while back I posted this entry showing off my first Google Gadget that embedded a swf for Flash Player version detection.

http://blog.flexmonkeypatches.com/2008/01/25/google-gadget-flash-player-version-checker/

Recently someone posted a comment asking how I did that. I figured I might as well post the code. So here it is:

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Flash Version Checker" height="295" width="760" scrolling="false"
description="Uses the swf from Adobe Support Technote: http://www.adobe.com/go/tn_15507 to detect version of Flash Player used in your browser."
author="Kyle Quevillon"
author_email="turdontherun+flashversionchecker@yahoo.com"
author_photo="http://739saintlouis.com/images/me.jpg"
screenshot="http://739saintlouis.com/images/flashversionchecker_screenshot.PNG"
thumbnail="http://739saintlouis.com/images/flashversionchecker_thumbnail.png"
author_aboutme="I work for Adobe Systems Inc. as a Senior Support Engineer for the Flex product line. I have sort of followed an odd career path in what would typically be a reverse order, having started as a Software Developer/Engineer, moving on to become a Software Quality(Assurance/Control) Engineer and now ending up a Software Support Engineer. I think I have found a good fit as I have always been good at discovering problems, understanding other peoples issues and proposing new (or tried and true) methods for solving them."
>

<Require feature="flash" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<div id="flashcontainer" style="text-align: center; vertical-align:center"></div>

<script type="text/javascript">

// Display SWF
function showSWF() {
// The URL for the .swf
var url = "http://www.adobe.com/support/flash/ts/documents/test_version/version.swf";

// Play .swf file.
_IG_EmbedFlash(url, "flashcontainer", {
swf_version: 6,
id: "flashid",
width: 350,
height: 250
})
}

// When gadget first loads, display still photo.
_IG_RegisterOnloadHandler(showSWF);
</script>
<!--
<br/>
<center>
<a href="http://fusion.google.com/add?source=atgs&moduleurl=http%3A//hosting.gmodules.com/ig/gadgets/file/117092112381789410143/detect-flash-player-version.xml">
<img src="http://gmodules.com/ig/images/plus_google.gif" border="0" alt="Add to Google">
</a>
</center>
-->
]]>
</Content>
</Module>

 


No Comments »

July 22nd, 2008 by Kyle Posted in: Air, Flex, LCDS

Here are the past week’s top 10 Flex/AIR/LCDS links:

  • Snackr Sinks Its Teeth Into Google Reader
    (from Rob Adams’s User Eccentric)
  • Draft documentation for Flash Accessibility
    (from Matt Chotin)
  • The Flex, Spring and BlazeDS full stack – Part 3:…
    (from Adobe Flex Developer Center: Recent tutorials)
  • The Flash Media Interactive Server Feature Explorer
    (from Richinternet Blog)
  • The TreeBrowser Component: Mac OS X - style column…
    (from 9MMEDIA Blog)
  • Gumbo (Flex 4) Skin with Transitions
    (from ScaleNine Blog)
  • Couple of Good Skinning With Flex 4 Blog Posts
    (from Digital Backcountry)
  • Creating Transparent Native Windows with the mx:Window…
    (from Digital Backcountry)
  • LiveCycle Data Services 2.6 Released
    (from Damon Cooper’s BLOG)
  • Springtime
    (from Codedependent)

  • No Comments »

    July 21st, 2008 by Kyle
    Tags: , , , ,
    Posted in: Flash Player, Flex

    I have answered questions for a few customers regarding the policy files changes in the recent releases of the Flash Player and have referenced the following documents:

    This change in behavior is noted in the following kb article:
    Sockets do not function in Flash Player versions later than 9.0.115.0

    A good reference on the security changes in the new Flash Player is located here:
    Policy file changes in Flash Player 9

    The page that is probably of most interest to you is here:
    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_04.html

    This is an article describing how to set up a socket policy file server and provides some samples:
    http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html

    In addition to these articles, I have found 2 more that I personally found useful:

    This one shows how to make and use a simple java socket server to act as a policy file server:
    AS3 + Java: Socket connections to ports below 1024

    This blog post shows how to create a simple java app that tests your socket server:
    Flash Player 9 Update 3 and the Socket Policy File

    Now if only I could figure out how to easily start the socket server when I start my TOMCAT server up?? Anyone?


    No Comments »

    July 15th, 2008 by Kyle Posted in: Air, BlazeDS, Flash Player, Flex

    Here are the past week’s top 10 Flex/AIR/LCDS links:

  • Flex Next! - FXG, New States, and More: the Gumbo…
    (from Digital Backcountry)
  • Flex 3 Component Explorer - a must for Flex beginners
    (from Greg Wilson’s Ramblings)
  • Don’t Use IFrames for HTML in Flex
    (from Deitte.com)
  • ADT Error Codes
    (from Mike Chambers)
  • Michigan Flex Slides
    (from Code Slinger)
  • Complete Flex 3 CSS Style Properties List
    (from building blocks)
  • FP9@ 97%, Flash Player 9 update 3 at 82%
    (from Justin’s Flash Blog)
  • Compiler available for Astro beta refresh
    (from Justin’s Flash Blog)
  • Creating BlazeDS channels at runtime
    (from Adobe: Most recent Flex Cookbook posts)
  • Actionscript 3 performance tuning review
    (from Universal Mind Blog Aggregator)

  • 4 Comments »

    July 8th, 2008 by Kyle Posted in: Air, Flash Player, Flex

    Here are the past week’s top 10 Flex/AIR/LCDS links:

  • Announcing the Flex SEO Contest
    (from Digital Backcountry)
  • Food Dial is our first Facebook application
    (from Farata Systems)
  • Thermo is Half the Story
    (from ScaleNine Blog)
  • Simple monkey patch to fix ToolTipManager.toolTipClass
    (from return undefined;)
  • An internal build error has occurred. Right-click…
    (from Flex, ActionScript and Related Stuffs)
  • Closing all your application windows in AIR
    (from Christian Cantrell)
  • Bye Bye Microsoft WMV, Bye Bye Real, Hello Flash Video…
    (from Ben Forta’s Blog)
  • BBC Dumps Microsoft For Adobe AIR
    (from Ben Forta’s Blog)
  • Flex Applications that Warn on Close
    (from EverythingFlex)
  • Source Code Licenses and Flash/Flex
    (from gBlog)

  • No Comments »

    July 8th, 2008 by Kyle
    Tags: , , ,
    Posted in: Flex, Flex Builder

    A useful compiler switch to help with this is the -dump-config switch.

    If you add -dump-config=c:\mycfg.xml to the compiler, it will generate a config file that represents all the compiler (either for mxmlc or compc) settings used for compilation in a Flex Builder compile and then you can use that config file in a commandline compile to do an equivalent compile.

    A few notes on the generated configfile.

    1. The file is not perfect. I found that the tag that was generated only had a relative path generated. It is much better if that were absolute, so before I used the config file, I changed the value for that tag to something like:

    <manifest>C:\FlexBuilder2.0.1\Flex SDK 2\frameworks\mxml-manifest.xml</manifest>
     

    2. For some reason the generated file has a token ${flexlib} which didn’t get resolved and filled in. I found that I could just comment out the 2 properties in the config file as they aren’t relevant to most compilations.

    3. I found the easiest way to use mxmlc/compc was to copy the generated config file to the bin dir of the SDK under Flex Builder install. Then I could invoke mxmlc against the app like so:

    ./mxmlc -load-config+=mycfg.xml C:/myapp/src/app.mxml -output myswf.swf

    4. For compc, the classes to actually compile to include in the generated swc aren’t actually output to the generated config file, so you have to add them manually (or on the commandline). I found the easiest way to do this was to add tags like below in the generated configfile

       <include-classes>
        <class>fooClass</class>
        <class>barClass</class>
      </include-classes>
     

    The content for those tags comes from the project file - .flexLibProperties which looks something like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <flexLibProperties version="1">
      <includeClasses>
        <classEntry path="fooClass"/>
        <classEntry path="barClass"/>
      </includeClasses>
      <includeResources/>
      <namespaceManifests/>
    </flexLibProperties>
     

    The classEntry paths translate into the class tag values.
    After doing this you can run compc like this:

    ./compc -load-config+=mycfg.xml -output myswc.swc

    HTH

    -Kyle


    No Comments »

    July 1st, 2008 by Kyle Posted in: ActionScript, Air, BlazeDS, Flash Player, Flex, LCDS

    Here are the past week’s top 10 Flex/AIR/LCDS links:

  • How to Get Your Flash Site at the Top of Google
    (from Digital Backcountry)
  • Finally, Flash Becomes Truly Searchable
    (from Digital Backcountry)
  • Creating AIR Applications with Custom Chrome
    (from Digital Backcountry)
  • Saving Encrypted Data in AIR
    (from Daniel Dura)
  • New Video Tutorial On Using SWFObject 2
    (from The Flash Blog)
  • Great Slide Deck on Learning ActionScript 3
    (from The Flash Blog)
  • AIR Tips and Tricks - Video, Slides, and Code
    (from Daniel Dura)
  • Make FileReference.browse() work under Flash Player…
    (from The Joy of Flex)
  • Another Cocomo … umm.. experiment? Acrobat!
    (from Collaborative Methods)
  • The First Acrobat.com Podcast!
    (from The Joy of Flex)

  • No Comments »

    June 24th, 2008 by Kyle Posted in: ActionScript, Air, Flash Player, Flex

    Here are the past week’s top 10 Flex/AIR/LCDS links:

  • How to Push AIR Application Updates
    (from Daniel Dura)
  • Slides from my onAIR talk
    (from Ethan Malasky)
  • Adding Sounds to your Flex Applications
    (from Digital Backcountry)
  • Configuring Flex Builder to use the HellFire compiler
    (from Stop Coding!)
  • Pulse of the Geek Nation
    (from Codedependent)
  • Flex 3 historyFrame.html update to address potential…
    (from Rags to Riches)
  • AIR API Tip: Don’t write to File.applicationDirectory
    (from Pursuit of Simplicity)
  • SPL 1.2 Released
    (from gBlog)
  • 10 Flex Debugging Tools and Frameworks
    (from Flex RIA United)
  • AIR 1.1 Available for Download
    (from Digital Backcountry)

  • No Comments »

    June 19th, 2008 by Kyle
    Tags: , , , ,
    Posted in: Flex

    Ya…you heard me. Flipping Flex Chart Axis! And I mean it too. :) Wouldn’t it be nice if you could easily swap x and y axis? And change the “corner” where the origin is. This functionality isn’t built in to the charts. You can change the side (left or right) where the y-axis is and the position of the x-axis (top or bottom), but that doesn’t change where the origin is. It merely changes where the axis labels appear. Well, this sample shows that through the combination of sorting, dataFunctions and labelFunctions, you can flip the chart axis and change where the origin appears in your chart.

    This movie requires Flash Player 9

    Download a zipfile containing the source to this sample.

    Browse the source of this example.

    Or continue into the blog entry to see the source:
    Read the rest of this post»


    No Comments »

    June 17th, 2008 by Kyle Posted in: ActionScript, Flash Player, Flex

    I thought I would take the time each week to post links that I have marked to share from Google Reader. As I mentioned in a previous post, I have gone a little RSS and Google Reader crazy. But I find it more and more necessary to peruse as many blog posts as I can to keep up to date with what is going on in the Flex/Flash Player/AIR/LCDS/BlazeDS world.

    Here are the past week’s top 10:

  • 10 Flex Frameworks and Debugging Tools
    (from Flex RIA United)
  • AIR 1.1 Available for Download
    (from Digital Backcountry)
  • Debugging Flex with ThunderBolt
    (from Flex RIA United)
  • Looping over an Array using the every() method in…
    (from blog.FlexExamples.com)
  • Flex 3.x Versioning and Portals
    (from Alex’s Flex Closet)
  • SmallWorld Is Flashingly Bigger
    (from Flex RIA United)
  • Debug Flash Applications with FireBug and ThunderBolt
    (from Digital Backcountry)
  • Blog-based Badge Installs
    (from Pursuit of Simplicity)
  • New Acrobat and Introducing Acrobat.com
    (from Digital Backcountry)
  • Introducing Acrobat.com
    (from Collaborative Methods)

  • No Comments »

    « Previous Entries