Professional :: Why Don't The Mp3 Volume Controls Work In Loaded Mc

Oct 15, 2010

I have an issue with an Mp3 player that I've built. The volume controls work fine in the original mp3 swf, but then when I load it into a movieclip in a different movieclip, it no longer works. I've tried the lockroot function, defining the sound class to "this". See the last function for the vol controls. Let me know if it's more convenient to get the original .flas, I can give a link to the source.
 
see my code below:
 
this._lockroot = true;
function getSound(url:String) {sound.stop();delete sound;sound = new Sound(this);sound.onLoad = function(success:Boolean) {

[Code]....

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Mp3 Volume Controls Not Working In Loaded Movieclip?

Oct 15, 2010

I've created an Mp3 player with dynamic sound controls. Everything works fine when tested in the swf, but when I load the mp3.swf into a separate movieclip in another swf, the volume control does not work.

I've tried setting the lockroot to true and it still does not work.

Here's the code:

slider_mc.onMouseMove = function() {
myPoint = new Object();
myPoint.x = this._x;
myPoint.y = this._y;

[Code].....

View 9 Replies

Professional :: Adding Volume Controls?

May 16, 2011

I've inserted an audio file into my flash movie and I wondered if there was an easy way to add some volume control and/or an on/off audio button to the movie? Or would this have to be scripted using actionscript?

View 2 Replies

ActionScript 3.0 :: Simple Volume Slider That Controls The Master Volume Of The Entire Swf?

Oct 6, 2009

does anyone have an example of a simple volume slider that controls the master volume of the entire swf?

View 1 Replies

Actionscript 3 :: Volume Controls - Volume On Or Off Through The Games?

Apr 12, 2012

I've got a serious of games which in turn load off a main main swf.I have mute and unmute buttons on the main menu and the same buttons in each game.When I unload/load a game I want the volume to stay as it is so they player doesn't have to keep turning the volume off. AudioOff is the button shown when the volume is off and AudioOn is the button shown when the volume is on.The code I've got now keeps the volume on or off through the games but the buttons aren't showing up correct with this code..

if (SoundVolume.volume == 1)
{
AudioOn.visible = false;[code].....

View 2 Replies

ActionScript 3.0 :: Different Examples Of Volume Controls For Videos?

Feb 14, 2012

I had seen different examples of volume controls for videos. I had built one that works, but the volume control is outside the main controller/Holder, so If I move the Holder the volume stays. I tried placing the volume controller inside the holder, but I loose the ability to drag and control the volume. here is the AS3 code I have.
 
Holder_mc is the main mc that will contain all other controllers.

[Code]...

View 3 Replies

ActionScript 3.0 :: Add A Mute Button To Container Swf That Controls Volume?

Nov 12, 2007

I have a swf that loads external swfs. I am trying to add a mute button to the container swf that controls the volume, so the user can mute and unmute the sound. However, I cannot figure out how to accomplish this. I cant get setVolume from AS2 to do the job. I have also tried SoundTransform.volume=0 and that didnt work.

View 13 Replies

ActionScript 3.0 :: Add A Sound File To Project With Controls To Stop And Play And Volume Slider

Dec 6, 2009

I'm new to Actionscripting and I want to add a sound file to my project with controls to stop and play and a volume slider. I'm using this actionscript for the controls. It works but right now you need to click the play button for it to start. Is there a different way to write it so that the music starts playing when the scene starts, and then the user can stop or play it again and change the volume?[code]

View 3 Replies

C# :: Create A Slider On Desktop To Access Some Of The Controls Of The YouTube Video Player Like Volume - Pause - Play - Playback Speed?

May 7, 2010

Is there any way I can create a slider on my desktop to access some of the controls of the YouTube Video player like volume, pause, play, playback speed? I know it is a flash player, but would this involve accessing the YouTube API or something else? For example, I'd like to program something similar to what's provided by the Enounce MySpeed application (control over play back speed).

View 1 Replies

Professional :: Loaded External Swf Does Not Work Properly?

Oct 13, 2010

I'm trying to create universal loader of flash games on one entertainment site. What I want is to make some kind of container (SWF A) which will load another flash to it (SWF B) (by some params).
 
SWF B could be anything - AS1 / AS2 or AS3 flash. SWF A is programmed with AS3. Problem is that not all SWF games, which I try to load, works fine. Some games lost their click events, some games does not load at all, some games are corrupted. When I run that games separately (not using my loader), games work just fine. Why is this happening? Why some flash games are not working properly after loading by another flash?
 
I'm using Loader object to handle this, without any special settings - same as on examples on AS3 Bible book...

View 9 Replies

Flash - Fl.controls.Slider Hand Cursor Won't Work

Sep 1, 2011

I'm using the fl.controls.Slider class and I can't get it to show a hand cursor when hovering over it. Here's my code.

import fl.controls.Slider;
var slider : Slider = new Slider();
slider.x = 100;
slider.y = 100;

View 2 Replies

Actionscript 3 :: Fl.controls.UIScrollBar - Setting ScrollPosition Does Not Work?

Mar 20, 2012

I have a scroll bar ( fl.controls.UIScrollBar ), which i create dynamically in a class, and add it to the stage.

[Code]...

View 1 Replies

ActionScript 3.0 :: Can't Get The Volume And Balance Sliders To Work Right

Sep 27, 2008

So i am working on a widget and I cant seem to get the volume and balance sliders to work right. Can someone take a look at my code and see if you know what going wrong. The web address of the widget is [URL] . The only slider that works is the first one for now. Till i figure out why this one wont work. and the action script is below.

View 6 Replies

Flash :: Setting Volume Does Not Work On One Of Computers?

May 23, 2011

I am using this code to set the volume of my Flash video.

public function setVolume(loudness:Number):void
{
// soundControl is a SoundTransform object

[code].....

View 1 Replies

ActionScript 3.0 :: Mp3 Player Volume Control Doesn't Work

Jul 10, 2009

I built this mp3 player from a tutorial.But the volume control doesn't work, and suddenly the player doesn't want to play the music.[code]

View 1 Replies

ActionScript 2.0 :: Volume Slider Won't Work Since Changed Audio To Streaming?

Jun 20, 2010

it worked fine when i had the audio within the swf.slider:

slider_1.onPress = function(){
this.startDrag(true, groove_1._x -8, groove_1._y, groove_1._x -78, groove_1._y);
}
slider_1.onRelease = function(){

[code]....

i thought that in this method i had named the sound object foffMusic (streaming the file ftomm.mp3). the sound plays fine but ive gone through alot of trial and error and trawled every forum for the solution bu i can't get it to work!

View 3 Replies

[Flash8 AS2] Script A Button That Controls A Loaded Clip?

Apr 23, 2009

trying to get the swf to load and it was somthing so simple I was missing- if I can avoid the hours of frustration this time that would be great. I'd appreciate it if someone showed me how to create a basic button that will act on the contents of a loaded swf...

View 4 Replies

FLV Playback Controls Missing When Loaded To HTML Page

Apr 27, 2006

I used the new FLVPlayback component to progressively download a flv video. When I test the movie locally it works fine, but when I embed the flash into a html page then upload all the materials (html, main swf, flv video and skin swf) the video plays but the playback controls are missing.

View 5 Replies

Flash 8 :: IDE - Add Video Player Controls To Externally Loaded SWF?

Nov 1, 2010

I'm have a flash movie where I let the viewer push a button to load an external SWF-which in itself is a video I converted to SWF. Once it loads via an empty movie clip into the main flash movie how can I add video player controls such as volume on the lower part of the stage of the main movie to control the externally loaded SWF?

View 1 Replies

ActionScript 2.0 :: Volume Slider Set To Maximum When Loaded?

Oct 23, 2007

I've followed the tutorial [URL] What I would need to do to the Action Script (below) in order to have it so the volume (slider) is set to max when loaded. So the music starts loud instead of muted.

this.ratio = 0;
dragger.onPress = function() {
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function() {
ratio = Math.round(this._x*100/line._width);
_root.volume = ratio;
};};
dragger.onRelease = dragger.onreleaseOutside=stopDrag;

View 6 Replies

ActionScript 2.0 :: Manage To Work On / Of Music Button With Simple Volume Slider

Nov 24, 2005

I have made small site:[URL] But I can manage to work my on/oof music button with my slider. Can somebody give me the most simple codes for this? I have already song inside the project, so it doesn't need to be loaded from the web. I have try everything, but nothing. I manage to turn on/off music, but to slide it... noup...

View 2 Replies

ActionScript 2.0 :: Map Zoom Controls - Lines Becomes Wrong When Loaded Into Another Movie?

May 5, 2005

so ive got this map that zooms and pans around. it works on its own but wont pan once it is loaded into another movie. what about these lines becomes wrong when loaded into another movie? the pan controls are in an MC inside the MC there is this code:

[Code]....

View 8 Replies

ActionScript 2.0 :: [FMX] Play And Stop Controls For Dynamically Loaded Movie

Mar 31, 2004

i got a swf, which i've dynamically loaded into an mc called pitch_mc . After loading it want flash to stop the file from automatically playing, then have play and stop buttons that trigger the movie.

I can load movies fine, but i havent used transport buttons yet :S

View 5 Replies

ActionScript 2.0 :: [FMX] Play And Stop Controls For Dynamically Loaded Movie?

Mar 31, 2004

i got a swf, which i've dynamically loaded into an mc called pitch_mc . After loading it want flash to stop the file from automatically playing, then have play and stop buttons that trigger the movie.

View 5 Replies

Actionscript 3.0 :: Buttons Inside External Files Wich Controls Its Timeline Doesn't Work

Apr 11, 2010

i'm loading an external swf files in one but the buttons inside the external files wich controls its timeline doesn't work, i'm using AS3 but why it doesn't work.The external file just has some simple actions to move between keyframes in the timeline with buttons goto and some other similar actions

View 4 Replies

ActionScript 2.0 :: Auto Volume Down Of A Loaded Movie File

Aug 3, 2009

I have an mp3 player called "juke.swf" that loads into my root and plays music form an XML file. I have another movie that loads called "scene-3.swf that holds a small gallery of movies". is there any way to make "scene-1.swf" auto-mute or turn down the volume of "juke.swf" when it loads, Then auto turn it back up after I click to another movie?

View 3 Replies

ActionScript 2.0 :: Auto Volume Down Of A Loaded Movie File?

Apr 26, 2011

I have an mp3 player called "juke.swf" that loads into my root and plays music form an XML file. I have another movie that loads called "scene-3.swf that holds a small gallery of movies". is there any way to make "scene-1.swf" auto-mute or turn down the volume of "juke.swf" when it loads, Then auto turn it back up after I click to another movie?

View 3 Replies

ActionScript 2.0 :: 2 Player Game Moving Cars Controls Help With Controls

Nov 13, 2005

i have the controls for car number 1 that would be the arrow keys if [code]but how can i make controls for car 2.i wann use wasd but i cant figure out how the key.a doesnt work.

View 1 Replies

Professional :: HOW To Import Fl.controls

Apr 1, 2011

i'm a newbie to AS3.0. i type this into the first frame actions :"import fl.controls.*;" and an error occurs:"Scene 1, Layer 'Layer 1', Frame 1, Line 1 1172: Definition fl.controls could not be found.".Ironically, i open a new file from template Media Playback>Advanced Photo Album and the fourth line of code in first frame of actions is:"import fl.controls.*;

View 6 Replies

Professional :: Add Controls To Webpage Video?

Mar 5, 2011

I'm new to Flash and I'm pretty sure this a dumb question that has been asked many times - but go easy on me as I have searched and searched through and just can't find the answer.

I've created my first animation using a set of digital Jpeg photos and I've figured out the code for inserting this into my web page. It works perfectly and I'm very impressed with the quality of the animation and how small the file is. Now I want to add a simple control bar underneath with Stop, Play, Rewind - the usual stuff you get on YouTube, but I can't for the life of me figure out how to do it.

View 15 Replies







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