snowggirl
03-28-2006, 07:51 AM
Ok, let's see if I can explain my problem... I'm working in Flash8 and have intermediate experience of actionscript i.e. I understand most code when I see it but can't always figure out how to write it myself from scratch .
I have a menue on the main timeline with say four buttons, "Show", "Food", "Date" and "Contact" adressing frame labels with corresponding names on frame 10, 20, 30 and 40 resp. This basic thing I can do.
Now - I,m in the "show section" of the timeline (frame 1–10). When I press the "Food"btn for example, I want to "close" what was in the "show section" with a mask, fade or what ever so the sceen is black again before jumping to the adressed Food frame label. I get that I can adress another frame label on say frame 8 and "close" from there and on the last frame in the "show section" put a gotoAndPlay to my Food frame label.
What I can't figure out is how to tell the "Food"-btn I was in the "show section" and therefore goto and play frame 8 and not 28 (which would close the date section).
And in the last frame of every section - how do I tell what button was pressed and thus what frame label to go to?
I suppose I should use if statements and toogle this or that = true or something like that but I can't put it together and make it work! :confused:
Has anyone seen a good tutorial on this or could someone please provide a small piece of code as an example.
That would be great!
Snowgirl
I have a menue on the main timeline with say four buttons, "Show", "Food", "Date" and "Contact" adressing frame labels with corresponding names on frame 10, 20, 30 and 40 resp. This basic thing I can do.
Now - I,m in the "show section" of the timeline (frame 1–10). When I press the "Food"btn for example, I want to "close" what was in the "show section" with a mask, fade or what ever so the sceen is black again before jumping to the adressed Food frame label. I get that I can adress another frame label on say frame 8 and "close" from there and on the last frame in the "show section" put a gotoAndPlay to my Food frame label.
What I can't figure out is how to tell the "Food"-btn I was in the "show section" and therefore goto and play frame 8 and not 28 (which would close the date section).
And in the last frame of every section - how do I tell what button was pressed and thus what frame label to go to?
I suppose I should use if statements and toogle this or that = true or something like that but I can't put it together and make it work! :confused:
Has anyone seen a good tutorial on this or could someone please provide a small piece of code as an example.
That would be great!
Snowgirl