;

PDA

Click to See Complete Forum and Search --> : [RESOLVED] Parts Of UI Components Lingering Onscreen...


seanógs
05-08-2008, 01:09 PM
Hi everyone,

I'm doing a college project than contains a lot of video content (streamed externally in flv format) and I have a lot of nested swf's loading into my parent swf using the loadVars method. For my video controls I have UI components (playPause button, volume bar and seek bar), which I've taken from the readymade Flash components and customised to suit the design of my site.

Now here's my problem...the nested swf's that contain the video content have a second scene which contains a little animation controlled by some buttons (a digital pitch-pipe for tuning a bass guitar). A button links to this second scene but for some reason when it goes to the second scene the slider arrows on the seek bar and volume bar (the customised UI components for the video) linger onscreen even when the rest of the scene has been cleared. It's very strange because the UI components and video only exist on one frame of the first scene and yet they remain onscreen even when scene 2 is playing.

The problems really arise when you link back to scene one and the UI components load again and you get 2 sliders for both the volume and seek bar controls!

Any suggestions would be greatly appreciated, thanks.

seanógs
05-09-2008, 07:51 PM
I've managed to resolve this problem using some simple Actionscript. I have both a seek bar and a volume slider which are applied to an flv component called 'peaches_FLVPlybk', to get rid of them completely when I skip to another scene I used the following Actionscript and it worked:

peaches_FLVPlybk.volumeBar._parent.handle_mc.remov eMovieClip();
peaches_FLVPlybk.seekBar._parent.handle_mc.removeM ovieClip();

This problem really wrecked my head so I hope this solution here might help a few other people who might be pulling their hair out!