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


Similar Posts:


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

Get An Mp3 File To Auto-play When I Open A Flash Movie On My Computer?

Jul 31, 2009

How do I get an mp3 file to auto-play when I open a Flash movie on my computer? I presume it is actionscript but I am not sure what the code is.

View 2 Replies

IDE :: Creating Auto-scroll Text That Was Loaded From An External Text File?

Mar 13, 2003

I like to know an easy way to create a text autoscroll (vertical) that worked when the text was loaded from another text file. it can use for news/site update. see the attachment.

View 14 Replies

ActionScript 2.0 :: Add One To The File That Is Loaded Into The Main Movie Main Movie That Is Loading The File?

Aug 3, 2003

using the command:

loadMovie(_root.section, _root.content);how would i work in a preloader bar?? add one to the file that is loaded into the main movie or on my main movie that is loading the file?

View 1 Replies

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

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 :: 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

Flash Movie (SWF File) Not Loaded

Jun 2, 2011

I've built a site at [URL]. I'm getting a white panel where a flash swf should be loading. I'm using Dreamweaver to place the flash movie in a template for the pages.

View 1 Replies

ActionScript 2.0 :: Controlling First Movie Out Of Loaded SWF File

Jan 23, 2005

I load a movieclip via:
on(release){
loadMovieNum("detection.swf", 1);
}
So I load it in my current timeline on level 1. Now in the detection.swf is a button that has to control the first movie. (that loaded the swf)

I tried:
on(release){
_level0_root.nextScene();
}
Which did not work. Referencing via _root.nextScene() also, because the loaded swf has its own _root. So how can I control the first movie out of the loaded one?

View 1 Replies

ActionScript 2.0 :: Loaded Image Auto Fit The Mc

Aug 26, 2009

img_mc.loadMove("xxx.jpg",0); i want the pic auto fit to img_mc width an height how can i do using as2??

View 1 Replies

ActionScript 2.0 :: Loaded Image Auto-fit The Mc?

Aug 25, 2009

img_mc.loadMove("xxx.jpg",0);

i want the pic auto fit to img_mc width an height

how can i do using as2??

View 2 Replies

ActionScript 2.0 :: Loading A Video File From Within A Loaded Movie?

Jan 29, 2007

I've set up a test file and I'm having problems loading a video file from within a loaded movie.I have 3 files - "base.swf". This loads a swf - "LoadVideo.swf" into level 10

Code:
loadMovieNum("Files/videoFiles/LoadVideo.swf",10);
This, ("LoadVideo.swf"), has a button with the code

[code].....

View 1 Replies

ActionScript 2.0 :: Playing Sound File When Movie Loaded

Aug 5, 2004

I have a problem with sounds in this movie. I have a sounds file that I would like to play as soon as the movie is loaded, but I dont want it to stream because I want to loop it and I want it to be done with AS. I saw a Tutorial where the sound would load as soon as the movie started but it wouldn't play until the play button was pressed. I want the song to play as soon as the sound is loaded. The Tutorial is Creating a Volume Control Silder. [URL]

View 5 Replies

Flash - Auto-resize Of Loader And Loaded SWF?

Jun 10, 2011

is there a way to set the loaded SWF's height and width to always use 100% of the Loader's height and width? pretty much like when you're embedding a swf to an HTML page... I know that you can do this by setting the width and height of the Loader on every stage resize, but is there another way wherein you can just specify height and width is 100% and then loaded SWF will automatically resize according to stage and Loader's current dimensions?

try loaded a SWF file which has coordinates based listeners and it seems that the loaded SWF doesn't reposition its listeners correctly even if the stage is already resized... take this swf for example [URL] i tried using an SWFLoader in flex which scales the content and also a normal AS3 flash.display.Loader and it seems that both fails to reposition the listeners correctly.

View 2 Replies

ActionScript 2.0 :: Preloader : Start Movie When HALF The File Is Loaded?

Feb 3, 2009

I'm creating a movie with heavy animation and audio in Flash CS4. I have a preloader that I purchased from flash den.com and I believe it's pre set to begin the movie when the total file is done loading. But I want the movie to begin when half the total .swf file is loaded. Here is my code on frame 1

FRAME 1:

var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
preloader._width = amountLoaded * 250;
loadText.text = Math.round(amountLoaded * 100) + "%";

[code]...

View 3 Replies

ActionScript 3.0 :: Loaded Image Auto Change Its Size To Fit A Mc?

Aug 25, 2009

mc.loadMovie("01img.jpg",0);

i use a mc load a pic i want the pic can auto fit the mc's width and heigth

View 6 Replies

ActionScript 3.0 :: Photo Gallery - Externally Loaded SWF Auto Fit To Window

Nov 15, 2010

I have a flash site with 10 different tabs/sections with a stage size of 1200 x 1372. The final tab of the site contains a photo gallery, which I would like to have a different stage size and just fit the browser screen as it loads an external SWF which auto fits to the screen. At the moment, it auto fits the stage size meaning the bottom half of the photos don't show. How I can just alter the last page?

