Groups | Blog | Home
all groups > flash actionscript > august 2006 >

flash actionscript : FLVPlayback issues


kazbb
8/31/2006 9:16:47 PM
Hi,


I'm building an expandable flash banner that plays video clips. You rollover
a static image to open out a larger playback area. With this area I have an
FLVPlayback window that i'm loading different clips into using a menu of
buttons. There is also the option to close the banner to the smaller size again
then reopen it later. This works fine all apart from the handles on the seekbar
and volume bar remain on screen each time it closes, (it gets quite messy after
a while!). The bars are custom UI components sat on the main timeline.

Can any one tell me how i can unload these handles when i click close on the
banner?!

Also, how do you change the registation point of the FLVplayback window. My
movie clips are all different dimension and i'd like them to be centered within
the player space, currently if i use FLVPlayback._x = 200; this sets the
distance from the left egde of my flv clip to be 200 as the registation point
is top left corner. I need this to be the distance from the centre of the flv
clip.

Many thanks in advance to any kind souls out who can help!! :)
akira36
10/31/2006 8:54:15 PM
Hi kazbb,

Put this script on your FLVPLayback component instance:
-----------------------------------------------------------------------
onClipEvent(unload){
removeMovieClip(_parent.seekHandle);
removeMovieClip(_parent.volumeHandle);
}
-----------------------------------------------------------------------

Then click through your FLV UI components, until you locate the movie clip for
each handle. They are both located on the second frame of each UI component.
Name each of these clips: 'seekHandle' and 'volumeHandle' respectively. Make
sure that your put a blank keyframe to unload your FLVPLayback instance, after
your video window closes. This will force your SWF to unload the FLVPlayback
component briefly.

Sorry, don't know about the registration point stuff.
AddThis Social Bookmark Button