ActiveDen

IgalleryX: Photo Stack Gallery v2

FAQ : I GET THESE ERROR WHEN COMPILING THE FILE : Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

The problems stay in your XML file, try to check all data to see whether they are set up correctly, usually its case-sensitive error.

FAQ : HOW DO I LOAD IGALLERYX INTO ANOTHER MOVIE CLIP :

The current packages contains a Loader.fla which show you how to load IgalleryX. If you didn’t get it please redownload the file from your profile page

FAQ : I WANT TO DISABLE THE FLIPPING NAVIGATION , HOW DO I ACHIEVE THAT ?

The quickest trick is inside Press function, change these code:

 if (cID != index) changeTo(index); else ... 

to

 if (true) changeTo(index); else ... 

FAQ : HOW TO CHANGE COLOR OF BACK SIDE IN EACH THUMBNAIL :

Simply open Library (F11) and edit the BACK movie clip, you can change any color inside that clip

FAQ : HOW TO RESIZE BACK CLIP and CHANGE POSITION OF EACH ELEMENT ?

The back clip is the one that appear when a thumbnail is pressed. Back clip dimension related to thumbnail dimension so you just need to change the size of thumbnail and the back clip will auto adjust its dimension. To make it larger or smaller, you can vary z0 variable.

The position of description/scroller/or the holder of image/swf/video are placed in 2 main function Init() and rePosition(). Notice that these positions are relative to document dimension, you can do some trial and error to place these components in proper place. Read the commented code for more.

FAQ : HOW TO CHANGE STARTING POSITION INSTEAD OF THE MIDDLE ONE ?

Firstly change the position by modifying startFrom property in the beginning of the actionscript file:

private var startFrom:Number = 0;

Go to ParseData() function, comment or delete

startFrom = Math.round(numphot / 2) - 1;

FAQ : HOW TO STOP ALL SOUND WHEN CLICKING ON THE BACK BUTTON ?

Open .as file and insert this code:

import flash.media.SoundMixer;  

in the import section of the script

Look for goBackToMain() function and insert this code inside the function:

 SoundMixer.stopAll();   

FAQ : HOW TO ADJUST THE SIZE OF LARGE IMAGE ?

Open .FLA file, in Holder layer adjust the size of holder movie clip

Open .as file correspond to that .FLA, look for _z0_variable and adjust its value to make the flipped plan bigger or smaller

FAQ : HOW TO CHANGE THE POSITION OF LARGE IMAGE / SWF / VIDEO OR THE HOLDER MOVIE CLIP ?

It’s all inside rePosition() function, look for that function in .as file. You’ll see:


// reposition  holder
holder.x = (stage.stageWidth - hWidth) * 0.5 ;
holderY = holder.y = container.y - 250;

Adjust the value of holder.x and .y

FAQ : HOW TO LINK EACH THUMBNAIL TO EXTERNAL URL ?

1. Add a link tag to each thumbnail in XML file, for example:

....
       <link src="http://activeden.net/user/RimV" />
....

2. Open actionscript file, looking for ParseData() function, insert a new line of code to retrieve all links, so it looks like:

...
desc[i] = dat.photos.photo.desc.text()[i];
img[i] = dat.photos.photo.img.attributes()[i];
link[i] = dat.photos.photo.link.attributes()[i];
...

3. In Press() function, replace all code inside with:


// retrieve plane
var p:Cube = pContainer[e.target];
// retrieve index
var index:Number = p.extra.index;

rePosScrubber(index);

if (cID != index)    
  changeTo(index);
else
{
 var myURL:URLRequest = new URLRequest(link[index]);
 navigateToURL(myURL, "blank");
}

FAQ : HOW TO CHANGE COLOR OF BACK SIDE IN EACH THUMBNAIL :

Simply open Library (F11) and edit the BACK movie clip, you can change any color inside that clip

FAQ : HOW TO RESIZE BACK CLIP and CHANGE POSITION OF EACH ELEMENT ?

The back clip is the one that appear when a thumbnail is pressed. Back clip dimension related to thumbnail dimension so you just need to change the size of thumbnail and the back clip will auto adjust its dimension. To make it larger or smaller, you can vary z0 variable.

The position of description/scroller/or the holder of image/swf/video are placed in 2 main function Init() and rePosition(). Notice that these positions are relative to document dimension, you can do some trial and error to place these components in proper place. Read the commented code for more.

FAQ : HOW TO CHANGE STARTING POSITION INSTEAD OF THE MIDDLE ONE ?

