         // start or stop the video
         addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
         addEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler);
+        
+        // Set the TLF hook used for localizing runtime error messages.
+        // TLF itself has English-only messages,
+        // but higher layers like Flex can provide localized versions.
+        OSMFStrings.resourceStringFunction = getResourceString;
+        
+        trace(getResourceString('drmAuthenticationFailed'));
     }
     
     //--------------------------------------------------------------------------

{
    include "../core/Version.as";
    
    /**
     *  Constructor.
     *   

import mx.core.UIComponent;
import mx.core.mx_internal;
import mx.events.FlexEvent;
import mx.resources.IResourceManager;
import mx.resources.ResourceManager;

import org.osmf.display.MediaPlayerSprite;
import org.osmf.display.ScaleMode;
