Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorkrisjl
    • CommentTimeOct 19th 2007
     
    First off, I am not a Mac person. I have a problem specifically with the Safari Beta release. My page works fine on Windows browsers and even on the Mac Firefox browser, but I just can't figure out what the issue is with Safari. The error message I receive is "Value undefined (result of expression thisMovie("testMAC").setText) is not object.". I created a test page and test flash to try and figure it out, below is the code to both.

    Any ideas would be great, thanks in advance.
    Kris

    -------------------------------------------------------
    Flash
    This test SWF only has a label on the stage, and a function defined to set the label.
    stop();
    import flash.external.*;
    var instance6:Object = null;
    var method6:Function = setText;
    var wasSuccess6:Boolean = ExternalInterface.addCallback("setText", instance6, method6);
    function setText(lb:String) {
    lbtest.text = lb;
    }
    ------------------------------------------------------------
    Web Page code
    <%@ Page Language="VB" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
    <title>product container</title>
    <script type="text/javascript" src="swfobject_swfformfix.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/JavaScript">
    function thisMovie(movieName) {
    var isIE = navigator.appName.indexOf("Microsoft") != -1;
    if (isIE) {return window[movieName];}
    else {return document[movieName];}
    }
    function Init() {
    thisMovie("testMAC").setText("Hello There.");
    }
    </script>
    </head>
    <body style="margin:0px; top:0px" onload="javascript:Init();">
    <form id="form1" runat="server" method="post">
    <a id="front" style="height:0px; width:0px;"></a>
    <div id="swfdiv_ttpreview" style="width:550px;height:400px;">
    This is replaced by the Flash movie.
    </div>
    </form>
    <script type="text/javascript">
    window["testMAC"] = new Object();
    var so = new SWFObject("testMAC.swf", "testMAC","550", "400", "9", "#ffff00");
    so.addParam("quality", "high");
    so.write("swfdiv_ttpreview");
    SWFFormFix("testMAC");
    </script>
    </body>
    </html>