Create a nice Flash photogallery with gridNavigation component

Today I’ll show you a Flash component that you will find very useful for a photogallery or an interactive portfolio.

Remember that there are thousands of sites showing their best photos/works, and you must show your work in an interesting way if you want to get noticed.

Personally, I don’t click anymore on the classic “click here to open the image in a popup”. We are in 2008, and we are looking for something new.

That’s why I am going to recommend you the gridNavigation component by Flashloaded.

The gridNavigation is a thumbnail based navigational system or a portfolio/photo gallery in a grid or pyramid style layout. The thumbnail content is clickable and zooms in to display the selected full size content while the other thumbnails are pushed aside. Content can be external images, animated SWFs or movie clips. Content can be added or changed directly in the Component Inspector, through ActionScript or using an external XML file.

Ok… that was a simple cut/paste. When I review something, I do a test drive.

Like all components, you can install gridNavigation with a double click on the .mxp file provided in the package.

There is not any manual in the zip file provided by Flashloaded but you can find an complete guide at this link.

Let’s start our fancy example!

First, from the Components window, drag and drop the component on the stage and set its size as you like.

Then, you can just play with the parameters in the component inspector like in the other million galleries released in these years, or feed the component with an XML file (much, much better).

Let’s see this XML



	
		Bottom Left
		Images
		Pyramid
		
			99
			77
		
		
			450
			350
		
		linear
		700
		false
	
	
		
			
				
				/images/grid02.jpg
			
		
		
			
				
				/images/grid03.jpg
			
		
		
			
				
				/images/grid04.jpg
			
		
		
			
				
				/images/grid05.jpg
			
		
		
			
				
				/images/grid06.jpg
			
		
		
			
				
				/images/grid07.jpg
			
		
	

And this is the result.

I used only images, but you can use swf movies if you prefer. Thumbnails are generated on-the-fly if not specified in the XML

Moreover, you can define grid alignment (top right, top left, and so on), navigation mode (grid or pyramid, like in my example), number of rows and columns, thumbnails easing (you can choose among a wide number of easings), zoom speed and even more options.

But what makes my example different than the one you can find on Flashloaded site is the dynamic actionscript control of which thumbnail I just clicked on.

With this code

var listener = new Object();
listener.onOpen = function(event) {
	switch (event.item) {
	case _level0.grid.page_0_0 :
		caption.text = "BallBalance";
		break;
	case _level0.grid.page_1_0 :
		caption.text = "GuessNext";
		break;
	case _level0.grid.page_1_1 :
		caption.text = "Glomb";
		break;
	case _level0.grid.page_2_0 :
		caption.text = "TileBall";
		break;
	case _level0.grid.page_2_1 :
		caption.text = "Christmas Couples";
		break;
	case _level0.grid.page_2_2 :
		caption.text = "Circle Chain";
		break;
	}
};
grid.addEventListener("onOpen", listener.onOpen);

I can show you the name of the game I clicked in a text area.

Once you track which thumbnail you open, there are unlimited options… you are limited just by your imagination.

You can buy gridNavigation for $44.95, choosing if you prefer AS2 or AS3 version.

I think it’s a valuable option if you are going to make a fancy gallery/portfolio, or maybe a game like Grid16

Get the most popular Phaser 3 book

Through 202 pages, 32 source code examples and an Android Studio project you will learn how to build cross platform HTML5 games and create a complete game along the way.

Get the book

215 GAME PROTOTYPES EXPLAINED WITH SOURCE CODE
// 1+2=3
// 100 rounds
// 10000000
// 2 Cars
// 2048
// A Blocky Christmas
// A Jumping Block
// A Life of Logic
// Angry Birds
// Angry Birds Space
// Artillery
// Astro-PANIC!
// Avoider
// Back to Square One
// Ball Game
// Ball vs Ball
// Ball: Revamped
// Balloon Invasion
// BallPusher
// Ballz
// Bar Balance
// Bejeweled
// Biggification
// Block it
// Blockage
// Bloons
// Boids
// Bombuzal
// Boom Dots
// Bouncing Ball
// Bouncing Ball 2
// Bouncy Light
// BoxHead
// Breakout
// Bricks
// Bubble Chaos
// Bubbles 2
// Card Game
// Castle Ramble
// Chronotron
// Circle Chain
// Circle Path
// Circle Race
// Circular endless runner
// Cirplosion
// CLOCKS - The Game
// Color Hit
// Color Jump
// ColorFill
// Columns
// Concentration
// Crossy Road
// Crush the Castle
// Cube Jump
// CubesOut
// Dash N Blast
// Dashy Panda
// Deflection
// Diamond Digger Saga
// Don't touch the spikes
// Dots
// Down The Mountain
// Drag and Match
// Draw Game
// Drop Wizard
// DROP'd
// Dudeski
// Dungeon Raid
// Educational Game
// Elasticity
// Endless Runner
// Erase Box
// Eskiv
// Farm Heroes Saga
// Filler
// Flappy Bird
// Fling
// Flipping Legend
// Floaty Light
// Fuse Ballz
// GearTaker
// Gem Sweeper
// Globe
// Goat Rider
// Gold Miner
// Grindstone
// GuessNext
// Helicopter
// Hero Emblems
// Hero Slide
// Hexagonal Tiles
// HookPod
// Hop Hop Hop Underwater
// Horizontal Endless Runner
// Hundreds
// Hungry Hero
// Hurry it's Christmas
// InkTd
// Iromeku
// Jet Set Willy
// Jigsaw Game
// Knife Hit
// Knightfall
// Legends of Runeterra
// Lep's World
// Line Rider
// Lumines
// Magick
// MagOrMin
// Mass Attack
// Math Game
// Maze
// Meeblings
// Memdot
// Metro Siberia Underground
// Mike Dangers
// Mikey Hooks
// Nano War
// Nodes
// o:anquan
// One Button Game
// One Tap RPG
// Ononmin
// Pacco
// Perfect Square!
// Perfectionism
// Phyballs
// Pixel Purge
// PixelField
// Planet Revenge
// Plants Vs Zombies
// Platform
// Platform game
// Plus+Plus
// Pocket Snap
// Poker
// Pool
// Pop the Lock
// Pop to Save
// Poux
// Pudi
// Pumpkin Story
// Puppet Bird
// Pyramids of Ra
// qomp
// Quick Switch
// Racing
// Radical
// Rebuild Chile
// Renju
// Rise Above
// Risky Road
// Roguelike
// Roly Poly
// Run Around
// Rush Hour
// SameGame
// SamePhysics
// Save the Totem
// Security
// Serious Scramblers
// Shrink it
// Sling
// Slingy
// Snowflakes
// Sokoban
// Space Checkers
// Space is Key
// Spellfall
// Spinny Gun
// Splitter
// Spring Ninja
// Sproing
// Stabilize!
// Stack
// Stairs
// Stick Hero
// String Avoider
// Stringy
// Sudoku
// Super Mario Bros
// Surfingers
// Survival Horror
// Talesworth Adventure
// Tetris
// The Impossible Line
// The Moops - Combos of Joy
// The Next Arrow
// Threes
// Tic Tac Toe
// Timberman
// Tiny Wings
// Tipsy Tower
// Toony
// Totem Destroyer
// Tower Defense
// Trick Shot
// Tunnelball
// Turn
// Turnellio
// TwinSpin
// vvvvvv
// Warp Shift
// Way of an Idea
// Whack a Creep
// Wheel of Fortune
// Where's my Water
// Wish Upon a Star
// Word Game
// Wordle
// Worms
// Yanga
// Yeah Bunny
// Zhed
// zNumbers