RE: [Flashcoders] Remove / Hide a video component
Further to my last problem, I am also having a problem removing a custom UI seekbar. It seems that once the SeekBar instance has been associated with the FLVPlayback instance, it will remain on screen even when I try to set its visibility to false. I am using the Flash 8 FLVPlayback Component and the FLV Playback Custom UI SeekBar I associate the two as follows: my_FLVPlybk.seekBar = mySeekBar; The seekbar functions correctly. However if I navigate to a different section that has no video, the seekbar remains on screen despite the fact I call this code: if (Section_Data[currentSectionIndex].videoClip == none) { trace (Hide Video Elements); video_bg._visible = false; play_btn._visible = false; pause_btn._visible = false; mySeekBar._visible = false; my_FLVPlybk._visible = false; my_FLVPlybk.stop(); } All the other elements are hiding correctly. My feeling is it has something to do with the fact I am only hiding and stopping the actual video. However I have not found out any other way of removing the video apart from this way. Setting the contentPath= gave me an error. Any help much appreciated! Thanks Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven Sent: 30 January 2007 18:28 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Remove / Hide a video component Thanks - yeah you are right, I was mistaken that the video was still there as I had a black overlay movie clip the same size as the video on a higher layer. However I notice that even when the video component is not visible, the video still plays - so if a user navigates to a section with no video, I can still hear the video playing. I guess I could just stop the video, but I wondered if there is a better solution. Thanks Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mick G Sent: 30 January 2007 18:07 To: Flashcoders mailing list Subject: Re: [Flashcoders] Remove / Hide a video component I just did a quick test and dragged a component on stage and set myvid._visible = false; and it seemed to hide the component just fine Failing that you could always change it's x or y position to somewhere off stage like myvid._x = -1000 On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote: I have a flash 8 movie that is composed of 60 sections and hence there are 60 labels. Some of these sections include a video clip playing and I have used the Flash 8 FLVPlybk component. What I would like to do is have this on stage in the correct position and then hide or remove it for sections that do not have an associated video clip. I have tried the following with no joy where my_FLVPlybk is the instance name: my_FLVPlybk._visible = false; my_FLVPlybk.contentPath = ; I would appreciate any advice on how to remove the video for sections that do not have video. For sections that do have a video I am setting the content path as follows: my_FLVPlybk.contentPath = media/video/1_0.flv; Thanks in advance Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Remove / Hide a video component
I have a flash 8 movie that is composed of 60 sections and hence there are 60 labels. Some of these sections include a video clip playing and I have used the Flash 8 FLVPlybk component. What I would like to do is have this on stage in the correct position and then hide or remove it for sections that do not have an associated video clip. I have tried the following with no joy where my_FLVPlybk is the instance name: my_FLVPlybk._visible = false; my_FLVPlybk.contentPath = ; I would appreciate any advice on how to remove the video for sections that do not have video. For sections that do have a video I am setting the content path as follows: my_FLVPlybk.contentPath = media/video/1_0.flv; Thanks in advance Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Remove / Hide a video component
I just did a quick test and dragged a component on stage and set myvid._visible = false; and it seemed to hide the component just fine Failing that you could always change it's x or y position to somewhere off stage like myvid._x = -1000 On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote: I have a flash 8 movie that is composed of 60 sections and hence there are 60 labels. Some of these sections include a video clip playing and I have used the Flash 8 FLVPlybk component. What I would like to do is have this on stage in the correct position and then hide or remove it for sections that do not have an associated video clip. I have tried the following with no joy where my_FLVPlybk is the instance name: my_FLVPlybk._visible = false; my_FLVPlybk.contentPath = ; I would appreciate any advice on how to remove the video for sections that do not have video. For sections that do have a video I am setting the content path as follows: my_FLVPlybk.contentPath = media/video/1_0.flv; Thanks in advance Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Remove / Hide a video component
Thanks - yeah you are right, I was mistaken that the video was still there as I had a black overlay movie clip the same size as the video on a higher layer. However I notice that even when the video component is not visible, the video still plays - so if a user navigates to a section with no video, I can still hear the video playing. I guess I could just stop the video, but I wondered if there is a better solution. Thanks Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mick G Sent: 30 January 2007 18:07 To: Flashcoders mailing list Subject: Re: [Flashcoders] Remove / Hide a video component I just did a quick test and dragged a component on stage and set myvid._visible = false; and it seemed to hide the component just fine Failing that you could always change it's x or y position to somewhere off stage like myvid._x = -1000 On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote: I have a flash 8 movie that is composed of 60 sections and hence there are 60 labels. Some of these sections include a video clip playing and I have used the Flash 8 FLVPlybk component. What I would like to do is have this on stage in the correct position and then hide or remove it for sections that do not have an associated video clip. I have tried the following with no joy where my_FLVPlybk is the instance name: my_FLVPlybk._visible = false; my_FLVPlybk.contentPath = ; I would appreciate any advice on how to remove the video for sections that do not have video. For sections that do have a video I am setting the content path as follows: my_FLVPlybk.contentPath = media/video/1_0.flv; Thanks in advance Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com