Movement 2 different movieClips to the same delivery function

Hello

I'm using the following code to simulate a control bar filling on flight volume + and unfilling on flight.

The dredger is a mask that causes the filling to appear and disappear when the mouse is pressed and dragged on the volume control.

It works well, but I would like to add a 'switch' that moves at the same time and in the same place as fill, but above it... I created the movieClip for the switch and tried all kinds of variations to the following code its instance in the code, but can't seem to make it work... below is the code that works with only the fill mask / unfilling.

Any help would be great!

This.ratio = 0;
dragger.onPress = function() {}
this.startDrag (true, 0, 0, line._width, 0);
this.onEnterFrame = function() {}
ratio = Math.round(this._x*100/line._width);
_root.volume = report;
};
};
dragger.onRelease = dragger.onRelease = stopDrag;

Thank you!

Pat

use:

This.ratio = 0;
dragger.onPress = function() {}
this.startDrag (true, 0, 0, line._width, 0);
this.onEnterFrame = function() {}

switch_mc._x = this ._x;
ratio = Math.round(this._x*100/line._width);
_root.volume = report;
};
};
dragger.onRelease = dragger.onRelease = stopDragF;

function stopDragF() {}

this.stopDrag ();

delete this.onEnterFrame;

}

Tags: Adobe Animate

Similar Questions

  • Is it possible to put different movieclips in the same table?

    Hello. I have two different balls movieclips. I want to put the two in the table with a single bullet, but it seems that all the second movieclip instances are not controlled by bullet_ary [i]

    Yes, you can add more than one:

    var mcA:Arrray = [];

    for (var i: int = 0; i<>
    mcA.push (new MovieClip());

    }

  • Why don't the mpg2 files allow to move to different parts of the clip in XP? Vista lets me.

    Hello.

    Why don't the mpg2 files allow to move to different parts of the clip in XP? Vista lets me.

    Desktop: Windows XP 32-bit Home Edition. Laptop: Windows Vista Home Premium 64-bit.

    I have a DVD I paid for and used a software to copy video clips (unprotected) to mpeg2 files. There are 4 of them. It was a DVD recorded in 2004 at a dance event. It is not a commercial version.

    XP: The 1st clip allows me to open it in Windows Media Player 11 and I can drag autour in various places to look at different times of the clip. The clip of 2nd, 3rd and 4th are locked and won't let me pick different times to watch. They will play through.

    In Vista: I can't the cursor around anywhere, then select any time to look into all parts of clips with THE 4 clips.

    I took the clips, put them on a USB stick, moved in both sense between each system. I tried two more than once.

    I used the software to rip the clips on XP and Vista. It's the same result. The fault seems to lie with XP.

    Perhaps some of this DVD had some kind of protection against copying for XP but not Vista (and other OS of potentially). Or it's the encoder?

    My account has been locked or something, I couldn't answer.

    It is therefore probably encriptación with Windows Media player. I can read files with RealPlayer on Windows XP and Vista in Windows Media Player.

    Tried to use my software for video editing, re - export files in mpeg2. But each of them had sound problems. So, this is how the DVD is probably protected.

    I have something on Vista operating systems and a workaround with XP using RealPlayer for the original files. I'll keep looking. It's mine to archive all I want at this stage.

  • UILoader question-different sources, but the same content appears. Why?

    Hello

    It's strange, I tested a couple of times in different ways, but cannot understand why this happens. I'll try to brake it down to be clear, I can:

    I picked up a uiLoader component, and copy - paste four times, so now I had five of them in my flash movie. Each obtained from a different source (dresses/dresses1.swf dresses/dresses2.swf, dresses3.swf/dresses, dresses/dresses4.swf, dresses/dresses5.swf). But when I run the movie, all 5 uiLoaders display the same content: dresses/dresses2.swf and I do not understand why. For a test, I replaced the file .swf with some JPEGs and they were ok, but as I put the swf files they show the same content again.

    The sources are ok, they work perfectly separately, so I can't understand what is the reason why the SWFs are loaded correctly...

    Help, please

    ved

    difficult to help without seeing your code

  • Different version of the same form

    I have 3 different versions of the same form that I need to turn it into editable PDF files. Each form has the same fields, placed in the same place, however the logo and the language is different on PDF files. I already have a modifiable form and it was VERY time consuming, there are a lot of fields and check boxes throughout the document.

    Is it possible to copy and paste (drag / move) the editable fields from the form for the 2 other versions? Or do I have to create fields of each on individually? One took me several hours to complete, and I'm not anxious to do this 2 more times.

    For any help or suggestion would be greatly appreciated!

    All you have to do is to open the document that contains the fields, and then select "Document > replace Pages" for updating the content of the underlying page with pages to a new document that you created in the other language. The fields, links, etc will be kept.

  • Cropping multiple pictures on different pages at the same time

    Can I culture several images on different pages at the same time. In my french version of software Photos 1.5, this option is called "the photo to the frame adapter". I'm able to select this image of an option at a time, but could not find a way to make the entire book in one click.

    No there is no functionality like this in Photos

    You can ask Apple to add the - http://www.apple.com/feedback/photos.html

    LN

  • When you download a new page, the page will move upwards a little, revealing the same page as, and then will go back down and full download.

    I have Windows 7 32 bit, Firefox 19.0 when I click to go to another page, sometimes the current page will move upwards a little, revealing the same page under. After a few moments, the current page will move down and then goes to the new page and download.

    Hello, you can try to reproduce this behavior when you start firefox in safe mode, once? If not, perhaps an addon intrudes here...

    Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox

  • I have 2 different accounts on the same sites. Whenever I go on this site, one of my usernames prefills the field of the United Nations, and I can't access the other account. I can't replace my pre-filled username. Ideas?

    I have 2 different accounts on the same sites. Whenever I go on this site, one of my two (always the same) identifiers pre fills in the username field and I can't access the other account. The Web site legitimately refuse my password. I can't replace my username pre-populated because the second I hit enter to open a session, the initial username is rewritten in its field. Or user names is registered by firefox anywhere in the "Tools"; Options, security, advanced, or fields from the privacy menu.

    I noticed that this Web site has installed a cookie on my computer called "_rememberme" that contains the user name plaguing me.

    This is a Web site that I have access to very sensitive and important information, and I have to have two accounts available at different times.

    Thanks, Joshua
    XP, sp3; FF3.6.3

    This has happened

    A few times a week

    == I added the second account on this Web site.

    You will need to disable that remember me cookie, and make sure that you remove a tick to remember you on this Web site.
    Tools > Options > privacy > Cookies: "show the Cookies".

    You can disable the automatic filling of a name and a password.

    See:
    http://KB.mozillazine.org/Password_only_filled_after_entering_user_name
    http://KB.mozillazine.org/signon.autofillForms

    To open the topic: config page, type Subject: config in the address bar (address) and press the Enter key, as you type the url of a Web site to open a Web site.
    If you see a warning then you can confirm that you want to access this page.

  • Why does my 7th generation nano play different versions of the same song (acoustic, demo, replacing) one after another before she switches to a different song.

    Why does my 7th generation nano play different versions of the same song (acoustic, demo, replacing) one after another before she switches to a different song?

    Maybe the current list of the song has the songs listed in alphabetical order, and you have the iPod nano to play in the order of the list...  How do you think iPod nano to read the list of songs?

  • can I use 2 Mac Pro, the old and the other from different locations with the same apple ID?

    can I use 2 Mac Pro, the old and the other from different locations with the same apple ID?

    Yes. The only problem that I see if Macs were different countries. The method of payment in the account/ID must be associated with the country where the unit is located and you can only buy Apps from the store of the country where the computers are located

  • I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I would get one that has 4700 comments already.

  • How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    I find easier to use this copy separate Automator Service (download Dropbox).

    To install in your numbers > Services, double-click menu just the package downloaded .workflow and if necessary give permissions in system preferences > security & privacy.

    To use, just:

    1. Select the cells in the column with duplicate names.
    2. Choose separate copy in numbers > Services menu.
    3. Click once in the upper cell where you want the deduplicated values appear.
    4. Command-v to paste.

    SG

  • How to display on my screen 2 different applications at the same time?

    How to display on my screen 2 different applications at the same time?

    Hello

    The best place to ask would be the forums for answers corresponding to your version of Windows.

    Answers - Windows Forums
    http://answers.Microsoft.com/en-us/Windows

    =====================

    If you have Windows 7 with Aero - click with the right button on the taskbar at the bottom of the screen and click on 'show windows '.
    Side by Side.

    For all versions of Windows:

    You could also reduce less than full screen using the small box to the left of the red X at the top right
    and then resizing windows as you want.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Please help me to orgnize different version of the same application

    Hi all

    It is so messy for me to create a different version of the same application to different platform, to touch, to not touch.

    Can someone help me understand how to manage the same code base for all versions. In addition, we manage all the new functionality of the platform. These things also create headaches by signing the application. With JDE plug-in in eclipse, we are not able to understand, how we will do it.

    Please help me.

    Thank you.

    Adarsh Pandey

    Hi Alaka

    You can make use of the Macro.

    Suppose you want to have the same code base for touch and non-touch devices. You can define a macro saying IS_TOUCH. now in the code, you can put a brake, if this option is enabled, then include the key code that include no button code.

    We had done the same for "BOLD" devices and the storm.

    You can give it a try, in the same way, you can have separate devices also Macro.

    Thank you

    Ankit

  • use two different characters in the same domain

    Hi, how to use for different fonts in the same field?

    unless "crush you" painting: you do not have.
    If you do, you can use graphics.setFont

