View Full Version : Strech menu
This menu was first created by Den Ivanov. I merely updated his code, which was Flash 4 I believe, and therefore very hard to read, not to mention customize.
I added a crappy tween effect just to demonstrate how to do it :P
gonzales
12-28-2004, 06:24 PM
awesome!
thanks a lot pom.
Good stuff man :hugegrin:
Coppertop
01-11-2005, 05:46 PM
funky.
ramo_integ
01-20-2005, 03:04 AM
hey nice menu...how would i make it link to my external swf????
It's in the code. In the onPress part :)
Hey dude, can you post a swf/fla as well, for those of us who are stuck behind the school's unzicapable macs ?
cheerio
the other frogman
ramo_integ
01-20-2005, 02:50 PM
i see the onpress part but it says but_pressed=0 .... how can i set it to go to a specific url for each button?? i dont see that at all..can someone post that section with the code ??
iloveitaly
01-22-2005, 09:54 AM
Hey dude, can you post a swf/fla as well, for those of us who are stuck behind the school's unzicapable macs ?
cheerio
the other frogman
Its in zip format... Macs open zip format natively...
ramo_integ
01-28-2005, 03:04 AM
i still cant figure out how to make this link to my swfs???? can someone please post the section with the code added to it so can see exactly what i need to put in????
i've been trying to figure it out but i cant ..please help!
ramo_integ
01-28-2005, 02:59 PM
?anyone?
SlowRoasted
01-28-2005, 05:17 PM
sweet man, i love that effect;)
?anyone?You were right, it wasn't in the code, sorry about that: _mc.onRollOut = _mc.onDragOut = function () {
but_pressed = 0 ;
this.gotoAndPlay("back") ;
} ;
_mc.onPress = function () {
trace ("There") ;
} ;
// ...
ramo_integ
01-29-2005, 12:13 PM
thanks...but that's still not clear to me....that doesnt seem to tell which one of the buttons has been pressed..and how would i get it to open my swf's in a container?
starfarm
02-26-2007, 07:59 AM
Hey Pom
This is great!! But could anybody help me how to load the content from xml??
I tried to do this:
texts = ["About me", "Portfolio", "Pom rocks", "Contact me", "Hello World"] ;
I replaced this array with an array created from my xmldoc, so it looks like this:
texts = head[i];
I know it it wrong, because my comp. ****s up...but I don't know what's wrong
Anybody??
gonzolo
02-26-2007, 02:19 PM
try this ;)
texts = head.childNodes[i]
Sharp161
03-20-2007, 08:34 PM
I love this effect but also wld like to know how to load external swf into each container instead of just text? Is that possible?
Lujerker
03-25-2007, 12:04 PM
Nice. :D
chrisclick
03-25-2007, 04:34 PM
^ this was posted in 2004
I have not heard of pom since...
hybrid101
03-26-2007, 06:42 AM
^same, old thread, good code, no pom anywhere. last activity, 10/12/06
Sharp161
03-26-2007, 09:50 PM
Ah didnt realise this was so old. I found it usin search.
Any chance any of of you guys can help me? still dying to know how to load external swf's into it really wanna use this for a uni project and only have a few days left :(
terryjippo
03-29-2007, 11:58 AM
Sharp161, I've uploaded a fix so that it loads external swfs into each menu item, using the name of the title, e.g. About will load About.swf. Hope this helps.
The files you need are: http://www.billyfrost.plus.com/kirupa/stretch-menu-external-swfs.zip
Sharp161
03-29-2007, 03:32 PM
Ahh thats brilliant thank you so much. Realy apreciate it :)
1 more question tho..
When i changed the size of the cell on mouse over from 90 to a greater value instead of just extending the cell size it also stretches the text and the swf inside the cell. Is there a way to stop this so the swf stays the same size?
terryjippo
03-30-2007, 06:44 AM
Basically the external swf 'loadinto' movieclip sits within the menu item instance ('p'), and the scaling actionscript therefore will affect everything within that movieclip.
I've come up with a workaround -I've put the 'loadinto' mc into another movieclip named 'rescaler' (within the 'p' mc), and then re-set the width value to 'lowscale', which is the start width. You can play around with this to suit your needs.
www.billyfrost.plus.com/kirupa/strech_menu_bfv2.zip (http://www.billyfrost.plus.com/kirupa/strech_menu_bfv2.zip)
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.