Hi, I’m currently working on a floating Flash menu system for a company’s website that’s located here http://www.thermpaksystems.co.uk/index_2.html
You can see the current state of the menu, which is basically empty with one dummy link on the first menu item. Now my problem is with creating menu items. For each of the parent menu items, there is a movieclip, and when you roll over these movieclips, the (Kirupa learned!) actionscript in the first frame of each movieclip is this:
[SIZE=1]
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
[SIZE=2]This plays the movieclip for about 10 frames and shows the tweening animation which pops out the submenu items. Now the first menu “home” is okay because theres only 1 item and so I just add an this.onRelease function into the code in the first frame of the movieclip.
My problem arose when I tried to create multiple menu items in the second menu. I thought it would be as simple as placing a couple of buttons or action scripted movieclips in frame 10 and then using an event handler to get whatever URL I want for that particular menu item. However, probably because of the above tweening code, none of the buttons or rollover movieclips within this movieclip actually react to any event handlers or mouse movement. If I put a button in, none of the rollover states are recognised, or if I try and create another movieclip inside this one using the same code as above inside of IT to have a sub-rollover animation, the sub-movieclip never actually plays.
I can’t upload the fla file here because of the size limit, but if anyone can help me I can provide it on my own webspace.
[/SIZE]
[/SIZE]I hope this is just a rookie problem that I’m encountering now because I’ve learnt Flash coding in such a haphazard and patchy way, so please help!