Groups | Blog | Home
all groups > macromedia flash sitedesign > july 2004 >

macromedia flash sitedesign : i know how to explain it, but dunno what it is


sharcx
7/14/2004 11:42:33 PM
Hi.
I'm trying to create a site that lists titles/names of images on the left hand
site of my movie, and when one of the links/titles is clicked on, the
respective image appears in a specific area on the right. Being fairly new to
Flash though, I don't know exactly what this method is called/where to look/how
to start .. .I'm assuming that I've to create a region of some sort where the
image will load or something like that? But how do I tell/communicate with that
area for the images to load etc. .. . Can anyone give me a hint/point me to a
tutorial/tell me what it's called so I can try this? Please please please
please please?
frustratedandconfused
7/15/2004 1:16:02 AM
what I would do is have your list on the right be a bunch of buttons and then
have a movieclip that contains all the images, one in each frame, and then each
button will use tellTarget() to make the mocieclip go to whatever specific
frame the desired picture is on.
J formerly private news
7/15/2004 11:25:26 AM
telltarget is depreciated and is an old method I would not follow this
method !

the buttons part is right. or you can make the buttons movie clips also,
whichever

use myButton.onRelease=function(){
//display or load functions here
}

there are many ways to achieve this and it all depends on the file sizes, to
prevent the flash movie being huge you can load the images when required, it
might be an idea to include a simple preloader this can be done by either
adding the preloader to the image by making it a swf with two frames in its
own right, or through a function loop that plays till the data has
completed. I would go with the first option as its simpler for now, you can
redefine it later.


if the images are small you can place them all on the stage in seperate
layers and set the behaviors to movie, clips

create a function that hides all the clips and then makes just the one you
require visible. something like below.

hideme=function(){
picture1_mc._visible=false;
picture2_mc._visible=false;
picture3_mc._visible=false;
}


myButton1.onRelease=function(){
hideme();
picture1_mc._visible=true;
}

myButton2.onRelease=function(){
hideme();
picture2_mc._visible=true;
}

theres loads of options here but I hope this helps

[quoted text, click to view]

AddThis Social Bookmark Button