Copy link to clipboard
Copied
Hello. I decided to do my portfolio in flash (based on that clip http://www.youtube.com/watch?v=Qn3mDxDqQ1o) and everything went fine until I started doing gallery. I have no idea how to connect html and flash so that it is consistent. The gallery should look something like this http://www.pirolab.it/pirobox_v_1_2/. Summary: Have you any ideas how to do gallery which is one of the 4 tabs with fullscreen image preview (pirobox for example) in the simplest way? I use AS 2.0. Thanks and regards.
Maybe this will help to show what I mean.
yes, it will work properly. whether you're using it properly or not, i can't say and whether you're doing something else that's causing problems, i can't say.
but your comments and the code snippet i've seen indicates, you have problems and don't realize you have problems.
Copy link to clipboard
Copied
what part of that will be flash and what part javascript?
Copy link to clipboard
Copied
Thumbnails and preview in java, rest in flash, but it doesn't really matter if you have better idea.
PS. Well, I added a wmode transparency to .swf and it works almost as much as wanted, but it must load separate html after clicking "portfolio"
on (release) {
getURL(''gallery.html'');
}
Is there any way to avoid loading separate html? Sorry but I'm totally newbie in scripting.
Copy link to clipboard
Copied
you can use:
on (release) {
getURL(''gallery.html'',"_self");
}
p.s. please mark helpful/correct responses.
Copy link to clipboard
Copied
I don't know why but with _self it's the same as getURL(''gallery.html''); Atleast for me...
Copy link to clipboard
Copied
copy and paste the code you used.
Copy link to clipboard
Copied
on (rollOver) {
_root.mouse_over_button2 = true;
}
on (rollOut) {
_root.mouse_over_button2 = fstartlse;
}
on (press) {
getURL("gallery.html",'_self');
}
gallery.html
<head>
<link href="css_pirobox/black/style.css" media="screen" title="black" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/pirobox.1_2_min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$().piroBox({
my_speed: 300, //animation speed
bg_alpha: 0.5, //background opacity
radius: 4, //caption rounded corner
scrollImage : false, // true == image follows the page _|_ false == image remains in the same open position
// in some cases of very large images or long description could be useful.
slideShow : 'true', // true == slideshow on, false == slideshow off
slideSpeed : 3, //slideshow
pirobox_next : 'piro_next', // Nav buttons -> piro_next == inside piroBox , piro_next_out == outside piroBox
pirobox_prev : 'piro_prev', // Nav buttons -> piro_prev == inside piroBox , piro_prev_out == outside piroBox
close_all : '.piro_close' // add class .piro_overlay(with comma)if you want overlay click close piroBox
});
});
</script>
<body>
<div class="demo"><a href="images/1_b.jpg" class="pirobox" title="Random Layout 1"><img src="images/1.jpg" /></a></div>
<div class="demo1"><a href="images/2_b.jpg" class="pirobox" title="Random Layout 2"><img src="images/2.jpg" /></a></div>
<div class="demo2"><a href="images/3_b.jpg" class="pirobox" title="Random Layout 3"><img src="images/3.jpg" /></a></div>
</body>
</html>
Copy link to clipboard
Copied
fstartlse looks like a typo.
Copy link to clipboard
Copied
It's weird because buttons work fine.
Copy link to clipboard
Copied
if the rollout and press do what you want, what's the problem?
Copy link to clipboard
Copied
If I upload all files on FTP then will '_self' work properly?
Copy link to clipboard
Copied
yes, it will work properly. whether you're using it properly or not, i can't say and whether you're doing something else that's causing problems, i can't say.
but your comments and the code snippet i've seen indicates, you have problems and don't realize you have problems.
Copy link to clipboard
Copied
Ok thanks for help.
Copy link to clipboard
Copied
you're welcome.
if you recognize a problem and want help with it, post it.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now