PDA

View Full Version : Pages Within A Page?


vrk10
12-09-2009, 04:45 AM
You'll have to forgive me -- I am working on my first ever Flash project (a simple portfolio for my Computer Applications class), but we have not been taught much about coding. Instead we have been fed pre-made codes and asked to self-instruct and manipulate given codes. Unfortunately I'm not picking up on it as easily as I'd like to. So bear with me. :)

---------------------------------------------------------------------------

Here's what I have so far. (http://www.tc.umn.edu/~kraus350/vkraus3.swf) I have created rollover buttons and have attempted to link to a new page.

Now here's what I'm going for...

This is the home page (http://www.tc.umn.edu/~kraus350/home.pdf).
Additionally, if you click "Home," it will clear other pages that may be visible from clicking the other buttons ("About" and/or "Gallery.")

When you click "Gallery," a black gallery box will appear with 4 sublinks in it (http://www.tc.umn.edu/~kraus350/gallery.pdf). When you click each sublink, a preview image of the work will appear in the gallery box. The Gallery will remain visible until you click the "Gallery" button again to hide it or click "Home" to return to a blank screen (as I mentioned when describing the Home page).

When you click "About," a mini bio will slide down (http://www.tc.umn.edu/~kraus350/about.pdf) from the original navigation box, and will disappear upon clicking "About" or "Home."

---------------------------------------------------------------------------

I have a lot of questions concerning this project, but my first: are any of my desires impossible (such as the sliding effect of the "About" page, or having multiple pages visible and able to be taken out and put away at any point)... As you can see in my current working draft of my website, I incorrectly coded the Gallery box. It disappears when you hover off of the "Gallery" button, when I want it to stay visible until "Gallery" is re-clicked, or "Home" is clicked.

Here's the code I have so far:
stop();
//---Gallery Page---\\

gallery_btn.addEventListener(MouseEvent.CLICK, gClick);
gallery_btn.addEventListener(MouseEvent.MOUSE_OUT, gOut);

function gClick(event:MouseEvent):void{
gotoAndStop("getGallery");
}
function gOut(event:MouseEvent):void{
gotoAndStop(1);
}

Also, all of my files (Illustrator file (http://www.tc.umn.edu/~kraus350/site2.ai), Flash file (http://www.tc.umn.edu/~kraus350/vkraus3.fla)) are located on my directory (http://www.tc.umn.edu/~kraus350/), so if you want to access them to understand what I've got going, that's possible.

I sincerely appreciate any help I receive on this. I have been working for 10 hours straight trying to teach myself, but I'm just not understanding it very well, and the deadline is soon approaching. Thank you in advance, and feel free to ask questions, as I'm sure I provided confusing explanations.