ActionScript 3.0 :: Flash Playing With Correct Volume?

Apr 16, 2012

I'm pretty new to AS3 (building my first site) so I hope this isn't too much of a newbie question.

I've got two commands which each work on their own in my mp3 player

channel = snd.play(pausePosition); starts the song from wherever it's paused
channel = snd.play(0, 1, sTransform); starts the song at the volume set by the volume knob.

How do I put both the pausePosition and sTransform bits on to the same snd.play command??

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Flash Not Playing Correct In Mac Browser?

Feb 9, 2010

I have this thumbnail photogallery(AS2)that is running fine on a pc, but when viewed in firefox or safari on a mac the thumbnails do not show up.here is a live link:http:[url]......at the bottom you should see the thumbnails, but maybe not if viewing on mac?you can download the fla from here http:[url]......

View 2 Replies

ActionScript 2.0 :: Flash Not Playing Correct In Mac Browser

Feb 9, 2010

I have this thumbnail photogallery(AS2)that is running fine on a pc, but when viewed in firefox or safari on a mac the thumbnails do not show up.

here is a live link: [URL]

at the bottom you should see the thumbnails, but maybe not if viewing on mac?

you can download the fla from here [URL]

View 2 Replies

ActionScript 3.0 :: Volume Gets Two Times Louder On Playing Sound

Jan 21, 2011

When I try to play a sound via Actionscript repeatedly, it gets louder when you do it really fast. The crux of the code that did this is pretty simple:

Actionscript Code:
buttonGreen.addEventListener(MouseEvent.MOUSE_OVER, reactionGreen);
private function reactionGreen(e:MouseEvent):void{
blob = new blob_cls() as Sound;
blob.play();
}

I made a .swf that shows what's happening. If you roll your mouse over the button repeatedly, you find the sound getting pretty loud. [URL]. My webpage isn't very stable, so this might be better. The volume seems like it could go up to 2 times louder than it originally is..

View 2 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 :: Get The Depths Of All The Blocks To Be At The Correct Levels At The Correct Times

Dec 30, 2009

I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?

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

ActionScript 3.0 :: VIDEO Stops Playing, Continue Playing Flash Movie?

Aug 7, 2009

I am loading an external SWF file into my main timeline. The external SWF file contains an FLV video. At a certain point in my main timeline, the SWF file loads and plays the video. Is there a way to say...

If the VIDEO (FLV) is done playing, gotoAndPlay(X)?

View 4 Replies

Can't Find The Correct Flash Player?

Jul 4, 2011

I got a 7" netbook running WIN CE 6.0 and can't find the correct Flash Player.Every time I seem to find one and intall I get a "Not a WIN CE" app Where can I get a player for this book?

View 2 Replies

Flash :: Can't Locate The Correct ActionScript?

Sep 2, 2009

On my website I go to "movie explorer" and go through all the ActionScript and on the bar tab it does open upa moving vertical options (it shows up when I have it in swf or preview it) but while I am in Flash CS4 I can't find it....there are extra componentsin separate files inside the folders (mx) and (tm) . I am trying to do is have certain tabs go directly to a different webpage (not all of them to the flash tabs as specified) as you will see by visiting my site: http:[url]....

View 3 Replies

IDE :: Raise The Volume To 200% In Flash?

Sep 28, 2009

I have an mp3 that when it loads it doesn't sound loud enough. I tried raising it with the following code, but it didn't work. I can raise the volume to 200% in VLC. How can I raise the volume to 200% in flash???

Code:
import flash.utils.*;
var audioURL:URLRequest = new URLRequest("Irving.mp3");
var exsound:Sound = new Sound(audioURL);

[Code].....

View 6 Replies

Flash Mask Appears Correct In Safari But Not IE?

Nov 1, 2009

This is weird because I cannot see how a browser can have any affect on a SWF file animation. This SWF contains masking of images. The SWF appears perfectly in Safari, and for some strange reason, one of the three masks is not applied when viewing the SWF in IE (as if the image is 'released').

View 1 Replies

Flash :: Correct Documentation For Globalization.DateTimeFormatter?

Jun 9, 2011

The docs I can find for flash.globalization.DateTimeFormatter are here In those docs, the examples show the use of an important method called setDateTimeStyles(). However, there is no such documented method! Same goes for format().

I feel I'm missing something or am looking at dated/incomplete material (or am a complete idiot). Where is the correct/best documentation?

PS: I'm finding I have this general problem (missing/incomplete docs) quite frequently and this question could actually be "Where is the 'correct' flex/actionscript documentation? Or is it just bad?", but I'll be very specific (and non-inflammatory) to try and improve the odds of a clean answer...

View 2 Replies

ActionScript 2.0 :: All Correct For Text Boxes In Flash Mx?

Oct 21, 2004

I have an interactive assignment in which the students have to enter text entries into an input box. I have it working to where when the enter the correct answer it will tell them, or if it's wrong. I need to be able to tell them when they get to the last question, after they have gotten all of them correct, that they got all the questions correct. I know how to do this with a drag and drag interaction but not text entry. can someone point me in the right direction?

View 4 Replies

Volume Control For Flash Player?

Oct 29, 2009

I got a code for a flash player but it only has a start and stop button . I would like to know how to add a volume control and a pause button.

Here is the code;

var nc:NetConnection = null;
var nsPlay:NetStream = null;
var metaDataValues:Array = new Array();

[Code].....

View 2 Replies

Professional :: Volume Of Crashes From Flash CS5?

Dec 22, 2010

I'm well & tired of the volume of crashes from Flash CS5.  Some are more predictable, like now every time I try to import an FLV it's crashing, so I'll try repairing permissions, and rebooting the computer.  Some are more random, like I'm moving something in the Library and it'll just crash out.  It's really a terrible experience working in the Flash IDE.  I love Actionscript 3, and the Flash Player seems pretty stable.  But my God, what do you do when Flash starts bugging out?

View 1 Replies

Modify Flash Files To Create Correct Links

Mar 12, 2012

I have been given the task of updating my company's website, which is written in ASP and has a menu in Flash. I am not experienced in neither technology so maybe you can help me a little bit.We have a menu in flash and just received a new one from an artist. They are pretty similar but the new one brings some new buttons. So far what I did was simply change the .fla and .swf files from my web project to the new ones. The new menu is working, but the buttons and links are messed up. For example, our website main page is called Default.aspx. In the old menu, when you clicked in 'Home' it would take you to Default.aspx. In the new one though, it tries to take you to 'index.aspx', which doesn't exist. This makes me think that the mapping of the links in the menu is something that is part of the Flash code. Am I right about this?

Now, if I am right and I need to modify the flash files to create the correct links, how the heck do I do that? Notepad++ doesn't read the .fla well. What is the best free tool that will allow me to modify a file and compile it into a .swf? I know Adobe Flash would work, but we don't want to pay anything.

View 2 Replies

Professional :: Flash - Creating A New Document With The Correct Profile?

Jul 29, 2006

I'm bringing in production art into Flash, and it's shifting getting lighter. I've read all about the issue, how it's
photoshop's color profiles, etc. Problem is, converting the images to working RGB isn't helping. I've tried converting them (originally they were in Adobe 1998 RGB) , creating a new document with the correct profile, but nothing works. I'm saving them out as PNG files. They look great in a browser even. Just washed out in Flash. Anything else I can try?

View 4 Replies

ActionScript 3.0 :: FlashBuilder Will Be Directly Applicable To Flash CSx - Correct?

Apr 20, 2010

I'm heads down working with the FlashBuilder tool which is heavy AS3, and have used Flash CSx for years. My question: I'm assuming my AS3 skills that I develop with FlashBuilder will be directly applicable to Flash CSx, correct? I understand I'll need the context of applying my AS3 code to the Flash objects when working in Flash CSx but for the most part will my AS3 skills carry over from FlashBuilder to Flash CS4/5?

View 3 Replies

Flash :: Finding Correct Scope Of An Object For A Callback?

Dec 11, 2009

I'm working on writing a tweening class in as2 that has a callback variable and I can't seem to find a good way to get the scope without specifically passing in a scope variable as well. This tweening class needs to work in classes as well as on the timeline. Here's what my codes looks like right now.params.scope[ params.onComplete ]( params.onCompleteParams );params is an object passed into the class. This works but I don't want to have params.scope in there.

View 1 Replies

Set Alternate Image If Client Does Not Have Correct Flash Player?

Apr 21, 2010

I am having a flash object integrated in my html page. It requires a version of 10 to run it. If the client is not having the flash player of 10 or above, the flash will not come and it will look a bit odd. In that case, I want to show an alternate image. What is the best way to do it?In fact I have the javascript code for it. But I dont know how to utilize it to get what I need.[code]

View 1 Replies

Actionscript :: Automatically Increase Mic Volume In Flash?

Jun 9, 2010

Is there a way to increase the mic volume of a flash application automatically?

View 1 Replies

Animation - Volume Level On Button In Flash?

Jan 13, 2011

i want to control sound in my movie clip by the button which i designed in flash. for ex.: my default sound is 100% on home button & when i click on contact(last button) the volume level goes to 20% same as in between buttons.i use this script to call the sound in flash

bgSound = new Sound(this);
bgSound.attachSound("sound1");
bgSound.start(0,99);

now tell me what i put in buttons to manage sound level.

View 2 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 :: Flash As 3.0 Volume Functions Not Working

Feb 17, 2011

This is the code am using to create a mp3 player,everything is fine but the volume controls,not able to mute or increase the volume,kindly tell whats wrong in the code

import flash.media.Sound;
import flash.media.SoundChannel;
import flash.media.SoundTransform;

[Code]....

View 1 Replies

Flash 9 :: Flash Interaction With Windows Volume Control?

Nov 28, 2008

Is it possible for flash to access the windows xp system volume controls?I assume flash can't by it's self, but can flash be used to trigger a function in another language that can access and alter the system volume? At least detect if the audio is muted on the system and give the option to turn it on.The flash movie would be embedded in a browser. The content of the movie has audio that is required. We want the user to be able to control the system volume from within the flash movie.

View 0 Replies

Flash 10 :: Auto Format - Maths Functions Not Done In Correct Order

Apr 23, 2011

I have some code that looks like this:
ActionScript Code:
level_btn.x = 50 + (i - 1) % 10 * 50;
It sets the x location of my level button. But this is in a for loop (that's what the 'i' is for.) I run it and everything works perfectly, as it should, not a single problem. Then I press the auto format button in the flash actionscript editor. (It's the button that adds all of the ; to the end of each line and other stuff)

Well that changes my code to this:
ActionScript Code:
level_btn.x = 50 + i - 1 % 10 * 50;
thinking it's done me a favour but it hasn't. It's got rid of the brackets so it won't do the maths functions in the correct order. I've tried adding more brackets in places and other stuff but I just don't know how to fix it. It's annoying because every time I press the auto format button I have to add the brackets in again.

View 1 Replies







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