Maybe you are looking for

  • Satellite R630-148 - Boot on CD under Windows 8

    My Satellite R630-148 was running on Windows 7. This week, my son has changed that and installed Windows 8. I would like to go back to Windows and I have the CD to do it but I can't boot from the CD while pressind key F8 when the computer starts... H

  • How can I make the DVD drive Mat * une Région UJ - 841S (Satellite M70) free?

    HelloI spent hours and hours trying to remove my car DVD DVD regional code Mat * a UJ - 841 S on Toshiba Satellite M70-204.I checked on various forums and asked a lot of people in the stores...Nobody gave me a hint to this topic...Can you please help

  • Can I use USB hubs on cRIO?

    I would use the USB port on the cRIO 2 purposes. One for connecting to a USB key and another to control a small LCD 16 x 2 display. LCD screen will be updated very rarely but will give us a lot of read/write on the USB drive. I want to know if I can

  • SIM card read/write API

    Hi all I've been looking around, but I can't seem to find a way to read and write contacts on the SIM Card PIM API does not allow access to the SIM card. Can someone tell me the right way? I see that the BlackBerry has the ability to copy contacts th

  • I have a new computer and I am trying to reinstall my Acrobat Pro.  Help!

    I have a new computer and I am trying to reinstall my Acrobat Pro.  Help!