Is there a way for actionscript 3 to detect if a cursor value is increasing?

Hi, I'm trying to get my slider to set the size of an object inside one of my pages, that I'm just wondering if there is a way to do it or if it does not work. my current code is below:

package 
{
 import flash.display.MovieClip;
 import flash.events.MouseEvent;
 import fl.controls.Slider;
 import fl.events.SliderEvent;
 import fl.controls.Label;
 import fl.controls.NumericStepper;
 import flash.events.Event;
 public class Main extends MovieClip
  {
   //Variables
   var startPage:StartPage;
   var tutorialPage:TutorialPage;
   var maleSizePage:MaleSizePage;
   var femaleSizePage:FemaleSizePage;
 
   public function Main()
   {
 
    //Pages
    startPage = new StartPage  ;
    tutorialPage = new TutorialPage  ;
    maleSizePage = new MaleSizePage  ;
    femaleSizePage = new FemaleSizePage  ;
 
    addChild(startPage);
 
    //Event Listeners
    startPage.startButton.addEventListener(MouseEvent.CLICK,startButtonClick);
    tutorialPage.continueButton.addEventListener(MouseEvent.CLICK,tutorialContinueButtonClick);
    maleSizePage.heightSlider.addEventListener(SliderEvent.CHANGE,heightSlChange_M);
    maleSizePage.neckSlider.addEventListener(SliderEvent.CHANGE,neckSlChange_M);
    maleSizePage.chestSlider.addEventListener(SliderEvent.CHANGE,chestSlChange_M);
    maleSizePage.waistSlider.addEventListener(SliderEvent.CHANGE,waistSlChange_M);
    maleSizePage.armSlider.addEventListener(SliderEvent.CHANGE,armSlChange_M);
    maleSizePage.legSlider.addEventListener(SliderEvent.CHANGE,legSlChange_M);
    maleSizePage.heightValue.addEventListener(Event.CHANGE,heightVChange_M);
    maleSizePage.neckValue.addEventListener(Event.CHANGE,neckVChange_M);
    maleSizePage.chestValue.addEventListener(Event.CHANGE,chestVChange_M);
    maleSizePage.waistValue.addEventListener(Event.CHANGE,waistVChange_M);
    maleSizePage.armValue.addEventListener(Event.CHANGE,armVChange_M);
    maleSizePage.legValue.addEventListener(Event.CHANGE,legVChange_M);
   }
   
   
 
   function startButtonClick(event:MouseEvent):void
   {
    addChild(tutorialPage);
   }
   function tutorialContinueButtonClick(event:MouseEvent):void
   {
    if (startPage.maleSelection.selected == true)
    {
     addChild(maleSizePage);
     removeChild(startPage);
     removeChild(tutorialPage);
    }
    if (startPage.femaleSelection.selected == true)
    {
     addChild(femaleSizePage);
     removeChild(startPage);
     removeChild(tutorialPage);
    }
   }
 
   function heightSlChange_M(event:SliderEvent):void
   {
    
    maleSizePage.heightValue.value = maleSizePage.heightSlider.value;
    
   }
   function neckSlChange_M(event:SliderEvent):void
   {
 
    maleSizePage.neckValue.value = maleSizePage.neckSlider.value;
 
   }
   function chestSlChange_M(event:SliderEvent):void
   {
 
    maleSizePage.chestValue.value = maleSizePage.chestSlider.value;
 
   }
   function waistSlChange_M(event:SliderEvent):void
   {
 
    maleSizePage.waistValue.value = maleSizePage.waistSlider.value;
   }
   function armSlChange_M(event:SliderEvent):void
   {
 
    maleSizePage.armValue.value = maleSizePage.armSlider.value;
   }
   function legSlChange_M(event:SliderEvent):void
   {
 
    maleSizePage.legValue.value = maleSizePage.legSlider.value;
   }
   function heightVChange_M(e:Event)
   {
    maleSizePage.heightSlider.value = maleSizePage.heightValue.value;
   }
   function neckVChange_M(e:Event)
   {
    maleSizePage.neckSlider.value = maleSizePage.neckValue.value;
   }
   function chestVChange_M(e:Event)
   {
    maleSizePage.chestSlider.value = maleSizePage.chestValue.value;
   }
   function waistVChange_M(e:Event)
   {
    maleSizePage.waistSlider.value = maleSizePage.waistValue.value;
   }
   function armVChange_M(e:Event)
   {
    maleSizePage.armSlider.value = maleSizePage.armValue.value;
   }
   function legVChange_M(e:Event)
   {
    maleSizePage.legSlider.value = maleSizePage.legValue.value;
   }
 
 
  }
}

