|
From: hellogarrett on 22 Apr 2008 15:05 Hi. I'm new to Action Script and to Flash CS3. I've successfully created a SWF file fading in texts and images etc. However, I've searched a lot of literature and can't find a brief overview of how to construct a navigational web site. Example: A menu with four or five items. Clicking on an item causes a different movie to play. It seems to me that I need to create, say, five movie - each the size of the stage. On a seoarate layer I need the menu (itself another SWF file?) which decides which movie to play. I'm well able to do this sort of stuff in C#, Microsoft Visual Web Developer, and even in older versions of Dreamwever but I'm at a loss here/ All I'm looking for really is an overview - bout one paragraph should do it! Regards, Garrett
From: Bob Pierce on 22 Apr 2008 16:45 There are so many answers! Take a look at the Language Ref for MovieClip.play method. This gives the example of a button causing a movieclip to play. So multiple buttons can play multiple mcs. You can author the mcs on separate layers in one .fla, in which case everything compiles to one .swf, or you can author each movie as a separate .fla and use the MovieClip.attachMovie method to load its .swf into your main movie. Or...
From: hellogarrett on 22 Apr 2008 17:11 Hi Bob, thanks for your answer. What I have now is a set of small movies (movie1.swf, .. movie3.swf) inported onto different layers. Three buttons on another layer - these are button symbols with nice colour changes on up,over,down etc. I have shifted the three movies so they start at Frame 2. At keyframe 1 for each movie I've added the action: stop(); In my actions layer I've defined 3 functions startMovie1()..3(), and added a listen event (for mouse click) to each button, caqlling the associated function. What startMovie1() does is gotoandstart(2) for movie1 and gotoandstop(1) for the other two movies. When I test the movie, I get no compiler errors, but clicking on a button does nothing (apart from colour changes). Any ideas? (have I given you enough info), and is this a valid way to go about things? Regards, Garrett
|
Pages: 1 Prev: Thumbprint Scanner with Flash Next: Confused about symbol scaling |