PDA

View Full Version : conditional question



linque
October 24th, 2002, 11:49 PM
how would I go about showing a sequence of pics (maybe slide show).. the sequence of which (or group or folder or ????array..dunno what it would be) depends on a certain condition being met. that is.......if it's one thing show this group and if it's another show that group ??

thanks :)

upuaut
October 25th, 2002, 12:43 AM
That's tough. It would really depend upon what the code was for showing the pics in the first place. Probebly it's just an "if...else" statement.

ie

if(condition1==true){
picgroup="harmony";
}else{
picgroup="destiny";
}

linque
October 25th, 2002, 02:07 AM
yeah...i know.. I have no idea how to do that..wondered if anyone did or if it CAN be done.........

i suppose a bunch of pics could b all in one movieclip but that's a lot to load.......:-\

upuaut
October 25th, 2002, 02:08 AM
are you using Flash 5.0 or MX?

pom
October 25th, 2002, 10:51 AM
Why doesn't anybody read the sticky... :(

linque
October 25th, 2002, 11:16 AM
I'm using mx :)

Scootman
October 25th, 2002, 02:08 PM
you could probably do a series of movie clips and use telltarget... like say you got a group of 4 or somthin... they could be buttons within a movie clip... and when you click a button it will load more movie clips up... whatever pics you wanna show.. so all you would have to do is

on(press){
_root.movieClipWithPics.gotoAndStop(1);
}

thats just assuming you have all the pics on the first frame of a movie clip.. and from there if you wanted them to be buttons too you could do the same concept... like if you click one of them... it will go to a frame within the same movie clip with a full sized picture or somthing...

maybe i misunderstood... i think i just said more of a photo gallery but maybe you can access them with the same concept... like if your condition is met... then

_root.MovieClipWithPics.gotoAndStop(frameWithNewPi c);

lol sorry if i got this wrong... not sure i totally understand what you are trying to accomplish

andr.in
October 26th, 2002, 08:27 AM
lol ilyas!
I agree about the sticky!
They should read it before posting!
I mean everybody!
maybe make a new sticky: "Read the other sticky before posting" lol :) Just kidding :)

linque
October 26th, 2002, 11:26 AM
huh? I'm just trying to figure something out. I don't know what you mean by laughing about sticky's. If I'm missing something right in front of me please tell me.

pom
October 26th, 2002, 12:41 PM
We're not laughing about you, man, it's just that I posted a sticky thread called "Please read before posting" and nobody seems to read it...

pom :*(