It looks that you assign the value of the cursor to a variable instead of using it to control the height.  The way you use can only increase the height and only if the value of the slider is > = 65

The slider should be directly affecting the height setting, as in...

function heightSlChange_M(event:SliderEvent):void {}

maleSizePage.maleCharacter.height = maleSizePage.heightSlider.value;

}

Tags: Adobe Animate

Similar Questions

  • Is there a way for mail provide an acknowledgment of a sent email, and, if it has been opened?

    Is there a way for mail provide an acknowledgment of a sent email, and, if it has been opened?

    No, for good reason. It is up to the recipient to allow revenue so your request for acknowledgement is unnecessary unless the recipient agrees to send the receipt. So in your body of the email ask the recipient to notify you when they read the email. Many believe the business person whether or not they open or read emails.

  • Is there a way for the secret video files to the sansa fuze using QUICK MEDIA CONVERTER?

    Is there a way for the secret video files to the sansa fuze using QUICK MEDIA CONVERTER?

    Not really. The way final only ot add videos on the "rocket" is SMC. Rhapsody will do this also, but I don't know that its faster.

  • Someone at - there a way for me to open an IFO file, so I can copy it? I shot a video on my Hitachi DVD camera and need to change.

    Someone at - there a way for me to open an IFO file, so I can copy it? I shot a video on my Hitachi DVD camera and need to change.

    Hello Mjcj1,

    Thank you for your message.  To change an IFO file, you'll need 3rd party software.  Click HERE for an example.
    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Is there a way for me to reset the password on my laptop (I am the administrator, but I've changed my password and you forgot what I changed to).

    Is there a way for me to reset the password on my laptop (I am the administrator, but I've changed my password and you forgot what I changed to)?

    When I click on "reset password" it says to insert the removable disk or flash drive.  I put in a disk, and nothing happened.  I inserted a flash drive and the computer said that it could not do (or something).

    Hello

    You must make a password reset disk before you forgot your password, not then.

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-password-reset-disk

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    And this is the Information from Microsoft on the problems of passwords;

    You will need to borrow a Microsoft DVD from a friend, if you do not, as Recovery DVD a manufacturer does not have these particular options work.

    If you are unable to connect to Windows 7 or Windows Vista, you can use the Windows Vista System Restore feature, or the Windows 7 system restore feature.

    You may be unable to connect to Windows Vista or Windows 7 in the following scenarios:

    • Scenario 1: You recently set a new password for the protected administrator account. However, you don't remember the password.
    • Scenario 2: You type the correct password. However, Windows Vista or Windows 7 does not accept the password because the system is damaged.
    • Scenario 3: You delete a protected administrator account. Now, you cannot connect to another administrator account.
    • Scenario 4: You change an administrator account protected with a standard user account. Now, you cannot connect to another administrator account.

    See you soon.

  • Is there a way for two people to connect using BBM voice surveys and/or video anonymously

    Hello

    Is there a way for two people to connect via BBM voice and/or video and not force share them their credentials, unless they wanted to anonymously?

    Thank you

    Sorry to be so short: No.

  • Is there a way for EA to automatically save the audio files in the project and publish directories & json?

    Is there a way for EA to automatically save the audio files in the project and publish directories & json? Thank you

    Bob

    good edge would not copy all the external files that you have added to your project in the publication of record, you should only do copy paste your files and folders created by your self after publication!

    and I can not undrestand "Unlike you, I'm not that qualified and often make mistakes that make some of my totally useless code retries." You can save your project every time with the new name to have your previews works!

    and on the withdrawal of your symbols that uses the name of the class, you're hurting, you should do it this way

    SYM $(".) Preview"). Remove();

    and that's why you can not make it work

    If tehre is any question feel free to ask me questions

    Zaxist

  • Is there a way for my images which are links NOT to be preceded what color I put my links in my page properties?

    Hello.

    I put my links to be black in my page properties.  I have somes pictures that I use for the links and I don't want to have a black box, tracing their plan.  It's wasting my design and tables.  is there a way for my images which are links NOT to be preceded what color I put my links in my page properties?

    See attachment.

    Thanks for sharing your knowledge with me.

    Gina

    If you would like your unbound images must have a border and remove only the border of linked images then this css:

    an img {border: none ;}}

    -- 
    
    E. Michael Brandt
    
    www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions
    
    www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia
    
    --
    
  • Is there a way to display the coordinates of the mouse cursor when you are working in MS Win7 Works?

    original title: coordinates of the cursor

    Is there a way to display the coordinates of the mouse cursor when you are working in MS Win7 Works?

    Bob,

    You may need to use third-party programs to make...

    You can locate the mouse by using the steps in the link

    http://www.tipsnext.com/operating-system/how-to-quickly-locate-a-lost-mouse-pointer-on-Windows-XP-7/

  • Is there a way for Netflix to Macbook Apple TV airplay (3rd generation)

    Hello.

    I just got an apple TV (3rd generation) and I have a Macbook pro 15 2012 model late retina. The Netflix on Apple TV app works fine for me, but her thing is that my parents or my girlfriend need of subtitles in the language which is not offered by netflix, so I need to add subtitles external source and I can do that on the Macbook. However, Netflix doesn't let me airplay Macbook from Apple tv, which gives me a display error, and I suggest that I make sure that I am not not using airplay to fix. Is there a way to get around this restriction?

    Hello. I think it's a restriction built into the Netflix app so it is probably pretty hard to beat. You could try mirroring, that might work. Incidentally, when you use the basic AirPlay, ATV will flow the video directly from the server, so your subtitles does not appear anyway.

  • Once my son's story has been deleted is there a way for me to get it back?

    I suspect that my son look at Web sites that are not appropriate. He removes his browsing history when it is made. Is there a way I can go back and see where he's been?

    You could have a nose around C:\Users\HisUserName\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5

    If your son was visit questionable sites and then hide his tracks while he would probably also have made use of InPrivate not browsing in which case no conventional tool could examine the traces. But you can try a general search on the internet to see if all of these tools are available.

    To block questionable sites in the future, you can configure Parental control [see Windows help] & Family Safety [for Windows Live] on her account user. Windows Help contains links to videos of MS online giving fuller explanations of these two protection mechanisms. Your ISP can also have parameters that you can put on any connection, but this varies depending on the Internet service providers.

  • My client needs to change the text that appears on every page of his site, but in the edition browser is not make changes to the master page text. Is there a way for him to do? A special widget or something?

    He wants a place on the header of every page of his Web site where he can post his latest information in real time every day. If he had his way, it would look like a strip of tickets transiting via the header of each page. I was going to include it in the design of the master page header, so all that he would have to do is update the copy on the master and it would update the header of each page. But in the Assembly browser does not work on master pages.

    Is there a way to do this? Even if it's an a widget that has been done by another Member of the community of Muse?

    Thank you.

    By BC you can change the template or page that would change the display, but if the new site is updated to Muse then he would cancel the change.

    Thank you

    Sanjit

  • Is there a way for the hotspots of turning adjust an image capable of evolving to fit the browser?

    Hello

    Currently this is my site: paddyohara.co.uk

    The main image of bearing on my homepage is currently of fixed size, but when I put the image to enlarge it to fit the browser, the hotspots of flipping moved out of position on the large screen resolutions. Is there a way to get the hotspots of bearing size upward from the image of sizing up to?

    I hope this makes sense, any help much appreciated

    Paddy

    You can try something like this (I have not because I so rarely use hotspots).

    http://StackOverflow.com/questions/19671168/how-to-adjust-the-top-left-width-height-based-on-the-ratio-of-the-resized-image

  • Switching of TB MT-Newswatcher. Is there a way for all messages marked as read and archived, deleted? I want to see only new items when I get back.

    I'm under NT-Newswatcher on my 10.8.5 than MacBook Pro for Usenet and it will no longer work with the newer operating system. I like NT - W because I'm going out ITI brands all groups of discussion, a reading and then erased them or whatever he does automatically. I found on tuberculosis, a way to mark all as read, but the old posts are still cluttering up things. Is there (1) a way to automate the service so when I get out of TB or the particular group there are marked as read and removed or (2) a way to do it by hand, so to speak? Thank you.

    Unread (Alt - V) - topics - view

  • Is there a way for Thunderbird indicate visually that it is in offline mode?

    I understand about offline mode, but is it possible to have Thunderbird visually that you know you are in offline mode without waiting until you try to send an e-mail or other tasks which requires him to you say it is (and has been) offline for awhile?

    Look at the icon online / offline in the lower left corner of the screen. It looks like 2 computer screens. There is a red cross on it offline. You can click the icon to change state.

Maybe you are looking for