Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-26-2005, 08:25 AM   #1
cryptoboy
Registered User
 
Join Date: Nov 2004
Posts: 19
Default Changing icons (frame) in multiple swfs with localconnection

Hi,

I have a flash audioplayer that reads aloud the text on the pages ...there are often 2 or 3 flash films (swfs) on each page ...

Whenever the user clicks a player I want to make sure it stops all other sounds running before starting its own ... that can be accomplished with a simple stopAllSounds(); ... BUT it would also be nice to change the icon from playing (frame 2) to stopped (frame 1) in all the players that are put to silence ... How to do ?

This is a less than futile and feeble attempt ... do I need LocalConnection and how do you incorporate it in the as for the player ?
ActionScript Code:
function PlayTheSound(){     if (_global.Playing == false){         var lc = new LocalConnection();         lc.connect("button_network");         lc.send("button_network","StopTheSound");         _global.Snd.start((_global.SndPos/1000), false);         _global.Playing = true;         gotoAndStop("frmPlaying");     } } function StopTheSound(){     _global.SndPos = 0;     _global.Snd.stop();     _global.Playing = false;     gotoAndStop("frmPaused");

Last edited by CyanBlue; 01-26-2005 at 11:04 AM. Reason: AS tag is applied...
cryptoboy is offline   Reply With Quote
Old 01-27-2005, 07:36 AM   #2
cryptoboy
Registered User
 
Join Date: Nov 2004
Posts: 19
Default

noone ? :-(
cryptoboy is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:42 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.