Providing Alternative to .SVG for IE8

So for anyone else following this thread. Here is how I gave up and created a poster image that is called in IE8 to stop the madness of trying to get this to work in IE8…

  1. Create a new Scene (named it ‘poster’)

  2. Took a screen grab of a still I could use (couldn’t figure out how to do it in Hype)

  3. On Scene Load called a new function I named “detectIE8” and added this code:

    function getIEVersion() {
    var match = navigator.userAgent.match(/(?:MSIE |Trident/.*; rv:)(\d+)/);
    return match ? parseInt(match[1]) : undefined;
    }

    if(getIEVersion() < 9){
    hypeDocument.showSceneNamed(‘poster’, hypeDocument.kSceneTransitionCrossfade, 1.1);
    }

Works like a charm!

2 Likes