Object expected error after uploading web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jinx08
    New Member
    • Nov 2007
    • 2

    Object expected error after uploading web page

    I am probably an itermediate user when it comes to flash however I am at a loss with this problem. I have posted numerous flash files to the internet and never had this problem however the key there is those were all using older versions of Flash and using windows xp. I now own Flash CS3 and I am running Windows Vista I am not sure if this has anything to do with it. Anyway I used dreamweaver to create and upload the page and file.When I go to preview it, it works just fine but after I upload it all you get is a blank screen and at the bottom of the browser you have that little error symbol and you click on it and its the problems with this web page might prevent it from being displayed properly..so on and so forth. The error is as follows:
    Line:50
    Char:1
    Error: Object Expected
    Code: 0
    UEL: http://www.kabobit.com/test/test2/index.html

    (notice the url is basically a test page just to see if I can get the video to work, it is not the actual page it is inteded to run on. I inted to use it on the main page www.kabobit.com as a proressive download flash video as that is the only way to get the sound synched up with the video. Right now I have a regular .swf running and you can see that music is faster than the video.

    Here is my source code for the test page. Any help would greatly be appreciated!!!!

    The error starts down where is says AC_FL_Runconten t....

    Source code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitl ed Document</title>
    <script type="text/javascript">
    function MM_CheckFlashVe rsion(reqVerStr ,msg){
    with(navigator) {
    var isIE = (appVersion.ind exOf("MSIE") != -1 && userAgent.index Of("Opera") == -1);
    var isWin = (appVersion.toL owerCase().inde xOf("win") != -1);
    if (!isIE || !isWin){
    var flashVer = -1;
    if (plugins && plugins.length > 0){
    var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
    desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
    if (desc == "") flashVer = -1;
    else{
    var descArr = desc.split(" ");
    var tempArrMajor = descArr[2].split(".");
    var verMajor = tempArrMajor[0];
    var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
    var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
    flashVer = parseFloat(verM ajor + "." + verMinor);
    }
    }
    // WebTV has Flash Player 4 or lower -- too low for video
    else if (userAgent.toLo werCase().index Of("webtv") != -1) flashVer = 4.0;

    var verArr = reqVerStr.split (",");
    var reqVer = parseFloat(verA rr[0] + "." + verArr[2]);

    if (flashVer < reqVer){
    if (confirm(msg))
    window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1 _Prod_Version=S hockwaveFlash";
    }
    }
    }
    }
    </script>
    <script src="../../../Scripts/AC_RunActiveCon tent.js" type="text/javascript"></script>
    </head>

    <body onload="MM_Chec kFlashVersion(' 8,0,0,0','Conte nt on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');"><br />
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!-- saved from url=(0013)about :internet -->
    <p>&nbsp;</p>
    <p>
    <script type="text/javascript">
    AC_FL_RunConten t( 'codebase','htt p://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=8,0,0,0',' width','400','h eight','266','i d','FLVPlayer', 'src','FLVPlaye r_Progressive', 'flashvars','&M M_ComponentVers ion=1&skinName= Clear_Skin_1&st reamName=http://www.kabobit.com/3minvideo&autoP lay=true&autoRe wind=false','qu ality','high',' scale','noscale ','name','FLVPl ayer','salign', 'lt','pluginspa ge','http://www.adobe.com/shockwave/download/download.cgi?P1 _Prod_Version=S hockwaveFlash', 'movie','FLVPla yer_Progressive ' ); //end AC code
    </script><noscrip t><object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=8,0,0,0" width="400" height="266" id="FLVPlayer" >
    <param name="movie" value="FLVPlaye r_Progressive.s wf" />
    <param name="salign" value="lt" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="FlashVars " value="&MM_Comp onentVersion=1& skinName=Clear_ Skin_1&streamNa me=http://www.kabobit.com/3minvideo&autoP lay=true&autoRe wind=false" />
    <embed src="FLVPlayer_ Progressive.swf " flashvars="&MM_ ComponentVersio n=1&skinName=Cl ear_Skin_1&stre amName=http://www.kabobit.com/3minvideo&autoP lay=true&autoRe wind=false" quality="high" scale="noscale" width="400" height="266" name="FLVPlayer " salign="LT" type="applicati on/x-shockwave-flash" pluginspage="ht tp://www.adobe.com/shockwave/download/download.cgi?P1 _Prod_Version=S hockwaveFlash" />
    </object></noscript>
    </p>
    </body>
    </html>
  • rsdev
    New Member
    • Jul 2007
    • 149

    #2
    The object is probably you js file.

    ../../../Scripts/AC_RunActiveCon tent.js

    The URL is http://www.kabobit.com/test/test2/index.htm so it looks like you searching in the directory above the root or htdocs. Is this right?

    Check your directories are set up properly.

    Comment

    • Jinx08
      New Member
      • Nov 2007
      • 2

      #3
      I feel stupid saying this but I think I fixed it in the code however, that obviously is the case because if you go to that URL now it is just a blank screen. It doesn't pop up with an error down in the lower left corner now but the video still does not play.

      Comment

      Working...