Macromedia Flash Server - Trying to toggle a component

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > May 2005 > Trying to toggle a component





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Trying to toggle a component
Dave Williams

2005-05-20, 5:45 pm

Hi there..

My head is obviously not clear as I can't seem to simply turn off my
AVPresence component with one button and toggle it back on with an
additional button. Can anyone point me in the right direction?

- First Button action code
//Toggle AV off
on (release) {
setProperty(av1_fc,_visible,false);
setProperty(vidbac_mc,_visible,false);
FCAVPresence.av1_fc.av.close();
}

- Second Button action code
//Toggle AV on
on (release) {
setProperty(av1_fc,_visible,true);
setProperty(vidbac_mc,_visible,true);
FCAVPresence.av1_fc.av.connect(FCSimpleConnect.scmain_mc.users.main_nc);
}

thanks for any assistance...
cheers... dave
--

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Stefan Richter

2005-05-20, 5:45 pm

What happens when you try this code? Does it not hide the AV comp or what?



-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Dave Williams
Sent: Friday, May 20, 2005 9:19 PM
To: FlashComm Mailing List
Subject: [FlashComm] Trying to toggle a component

Hi there..

My head is obviously not clear as I can't seem to simply turn off my
AVPresence component with one button and toggle it back on with an
additional button. Can anyone point me in the right direction?

- First Button action code
//Toggle AV off
on (release) {
setProperty(av1_fc,_visible,false);
setProperty(vidbac_mc,_visible,false);
FCAVPresence.av1_fc.av.close();
}

- Second Button action code
//Toggle AV on
on (release) {
setProperty(av1_fc,_visible,true);
setProperty(vidbac_mc,_visible,true);
FCAVPresence.av1_fc.av.connect(FCSimpleConnect.scmain_mc.users.main_nc);
}

thanks for any assistance...
cheers... dave
--

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Dave Williams

2005-05-20, 5:45 pm

Hi Stefan..

Thanks for the interest.

1) the av1_fc component is only hidden for the local client and not
all users connected. 2) the webcam connected to av1_fc is still
publishing and the video stream is seen by all other users regardless
whether the component is hidden or not

cheers... dave

At 9:32 PM +0100 5/20/05, Stefan Richter wrote:
>What happens when you try this code? Does it not hide the AV comp or what?
>
>
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Dave Williams
>Sent: Friday, May 20, 2005 9:19 PM
>To: FlashComm Mailing List
>Subject: [FlashComm] Trying to toggle a component
>
>Hi there..
>
>My head is obviously not clear as I can't seem to simply turn off my
>AVPresence component with one button and toggle it back on with an
>additional button. Can anyone point me in the right direction?
>
>- First Button action code
>//Toggle AV off
>on (release) {
>setProperty(av1_fc,_visible,false);
>setProperty(vidbac_mc,_visible,false);
>FCAVPresence.av1_fc.av.close();
>}
>
>- Second Button action code
>//Toggle AV on
>on (release) {
>setProperty(av1_fc,_visible,true);
>setProperty(vidbac_mc,_visible,true);
>FCAVPresence.av1_fc.av.connect(FCSimpleConnect.scmain_mc.users.main_nc);
>}
>
>thanks for any assistance...
>cheers... dave
>--


--
------------------------------------------------------------
Dave Williams -- Dir. Business Development @ ConferenceVillage.com
905/849-7469
Seeing is believing... Video conference with me in our Conversation
Center at http://www.vLinkLive.com/live.html

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Stefan Richter

2005-05-20, 5:45 pm

Try something like

//Toggle AV off
on (release) {
_root.av1_fc._visible = false;
_root.vidbac_mc._visible = false;
FCAVPresence.av1_fc.av.close();
}



Stefan




-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Dave Williams
Sent: Friday, May 20, 2005 9:57 PM
To: FlashComm Mailing List
Subject: RE: [FlashComm] Trying to toggle a component

Hi Stefan..

Thanks for the interest.

1) the av1_fc component is only hidden for the local client and not all
users connected. 2) the webcam connected to av1_fc is still publishing and
the video stream is seen by all other users regardless whether the component
is hidden or not

cheers... dave

At 9:32 PM +0100 5/20/05, Stefan Richter wrote:
>What happens when you try this code? Does it not hide the AV comp or what?
>
>
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Dave
>Williams
>Sent: Friday, May 20, 2005 9:19 PM
>To: FlashComm Mailing List
>Subject: [FlashComm] Trying to toggle a component
>
>Hi there..
>
>My head is obviously not clear as I can't seem to simply turn off my
>AVPresence component with one button and toggle it back on with an
>additional button. Can anyone point me in the right direction?
>
>- First Button action code
>//Toggle AV off
>on (release) {
>setProperty(av1_fc,_visible,false);
>setProperty(vidbac_mc,_visible,false);
>FCAVPresence.av1_fc.av.close();
>}
>
>- Second Button action code
>//Toggle AV on
>on (release) {
>setProperty(av1_fc,_visible,true);
>setProperty(vidbac_mc,_visible,true);
>FCAVPresence.av1_fc.av.connect(FCSimpleConnect.scmain_mc.users.main_nc)
>;
>}
>
>thanks for any assistance...
>cheers... dave
>--


--
------------------------------------------------------------
Dave Williams -- Dir. Business Development @ ConferenceVillage.com
905/849-7469
Seeing is believing... Video conference with me in our Conversation Center
at http://www.vLinkLive.com/live.html

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Dave Williams

2005-05-20, 5:45 pm

Sorry...

Adding the _root reference didn't make a difference. The component
becomes invisible only for the local client and the video stream is
still being published to the other connected users.

Any other thoughts?

....dave

At 10:04 PM +0100 5/20/05, Stefan Richter wrote:
>Try something like
>
>//Toggle AV off
>on (release) {
> _root.av1_fc._visible = false;
> _root.vidbac_mc._visible = false;
> FCAVPresence.av1_fc.av.close();
>}
>
>
>
>Stefan
>
>
>
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Dave Williams
>Sent: Friday, May 20, 2005 9:57 PM
>To: FlashComm Mailing List
>Subject: RE: [FlashComm] Trying to toggle a component
>
>Hi Stefan..
>
>Thanks for the interest.
>
>1) the av1_fc component is only hidden for the local client and not all
>users connected. 2) the webcam connected to av1_fc is still publishing and
>the video stream is seen by all other users regardless whether the component
>is hidden or not
>
>cheers... dave
>
>At 9:32 PM +0100 5/20/05, Stefan Richter wrote:
>
>--
>------------------------------------------------------------
>Dave Williams -- Dir. Business Development @ ConferenceVillage.com
> 905/849-7469
>Seeing is believing... Video conference with me in our Conversation Center
>at http://www.vLinkLive.com/live.html
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm



--
------------------------------------------------------------
Dave Williams -- Dir. Business Development @ ConferenceVillage.com
905/849-7469
Seeing is believing... Video conference with me in our Conversation
Center at http://www.vLinkLive.com/live.html

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Matthew B. Simpson

2005-05-20, 5:45 pm

Just a guess...

onRelease = function() {
_root.av1_fc._visible = false;
_root.vidbac_mc._visible = false;
FCAVPresence.av1_fc.av.stopPublish();
};

HTH

MS


-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org]On Behalf Of Dave
Williams
Sent: Friday, May 20, 2005 5:25 PM
To: FlashComm Mailing List
Subject: RE: [FlashComm] Trying to toggle a component


Sorry...

Adding the _root reference didn't make a difference. The component
becomes invisible only for the local client and the video stream is
still being published to the other connected users.

Any other thoughts?

....dave

At 10:04 PM +0100 5/20/05, Stefan Richter wrote:
>Try something like
>
>//Toggle AV off
>on (release) {
> _root.av1_fc._visible = false;
> _root.vidbac_mc._visible = false;
> FCAVPresence.av1_fc.av.close();
>}
>
>
>
>Stefan
>
>
>
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Dave Williams
>Sent: Friday, May 20, 2005 9:57 PM
>To: FlashComm Mailing List
>Subject: RE: [FlashComm] Trying to toggle a component
>
>Hi Stefan..
>
>Thanks for the interest.
>
>1) the av1_fc component is only hidden for the local client and not all
>users connected. 2) the webcam connected to av1_fc is still publishing and
>the video stream is seen by all other users regardless whether the

component
>is hidden or not
>
>cheers... dave
>
>At 9:32 PM +0100 5/20/05, Stefan Richter wrote:
>
>--
>------------------------------------------------------------
>Dave Williams -- Dir. Business Development @ ConferenceVillage.com
> 905/849-7469
>Seeing is believing... Video conference with me in our Conversation Center
>at http://www.vLinkLive.com/live.html
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm



--
------------------------------------------------------------
Dave Williams -- Dir. Business Development @ ConferenceVillage.com
905/849-7469
Seeing is believing... Video conference with me in our Conversation
Center at http://www.vLinkLive.com/live.html

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm




=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Dave Williams

2005-05-21, 5:45 pm

Thanks for the input but it didn't make a difference :-( I can't
seem to develop the logic to stop the publishing the video stream nor
make the component invisible to the other users who are connected.

cheers... dave

At 5:47 PM -0400 5/20/05, Matthew B. Simpson wrote:
>Just a guess...
>
>onRelease = function() {
> _root.av1_fc._visible = false;
> _root.vidbac_mc._visible = false;
> FCAVPresence.av1_fc.av.stopPublish();
>};
>
>HTH
>
>MS
>
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org]On Behalf Of Dave
>Williams
>Sent: Friday, May 20, 2005 5:25 PM
>To: FlashComm Mailing List
>Subject: RE: [FlashComm] Trying to toggle a component
>
>
>Sorry...
>
>Adding the _root reference didn't make a difference. The component
>becomes invisible only for the local client and the video stream is
>still being published to the other connected users.
>
>Any other thoughts?
>
>...dave
>
>At 10:04 PM +0100 5/20/05, Stefan Richter wrote:
>component
>
>
>--
>------------------------------------------------------------
>Dave Williams -- Dir. Business Development @ ConferenceVillage.com
> 905/849-7469
>Seeing is believing... Video conference with me in our Conversation
>Center at http://www.vLinkLive.com/live.html
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm



--
------------------------------------------------------------
Dave Williams -- Dir. Business Development @ ConferenceVillage.com
905/849-7469
Seeing is believing... Video conference with me in our Conversation
Center at http://www.vLinkLive.com/live.html

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com