Help with Volume control for the video player

Hey!

My video plays and stops correctly on my video player, but I can't understand this volume control. My cursor moves to the way I want it, but the volume does not adjust. Please tell me what is wrong with my code:

slider_1.onPress = function() {}

this.startDrag (true, _root.volume_bar1._x, _root.volume_bar1._y, _root.volume_bar1._x + 133, _root.volume_bar1._y);

}

slider_1.onRelease = function() {}

this.stopDrag ();

}

slider_1.OnMouseMove = function() {}

newPoint = new Object();

newPoint = this ._x

newPoint = this ._y

_root.volume_bar1.globalToLocal (newPoint);

_root.demo_reel.setVolume(-1*newPoint.x);

}

I watched a tutorial and died this code, but of course my own instance names.

Thanks in advance!

use:

paramsF (slider_1, _root.volume_bar1._x, 0, _root.volume_bar1._x + 133 100);

slider_1.onPress = function() {}

this.startDrag (true, _root.volume_bar1._x, _root.volume_bar1._y, _root.volume_bar1._x + 133, _root.volume_bar1._y);

}

slider_1.onRelease = function() {}

this.stopDrag ();

}

slider_1.OnMouseMove = function() {}

_root.demo_reel.volume = this.m * this._x + this.b;

}

function paramsF(mc:MovieClip,x1:Number,y1:Number,x2:Number,y2:Number):Void {}

MC.m =(Y1-Y2) /(x1-x1);

MC.b = Y1 - mc.m * x 1;

}

Tags: Adobe Animate

