PDA

View Full Version : flyout menu


whiten2
06-20-2003, 03:22 PM
could some please guide me in the right direction please.

I have searched the site but unable to find so i'm sorry if this is rather a simple problem which i believe it is...

I have a swf (web) that has individual MCs on each frame of this swf that loads into a swf container..


As a navigation device for each MC(mb) (residing within this loaded swf (web)). i have a flyout menu that i want to hide away and show only when a user rolls over (rhs) an invisible button (this is in an MC also).

I have all this working well when rolling over and rolling out but
I'm tearing my hair out trying to move to the next frame of the MC(mb).

below is the code i have on the button but it wont work...

any ideas... i know this is simply....thanks...


//////
(on (rollOver) {
play();
}


on (press) {
with (_root.mb) {
nextFrame();
}
}

/////

Warrior
06-20-2003, 04:39 PM
Are you trying to target the Movie Clips that are inside the movie being loaded? If that's it then you need to call them by Framelable or Instance name,
on (release) {
_level1.MovieClip.gotoAndStop ("FrameLable");
}
// Or
on (release) {
_level1.MovieClip.MovieClipTwo.gotoAndStop ("FrameLable");
}
Is that what you wanted?

whiten2
06-20-2003, 05:34 PM
thanx warrior,

that was what i needed. though i have just tried this and it is not working?!!!damn...

this is the code i have used residing in the MC with the button with the attached code.

////////////////

on (release) {
_level1.mbMc.gotoAndStop ("mb02");
}

///////////


is level1 being the swf file loaded yes? I know that _root is the main time line so i under this. just a bit confused with loaded MC's and talking to each MC.

One other question is i also then want to slide the menu away once pressed.. can this be added to this code as well because i cant get the 2 functions to work properly..

thanx again..

Warrior
06-20-2003, 07:33 PM
ok, explain to me your problem step by step and I will try and help you :D

whiten2
06-20-2003, 10:02 PM
warrior. sorted it mate.

my problem was that my MCs weren't talking though have fixed this. simply as it was..

and my other problem has been solved as well... code below...

thanx mate for the advice earlier it put me in the right direction...

///


on (release) {
_root.load.mbMc.gotoAndStop ("mb02");
_root.load.mbMc.fwdScrn.play();
}

////

Warrior
06-20-2003, 10:09 PM
Did I really help you :D I thought I just confused you :p Nice to hear it. Now help me. What do those lines do,
_root.load.mbMc.gotoAndStop ("mb02");
_root.load.mbMc.fwdScrn.play();

whiten2
06-21-2003, 01:50 PM
warrior,

you were right, well i thought level 1 could be used to talk between MCs but this didn't work but got me on the right track. so i read into paths.. found that _parent should work. it didn't work either though it should of...

As my MC (external swf) is the parent of my child swf (menu flyout).

_root(is the main swf). load is my instance on the stage to load in external swf. and mbMC is my MC holding the slide show..


////
_root.load.mbMc.gotoAndStop ("mb02");

////
_root.load.mbMc.fwdScrn.play();

this is my path to move my fly in menu out....


hope this makes sense...