Hi,
I have created video clips using swish video and added them as large images in the gallery setup, using jpegs for the thumbnails. Works great except for moving from one clip (image) to the next. If the clip isn't finished before moving forward, the last audio continues to play as the new clip starts.
How can I stop the audio of the previous clip when clicking forward to the next clip? It occurs in the slide show as well, but I'm likely to take out that function as the clips are of all different lengths.
A very nice gallery by the way.
Dennis
Using Video Clips
Started by dennism, May 26 2008 05:23 AM
5 replies to this topic
#1
Posted 26 May 2008 - 05:23 AM
#2
Posted 26 May 2008 - 09:06 AM
...I don't have this particular template but if you are using the "load movie" option to load your clip into a "container" sprite/movieclip you will have to incorporate an "unload" action in each of the other thumbs to unload the movies before in all other sprites/movieclips before you load a new video...eg
on (release) {
container4.unloadMovie();
container3.unloadMovie();
container2.unloadMovie();
container1.loadMovie("video1.swf");
}
wolf
on (release) {
container4.unloadMovie();
container3.unloadMovie();
container2.unloadMovie();
container1.loadMovie("video1.swf");
}
wolf
#3
Posted 28 May 2008 - 06:15 AM
Wolf Gross, on May 25 2008, 07:06 PM, said:
...I don't have this particular template but if you are using the "load movie" option to load your clip into a "container" sprite/movieclip you will have to incorporate an "unload" action in each of the other thumbs to unload the movies before in all other sprites/movieclips before you load a new video...eg
on (release) {
container4.unloadMovie();
container3.unloadMovie();
container2.unloadMovie();
container1.loadMovie("video1.swf");
}
wolf
on (release) {
container4.unloadMovie();
container3.unloadMovie();
container2.unloadMovie();
container1.loadMovie("video1.swf");
}
wolf
Thanks for the response Wolf, but as a newbie, a bit over my head, given I'm not sure where to look in the code for something like this. Is it ok fro me to post the code here? There is a LoadImage section and also a Hit Pad section. But nothing that is exactly what you have above.
#4
Posted 28 May 2008 - 10:24 AM
...don't post the swi here - see - Posting Swishsite working files in Forum - but I suppose you can post here the coding for the "Hit Pad".
wolf
wolf
#5
Posted 28 May 2008 - 12:12 PM
yeah that won't do much Wolf 
I really stepped away from controlling the video from with in the gallery because if I make sweeping changes they may effect different videos. I know how SWiSH video 2-3 build their swf so I can offer advice on that.
We need to stop() the loaded video that loads onto the largeimageholder_#.imageHolder mc. This need to work on the last large image and from what I can see the best place is at the start of the duplicate largeHolder mc. Ok follow these steps:
1. Open the gallery73.swi in SWiSH max2.
2. on the section mc in the top onLoad() (in Max2 its onSelfEvent(load) ) and place this near the var current_id:
This will store the last id used.
3. On the largeHolder in the frame event handler onFrame(3) we need to place this code at the start:
4. Now we neeed to place the recording of last_id. This step will need be place in:
rect.rect_high.rect_inner.hitpad
rect.rect1.rect_inner.hitpad
rect.rect_low.rect_inner.hitpad
Place this code right after the conditional statement on the button event:
Leave all the rest there, it is just that line refering to the last_id you need to add. Repeat this on all the hitpads.
Now I don't have the time to test this all but it should work, by stopping the frame head on the loaded video SWF. If you are using a FLV then on the largeImage mc you will need different method.
Does this work and help?
E
I really stepped away from controlling the video from with in the gallery because if I make sweeping changes they may effect different videos. I know how SWiSH video 2-3 build their swf so I can offer advice on that.
We need to stop() the loaded video that loads onto the largeimageholder_#.imageHolder mc. This need to work on the last large image and from what I can see the best place is at the start of the duplicate largeHolder mc. Ok follow these steps:
1. Open the gallery73.swi in SWiSH max2.
2. on the section mc in the top onLoad() (in Max2 its onSelfEvent(load) ) and place this near the var current_id:
var last_id = 0;
This will store the last id used.
3. On the largeHolder in the frame event handler onFrame(3) we need to place this code at the start:
onFrame(3){
if ( _parent.last_id != 0){
last_large = _parent["largeimageholder_"+ (_parent.last_id) ];
last_large.imageHolder.stop();
}
4. Now we neeed to place the recording of last_id. This step will need be place in:
rect.rect_high.rect_inner.hitpad
rect.rect1.rect_inner.hitpad
rect.rect_low.rect_inner.hitpad
Place this code right after the conditional statement on the button event:
onSelfEvent (release) {
if (!_parent._parent._parent._parent.playing &&_parent._parent._parent.loadLarge != false ) {
_parent._parent._parent._parent.last_id = _parent._parent._parent._parent.current_id;
Leave all the rest there, it is just that line refering to the last_id you need to add. Repeat this on all the hitpads.
Now I don't have the time to test this all but it should work, by stopping the frame head on the loaded video SWF. If you are using a FLV then on the largeImage mc you will need different method.
Does this work and help?
E
Learn! Ask! Breath...
#6
Posted 29 May 2008 - 10:22 PM
Thank you very much for your help, but this did not seem to do the trick. I'm pretty certain I followed your instructions correctly, copying and pasting exaclty the code you gave (very good instructions by the way). I am not using FLV. Any other ideas? This just seems like a wonderful menu system for offering various videos.
Dennis
Dennis
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users













