PDA

View Full Version : photo gallery - .fla help?


jor133d
04-03-2004, 08:10 PM
Hello

I am looking for someone that can help a kid out! :) I am a newbie and would love it if someone could help me. Could someone take a look at my .fla? I am trying to make a mini photo gallery and not having very much luck. Could you take a look and see what is causing my photos to blink every 2 seconds and why the next button doesn't work? When you take a look at my .fla and if you could make it easier than how I am doing it, could you so me how to do that?

www.destreedesign.com/website.zip

Also I am looking for someone who could help me on a regular basis. My email is info@destreedesign.com. I could really use a teacher! :)

THANKS!!!!!!!!!

Ruben
04-04-2004, 10:46 AM
I kinda drowned in all of your fla's...Could you just describe what you're doing with leaving all the useless info aside or something?

About your second question...I doubt if there will be anyone that would agree with becoming your personal question-wall, that's what the forum is for...I actually think you will get a quicker answer on the forum than when you'd ask someone personally...

- Ruben

emergency_pants
04-05-2004, 10:55 AM
Friend,

Yeah... I see you need the photo.swf files because they are accessed my the main movie. I don't see anything wrong with them though. No problem there.

The script is attached to the 'photography' button:

function swfWait() {
loadMovie("photo1.swf", _root.p);
clearInterval(SW1);
}
SW1 = setInterval(swfWait, 2000);


that setInterval is not being cleared. It just repeats every 2 secs... which means your photo is being reloaded over and over again. You need to try and get the clearInterval to work. if you just use a straight...

loadMovie("photo1.swf", _root.p);

...that works fine, except there is no pause.

The 'next' button is not working properly because you have a line of script attached to it, that says:

unloadMovie(_root.pr);


There is no _root.pr movieClip (as far as I can see)... so I think it's unloading the root movie or something crazy. Taking that line out will make it work.

Hope that helps.

As for the personal question wall thing... just keep posting and we'll all help as best we can, I'm sure. Lengthy Q&A sessions can be time consuming.. especially if there are people at work! ;) Keep at it. it's working ok but it does need some tidying up, as I'm sure you already know... I guess it's always that way when you're trying stuff out.

I've never used the setInterval/ClearInterval to make movie pauses before, so I can't tell you how to get it to work better, but I can see that they're not being cleared very well... and that's where your problem is.

Good luck with it.