PDA

View Full Version : Help with playing Quicktime in Flash



robin10
April 4th, 2005, 03:07 AM
Hi everyone, can someone help me out.

On my site I have thumbnails on the left which when clicked will show large size images on the right. The large images on the right are all invisible at first, they have this script -

onClipEvent (load) {
this._visible=0;
}

This is the script for the thumbnails -

on (press) {
_root.LARGEPIC._visible=1;
}

I also have two imported quicktime files. The problem is that they play as soon as the flash site loads but are invisible because of the script on top - and so when the corresponding thumbnail is pressed the quicktime movie becomes visible but it is already playing and so it doesn't play from the begining of it.

What script can I give either the thumbnail or quicktime movie clip so that it not only becomes visible when the thumbnail is pressed but also only starts playing when the thumbnail is pressed.

I'm sorry if I've gone into too much details, but I'm a beginner so I can't tell if all these things are obvious or need to be said. Any help will be greatly appreciated, thanks!

Robin

Blackspirit
April 4th, 2005, 03:30 AM
Havent played with quicktime movies in flash much, but if they have the same behaviours as movieclips.
Have you tried to put this.stop(); in the load part?

robin10
April 4th, 2005, 04:19 AM
Hi Blacksmith,

thanks it did the part of stopping the quicktime on the first frame. So now the script for the quicktime is this -

onClipEvent (load) {
this._visible=0;
stop();
}


Now can you help me with the script which will start playing the quicktime once the thumbnail is pressed?

on press, play (movieclip) ??? something like that, I don't know exactly how to put it in script language.

Robin

Blackspirit
April 4th, 2005, 04:41 AM
sure,



on (press) {
_root.LARGEPIC._visible=1;
_root.LARGEPIC.play();
}


Basically you just have to target the right timeline to tell it to play or stop. I assumed LARGEPIC was the name of the movie :)

robin10
April 4th, 2005, 06:10 AM
Wow, that was easy, thanks alot Blacksmith, I really appreciate it. :}

I have to tweak it all now but I know the basic principle. If I have more questions later on I hope you'll be around. nice site by the way.

Robin

robin10
April 4th, 2005, 06:25 AM
nice site by the way.

Robin

oops I didn'te realize it was a free blog site :huh: