Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Gallery in Adobe Flash AS2.0

Guest
Dec 29, 2012 Dec 29, 2012

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.

portfolio.jpgMaybe this will help to show what I mean.

TOPICS
ActionScript
2.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 30, 2012 Dec 30, 2012

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.

Translate
Community Expert ,
Dec 29, 2012 Dec 29, 2012

what part of that will be flash and what part javascript?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 30, 2012 Dec 30, 2012

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2012 Dec 30, 2012

you can use:

on (release) {

getURL(''gallery.html'',"_self");

}

p.s. please mark helpful/correct responses.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 30, 2012 Dec 30, 2012

I don't know why but with _self it's the same as getURL(''gallery.html''); Atleast for me...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2012 Dec 30, 2012

copy and paste the code you used.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 30, 2012 Dec 30, 2012

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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2012 Dec 30, 2012

fstartlse looks like a typo.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 30, 2012 Dec 30, 2012

It's weird because buttons work fine.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2012 Dec 30, 2012

if the rollout and press do what you want, what's the problem?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 30, 2012 Dec 30, 2012

If I upload all files on FTP then will '_self' work properly?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2012 Dec 30, 2012

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 30, 2012 Dec 30, 2012

Ok thanks for help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2012 Dec 30, 2012
LATEST

you're welcome.

if you recognize a problem and want help with it, post it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines