Forums: Flash:

 

Flash menu

first
 

Napalm Flash menu

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.

Over the years I've come to realise my life is a Dilbert sketch
quote
 

JLM

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

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.

Over the years I've come to realise my life is a Dilbert sketch
quote
 

JLM

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,{_xfrownimageNumber-0.5)*(imageWidth + gap),time:2,ease:'easeInOut'};
}


 

JLM

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

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.

Over the years I've come to realise my life is a Dilbert sketch
quote
 

JLM

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.

 
first
 

Forums: Flash: Flash menu

 
New Post
 
You must be logged in to post