ActionScript 3.0 :: Controlling The Sound Of The External Loaded SWF?

Aug 18, 2009

I  have a Loader that loads external SWF. The external SWF has sound. I'd like to stop, pause and play the sound.

[Code]...

This only mute the sound only and the sound is still runnung.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Controlling Sound In Loaded SWF

Apr 26, 2004

I have a button on my main scene which creates the varaiable "soundoff", then if one of the placed swf's when loaded detect the variable it stops all sounds,

if(soundoff == true){
stopAllSounds();

This works fine but does not target sounds placed in movieclips in the loaded swf's timeline. I've tried targeting them with the _root. command and using linkage but I can only stop the sound in the main timeline level.

View 2 Replies

ActionScript 3.0 :: Controlling Sound Of Externally Loaded Swf?

Feb 5, 2011

how to assign a volume control component available in the video components library to an externally loaded swf once it's loaded into my main flash movie? I want to feature the volume control at the bottom of my main flash so that when you click a button to load the swf that volume control will be able to start controlling it's volume. Also, I want to be able to load several swfs and once each one is loaded--only one playing at any given time--into the main flash that same volume control can control them. Is this possible and, if so, how do I do it?I'm using CS5.

View 1 Replies

Professional :: Controlling Sound Of An External SWF?

Jan 11, 2011

I'm trynig to control an sound of a external SWF but I can't seem to get it right,here is the code i'm using to import the sound
 
mport flash.media.Sound;import flash.net.URLRequest;import flash.display.Sprite;import flash.media.SoundChannel;import flash.events.Event;import flash.events.MouseEvent;var _som1:Sound;var _channel1:SoundChannel;var _playing1:Boolean = false;var[code]...

View 16 Replies

ActionScript 3.0 :: Controlling Sound Of An External SWF?

Jan 10, 2011

I'm making an application and I can't seem to find a way to control my sound of an external SWF(SWF2) from the main one(SWF1).Here is the code I'm using to control the timeline of external SWF that is placed inside of the main movie

Code:
var loadAnimBox:Loader = new Loader();
var vid_mc:MovieClip;
function startLoading():void {

[code]....

View 2 Replies

ActionScript 3.0 :: Controlling External Mp3 Sound Clips With Keyboard Commands?

Aug 28, 2011

I'm trying to control my mp3 sound clips with keyboard commands and have managed to get this to work with internal sound clips:

//************************************************** *************
var note2:b = new b();
btn2.addEventListener(MouseEvent.MOUSE_DOWN,playNo te2);
function playNote2(event:Event){

[code]....

View 3 Replies

ActionScript 2.0 :: Controlling External Loaded SWF With Buttons

Nov 23, 2009

Can we control the external loaded swf with buttons created on another swf. Let me simplify this: I have one swf in which I have created one small timeline animation and the second swf has the buttons to play and stop the animation.

Now I load this 2 swf in my main file and want to control the animation through that buttons.

View 1 Replies

ActionScript 2.0 :: Controlling External Swfs Loaded Into An MC

Mar 23, 2005

what actionscript could i use to make an movies loaded into a movieclip play. tried _root.holderMC.play(); holderMC being the movieclip the external swf is loaded into, doesn't seem to work! searched the internet too but no lucky

View 2 Replies

ActionScript 2.0 :: Controlling External Swfs Loaded Into An MC?

Mar 23, 2005

what actionscript could i use to make an movies loaded into a movieclip play. tried _root.holderMC.play(); holderMC being the movieclip the external swf is loaded into, doesn't seem to work! searched the internet too but no lucky

View 2 Replies

ActionScript 2.0 :: Controlling Font Style From External Loaded .txt File?

Aug 1, 2005

I have an externally loaded .txt file, which has its font style set by the dynamic text object I created. But I was wondering if its possible to control the font style from within the .txt file? I've tried setting the dynamic text object to render as HTML and added some HTML code in the .txt file, but that doesn't work.

View 2 Replies

ActionScript 3.0 :: Stop A Sound In Loaded External SWF?

Dec 29, 2009

I'm loading an external swf file that has some sounds in it (to the main swf). The swf contents never leave the movie but it does get pushed to the site when it's not in view.

The user can bring it back in view by pressing on a left/right button. So when it's not in view... or tweening out of view I need the sounds to stop.

Since the loaded swf is never unloaded, what should I look at to accomplish this... communicating with the loaded swf, etc?

View 5 Replies

ActionScript 2.0 :: Loaded External Sound Control Panel

Oct 12, 2004

I've got a main flash index file (fla_main.swf) which acts as a header/menu that concurrent pulls in external movies (ie, content pages) when sections are selected. There's no problem with that at all, but I do have a soundtrack control panel that is an external mov loaded in (soundctrl01.swf). There's 3 music tracks and options to stop, start, next track etc. All the usual stuff, vars loaded by "loop01.new Sound();" etc and played/stopped with the var instances. Anyway, the mov starts with loop01 playing and then allows the option to skip etc, working fine on publishing but when the fla_main loads it in theres no sound on any loops. Is this an issue with loading sound vars and external movies?

View 5 Replies

ActionScript 2.0 :: Control External Loaded Swf Sound (on Timeline) Properties?

Feb 13, 2009

Is it possible that we can control external loaded swf sound (on timeline) properties.

E.g:
duration
position
onComplete....etc?

View 0 Replies

ActionScript 2.0 :: Controlong Sound In Loaded External FLV-s In Embedded Video?

Mar 12, 2011

In Flash MX 2004 Pro. I have embedded the video in which needs to load several external FLV files. These are the problem: In my main file I have a sound object (music) and then load the video when I reduce the volume of the music of the main file to 0 that the louder the sound from FLV videos. The problem is that when the music died down to 0 to mute the sound with FLV videos to 0.How to separate audio from FLV videos from sound of music and how to separately control the volume loaded FLV file?This is the code that I use:

my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);

[code].....

View 1 Replies

ActionScript 1/2 :: Controlling Only A Single Sound?

Sep 20, 2009

I used a template from a flash template website but I just realized that the background control was written to control all sounds, now all the video sound and seperate sounds objects stop when I click on this one button. This is the code below that I found on the button. There are others also.
 
[Code].....

View 11 Replies

ActionScript 1/2 :: Controlling Linked Sound From Another Swf?

Mar 10, 2010

I have a child SWF with a linked sound that I want to control from the mother SWF. In the child SWF there are different linked sounds in separat frames. The "Control system" is in the mother SWF.

View 8 Replies

Controlling Sound Objects Across Scenes

Nov 14, 2007

I'm doing a project that I have to use scenes in, I have a sound object that i want to be able to control in all scenes. I set up global variables for the sound object and a boolean to check if the sounds currently playing like this :
PHP Code:
_global.sound1= new Sound();
_global.sound1.attachSound("song");
_global.soundplaying = 0;

In each scene I have two buttons a stop and a play button, Heres my code for play:
PHP Code:
if(!_global.soundplaying){
_global.sound1.start();
_global.soundplaying = 1;
}

And stop:
PHP Code:
_global.stewielaugh.stop();
_global.soundplaying = 0; 
Doesn't seem to work, if I press play in scene one and go to scene 2 and then return to scene one the sound can be played again on top of the already playing sound object.

View 2 Replies

ActionScript 2.0 :: Controlling Sound In A Different _level

Apr 8, 2005

I have a loaded SWF file in _level1 that has audio in the timeline. I am trying to control the volume of this loaded SWF with a 'mute' button in the main SWF file. On the first frame I'm using the code:

my_sound = new Sound(_level1);
and then on the button script I have:
mute_btn.onPress = function(){
my_sound.setVolue(0);//mute volume
}

but it's not working. Is the new Sound(_level1) not valid?

View 1 Replies

ActionScript 2.0 :: Controlling Sound From Within A Movieclip

Sep 4, 2005

I am having trouble controlling sound instance on the main timeline from with a movieclip.

On the main timeline contains the following code:
root.createEmptyMovieClip("beat_mc", 100);
beat = new Sound("beat_mc");

[Code]....

The main timeline will render the sound at the volume 10 value. However, I anticipated the volume to be set at a 100 from the Jukebox's controller.

It would seem logical that the jukebox code should respond to the instance "beat", but it doesn't.

View 5 Replies

ActionScript 2.0 :: Round 2 Of Controlling Sound?

Jul 23, 2006

I now changed my movie up to where a "empty movie clip" is created that plays songs on maintime of movie. However, I still want to have a tab where it says "sound controls" be automated so that when users roll over it, it slides in and shows controls for sounds instead of them always being present. This roll over effect is the simple AS:

Code:
soundtab.onRollOver = over;
soundtab.onRollOut = out;

[code].....

View 2 Replies

ActionScript 2.0 :: Controlling Sound From Other Levels?

Apr 27, 2009

I now have my sound clip working in a container swf (level0).. Can I control this sound clip from other levels that have been loaded into level 1 from the container swf?Would it be something like

PHP Code:
_level0.mysound.setVolume(30);

If so, where do I name the music 'mysound'? I have simply dragged the music into the main timeline. Would it be better if I loaded it externally?

View 3 Replies

ActionScript 2.0 :: Controlling MULTI Flv's - No Sound

Apr 22, 2012

On my Main SWF i have a Flv that has no sound

[Code]...

When i play the Main SWF the volume is 0 which is good, But when i click on the button to load the 2nd SWF the sound comes on for both FLV's when i want the 1st FLV to stay at 0 volume and the 2nd FLV to play with sound at 100.

View 1 Replies

ActionScript 2.0 :: Controlling Sound Loops?

Oct 1, 2002

I am trying to create a movie that has 3 different background sound loops for the user to choose from as well as an on/off button.I followed one of the Kirupa tutorials which enabled me to create 3 different buttons that linked to the 3 sound loops in my library. The problem is that I don't know the actionscript required to stop whatever clip is playing and play the newly selected background sound chosen by the user.Also I am trying to have one of the loops playing when the movie starts as a default, and also to have a mute button

View 1 Replies

ActionScript 2.0 :: Controlling Sound In A Different _level?

Apr 8, 2005

I have a loaded SWF file in _level1 that has audio in the timeline. I am trying to control the volume of this loaded SWF with a 'mute' button in the main SWF file. On the first frame I'm using the code:

my_sound = new Sound(_level1);
and then on the button script I have:
mute_btn.onPress = function(){
my_sound.setVolue(0);//mute volume
}

but it's not working. Is the new Sound(_level1) not valid?

View 1 Replies

ActionScript 2.0 :: [MX] - Controlling Sound Of FLV Files

Nov 21, 2002

I've am trying to create a sound control to control the sound of an imported FLV file. The problem is like this. I recorded a video using a video camera and than using the iMovie, I've converted the movie to QuickTime format. Than I use Sorenson Squeeze for Flash MX to compress the video. I manage to compress the files into FLV format and than imported it to my Flash file. Now I want to add a sound control to the movie to control the volume.

View 2 Replies

ActionScript 2.0 :: Sound Visualizations - Dynamically Read The Sound Levels Of A Loaded MP3

Jan 14, 2005

Does anyone know of a way to dynamically read the sound levels of a loaded MP3 to help produce dynamic sound visualization in Flash?

View 5 Replies

ActionScript 3.0 :: Controlling Sound From A Separate Class

Apr 7, 2009

Is it possible to start and stop a sound file from a separate class? In the first class, "House", I have called the MP3 using the following:

[Code]....

View 1 Replies

ActionScript 3.0 :: Controlling Volume Of Sound On The Timeline?

Aug 23, 2009

i've discovered that the only way to sync loops adequately in flash is to put them together on the timeline.

is there any way to change the volume of each layer with actionscript? i'd like to dynamically mix between loops.

View 4 Replies

Actionscript :: Flex Controlling Application Sound?

Aug 16, 2010

I have a flex application in which multiple sound files are used in various parts of the application. Can i have a single sound handler, which will take care of volume control fo the entire application at once. How can i do that

View 2 Replies

ActionScript 3.0 :: Looping Sound And Controlling Playback?

Feb 1, 2009

I'm new to Actionscript and also new here. I've seen a lot of posts on this topic here and elsewhere, but forgive me, as I am having a hard time getting my particular Actionscript to work.

My goal is to have an external mp3 start playing by default, then continuously loop back to the beginning and play each time it reaches its end. All the while, I need to be able to play and pause the mp3 with buttons.So far, I believe I have everything working correctly EXCEPT for getting the sound to loop while retaining the functionality of my buttons.

[Code]...

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved