So, I'm taking this ridiculously absurd class, where the teacher expects us to create an interactive CD-ROM using Flash, its pretty just a website on a CD (which is stupid in and of itself)... without even showing us how to use Flash really. He just slapped up some scripts and told us to do it.
Anyway, I need some help trying to figure things out. Our teacher gave us an example .
FLA file to help us and this is what he had in an Actions layer on the "Main" screen (of the screens on the left) of the Flash Form Application. (SplashScreen, ColorKey, Lighting... etc are the names of the screens underneath "Main"...)
Quote:
function showScreen(screenName:String):Void{
SplashScreen.visible=false;
ColorKey.visible=screenName=="ColorKey";
this.ColorKey.Page2.visible=screenName=="Page2";
Lighting.visible=screenName=="Lighting";
Sets.visible=screenName=="Sets";
Credits.visible=screenName=="Credits";
}
|
Then he has component buttons on the main page with a script that takes you to the other screens...
Quote:
on (click){
_parent.showScreen("ColorKey");
}
|
So, when it came time to doing my own, I thought I could put the "on (click){ ..." script on Button symbols from images that I imported. I kept on getting error messages on this and figured out that this code doesn't work on Buttons, but only on Components.
So I guess my question is... how do I create a button that, when you click it, it takes you to another Screen. Also, I need help making the button change when you rollover it.
I know this is all really simple and easy, but I'm in a time crunch, and the Flash Help, doesnt seem to be very 'helpful'. Any and all help is greatly appreciated.