get an FLV to start playing with the no sound

Hello

I'm trying to get my to start flv file to play when the page is loaded with no sound, but I have no chance. The flv file begins to play very well with the sound and I can turn off the sound with my volume control, but I need to start to play with no sound. Help, please.

var restartTimer:Timer = new Timer (19000,1);

restartTimer.addEventListener (TimerEvent.TIMER, startTimer)

var myImage:mcImage = new mcImage;

var myReplayBtn:mcReplayBtn = new mcReplayBtn;

-Control of the video-

var videoConnection:NetConnection = new NetConnection();

videoConnection.connect (null);

var videoStream:NetStream = new NetStream (videoConnection);

videoStream.play ("sebring09.flv")

var metaListener:Object = new Object();

metaListener.onMetaData = onMetaData;

videoStream.client = metaListener;

Video: video of var = new Video (195,132);

video.attachNetStream (videoStream);

addChild (video)

swapChildren (whiteOutline, video)

Video.Mask = myMask

Video.x = 7.5;

Video.y = 3;

function onMetaData(data:Object):void

{

}

//------------------------Timer---------------------

function startTimer(event:TimerEvent):void

{

addChild (myImage)

myImage.x = 9;

myImage.y = 20;

addChild (myReplayBtn)

myReplayBtn.x = stage.stageWidth/2;

myReplayBtn.y = stage.stageHeight/2-12;

myReplayBtn.addEventListener (MouseEvent.CLICK, replayMovie)

myReplayBtn.buttonMode = true;

}

function replayMovie(event:MouseEvent):void

{

videoStream.play ("09_Sebring_incar_Cut.flv");

removeChild (myImage)

removeChild (myReplayBtn)

restartTimer.start ();

}

restartTimer.start ();

//-------------------------Audio Controls---------------------------------

var soundVol:SoundTransform = new SoundTransform();

var soundVolume:Number = 1;

Code that handles the volume slider

var trackBounds:Rectangle = track_mc.getBounds (track_mc);

var xPos:Number = trackBounds.x;

var yPos:Number = trackBounds.y;

var widthPos:Number = trackBounds.width - track_mc.slider_mc.width;

var heightPos:Number = 0;

limits: var Rectangle = new Rectangle (xPos, yPos, widthPos, heightPos);

track_mc.slider_mc.x = widthPos;

track_mc.mouseEnabled = false;

track_mc.slider_mc.buttonMode = true;

track_mc.slider_mc.addEventListener (MouseEvent.MOUSE_DOWN, dragSlider);

stage.addEventListener (MouseEvent.MOUSE_UP, stopSlider);

function dragSlider(event:MouseEvent):void {}

event.target.startDrag (false, bounds);

addEventListener (Event.ENTER_FRAME, setVolume);

}

function stopSlider(event:MouseEvent):void {}

track_mc.slider_mc.stopDrag ();

removeEventListener (Event.ENTER_FRAME, setVolume);

}

function setVolume(event:Event):void {}

soundVolume = track_mc.slider_mc.x/widthPos;

soundVol.volume = soundVolume;

SoundMixer.soundTransform = soundVol;

}

You can use the soundmixer soundtransform to control the volume of all, but unless you have several sounds, you should probably use the netstream's soundtransform.

in both cases, to start your video with no sound, assign the volume property you function onMetaData:

function onMetaData(data:Object):void {
var st:SoundTransform = videoStream.soundTransform;
st.volume = 0;
videoStream.soundTransform = st;
}

Tags: Adobe Animate