Firstly change the position by modifying startFrom property in the beginning of the actionscript file:

private var startFrom:Number = 0;

Go to ParseData() function, comment or delete

startFrom = Math.round(numphot / 2) - 1;

FAQ : HOW TO STOP ALL SOUND WHEN CLICKING ON THE BACK BUTTON ?

Open .as file and insert this code:

import flash.media.SoundMixer;  

in the import section of the script. Look for goBackToMain() function and insert this code inside the function:

SoundMixer.stopAll();

FAQ : HOW TO ADJUST THE SIZE OF LARGE IMAGE ?

Open .FLA file, in Holder layer adjust the size of holder movie clip

Open .as file correspond to that .FLA, look for _z0_variable and adjust its value to make the flipped plan bigger or smaller

FAQ : HOW TO CHANGE THE POSITION OF LARGE IMAGE / SWF / VIDEO OR THE HOLDER MOVIE CLIP ?

It’s all inside rePosition() function, look for that function in .as file. You’ll see:

// reposition  holder
holder.x = (stage.stageWidth - hWidth) * 0.5 ;
holderY = holder.y = container.y - 250;

Adjust the value of holder.x and .y

How to add custom BACK button ?

Open .as script, in Press(e:Event) function remove

holder.addEventListener(MouseEvent.CLICK, goBackToMain, false, 0, true);

Create your own movie clip button and add this in Init() function:

myButton.addEventListener(MouseEvent.CLICK, goBackToMain, false, 0, true);

HOW TO RESIZE THE TEXT AREA OF EACH ITEM ?

Edit photoStack3d.as / photoStack3d_swf.as / photoStack_video.as, look for

 textScroller.resize(500, 105); 

in Init() function and change width and height there.

Open corresponding .fla and hit Ctrl + Enter to compile the new code.

FAQ : HOW TO HIDE THE BOTTOM SCROLLER ?

1) Open photoStack.as / photoStack_swf.as / photoStack_video.as

2) Add
iScroller.visible = false;

in Init() function

3) Find and replace all

iScroller.visible = true;

to

iScroller.visible = false;

4) Open corresponding .fla file and hit Ctrl + Enter to compile the modified code.

How to export different SWF with different XML file

You can edit “xml_path” in .as file to change XML source that is used in the gallery, for example if you want to make to 2 different gallery with 2 different XML , namely:

  • MyPhotoStack1.swf and MyPhotoStack1.xml
  • MyPhotoStack2.swf and MyPhotoStack2.xml

1) Save photoStack3d.fla (or swf, video) as MyPhotoStack1.fla

2) Save photoStack.as as MyPhotoStack1.as AND open the new .as, find and replace all word “photoStack” to MyPhotoStack1”

3) Also in that .as file, change “xml_path” to a MyPhotoStack1.xml

4) Create and edit a new XML file name: MyPhotoStack1.xml

5) Open MyPhotoStack1.fla, in Property Panel – Class, change “photoStack” to MyPhotoStack1

6) Ctrl + Enter to compile the movie.

Repeat the process with other gallery.

How to embed font to support language like Chinese, Japanese ?

1) Open .fla file, hit F11 to open Library symbol and look for “textClip” movie clip (DyanmicTextScroller folder)

2) Select “textArea” textfield, in property panel choose appropriate Font Family and hit “Embed”

3) In “Embed” dialog, Character ranges, tick “All” to support all glyphs. Hit Ok.

4) You may want to change Anti-alias to “Anti-Alias for readability” in property panel for better font view.

5) Ctrl + Enter to recompile the file with embedded font.

Note: The encoded content in XML file may need to change to “encoding=”UTF-8” to support special characters.

You must sign in or sign up to purchase this item.

$25Regular Licence

$25

Regular Licence a website (commercial, personal, client), free game, e-card, or presentation - Details

$250Extended Licence

$250

Extended Licence an app, paid game, or other software project, a website template for sale - Details

2221 Purchases 1202 Comments

Buyer Rating
12345 ( 435 ratings )
RimV

RimV

  • Has been a member for 5-6 years
  • Envato Staff
  • Reviewer
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Australia
  • Referred between 10 and 49 users
View Portfolio
Created 4 March 08
ActionScript Version AS3
Documentation Well Documented
Flash Files Included Flash FLA, ActionScript AS, XML Files, HTML Files, CSS Files, JS Files
Opens With Flash CS3 (9+)
Published Size 73.5kb
Resolution Resizable
by
by
by
by
by