PDA

View Full Version : "Frame-set"


hinarei
05-29-2003, 08:13 AM
Hello!

This is my first post, but I'm not sure how simple it is or anything.

I have been using Flash for about five days, so am not really sure how to use a lot of it yet, but I was after a way to set up a sort of frames-based web page in Flash.

I'm trying to set up a web page with internal links down the left-hand side, and make the center/main "window" display all content when a link is clicked.

Is there a method for doing this in ActionScript, or am I better off doing this in pain HTML? I'd just like to know if it could be done, is all.

hinarei

pellepiano
05-29-2003, 11:14 AM
This is a common technique in Flash sites. usually you load external swf files into a empty movieclip that is placed on the main swf's stage.

If you have a emprty movieclip called containerMC you can load external swf's into it with

containerMC.loadMovie("myExternal.swf");

The upper left corner of the external swf will place itself in the center point of the empty MC.

pellepiano
05-29-2003, 11:15 AM
..and Welcome here!

hinarei
05-29-2003, 12:45 PM
Thanks for the welcome!! :)

So if I load external swfs, I can set up the empty clip to be the main part of the window - makes sense!

Would this work so that if I clicked a button, a HTML page could come up? Or does this have to be done with geturl (I've tried to setup buttons, but the output always says it can only be set on button objects - I'm sure I've set them up as buttons)?

pellepiano
05-29-2003, 01:54 PM
There is no html involved, as Flash does not understand it, other than textrelated things like links text color and stuff like that.
And no getURL...you use the action I showed in the last post to load external swf files.

onRelease actions can only be set on buttons, like.....

on(release){
containerMC.loadMovie("myExternal.swf");
}