Нужна помощь. Есть флеш в котором несколько галерей, первая допустим "image", вторая "logo" и.т.д. Так вот кнопкам пишу:
Code actionscript для "
image":
image_1.onRelease = function() {
getURL("javascript:prettyLaunch('image_full/1.jpg' , 'image')"
};
image_2.onRelease = function() {
getURL("javascript:prettyLaunch('image_full/2.jpg' , 'image')"
};
image_3.onRelease = function() {
getURL("javascript:prettyLaunch('image_full/3.jpg' , 'image')"
};
Code actionscript для "
logo":
logo_1.onRelease = function() {
getURL("javascript:prettyLaunch('logo_full/1.jpg' , 'logo')");
};
logo_2.onRelease = function() {
getURL("javascript:prettyLaunch('logo_full/2.jpg' , 'logo')");
};
logo_3.onRelease = function() {
getURL("javascript:prettyLaunch('logo_full/3.jpg' , 'logo')");
};
logo_4.onRelease = function() {
getURL("javascript:prettyLaunch('logo_full/4.jpg' , 'logo')");
};
logo_5.onRelease = function() {
getURL("javascript:prettyLaunch('logo_full/5.jpg' , 'logo')");
};
А code на странице:
<head>
<title>main_new_one_menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html, body { height:100%; background-color: #000000;}
body { margin:0; padding:0; overflow:hidden; }
#flashContent { width:100%; height:100%; }
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js?ver=2.9.2" type="text/javascript"></script>
<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
<script src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({showTitle:false});
});
function prettyLaunch(linkurl, title) {
document.getElementById("prettyLink").href = linkurl;
document.getElementById("prettyLink").title = title;
$("#prettyLink").trigger('click');
}
</script>
</head>
<body>
<a id="prettyLink" href="logo_full/1.jpg" title="-=logo=-" rel="prettyPhoto[logo]"></a>
<a id="prettyLink" href="logo_full/2.jpg" title="-=logo=-" rel="prettyPhoto[logo]"></a>
<a id="prettyLink" href="logo_full/3.jpg" title="-=logo=-" rel="prettyPhoto[logo]"></a>
<a id="prettyLink" href="logo_full/4.jpg" title="-=logo=-" rel="prettyPhoto[logo]"></a>
<a id="prettyLink" href="logo_full/5.jpg" title="-=logo=-" rel="prettyPhoto[logo]"></a>
<a id="prettyLink" href="image_full/1.jpg" title="-=image=-" rel="prettyPhoto[image]"></a>
<a id="prettyLink" href="image_full/2.jpg" title="-=image=-" rel="prettyPhoto[image]"></a>
<a id="prettyLink" href="image_full/3.jpg" title="-=image=-" rel="prettyPhoto[image]"></a>
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="720" height="525" id="main_new_one_menu" align="middle">
<param name="movie" value="main_new_one_menu.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="transparent" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="main_new_one_menu.swf" width="720" height="525">
<param name="movie" value="main_new_one_menu.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="transparent" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
И получается что галерея "logo" работает полностью нормально, а галерея "image" одно изображение открывается то которое нужно, а потом соскакивает опять на галерею "logo"