ActionScript 2.0 :: Sound Object Interfering With FLV Player Component

Nov 7, 2007

i have a sound object that i created with fade in and out functions. but when i use the fade out function i created called "stopSound" it seems to stop all sound so that when my FLV player goes to play the movie it has no sound but still plays the FLV. Here's my code. Can someone please help me figure out why calling this function is turning off the sound in my flv player instead of just the sound object "music" that i created.

[Code]...

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Dragging Object Interfering With MouseEvent.CLICK Function

Oct 3, 2009

I am having a small problem in regards to a click and drag interface I am trying to create.

The user should be able to drag objects around the stage and when desired click to preform an animation.

The problem is that the click to initiate the drag also initiates the click of the animation to play.

I don't really want to make one of the commands a double click as that may feel clunky to some users.

Is there any way to cancel the animation click if the user moves the mouse before letting go?

View 0 Replies

ActionScript 2.0 :: Does Sound Object Work In Flash 5 Player

Dec 6, 2007

I'm trying to develop something for Flash 5 Player and nothing seems to work. Currently I'm having trouble with the following bit of AS which works fine if I export for Flash 6. But in Flash 5...no sound. Is there a specific way an mp3 needs to be encoded for Flash 5 or does it not even accept mp3s?

Code:
// sound object
_soundbuftime=10;

[code].....

View 4 Replies

Actionscript :: Pushbutton Engine EventSoundTrigger - Sound Object Is Null When The Component Is Created

May 11, 2011

I'm running into some issues using EventSoundTrigger in Pushbutton Engine I am able to make it work using xml like this:

<component type="com.pblabs.components.basic.EventSoundTrigger" name="Sounds">
<startSound filename="/assets/explosion.mp3" />
</component>

But if I try to write actionscript to do the same I throughs errors. I can't find any examples online to explain how to initialize or use EventSoundTrigger directly in ActionScript. The following throws an error that the sound object is null when the component is created. I figured it out here's the answer:

[Code]...

View 1 Replies

ActionScript 2.0 :: Making The Simple Player Using The Player Component Preinstalled In Flash?

Jun 3, 2010

I am trying to make the SIMPLEST POSSIBLE MP# player using the player component preinstalled in flash.It is very simple, the code is as follows:

Code:
on (release) {
player.contentPath ="Song.mp3"
player.play()
}
("player" is the mp3 component)

This works if I want a single track to be selected and played.Now, I need it to AUTOMATICALLY LOAD THE NEXT TRACK, which I will input in the code.I am thinking something like this:

Code:
player.onSoundComplete = function() {
player.contentPath ="Song.mp3"
player.play()
};

But this is not working.

PS: I know an XML file would be the best here, but I don't want to use it. I just want to enter the next track's code inside the swf.

View 2 Replies

Flash :: Dynamically Create New Sound Objects Based On Raw WAV / DATA Or Other Sound Object?

Jan 31, 2012

Is there any AS3 library or code-snippet that can create altered versions of a Sound object on-the-fly (at runtime)? Either based on:

An existing Sound object; A ByteArray object;

For example, say you have a "dry" sound of a gun-shot. You could:

[Code]...

View 1 Replies

Actionscript 3 :: Sound.extract Method Empties Sound Object Data

May 20, 2011

I am using the following to extract the byte info from a sound object - however if I go back to the same sound object and run this again, The byteArray has no bytes available.

var data:ByteArray = new ByteArray;
sound.extract(data,sound.length*44.1);
data.position = 0;
return data;

Is this the correct behavior? Is there not a way to do this multiple times on the same sound object?

View 3 Replies

ActionScript 2.0 :: F8 - Attach Sound Object To A Separate Mc To Control Independently From All Other Sound / Root Volumes

Mar 15, 2008

I have been at this for about 19 hours straight! I am going to go to bed immediately after this post, but for crying out loud, I have NEVER had this problem before today! Before anyone reads ahead and says 'you have to attach your sound object to a completely separate mc to be able to control it independently from all other sound/root volumes.' see if the following code accomplishes just that:

[Code]...

View 2 Replies

Professional :: Simple Sound Player - Visitor To Hear The Sound And Be Able To Apply Simple Controls?

Aug 1, 2011

Flash is not in my toolset, but I am an old Director jock and have spent some hours dipping my head into the Flash manual.  I suppose that makes me a promising beginner-level poster. I'm working in CS5.
 
I need to make a simple Flash-based sound player for a website for a newly-released novel (http://www.bearriverbooks.com/index.html).  I want the user to click on what appears to be an icon (or image), which kicks open a simple controller and starts playing a sound file (a radio interview, which I will probably export using Flash's voice compression).  Nothing fancy.  Just want the visitor to hear the sound and be able to apply simple controls (stop/start/rewind/volume).
 
I can learn ActionScript, I suppose, since I used to dream in Lingo, but my life would be a lot simpler if I could just publish a controller without having to roll my own.  I'd like to think there's a magic button somewhere that can do this, but I haven't found it yet.

View 4 Replies

Flash - Take Two Sound Objects And Combine Them Into One Sound Object

Nov 15, 2010

Is it possible to take two Sound objects and combine them into one Sound object so that one Sound plays, and then the second plays right after it? I can just play the first Sound and then the next right after it, but it would be much cleaner to combine them before playing the audio.

View 1 Replies

ActionScript 2.0 :: Streaming Sound Distorted - Sound Object?

Jun 14, 2004

I have a streaming sound that is loaded into my flash movie (will end up on CD) that is very distorted, it sounds like someone is slowing down the audio, the voice sounds deep and slow

View 1 Replies

Professional :: Loader Component Works When Publish To Flash Player 7 But Not In Flash Player 8

Jul 5, 2010

My loader component works when I publish to Flash Player 7 but not when I publish to Flash Player 8, why? The publish setting are for ActionScript 2.0 on both.

View 2 Replies

ActionScript 2.0 :: CS4 - Php Interfering With .flv Loading?

Sep 13, 2010

I've got a .swf that loads .flv's from a separate directory and we want to put it on our company website.

I've tested it online with the .swf in a simple html table and the .flv's load fine.

But when our developer puts them into a .php page for the website, the .flv's don't load at all. He swears the .flv's are in the right location and we are stumped as to why they don't load. Is it possible there's a conflict somewhere in this scenario? I don't know php so I can't troubleshoot it properly.

View 0 Replies

ActionScript 3.0 :: FLV Interfering With Fullscreen Mode?

Oct 23, 2009

I'm encountering a strange problem with using Fullscreen mode. Basically I want the whole piece to become fullscreen, but because there is an flv active within the page the flv is taking over the fullscreen instead of the whole piece. Is there any way to stop it from doing this?I'm applying it like this:switch(FS_STATUS){ case false: stage.displayState = StageDisplayState.FULL_SCREEN; FS_STATUS = true; break; case true: stage.displayState = StageDisplayState.NORMAL; FS_STATUS = false; break; default: break; }If the flv is there it causes the flv to go fullscreen instead of the whole thing, frustrating!

View 1 Replies

ActionScript 1/2 :: LoadClip And Browser Scrollbar Interfering

Jan 25, 2010

I have this problem where the scrollbar interferes with loadClip. Anyway, I am looking for possible bugs between FF browser scrollbar and loadclip. If I don't use the scrollbar the loadClip works fine, but if I load some images using loadclip and scroll the browser right after in between calling them and them actually appearing the loadclip fails.

View 6 Replies

Flex :: Animation - Creating Non-interfering Window?

Apr 13, 2011

We are building a project in Flash Builder 4(flex) and to optimize on screen space, looking to move some display content to a separate window, while the animation runs

We cannot use a pop-up as it takes control and will not allow anything else to be viewed till it is closed. Any way we can create a"read only" window that can be moved around but does not prevent the base animation from running.

View 1 Replies

ActionScript 2.0 :: Loaded Swf Interfering With Main Timeline?

Dec 11, 2009

I have a main flash movie, which I'm using to display various other smaller swf's.All the SWF's including the main one are set to flash player 8, action script 2.Script used is:loadMovie("swf/movies/moviename.swf", "p2");This is loading the swf into a correctly sized and placed movieclip with instance name "p2"This all works perfectly well apart from one particular swf. It has various script in it that seem to be interfering with the timeline of my main movie. Causing it to start playing, when it should be stopped etc. It seems to cycle through all the other keyframes until it gets back to keyframe that it sits on.

Is there a way of making sure none of the script within the loaded SWF will effect the main movie that it's loaded into?I tried usingthis._lockroot=trueon the 1st frames of the SWF's to be loaded, and also on the 1st frame of the main movie, but it does not work.I also tried loading to various levels, with no luck.Something in the externally loaded SWF's is causing the main movie timeline to go crazy. I guess either the interval timer or the endcount.Here's some of the code from the external swf thats being loaded into the container:

this.stop();
pause = function () {
play();

[code].....

View 4 Replies

ActionScript 3.0 :: Flash Player 10.1.85.3 - If The Object Is Not Found In The Dictionary Object, It Will Be Searched For In The Delegate Objects?

Oct 29, 2010

I am encountering a problem in my app only when it is run in flash player 10.1.85.3. Some earlier player versions I have tried are working fine.From what I can tell it seems related to the following:

Quote:

from here: h[url].....

When searching for objects (not strings) in Dictionary objects using the 'in' operator, if the object is not found in the Dictionary object, it will be searched for in the delegate objects. With 10.1, the toString operator will be called on the Object if not found in the Dictionary. This can cause problems with Proxy objects who need to define the callProperty function or it will generate a RTE. ...what it means "it will be searched for in the delegate objects"?

View 1 Replies

ActionScript 3.0 :: Stop Action Interfering With Keyboard Commands

Nov 10, 2011

I have a simple Flash movie, and have used AS3 to allow users to hit the up arrow and go to a certain frame, then hit the right arrow to go to another specific frame. My problem is the minute I put in "stop();" in the script so my movie stops on frame 1, the keyboard controls do not work unless I double-click the playing video. The minute I remove the stop command from my actionscript, the keyboard controls work perfectly...but my movie obviously starts playing which I do not want.

I need both the stop command AND the keyboard controls, and am at a loss.

View 12 Replies

ActionScript 2.0 :: External SWFs Interfering With Main Timeline?

Feb 4, 2010

I have bought a gallery template that allows me to place content within external SWFs.I have a series of buttons within the SWF templates. The problem is that the buttons are interefering with the main timeline when hit. How would I fix this.

Currently they read:
on (release) {
_root.gotoAndStop(1);

[code]......

View 2 Replies

ActionScript 3.0 :: Rollover Button With Nested Movieclip Is Interfering With Hit Area

Dec 11, 2009

I have created a world map that has each region of the world as a rollover. When you rollover the US, for example, it turns red and a movieclip pops out to display some info...it's basically a graphic I created in Illustrator that is a rectangle with info written on it.
 
The rollover works fine and everything pops out, but when you move the cursor close to the popout, it thinks you have rolled off the US. When you hit the edge it pops in and out almost like it is blinking.
 
How can I make it so that they are one hit area? Here is some of the code:
 
na_mc.buttonMode=true; 
setChildIndex(na_mc,0); 
na_mc.addEventListener(MouseEvent.ROLL_OVER, onButtonOver);na_mc.addEventListener(MouseEvent.ROLL_OUT, onButtonOut);

[Code]....

View 7 Replies

Flash :: Prevent Button/movieclip From Interfering With Mouse Events?

Apr 15, 2010

I have a few swf's that are loaded into a base file using levels. These clips can be cycled through by means of a setInterval function or when the user clicks the next or previous button. However, when the user hovers over a defined 'hit' area which is ultimately a blank movie clip, the setTimeout call is then canceled. This works fine, except that now the 'hit' clip - being above everything - prevents the movies below accepting hit states, and if I move it to below everything else, when one mouses over any element in the loaded movie, it then acts as though the user has mouse out of the hit area.

Is there any way to have this 'hit' clip do its job simply by determining if the mouse is over it, but without using an onRollOver function or equivalent?

View 1 Replies

ActionScript 2.0 :: SetInterval + Interfering With FadeOut Prototype From The _root Movie

Mar 22, 2004

I have a fadeIn prototype of:

[Code]....

This fades all my objects so on and so forth. I have a movie that is loaded into the _root, inside that is an mc called photos, jpgs are loaded into here and faded in. This photos being loaded in thing is based off some other code written by ... I can't remember I was looking to save time Anyway, thats like so.

[Code]....

View 2 Replies

Actionscript 3 :: Isolate The Tweener Class So That Loaded .swfs Are Not Interfering With Tweens

Feb 12, 2010

I am working on a UI that makes heavy use of the Tweener class, and which also loads an external .swf that I believe also uses the Tweener class.

After tracking down all kinds of buggy behavior, I'm thinking that the problem is that the loaded .swf is making calls to Tweener.removeAllTweens() *(This is just an assumption) and stopping other tweens that are happening in my UI.

Is this possible, and if so, is it possible to isolate the two versions of the Tweener class so that they don't reference the same object?

View 2 Replies

ActionScript 3.0 :: Toggle Keypress Requires It's Own Individual Boolean Value To Prevent Interfering With The Others?

Jan 19, 2012

I'm currently using senocular's KeyObject class and using a boolean to store the toggle. Is there a more efficient way of doing this as each toggle keypress requires it's own individual boolean value to prevent interfering with the others.

Code:
var valve1:Boolean = false;
var valve2:Boolean = false;
stage.addEventListener(Event.ENTER_FRAME, checkKeys);

[code]....

View 2 Replies

No Sound After Exporting Mp3 Player?

Feb 4, 2010

I'm sure this is me just being an idiot but I have a problem with an mp3 player I've built based on the AS2/XML tutorial on this website. Basically, everything works fine in Flash (running CS4) but when I open the HTML page, it doesn't play any sound at all. I've tried all sorts of configurations of object and embed tags but nothing seems to work. All the sound files are referred to via XML and the .swf, .xml and .mp3s are all located in the same directory.

View 2 Replies

ActionScript 2.0 :: Sound Muted As Default On FLV Component

Jan 9, 2009

I have a custom Flash Video Player and I have the play and mute button as controls. Currently my player has the sound on, I want to set it as muted by default.

This should also show my mutebutton as on as a visual cue. The only line of code I am using for the mute button is this

myVideo.muteButton = mute_btn; // which is just telling the flv component which button needs to act as the mute button

Using Flash CS3 , Actionscript 2.0

I got extremely two easy lines of code that I put in my action Frame 1 which fixed everything.

myVideo.volume = 0;
myVideo._uiMgr._isMuted = true;

myVideo is the name of my FLVPlayback component

View 8 Replies

ActionScript 3.0 :: Remove Sound In FLVplayback Component?

Nov 24, 2011

How do you remove the sound from "specifically" from FLVplayback component? Since the sound wont stop playing when I'm on different page(assume that if the person didnt click the pause button and navigate to other pages)....Normally I would add SoundMixer.stopAll(); for every button in my main and loaded swf but this will stop my background music as well....
 
The flvplayback component is located in another swf file and the code was added on the second frame of the movieclip call "scrollGroup"
 
//////////////////////////////////////////
import fl.video.FLVPlayback;
import flash.events.Event;

[Code]....

View 4 Replies

No Sound On Adode Flash Player?

Jun 17, 2008

I cannot hear any sound when i use the adobe flash player onyoutube, but i have sound when i play music from itunes andwindowmedia player.

View 9 Replies

ActionScript 3.0 :: Sound Position And Length On Slider Component?

Sep 11, 2011

I have the following working great:
 
stop_btn.setStyle("icon", square_mc);player_btn.setStyle("icon", next_mc);
import flash.events.Eventimport flash.events.MouseEvent;import flash.media.SoundTransform;
var alreadyDefined:Boolean;volumen.value = 1;

[Code].....
 
I have another slider component on the movie with instance name PROGRESO

I would like for PROGRESOnto indicate (update) the sounds progress as it plays and be able to scrub through the sound.

View 7 Replies







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