Similar Questions

  • How to download the program Volume control for the taskbar

    Where can I get the installer of the volume control for my taskbar. I've triedControl Panel >sounds and Audio devices > check "Place Volume in the taskbar icon .

    When I check the box for "place volume icon in the taskbar" it gives me an error and says "Windows cannot display the control volume on the taskbar because the Volume control program has not been installed. To install it, use Add/Remove programs in Control Panel.

    Where can I get the program from?

    You mention that your netbook is HP. Most of the HP products have a recovery partition. If this is the case:

    -Click Start-> Run

    -Type in cmd

    -Type in the following, substitute the C:\ and D:\ readers with your partition recovery and partition system respectively:

    Expand c:\i386\sndvol32.ex_ d:\windows\system32\dllcache\sndvol32.exe

    -Press enter, and then type:

    Expand c:\i386\sndvol32.ex_ d:\windows\system32\sndvol32.exe

    -Type exit and press ENTER.

    Your Volume control should now be restored. You can check this by opening the sound and Audio Control Panel devices and by checking the box to the volume icon to Place in the taskbar.

    If your problem is not solved or there is no such thing as a recovery partition after the return

    Hope this helps

    ____________________

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • The update for the video player is for Windows, I have a Mac, is an another scheduled update?

    I received two notifications that the video player for Firefox should be updated. When I try to install the update, I get the message that it cannot do so because it is impossible to run Windows applications on a Mac. An update is planned for Macs? Also, if an update is only for Windows, is there a way I can indicate that I don't need, so I continue to receive messages?

    You have malicious software! (Yes, Macs can get malware).

    Please remove this extension and see if that helps: MediaPlayer 3.3.2

    You can do this on the page modules. Either:

    • CMD + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Then find this suspicious extension on the right side and remove (or, in case of doubt, disable).

    Often, a link will appear above at least an extension disabled/removed to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    Which solves the misleading guests?

  • Help with the cursor of volume for the video player

    I am currently developing a slider allowing to adjusts the volume of the video that is playing. I currently have a slider that allows you to set the status of the video that works very well. I put my volume slider upwards in the same way (as of the making it slide and boundaries, in that if there is content), but it fails to actually be draggable. I click on the slider and it disappears from view instead of allowing me to slide. It's been a while since I've done as a work and I am struggling to understand the problem here because everything seems to be OK. Any help would be greatly appreciated. You can see a demo here. I have attached my source below code.

    Nevermind, figured it out. Problem is that I'm just delayed with mathematics.

  • Need help with movie controls (specifically the reboot)

    Hi all

    Noob question, so bear with me.

    I have a site that loads a page with video playing on one of the pages.  I put it in place so that clicking on the button of the page starts the video and clicking on a button for a another page stops the video.

    However, instead of stop the video she just paused, so that when the user returns to the page with the video the video resumes where it left off, rather than restart.

    My site as a whole is a great movie clip, so each page is not loaded when we click a button - the content is just interpolated on the stage.

    Is it possible for me to have the control to stop the film playing (other buttons on the page) or to start playback of the movie (own page button) to have restart instead of the first image?

    Code for the start is really simple:

    content_mc.about_mc. MyVideo.Play ();

    and the judgment is:

    content_mc.about_mc. MyVideo.Stop ();

    Thank you.  I know I'm asking for the wrong thing because I left speechless Google results with what I ask, helps find the right way to do it is appreciated, even if I like a lot the way the site is designed so preferably not redo the whole site would be great!

    C.

    If you do not use a pause button so you can activate your flvplayback instance autoRewind property the flv file will restart from the beginning, whenever it stops:

    content_mc.about_mc. MyVideo.autoRewind = true;

  • Help with a table for the many buttons of MC

    Hello. I am a very new flash user and working on a flash project that has 50 movie clip buttons.

    Each button will be different so I plan to 50 buttons in the library. Each button will have 4 States - upward, downstairs, Upover, & Downover. There are 4 keyframes button, 1 for each State, with a stop() on each keyframe.

    Action script I have to press '1' is attached at the end.

    Ok. Here's where I'm stuck. What I want to do is to use an array to store the value true or false for each of my buttons so I hope I did not copy and paste this code 50 times and change the name of the button. It seems that I should be able to use the 1 section of the code to change the State of some I press the button. I just don't understand the tables and how a MC to refer to a table.

    Everyone mind help me a little?

    Let's back up a step or two. This actionscript as I wrote it is expected
    to be placed in a space of script of frame on the same scenario as the buttons
    themselves. Each button instance must have an instance name, "btn1",.
    ETX. I guess you did. These button instances must be in
    the same framework that the ActionScript. In other words, if the buttons exist
    in frame 1, then the ACE should also be Framework 1.

    1. the button instance names table must have a relative to path
    each of the buttons. The names cannot have quotes around them. The
    reference is the name and path of the instance. So, if the buttons are
    an another movieClip then you should include the name of the element with the
    each button name: example (buttonClip.btn1, buttonClip.btn2, etc.). This
    It is essential for the second part to work properly.

    The loop will use the references button in the table and assign the
    enabled property and its value for each button, then it will assign each
    the functions of each button. This is what you were after,
    a function that will work for each event for each of the
    buttons.

    Given the reference to instances of button is false, all the rest
    will fail.

    Take a look at this example,
    http://www.DDG-designs.com/downloads/arraySample.zip, this should help
    to explain the process. In this example, the buttons are in a movieClip.

  • message: 'update needed for the video player' of DomalQ with the firefox logo

    What is a virus or a scam?

    It's a scam.

  • Need help with instr/Regexp for the query

    Hi people of Oracle

    I use Oracle

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    I have a few responses from students and the valid values are + / / (alphabet) o/p and spaces at the end of the scam only not in the middle.

    According to my condition, the registration number 2 3.4 must be in the request but I'm alone (chart 3).

    Can we use REG_EXP

    Help, please.

    Thanks in advance.

    Rajesh

    with x as)
    (
    SELECT '+-+-POPPPPPP' STUDENT_RESPONSE, 1 numero_enregistrement FROM DUAL Union all the
    SELECT ' + --AOPPPPPP++' STUDENT_RESPONSE, 2 numero_enregistrement FROM DUAL Union all the
    SELECT "+-+-OPPPPPP -' STUDENT_RESPONSE, 3 numero_enregistrement FROM DUAL union all
    SELECT '+-+-9OPPPPPP' STUDENT_RESPONSE, 4 numero_enregistrement FROM DUAL)
    )
    (SELECT NUMERO_ENREGISTREMENT,
    TRIM (STUDENT_RESPONSE) X
    WHERE
    ((INSTR (UPPER (TRIM (STUDENT_RESPONSE)),'-') = 0))
    OR (INSTR (UPPER (TRIM (STUDENT_RESPONSE)), '+') = 0)
    OR (INSTR (UPPER (TRIM (STUDENT_RESPONSE)), 'O') = 0)
    OR (INSTR (UPPER (TRIM (STUDENT_RESPONSE)), 'P') = 0)
    OR (INSTR (UPPER (TRIM (STUDENT_RESPONSE)),' ')! = 0)
    )
    )

    Hi, Renon,

    Rb2000rb65 wrote:
    Hi people of Oracle

    I use Oracle

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    Thanks for posting this (and the WITH clause for sample data). It is very useful.

    I have a few responses from students and the valid values are + / / (alphabet) o/p and spaces at the end of the scam only not in the middle.

    You combine several qeustions responses in a single VARCHAR2 column? It would be better to have a separate line for each question.

    According to my condition, the registration number 2 3.4 must be in the request but I'm alone (chart 3).

    What exactly are your needs? You try to find the rows where the student_response contains one of the forbidden characters, or if it contains a space anywhere, but at the end of the string?

    Can we use REG_EXP

    Yes, but it's pretty easy and probably more effective, do not use regular expressions in this case:
    Here's one way:

    SELECT     record_number
    ,     student_response
    FROM     x
    WHERE     TRANSLATE ( UPPER ( RTRIM (student_response, ' '))
                , 'X+-OP'
                , 'X'
                )     IS NOT NULL
    ;
    

    In other words, once you remove the spaces and all occurrences of '+', '-', 'o' or 'P', then the forbidden characters are left, and you want to select the line, if there is one of these.

    If you really, really want to use a regular expression:

    SELECT     record_number
    ,     student_response
    FROM     x
    WHERE     REGEXP_LIKE ( RTRIM (student_response)
                  , '[^-+OP]'          -- or '[^+OP-]', but not '[^+-OP]'.  Discuss amongst yourselves
                  , 'i'
                  )
    ;
    

    but, again, it will be probably slower than the first solution, using TRANSLATE.

    Published by: Frank Kulash, October 17, 2011 13:05

    Published by: Frank Kulash, October 17, 2011 13:41
    What follows is a bit simpler that TRANSLATE:

    SELECT     record_number
    ,     student_response
    FROM     x
    WHERE     RTRIM ( UPPER ( RTRIM (student_response, ' '))
               , '+-OP'
               )          IS NOT NULL
    ;
    
  • HELP with wall mount for the iMac-end 2012 model 27 in.

    Can someone help me please... I brought the iMac 27 in. in 2013. And I need to mount it on the wall.

    To my astonishment, I discovered that I can't get on the wall that my iMac is late 2012 model. And this model does not come with wall VESA opition.

    When I brought my computer, I was not put to the aware of the notice of wall-mounted or free-standing support.

    I spoke with tech support but no joy.  I was told to replace my iMAC or buy 3rd party mounting Kit. Unfortunately the 3rd party SDK does not solve my problem

    I wrote an email to Tim Cook, CEO, Jonathan I, Chief Designer but not heard of one of them.

    I would be very grateful if someone out there can help me with my dilemm.  Thank you hear from someone soon.

    Mrs. Regis Kishan

    See here http://eshop.macsales.com/item/Newer%20Technology/NUMNTIMVS/?utm_source=google&u tm_medium = shoppingengine & utm_campaign = go...

  • Need help with volume control

    I looked around the forums and found some ways quite complex to control the volume of a file being read. I'm new to LabView and I was wondering if I could get an example/explanation of how to simply control the volume of a sound file via a slider. I tried to use 'Sound exit Volume Set', but could not understand what the "task ID" should be, or whether it was still necessary.

    Noticed that I never joined the mod, but no matter since I realized that if the .wav file is large you probably want to read in chunks. The mod above should have the number of samples control back in there.

  • Help with SOQL query for the filter of AutoSynch

    The goal is to seize any product that contains "Maint" in there. Here's what we have but we get no result of the call.

    Where:

    (LastModifiedDate > = last download successful AND Product__c = ' Maint % ')

    Any suggestions or corrections?

    I would like to use

    .... Product__c like ' % Maint.

    and test my query SOQL using Force.com Explorer or your friendly local SFDC administrator to debug any further.

  • Help with a script for the date field

    Is this possible when the display of a date field is not also: date {EEEE, MMMM D, YYYY}

    then

    Message: "Please select a date from the calendar to the date.

    and focus on the date field

    Thank you

    I thought the event output, if you change the this.rawValue to xfa.event.change, you can try to use the calculate... event, which would mean that they get the message earlier.

    Anyway they will always be able to cut-and - paste a date if it is in the correct format.

    Bruce

  • Autohide the HTML5 player controls when the video is suspended as well.

    The HTML5 player controls will hide after a few seconds when a video begins to play, either click on a YouTube video link, or when the video is taken from the break. However, the controls will be visible as long as the video is paused. The controls are quite obstructive due to certain times when I need a break to see a certain thing in the video in a very short time-frame but got covered by the player controls and disappears when resume playback. So, how to make controls of the HTML5 to hide also automatically a few seconds after the video player is paused or instantly hides when the mouse is outside the area of the drive?

    Hi frfxuser, the embedded player works the way you describe, but YouTube uses scripts to customize the player controls, so you would need a specific YouTube 'hack' to hide the application.

    One possible approach would be to use a Bookmarklet, which is a snippet of JavaScript that you can save on your bookmarks bar or Bookmarks Menu for quick access. The script can assign controls ' view: no ', then when you click on the new button, remove this rule so they show once again and you can return to normal.

    If you want to try it:

    A time of installation:

    (A) select and copy the following script:

    javascript:var s=document.getElementById('stylehidecontrols'); if(s){s.remove();} else{s=document.createElement('style'); s.id='stylehidecontrols'; var r='#movie_player .ytp-gradient-top, #movie_player .ytp-chrome-top, #movie_player .ytp-progress-bar-container, #movie_player .ytp-chrome-controls{display:none !important}'; s.appendChild(document.createTextNode(r)); document.body.appendChild(s);} void 0;

    (B) right click a place on the bookmarks Menu or Bookmarks Toolbar where you want to save the script and choose new bookmark

    (C) in the location box, paste the script, and then in the name box, type something you remember as YT hide and click the Add button

    To use the bookmarklet:

    After clicking on pause, click on the bookmarklet to run the script on the page and hide the controls.

    You can return to the player by clicking on it, but if you want comprehensive controls, click on the bookmarklet button again to remove the hack of the page style.

  • How can I reinstall the volume control for vista/firefox?

    I've always had control of volume at the bottom of my computer vista laptop and it is now gone. How can I get that back?

    See this - http://www.vistax64.com/vista-general/121116-help-my-volume-control-gone.html

  • Satellite Pro P300 - problem with volume control

    Hello

    I have a problem with my volume control. He worked for the first two months of use value, but now refuses to lower the sound.
    He sort of stutters and actually transforms the sound upward when you turn, he 'left' to drop.

    I markets DEAMS it is a digital control and therefore is not a point 'end' like other laptops. I also noticed others are experieicing this problem.

    Is there a solution to this problem? I don't really like having to manually click on the volume control in the status bar on the window in order to be able to turn the laptop down. Maybe someone can help me?

    Thanks in advance.
    Sam

    Hello

    In your case, I recommend reinstalling the audio driver and controls (with Win XP) Toshiba or Toshiba VAP (if Vista is installed).
    In addition, you should check if the BIOS can be updated too.

    Sorry for this suggestion, but in my opinion that the question must be related software and the fact is that driver sound and the VAP multimedia button controls and the sound card.

    It of certainly worth a try

Maybe you are looking for