Ok, thankyou for trying to help. The code is below. I am adding two different Flash objects dynamically to the page, two different button responses, the first of which adds flowplayer and the error for that is:
getClip().fullduration is null or not an object
- this one I am aware of - it is because I am trying to get the duration of a clip from flowplayer which doesn’t quite have it until the video starts playing. However, this runs fine on all the browsers, its a shortcoming of the flowplayer api, no other way to do it so I just need a way to hide the error in IE7. Any ideas?
Anyway, the other errors occur when I do the YouTube load -loads a chromeless yt player, haven’t got a clue why its happening, the errors for that are :
Message: ‘null’ is null or not an object
Line: 1
Char: 158
Code: 0
URI: http://will.site88.net/jake/video.php
Message: ‘null’ is null or not an object
Line: 1
Char: 158
Code: 0
URI: http://will.site88.net/jake/video.php
Message: Unspecified error.
Line: 49
Char: 5
Code: 0
URI: http://will.site88.net/jake/video.php
$(document).ready(function() {
///////////////////Setup FROM THE TOP DOWN ! ///////////////////////////////////
$( "#progress_bar" ).slider({disabled: true});
$("#flowplayer_mute, #YouTube_mute").hide();
/////////////// PLAYER CHROME (player controls)////////////
$("#YouTube_fullscreen_effect, #flowplayer_fullscreen_effect").live({
mouseenter:
function()
{
$("#fullscreen_hover").animate({width:"24",height:"18"}, "5000");
// event.stopPropagation();
},
mouseleave:
function()
{
$("#fullscreen_hover").animate({width:"15",height:"11"}, "10000");
// event.stopPropagation();
}
}
);
$("#flowplayer_vol_btn, #YouTube_vol_btn, #YouTube_volume, #flowplayer_volume").live({
mouseenter:
function()
{
$("#YouTube_volume, #flowplayer_volume").stop().show().animate({"opacity": "1"}, "slow");
},
mouseleave:
function()
{
$("#YouTube_volume, #flowplayer_volume").stop().animate({"opacity": "0"}, 2900);
}
}
);
///////////////////MISC HOVER//////////////////////////////////
$(".play").hover(
function()
{
$(this).animate({width:"97",height:"65"}, "fast");
// event.stopPropagation();
},
function()
{
$(this).animate({width:"87",height:"55"}, "fast");
// event.stopPropagation();
}
);
$(".flowplayer_select, .flowplayer_btn, .YouTube_select, .YouTube_btn").hover(
function()
{
var src ="Images/btn_green.png";
if($(this).attr("class") == "flowplayer_btn" || $(this).attr("class") == "flowplayer_select")
{
$(".flowplayer_btn").attr("src", src).animate({width:"35",height:"35"}, "fast");
}
else
{
$(".YouTube_btn").attr("src", src).animate({width:"35",height:"35"}, "fast");
}
},
function()
{
var blue ="Images/btn_blue.png";
var red ="Images/btn_red.png";
$(".flowplayer_btn").attr("src", blue).animate({width:"31",height:"31"}, "fast");
$(".YouTube_btn").attr("src", red).animate({width:"31",height:"31"}, "fast");
}
);
////////////////////////PANEL PLAYER-SELECTION POPOUT///////////////////
$(".flowplayer_select, .flowplayer_btn").click(function(){
$(".panel_left").show("2000");
// event.stopPropagation();
$.scrollTo($(".panel_left"), 1000);
});
$(".YouTube_select, .YouTube_btn").click(function(){
$(".panel_right").show("slow");
//event.stopPropagation();
$.scrollTo($(".panel_right"), 1000);
});
$(".upload_panel_close").click(function(){
$(".panel_left, .panel_right").hide("slow");
//$('form').clearForm();
return false;
});
$("#accordion").accordion({ autoHeight: false });
$("input[type=file]").filestyle({
image: "Images/browse.png",
imageheight : 38,
imagewidth : 92,
width : 250
});
});