Similar Questions

  • The problem starts just today when I opened my computer and started playing with the no sound

    So, basically, as the title says, my video games sounds is not recognized by my volume mixer. The problem started only today when I opened my computer and started to play with no sound. At first I thought that I had cut all the sounds but then I checked and nothing was cut and I also checked that my volume mixer didn't even have the game volume control bar to increase or decrease the sound of the video game. I also checked my device to update manager, but didn't so I get really worried about it, if you could help me that would be great.

    (PS: If you need information about my computer just ask in the comments and I'll tell you what you need to know.)

    Well, thanks for the time spent by only typing the answer, I really appreciate it, but I already solved... Just had to uninstall my audio driver from Device Manager and reinstall it. But now I have another problem, when I try to open any folder I gives me an error like this: "this file doesn't have any associated program that allows you to perform this action. "Install a program or if you have one, create an association in the-> default programs control panel. I also noticed that when I right click on it, it should say 'Open', but instead he said: "cmd" as the priority order.

    (PS: I know this issue is off-topic but see if you can help me with this one please.)

    PIC:

  • My grandson was playing with the keyboard and all my icons and web pages are now huge. I had this happen before, but I can't remember how to reset it. Any help?

    My grandson was playing with the keyboard and all my icons and web pages are now huge. I had this happen before, but I can't remember how to reset it. Any help? I went through properties and all that it is fine. It has something to do with the keyboard and an F key and control or ALT.

    Hi Sashaxwp,

    To get small icons in your Start menu

    Click Start on the taskbar, and then select Properties from the context menu.
    Ensure that the selected option of Start Menu as ist and click Customize to the right of the Start Menu option.
    This will display the Customize Start Menu dialog box.
    Use the Option Select an icon of Sice to Programms and now select small icons

    To configure your display appearance, wants to get small icons on your desktop

    Right click on an open area of the desktop and select Properties.
    Click the appearance tab.
    Click on 'effects' (in my Version of XP in German), perhaps you will need to click on Advanced.

    In my XP there is a "huge symbols" choice, if you have this choice, remove the hook.

    Good luck and have a nice day!

    Kind regards

    Rainer

  • How can I fix the speakers on my Asus laptop? I played with the settings and accidentally deleted some functions.

    original title: speakers on windows 7

    How to fix speakers on my Asus laptop. I played with the settings and accidentally deleted some features and I can't restore it to its original.

    Can you help me with this problem?

    Thank you in advance.

    The best

    YinNooy

    Use system restore to go back to an earlier date at the beginning of the problem.  To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore.  Click on the box that says show more restore points.

    I hope this helps.  Good luck.

  • Remove MS Office Starter came with the computer

    I have a HP p6837C, AMD Athlon II X 4 running under Windows 7 64-bit.

    I want to totally remove the MS Office Starter came with the computer and install a previous MS Office Professional, I had bought.

    How safely get rid of which came with the computer

    Hello

    Download and install the free version of Revo Uninstaller from the link below.

    http://www.revouninstaller.com/download-freeware-version.php

    Run revo and use it to uninstall the software.  Make a right click on the program icon you want to remove and select uninstall.  During the process, that you may be asked to remove the registry entries, simply select all and then click on remove.  Do the same for any left over files and folders.  Once the uninstall is complete, reboot the PC.

    Kind regards

    DP - K

  • Play with the Windows 7 color scheme will affect my TV on different entries or overall?

    Hello, I have a Samsung LED Tv connected to my PC. Asked me to change my color scheme I did. Play with the color scheme of Windows 7 will not affect my TV in any way other than the PC itself. I want to assure you that it don't mess with any setting on my TV or other inputs for my TV, like the brightness, color, etc.

    Hello

    Thanks for posting the request in the Microsoft community forums!

    The problem description, I understand to be aware if the Windows 7 mess with any settings on Samsung LED Tv. color correct me if I'm wrong.

    We look at this, it seems that the settings on Samsung LED Tv will not get affected by the arrangement of color of computer.

    We know if you need help with the Windows operating system. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.

  • Play with the opacity or amount

    Hello everyone.

    For example: you have a layer within Photoshop, and you can play with the opacity, like 10% or 50% or 100%.

    Inside the hearing, inside Clip Rack or Rack effect, I would like to adjust the opacity or the amount for each effect. For example: adaptive noise reduction or DeHummer make 30%. The only place where I found this opacity or the amount is indispensable Sound Panel, inside the amount, from 0 to 10. Any other choice?

    Well, "Opacity" is not really a concept when it comes to audio, but each effect has a wide range of settings, you can do.  How they are labeled depends on the effect does.

    For example, on the of hummer, the closest thing to the opacity is the Gain setting - it is a digital quantity rather than a simple slider.  However, if you adjust the number (you can drag left and right to go downwards and upwards) that adjusts how snoring - the frequencies that have been selected - is reduced.

    Similarly, the Adaptive reduction of noise, the slider ' Reduce Noise by ' is probably the closest thing to the opacity control how much or little, the noise is reduced by.

    The problem with just using these two controls is however that other things can affect your sound - noise reduction, doing a too high percentage can give you a metallic sound as hearing eliminates also certain frequencies in the audio range.

    The Essentials Panel, as you have discovered, is a recent attempt to facilitate adjustments for no audio specialists.  However, as the reduction, for example, the RAW camera filter in Photoshop to a single setting.  It may be the best guess at what a typical user would want.

    As a basic indicator, HAND, for each effect controls will be things like the gain settings or as percentage but on other effects (such as reverb for example), there is a control that sets the balance between the original material and the effect generally call "wet dry mix.

    Anyway, as you can see, seemingly simple question gets you a what either by simple answer.  I would say that if you are going to use hearing is to work through some of the tutorials on the Adobe pages... with a little research you will usually find a section on the specific effects to use.

  • Vimeo can be played with the current configuration (tablets only presentation)

    I'm working on a site with configurations desktop, tablet or phone. I have a Vimeo video in all versions, my problem is in the presentation of the tablet. I have a message on the video who said: it can be played with the current configuration. Everything works fine (desktop PC and telephone) in the online site. I don't know what I need to make changes. Appreciate help with this. Thank you, Alan

    PS tried changing the Vimeo with a YouTube video, always get an error on the site online.

    It seems that it was not software based on the Web service.  I published the site from home tonight and everything works perfectly.

  • How can I search all subjects in my guide? and if this is not possible, how do I get books have not not subjects with the same name?

    How can I search all subjects in my guide? and if this is not possible, how do I get books have not not subjects with the same name?

    "People need be able to find these without having to look inside each book TOC.

    Sorry, but I'm not a big fan or user of this sensitive arrangement "New kid on the block. Therefore, it may be that I am simply misunderstanding because I do not regularly use it. Of what you say, it seems to me that if you (or more precisely your users) are not able to click on the right side, where he says 'Getting Started' or 'List of Email Campaign' and see these topics open and view the content with search terms highlighted?

    Regarding the "bookmarks", those that are normally visible by the user and will be not viewable unless the name of the bookmark appears also as text within the topic. Although, if the two are different, you could probably get there by adding the name of the bookmark as a keyword search in the properties of the section.

    In any case, I feel that at this point, I can just be frustrating you and you may need someone else to try to help that probably better understand the issue.

    Sorry, I was not able to help.

    See you soon... Rick

  • If I can put a music file in which will start playing when the mail is opened

    I want to put a music file in the body of the email which will start playing when the emaii is opened please let me
    whether it is possible in Thunderbird mail
    Thank you

    See this: http://forums.mozillazine.org/viewtopic.php?f=39 & t = 79970 & start = 0

    I must say that I am not convinced that by using the specified HTML it could succeed to set the file musical itself. He would probably play if the sender displayed to himself and he opened on his own computer, because the file is local (always assuming that its authorized e-mail client reading.)

    Note that Thunderbird will not particularly play music embedded in messages, so if someone you send to use Thunderbird, they don't hear it.

    It is one of the reasons why I use Thunderbird. Besides having always cut sound. It can be very annoying having noise suddenly pop out of your computer in the workplace.

  • I let my child play with the computer, now when I click on a tab, it shows "(*)" to bottom of page, as the wheel of the mouse to zoom in and out and not scroll. I don't know how to fix it.

    I have let the child play with the computer. Now when I click on a tab it show (*) rather than to go to the tab, zoom on the wheel of the mouse rather that scroll and all links open a new window. How can I reset the settings to the default ones?
    Thank you.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • After you download the security update 2015-008 I lost the function of the function keys and some other functions. Have already played with the keyboard f nothing helps. Are also past system on and outside...

    After you download the security update 2015-008 I lost the function of the function keys and some other functions. Have already played with the keyboard f nothing helps. Are also past system on and outside... need help pls

    PS noticed the update downloaded twice

    disregard my previous question... I found the answer: F1, F2 has been ticked on.

  • My 3 year old has played with the computer and now my screen is sideways. How should I do?

    My 3 year old has played with the computer and now my screen is sideways.  How should I do? I tried my computer and went through everything on the screen and doesn't change anything.

    Here's how to do hold Ctrl + Alt and then press the arrow keys on your keyboard.

    or right click on desktop, select options graphics then Rotation.

  • All of a sudden my 5.7 LR on win10 64-bit start fails with the error message something like "error reading from the cache of the preview... Please restart." reboot, repair, reinstall, or rename SLCache helps to repair.

    All of a sudden my 5.7 LR on win10 64-bit start fails with the error message something like "error reading from the cache of the preview... Please restart." reboot, repair, reinstall, or rename SLCache helps to repair.

    Unbenannt.PNG

    Hello

    Greetings!

    Close to Lightroom.
    Navigate to the location where the catalog is present (default value is within the pictures folder lightroom file)

    And delete the file previews.lrdata.

    Note: do not delete the catalog with the extension .lrcat file.

    Concerning

    Jitendra

  • Can I get a renewal of my membership with the 2 month for free?

    Can I get a renewal of my membership with the 2 months free?

    Please contact support:

    Contact the customer service

    Concerning

    Megha Rawat

Maybe you are looking for

  • How long FF3.6 is going to be safe?

    I tried FF4 but he hated and do not use it. TOO many problems. I'LL move on to something else, if you finish for FF3.6. BLAH, what I've read that I'm not the only one.

  • Microsoft Office Edition 2003 Setup: Error 1311

    I am trying to reinstall Microsoft Office Student and teacher edition 2003 after a complete, non-destructive recovery on my PC.  I run on Windows XP.  I'm getting "Error 1311, file not found Source: E:\ etc..." Check that the file exists and that you

  • Application of music continues to repeat a song

    Hi, my new z3 will not play albums, keep repeating the first song. Past hours through the parameters can not find how to play an album, this is the new application and I've not used before thanks

  • RALink Bluetooth PCle

    My bluetooth is not working.in when I go to the control panel in my pc there is a yellow triangle with an exclamation mark.n black when I trouble shoot my pc it say my bluetooth PCle ralink driver has a problem

  • Need new power supply for my HP p6210y

    Hello I have a HP p6210y (http://support.hp.com/us-en/document/c01859864) and I need to upgrade the power supply for the Radeon HD 4890 I have now. I am reviewing the PSU below. However, the dimensions are actually smaller than my current diet. Who's