I need a Flash menu that I can customise.
A grid of small thumbnails loads..... The bigger images loads in offstage.
When you click on a thumbnail it side scrolls to the bigger image in the space where the white block is. If you click the bigger image you're taken to a unique url for each pic.
The problem it's a test project for a new huge client, so I'm bending backwards to accommodate them, but this menu isn't something they've budgeted for.
The closest I can find is this , but the woosh sound it made as it went over my head blasted out the office windows.
Any help would be appreciated.
Napalm 2008.04.07, 09:31AM — Flash menu
JLM 2008.04.07, 12:52PM —
Can you explain the side scroll? What part are you struggling with is it as2 or 3. There is a couple of posts on image loading eg: twelvestone.com/forum_thread/view/24630
but they are all fairly old. I have a swishmax tut somewhere on slider puzzles but I am not sure if that is sort of where you might be going.
Napalm 2008.04.07, 02:04PM —
What's driving me mad at the moment is that I did exactly this years ago, but for the life of me I can't find the sourcefile. I would really prefer to do this in as2, as my as3 is about as good as my swahili.
All the big images are loaded into a movieclip offstage. If I click on a button at the bottom, that moves the movieclip across the stage until it stops on the bigger image. If I click on that big image the user's taken to a url.
JLM 2008.04.07, 03:24PM —
you can prob do the movement something like this sorry I can't code you up something more usefull, as for loading the link above had some code.
function onPressed(){
imageNumber = this.imageNumber;
Tweener.Tween(allImageHolder,{_ximageNumber-0.5)*(imageWidth + gap),time:2,ease:'easeInOut'};
}
JLM 2008.04.08, 01:08AM —
Napalm
your trying to do something like this?
// ActionScript 1.0
border = 10
grid = createEmptyMovieClip( 'grid', 0 );
grid._x = border;
grid._y = 160;
slide = createEmptyMovieClip( 'slide', 1 );
slide._x = border;
slide._y = border;
d = 0;
g;
p;
gapS = 50;
s = 45;
gapL = 150;
l = 145;
c;
tot=9;
count = 0;
for( i = 0; i < 3; i++ )
{//_y
for( j = 0; j < 3; j++ )
{//_x
trace(i+' '+j);
g = grid.createEmptyMovieClip( 'g' + d, d );
g._x = gapS*i;
g._y = gapS*j;
p = slide.createEmptyMovieClip( 'p'+d, d++ );
p._x = count*gapL;
c = count*0x10;
sq( g, s, c );
sq( p, l, c );
g.count = count++;
g.onRelease=choose;
}
}
function choose()
{
count = this.count;
onEnterFrame = twen;
}
function twen( )
{
targ = border - count*gapL
slide._x+= ( targ - slide._x)/3;
}
function sq( m, d, c )
{
m.beginFill(0xF000a0-c,100);
m.lineTo( d, 0 );
m.lineTo( d, d );
m.lineTo( 0, d );
m.lineTo( 0, 0 );
m.endFill();
}
Napalm 2008.04.08, 04:28PM —
Actionscript 1, my long lost friend! Where have you been?
Thank you so much.... we've been offline the entire day - I'll try that out as soon as I get to the office tomorrow.
JLM 2008.04.08, 07:13PM —
if y want an as3 ver with tweens etc... but I thought this would be quicker to knock out the basic idea, that is my excuse for also omitting loading.
imageNumber-0.5)*(imageWidth + gap),time:2,ease:'easeInOut'};