View 1 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

Flash :: Volume Slider - Volume Doesn't Change Until Mouse Over?

Nov 21, 2009

I've created a small music player with a sliding volume control. I'm having trouble with the volume. Though it does control volume properly, if I set the initial volume to less than 100%, the volume always starts at 100% until I move my mouse over the player. At that point, the volume changes to whatever the initial volume is set to.Is this a flash bug, or am I missing something? Here is the affected code (code for other buttons/functions omitted for brevity):

var song_initvolume:Number = 100;
slider_1._x = groove_1._x + song_initvolume;
playSong(0,song_play);[code]....

I'd like to be able to set the volume at say 50%, but the above mentioned behavior happens each time.

View 2 Replies

Flash :: Reverse Sound Volume Math For Volume Slider?

Feb 1, 2010

I'm building a video player and am kinda stuck at the volume slider part. It's a YouTube style vertical slider, meaning if the slider is in the top position volume should be 100% and if the slider is dragged to the bottom position sound should be 0. Currently it's doing the opposite of what I want :(

Dragging the slider down will make the sound louder, while dragging up lowers it.

Here is my code below dealing with the volume slider.

[Code]....

The (-4) is an offset value so when you drag it all the way to turn it off, it's 0 and not 4. I need to reverse this somehow, so the traces above will swap... going down will make userVolume = 4 and going up will make it 30.

View 4 Replies

ActionScript 3.0 :: MP3 Loading Into Movie With Low Volume

Feb 22, 2010

I have this rather large movie file that I'm working on and unfortunately the mp3s that I'm loading into the movie are all at a very low volume. So I'm using the below code to raise my volume but I'm anticipating on having about 25 instances and I need to create, I believe, either an array or a class that "calls" the idea/objective behind code below.

Code:
var channel:SoundChannel = new SoundChannel();
var volumeControl:SoundTransform = new SoundTransform();
volumeControl.volume = 4;
var audioURL:URLRequest = new URLRequest("Scary Stories To Tell In The Dark/01 The Big Toe George S. Irving.mp3");
var bigToe:Sound = new Sound(audioURL);
channel = bigToe.play();
channel.soundTransform = volumeControl;

View 14 Replies

ActionScript 3.0 :: Control The Volume Of All Sounds In The Movie?

Jan 22, 2009

I need to control the volume of all sounds in the movie even if they were in the timeline so they do not have an instance name,by AS3.0 code?

View 5 Replies

ActionScript 2.0 :: Manage The Volume Of A Complete Movie

Oct 25, 2006

Is there any way to manage the volume of a complete movie. I mean, a sentence that applies to all sounds playing and sounds that are not playing yet. I'm trying to manage some sounds that must be inserted on the timeline in stream mode. I must can set all sounds to volume zero without stopping them. They have to keep running. I know that if I call the sounds by actionscript without inserting them on the timeline is easy to do. but this time I just have to use it this way.

View 1 Replies

ActionScript 3.0 :: Mp3 File In Main Timeline - Change Its Volume?

Nov 23, 2010

I Have  one Mp3 file in main timeline. how to change volume

View 1 Replies

Lower Sound File Volume During Video Play?

Jun 4, 2011

I have a Flash CS4 project with sound that starts to play in the first scene, set to event/loop so that it plays all through the entire time.
 
But I have a piece of video with audio in another scene and I would like to have the sound file playing at a lower volume while the video is playing, then get it to return to normal volume when the video is over.
 
I have no actionscript at this point. Just timeline animations, etc.

View 7 Replies

IDE :: Adding Skin To Video File - Volume Button

Jan 10, 2010

I am relatively new to Flash CS3. I need to create a video file add a skin and put a voice over or background music. I have done all of it but I have a problem with the skin. On the skin there is a volume button for the video. How can I mute or control the volume of the video? Just like in youtube for example. You can turn it up or down. What is the code for it? Because when I click on the button to mute ir or turn it down it doesn't do anything to the volume. I had a separate video and a song but I went to Windows Movie Maker and associated the song with the video so now it is a whole: video with a song. So basically I just want to know what I need to do in order to control the volume of the video.

View 1 Replies

ActionScript 2.0 :: Script For Controlling Volume Of Entire Movie?

Nov 25, 2002

Flash 5: I am making a children's game with tons of different buttons that make different sounds. I would like to make two buttons (up and down, respectively) that control the volume of ALL sounds in the movie, not just one sound. Is there one singel script that I can do that with?

View 3 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 2.0 :: Volume Slides But No Volume Change?

Sep 10, 2011

I converted the slider bar and slider button to buttons. Then, I made the slider button into a movie clip.

Here is the code I placed while slider button was a button:

Code:
on (press) {
startDrag(this, false, left, top, right, bottom);
}

[Code]....

It seems right to me but I don't know. The movie button slides down the slider bar but it just doesn't affect the volume. Going to try to attach my FLA to offer better insight. Just tried to upload it and no matter if it's FLA or zipped FLA, it says it failed.

View 1 Replies







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