Welcome to my website. I am always posting links to photo albums, art, technology and other creations. Everything that you will see on my numerous personal sites is powered by the formVistaTM Website Management Engine.

icon.linkedin.jpgicon.twitter.jpg

  • Subscribe to this RSS Feed
  • Using Michael Jordan's Open Source Captioned Skins for the FLVPlayback Component in AS 2.0
    04/23/2008 9:35AM
    Following is a quick tutorial on how to set-up and use the set of captioned FLVPlayback skins created by Michael Jordan.

    This tutorial covers using the skins with ActionScript 2.0 cuepoints.
    First off, download the set of skins.  I've included them with this blog entry (because Adobe is notorious for moving and deleting pages), but there may be a newer version out there so check out this page, and/or Michael's page.

    Once you've downloaded and installed the skins fire up Flash and open a new document.

    Import your .flv video and place an instance on the stage.

    Name your FLVPlayer instance flvInstance.

    In the Component Inspector set your skin to one of the Captioned skins you just installed.

    Add the following code to the first frame of your movie, or add it to an .as file and include it into your .fla file.

    // ----------------------------------------------------------------------------

    /*
    Defining cue points
    We must define an ActionScript cuePoint object and a parameters object that contains the caption content
    */

    // Example of a cuepoint that includes a speaker indicator:
    var var_cuePoint_00_content:Object = { en: "Here we define our first cuepoint.", spk: "Ryan" };
    // Now we define our time, the name of the cueoint and add the aforementioned object as the cuepoint's parameters
    var var_cuePoint_00:Object = { time: 2.05, name: "caption", type: "actionscript", parameters: var_cuePoint_00_content };

    // Example of item without a speaker:
    var var_cuePoint_01_content:Object = { en: "Here is the second cuepoint" };
    var var_cuePoint_01:Object = { time: 4.05, name: "caption", type: "actionscript", parameters: var_cuePoint_01_content };

    // Adding our cue points to our FLVPlayer instance
    flvInstance.addASCuePoint( var_cuePoint_00 );
    flvInstance.addASCuePoint( var_cuePoint_01 );

    // Adding a listener for our FLVPlayback instance so you can see what's going
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object) {
        trace( "Elapsed time in seconds: " + flvInstance.playheadTime + "\n" );
        for( var prop:String in eventObject ){
            trace( "Property  [" + prop + "] = " + eventObject[prop] );
            if( prop == "info" ){
                trace( "the info property" );
               
                for( var infoProp:String in eventObject[prop] ){
                    trace( "Property [" + infoProp + "] = " + eventObject[prop][infoProp] );
                }
            }
        }
    };
    flvInstance.addEventListener("cuePoint",listenerObject);

    // ----------------------------------------------------------------------------


    Compile your .swf, click on the "CC" button, play your FLV and you should see your captions as your video plays
    Attachment: CaptionedSkins_v1_4.mxp 13410190 bytes
  • Setting Up an IIS Webserver under Windows XP Pro
    04/18/2008 11:41AM
    I recently had a client who was hosting a site on IIS under Windows XP Pro using .NET and ASP.

    As a result, I needed to set up an appropriate development environment to test and debug the site before handing it over.

    I opted for setting up VMware install that was running the necessary OS and software.

    Following is a quick how-to on setting it all up.
    Installing IIS 5.1 and .NET 2.0 on Windows XP Pro:
    1. Go to Add/Remove programs
    2. Put the WinXP Pro install CD in the machine
    3. Click on Add/Remove Windows Components and click on the check box next to Internet Information Services (IIS)
    4. After installation you should be able to open up a browser and type "localhost" and get the default welcome page.
    5. If you get either a "You are not authorized to view this page" or a user name and password prompt, make sure that the user account with which you are currently logged in has administrator rights and that you have a password set for that account.
    6. Install .NET
    7. Register .NET with IIS
      1. Open a command prompt window, change dir to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 (or whatever other version you are registering)
      2. Run the following commands in sequence:
        1. aspnet_regiis -i
        2. aspnet_regiis -s W3SVC/
    8. Make sure to include the .aspx extension on your files and you should be all set to start developing .NET applications.
    9. To enable other machines to connect to your new webserver go to Control Panel/Security Center/ and click on "Windows Firewall" under Manage Security settings for:
      1. Go to the Advanced Tab
      2. Click on the "Settings" button next to the "Network Connection Settings" and click on the check box next to "Web Server (HTTP)".

  • Deleting the Cruft in Windows 2000
    03/18/2008 8:42PM
    Windows tends to store a ton of temporary files that, over time, tend to fill up your hard drive.

    There are a number of places to look for these files and a couple of things you can do to periodically purge your system of files you don't need.

    First, right-click on your C drive and select "Properties".  Then click on the "Disk Cleanup" button on the main tab.

    You can also look in C:\Documents and Settings\Administrator\Local Settings\Temp

    And look for bloated temp folders in here.
  • Search and Replace for a New Line Character in VI
    02/28/2008 12:01PM
    For all of you out there who use vi on a regular basis . . . I recently needed to do a search and replace on a large document and needed to key off of the new line characters in the document.

    After a bit of searching here's what I found:

    If you need to do something like, search for all new lines and add the new line plus "foo" do the following:

    :1,%s/\n/^Mfoo/g

    You get the ^M character by pressing ctrl-v and then hitting enter.
  • Embedding Flash with Valid Markup
    02/18/2008 10:31PM
    Anyone who has tried to W3C validate a page with the default output from Flash knows you get a slew of errors.

    Here's a great article on modifying your <object> and <embed> tags so that your pages will validate.

    Flash Satay: Embedding Flash While Supporting Standards by Drew McLellan

    Here's a quick example that you can run with that includes the markup for a transparent background:

    <object type="application/x-shockwave-flash" width="368" height="201" data="icms_art/nbir5.hdr.anim.swf">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="icms_art/nbir5.hdr.anim.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    </object>

Advanced Search

Categories

Archives