I would like to bring into the thread the idea of transitions in the external swf files that the xml menu loads in. at the moment it loads in my externals but i cant figure out how to make transitions work. I cant get a fade out animation - it just dissapears.
I will not go into any further details because in my zip i have included a more detailed info text file that explains things in more detail. In there also is a traditional fla/swf file so you can see how i want the transitions to work.
I hope you can find time to look into this problem hga77, if not perhaps someone like scotty might look into it?
Yeah i can do that already - but it doesnt seem possible in the xml version because actionscript can’t be placed on individual buttons which seems to be a major problem with it.
Thanks for the amazing menu!
If I were to have a really long name for a button, is it possible to have the text wrap to a second or third line, and the button grown in height to accommodate it?
Marley,
Find the place in the menu code that tells flash what to do when you push the button and rework it with the code from the transition tutorial. I don’t have it in front of me right now, so I don’t know exactly where it is in the code. It will take a little tweaking, but since it is the same action each time (all that changes is the currMovie value which you already have as the action in the xml), it shouldn’t be too bad.
-Joshua
Sticmann, there is so much code here and its very advanced. I looked through it all and can’t see anything that looks like button code - on release, on press type of code that I am used to. Its just too complex for me and needs an expert to look at it really.
I have contacted quite a lot of people who are quite advanced programmers and no one can work it out - i dont think it can be done, but what do I know
Cheers, if you get a chance and can look at it, that would be great.
I know hga would be able to do this much quicker and better than I would. I’m sure it can be done and it is a function I will need on the next site I’m building, so if hga doesn’t get to it, I will try.
-Joshua
Thanks for the help hga77. Do you think you can point me in the right direction? I only need to worry about long names under the submenu. I suppose I need to check for text wrap, then depending on how many lines of text there are, change the graphic height of the button? Sounds way simpler then it is, am I missing anything? Would I be able to put this in the code in frame 1 or would it have to go elsewhere? Or do I need to keep your basic concepts and dramatically change the code to make this happen?
fleuron, i dont know what the maximium text length you need! Cant you just strech the menu horizontally and keep the text on a single line? If not then upload a sample xml file so that I can see how big you need the text to be.
The problem here is that if you dynamically change the height of various buttons, then the menu animation/motion algorithum has to change. This is because at the moment all buttons have the same height and hence the code can calculate where the items destinations/targets are. Having different buttons with different heights adds a great deal of work…
Now if you look at the first item with the name “home”, we also have an action “Home.swf”. This is valid since we actually need to load in a home page.
But if you look at the second item with the name “Products & Services”, we also have an action “link 1”. This is not valid, since the menu will attempt to load in a file that doesnt even have an extenstion (eg. .swf, .jpg, etc). Plus we dont need to load in anything for this item (unless you need to that is, by specifying a correct swf, jpg, etc). So thats why if you click on the second item, you get a blank responce. So, it should be like this: