ActionScript 3.0 :: Mute In The Beginning Of A Flv?
Sep 23, 2010
I have an flv file that i am loading externally and want to start the video of with no sound and let the user click the mute_btn to turn the sound on. I am having problems with the code. the video starts with sound on and i want it to start silent. what do i have to add to my code to make this happen?
[Code]...
View 0 Replies
Similar Posts:
Feb 3, 2009
I've downloaded the the Flash mp3 Player. I did some minor modifications to it and it works well. The only problem I have is that when the mute button is pressed, the current song is mute(s.setVolume(0)), but when the next song comes up, the mute button is not in mute state(Volume not set to 0). I want to keep the mute state unchanged when the songs are playing untill the mute button is pressed again.
View 6 Replies
Aug 5, 2010
So i have a flv playing on a flash load. I need the mute button toggled to "mute" by default.
Code:
my_FLVPlybk.muteButton = mutebtn;
that is the mute button instance i am using.
View 1 Replies
Sep 11, 2009
I got some scrollable text in flash and want the first letter of the paragraph to be a largeer pt.
View 1 Replies
Nov 10, 2009
I have created a X-mas card for my company. When the card opens, the 3 circles are buttons to different scenes within Flash. The text in the bottom left is a button to the final scene.
The card can be viewed here: [URL]
1) When I click on the circle button that has the red garland and tree ornaments in it, if you listen close at the very beginning of the scene, a squeek sound plays. I use this squek sound in the hamster wheel movie symbol used in other scenes, but not in this scene. I don't even have the sound in this scene of the Flash project anywhere. I can not figure out where it is coming from.
2) Does anyone have some optimization tips? My project file is huge and a lot of the people we will be sending this out to probably don't have the most up-to-date processers. Should I split each scene into it's own Flash movie that is only loaded when the button for that scene is selected instead of the whole thing loading?
Here is a link to view the .FLA file: [URL]
View 1 Replies
Jun 22, 2009
I have button1_btn on a frame in the beginning of this animation, and on that frame I script it:
button1_btn.addEventListener(MouseEvent.CLICK, showimage1);
function showimage1(event:MouseEvent):void {
gotoAndPlay("image1");
}
I also have other buttons that eventually take a different frame where that button isn't on.So I add it to the stage in that frame and assume it will gotoAndPlay("image1") again when clicked, but when I test the movie, and click it on the later frame, nothing happens.I tried maybe adding the original script to that frame as well, but then I test and it says I have duplicated script and doesn't work.Why does the original script work for that button, no matter where and when it shows up?It's the same button essentially, no?
View 3 Replies
Nov 23, 2009
I have four photos which dissolve into one another in Flash CS3. I would like this to loop continuously with the last photo dissolving back into the first photo. I have searched extensively for a solution with no results. Does anyone know how to do this? Here's what I've done so far: [URL].
View 10 Replies
Sep 23, 2009
I've bought a website template, and im trying to change a few things in the flash. this is the site at the moment:[url]..
i want the menu+header to be played only once a day from the beginning, because its pretty annoying at the moment.
View 2 Replies
Jun 24, 2010
I've got two (possibly three) logic errors going on... Well, I say logic errors as the compiler and output windows are clear from any error reports.Error 1: Dynamic Text Field*~EDIT~* PlayerText is declared at the beginning of the as and if statement now tests its text not the object*~END EDIT~*
Code: Select allif (PlayerText == null && !this.contains(PlayerText)) {
PlayerFormat.font = PlayerFont.fontName;
PlayerFormat.size = 21;
[code].....
View 2 Replies
Jan 18, 2004
I have a box with 5 pieces of paper inside
myArray1 = new Array ("1","2", "3", "4", "5");
I am going to chose a piece at random from the box
$i = random(5);
trace(myArray1[$i]);
That piece has now been removed from the box, therefor it has to be removed from the array, now how to remove from mid-array only beginning and end, so I thought of this:
Code:
for (var $loop = 0; $loop < myArray1.length(); $loop++) {
if ($loop <> $i) {
myArray2 = new Array();
myArray2.push(myArray1[$loop]);
}}
trace(myArray2);
How I have set this up, but I am thinking if the loop index of the random piece is equal to the random number, then skip that, else, put all the other pieces in a new box. But when I trace the 2nd array, it displays the random value. Is there any way to move everything from an array into a new array WITHOUT a certain element? I mean I know you can move a certain element via its array position, any form of array.pushNOT($n, ($n+1))
View 14 Replies
Feb 18, 2009
Basically, I have an input box on a widget that sends information via PHP.
One of the input boxes is phone number. Everyone inputs number as normal, but without the country code.
Is there a way of me taking their normal number from the input box, removing the '0' and adding the country code before sending it (i.e. within a calculation/function/formula).
View 1 Replies
Jan 8, 2011
When I'm typing and press enter I expect a new line to be created, but instead the text goes to the very beginning and writes over what I've already typed. Does anyone know what setting is causing this?
View 2 Replies
May 14, 2010
I've got a flash 10.1 app that lets me record microphone input to a wav without a media server, which I am saving to an Amazon S3 bucket.I have another process running on a server which gets wavs from this bucket, converts to mp3 using LAME and puts them into another bucket. This all works fine, but in converting wav > mp3, about 0.1sec or so of silence is added to my sound.In the application this are being used in, perfect sync is critical, so I need to trim off that little bit. If I have to trim it off the original waveform that is okay, I don't expect anything important to happen in that first fraction of a second.
What is the best way to go about this? I am using Adobe's WavWriter to convert by ByteArray into a proper waveform. Is there a way I can easily trim off the first few samples from my ByteArray without invalidating the structure?Alternatively, is there a good server-side tool I can use to trim the wav before running it through LAME, or an argument I can give LAME? Or, could I even trim that sound off the mp3 after it has been converted?
View 2 Replies
Sep 21, 2009
Is there any as3 code that says if a user clicks outside of the flash movie, the movie will return to the beginning/frame 1?
View 2 Replies
Oct 3, 2009
Here is a very simple xml slide show. What I want is to implement one preloader at the very beginning of the slideshow so the user do not see any blank page at the beginning.
I also want to implement the preloader before loading each image by clicking the next and previous buttons.
Attaching herewith the fla and other files for your kind look.
View 9 Replies
Apr 11, 2011
I have a small game that plays a short instruction video and then has the player select a button which then takes them to the next level. The game has 4 levels with video. The problem is that when the swf plays all the video plays at the same time. When you get to the level you can play the play button on the skin and the video will play again and the level functions appropriately. How can I get the videos to only play when the play button on the skin is clicked? [code]...
View 2 Replies
Apr 20, 2009
I have just a play and pause button on a website I'm creating for a client that streams one mp3 song. It works great with the code below, but the problem is that when it reaches the end, it doesn't loop back to the beginning. I would like for the user to be able to press the play button at the end to hear the song again, or include another button that rewinds back to the beginning.
Code:
this.createEmptyMovieClip("sound_mc", 10);
music = new Sound(sound_mc);
music.loadSound("[URL]", true);
music.start();
active_button = "play";
[Code] .....
View 1 Replies
Dec 14, 2009
I'm building a website that has the option of using the keypad to navigate the menu. If I test in flash I can use the keypad right at the beginning (if I press the right arrow it expands the first menu). However once I upload the sight, I have to click on the screen before I can activate the event listener. I use a seperate swf to preload it but even that when I test in flash works off the bat when the right arrow key is pressed.
View 4 Replies
Feb 12, 2010
I used this tutorial to create an xml photo gallery:
[URL]
I would like to add the functionality of having the next button return to the beginning of the xml when you reach the end and have the previous button return to the end if you are navigating the other way.
View 1 Replies
Oct 22, 2002
I have one line that is going down 500 pixels with the instance called 'vertical'. I also have a line set next to it with aplha = 0. When the vertical line going down reaches 300 pixels, I want the line which is set to 0 to set the alpha = 100. The code I am trying does not work.. Here is what I am putting in
onClipEvent (enterFrame) {
if (vertical._height = 300) {
this._alpha = 100}
}
Seems simple enough, but the line becomes 100% alpha from the very beginning of the movie. Do I have to do anything with _root or what?
View 4 Replies
Apr 14, 2009
How would I write if I want to check if the beginning of a string match my request? Something like this but with real code
if(myString doesn't start with "http://"){
doSomething;
}
View 2 Replies
Nov 3, 2009
I have an input_txt which is an instance of TextArea When I type into it and press enter it captures. I need to set the textarea empty. So its done as input_txt.text = ""; But doing like that the prompt stays at the second line since we press enter key. Is there a way to bring the prompt back to the beginning of the TextArea?
View 3 Replies
Mar 29, 2010
I compiled two swfs into a single exe using a converter. Both swfs have the same 5 tabs for the 5 sections of my presentation. Swf A has all the stuff for the first 4 tabs, Swf B has the stuff for tab 5. When I start the exe & navigate all around in the first 4 tabs & their sub-sections, everything's fine. I can also click on tab 5 & the Swf B stuff starts playing right away & I can navigate all around in there.
BUT... After I've been clicking on the tab 5 stuff, if I click on any of the 4 tabs from Swf A it kicks me all the way back to the intro animation at the start of Swf A. What I need is to have it go to the first frame for each of those tabbed sections. (e.g. frame 5, 38, 93,...) I did gotoMovie & then gotoAndPlay & the frame number, but it sends me back to frame 1 anyway. How do I get it to go to the frame I want? This is in AS 2, by the way...
View 1 Replies
Apr 19, 2010
I'm having some problems on some systems (seems to affect mostly 64-bit systems) where videos streamed from Flash Media Server 3.5 doesn't start from the beginning. I'm using NetStream.Buffer.Full to detect when the video starts. Usually this works ok, but sometimes the video doesn't skips a couple of seconds from the beginning even though the value of NetStream.time property is 0 when this happens.
View 6 Replies
Oct 9, 2010
Actionscript 2.0I have a play and stop button in a movie clip. The actual button works great but does not pause the movie and then resume playback where it left off. Instead the movie goes back to the very beginning and stop/starts there. I need the button to resume playback where the movie was stoppedlike a pause and resume button. The videos load exernally through an FLVPlayback component (myVideo).The code is on the main time line in Actions layer.Here's the code for the button:
_root.StopNGo_mc.onRelease = function() { if (_root.StopNGo_mc._currentFrame == 1) { _root.StopNGo_mc.gotoAndStop(2); _root.myVideo.stop(); } else { _root.StopNGo_mc.gotoAndStop(1); _root.myVideo.play(); }}
[code]......
View 3 Replies
Apr 8, 2012
I have a motion tween that is 180 frames in length. When the tween ends on the last frame and returns to the first frame to replay there is a slight jump in the tween. Is there anyway to stop the tween from jumping from last frame to the first?
View 3 Replies
Dec 29, 2009
How can I make sure all the components, even those that are not going to be visible at the beginning, load right away when I start my application?I have an application with a ViewStack whose visible child is set via a sidebar menu. Say the ViewStack has two children, A and B. A is initially visible, whereas B is not. How can I make sure they both load at the beginning, so that when I change to B I don't have to wait for it to load?
View 1 Replies
Mar 9, 2011
I have a Flash app where I call the first frame over and over. I have a script, that I need to be executed just once at the beginning. Where should i put it? Obvioulsy the first frame isn't a good idea, the script is called to many times. Is there some place for this or some function that would allow me do this?
View 2 Replies
Sep 17, 2009
How can I find out the frame numbers of the beginning and end of a layer (with content) without actually going there? It would be a lot of work if I manually enter them and have to revise again when frames are different due to content change. Can I get a list of all the frame numbers of the first frames of all the labels in a movie?
View 0 Replies
Nov 27, 2009
What code would I need so that once I get to the end of an application, you can click a button so it restarts going back to the beginning?
The button in question is called retryButton
View 6 Replies