Button to move the sprite

I have a script on a chart with an arrow down. When I click on the button, I want to spend anoter sprite named "letter". The script works, but the repeat loop to continue the sprite while the mouse button is released - actis instantly. So instead of slowly, move 5 pixels at a time, he moves to 200 pixels at a time (this range is defined in the script, since the start position of the sprite is 495 - 495-295 = 200).

Can someone let me know if there is a code I can insert in the repeat loop to slow it down?

JARGON CODE IS ATTACHED.

Thanks for all the help again. I finally got it!

Tags: Director

Similar Questions

  • SWF external button to move the main timeline

    Hello

    I did a hand (parent) page that loads a swf that has a button (a1) which, when the click on I need to move the chronology of the parent

    I wrote this code to the external swf and tried many commands such as Object (root) .gotoAndStop (1);

    A1.buttonMode = true;

    A1.addEventListener (MouseEvent.MOUSE_UP, a1a);

    function a1a(event:MouseEvent):void {}

    }

    What should I write on the inside to make it work?
    Thanks in advance

    Try this:

    A1.buttonMode = true;

    A1.addEventListener (MouseEvent.MOUSE_UP, a1a);

    function a1a(event:MouseEvent):void {}

    trace (a1.parent.parent.parent);

    trace (a1.parent.parent);

    find the good timeline, possibly with more parent.parent... and then:

    MovieClip (a1.parent.parent.parent) .gotoAndtop (10);

    }

  • When I press buttons to move the focus moves to the INTEGRATION which is not intended

    There is integration at the bottom of the screen, whenever I press each shift key, the focus moves to it. I don't want to, I don't turn it on, not deliberately anyway, this is not wanted, it made the browser unusable.

    How can I disable it [question mark] - [cannot use a shift to display the symbol of question mark real, media or almost anything.]

    It seems to have cleared up to now, maybe a stuck on the keyboard control key.

    You wouldn't believe how much it was frustrating!

    Please cancel the request.

  • Can't push button and move the mouse pads at the same time hp envy 15?

    Cannot press the keyboard and move my mouse at the same time, the stops of mouse moving on the screen, then after a few seconds, then thaws it and it can be moved again.

    HP Envy 15-3012tx, Windows 7 64 bit, have not updated, there quite yet new at the beginning of the year

    I also found this to play games almost unbearable, even if I found the source of the problem is the touchpad by using the feature called "palm detection.

    How I fixed it for my computer hp envy laptop was that...

    Control Panel > hardware and audio > synaptics clickpad v.1.1 > parameters > "smart sense" > click the gears of the 'line of smart sense' > the upper off wheel

  • Try to use a button to move form data to a different section of the document

    Don't know how to form this question, but hoping that you guys (experts) will be able to help me...

    I am trying to set up a form that, when you select a button it moves the data as below:

    image1.png

    and then will move to the appropriate section as indicated by the button that you press:

    image2.png

    Is this possible? Any help you can provide would be much appreciated! Thanks in advance.

    Sure. Just use something like this as a MouseUp the button script:

    this.getField("Target1").value = this.getField("Source1").valueAsString;
    this.getField("Target2").value = this.getField("Source2").valueAsString;
    this.getField("Target3").value = this.getField("Source3").valueAsString;
    

    Of course, you will need to adjust the field names in the code to match those of your file...

  • Location of the sprite

    The code I have so far.

    The sprite is equal to a paddle which I want to go left to right on the screen using the arrow keys.

    However, the code allows only the palette in the direction of the + code, I assumed - would do the opposite, but he stops just the sprite to move.

    Also I have this code in on prepareFrame me, did had no effect on the code?

    If keycode = 124 then - right arrow key

    Sprite (27) .locH = sprite (27) .locH - 2

    on the other

    If .loc sprite (27) = (477) then - this code was to stop the paddle loose at the edge of the screen.

    If keycode = 123

    Sprite (27) .locH = .locH sprite (27) + 2

    end if

    end if

    end if

    end

    any help with this would be greatly appreciated thanks.

    This is a behavior that you can attach to your sprite who does what you want.

    Min and Max of locH values are precalculated in beginSprite. It is slightly more efficient and makes the EnterFrame code easier to understand.

    -Movement of Sprite with the behavior of the keys left/right arrow

    Sp property - refers to this sprite

    property speed - the number of pixels to move the sprite each image

    property MaxRight - locH Maximum sprite can move to

    MinLeft property - locH Minimum sprite can move to

    On GetBehaviorDescription me

    return ' movement left/right Sprite with arrows. "

    end GetBehaviorDescription

    On GetPropertyDescriptionList me

    Accessories = [:]

    Accessories [#Speed] = [#default: 5, #format: #integer, #Range: [#min:1, #max: 20], #comment: "Number of pixels to move sprite every EnterFrame."]

    return accessories

    end GetPropertyDescriptionList

    on beginSprite me

    SP = sprite (me.spriteNum)

    -calculate MaxRight, MinLeft

    regPoint = Sp.member.regpoint

    MinLeft = regPoint [1]

    MaxRight (stage) =.rect.width - (Sp.width - regPoint [1])

    end beginSprite

    on enterFrame me

    If _key.keyPressed (123) then - left arrow

    Sp.locH = max (Sp.locH - speed, MinLeft)

    end if

    If _key.keyPressed (124) so - right arrow

    Sp.locH = min (Sp.locH + speed, MaxRight)

    end if

    end enterFrame

  • How to remove or move the button 'More' on incoming message header?

    Previously, the "delete" button was on the far right. This is where I want to.

    Click with the right button on the toolbar and select Customize. Add or remove buttons from the dialog box that opens or move the way dialog and drag and drop the buttons where you want.

  • How can I move the button reload of the page in firefox OSX for next to the back button where it was before I updated.

    How can I move the button reload of the page in firefox OSX for next to the back button where it was before I updated.
    I know there is an addon for windows Classic theme, but I need a fix for osx... its very frustrating when you update and things like this change and can be customized to the way we are used to using the browser. his counter intuitive to have the page button refresh so far from the back and home buttons.

    never mind, I found the preferences in the addon manager... Thanks again!

  • When I hit the button of movies on iTunes Store, keep it just on iPad music Air

    Open iTunes store. By default, the music and nothing happens when I press the button for movies?

    See if restart your iPad support.

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.
  • How can I make a button that will move the mail that I consult to a specific folder?

    I'm moving to Eudora, where I had several buttons that I had added to top to move e-mails in specific folders, such as invoices, orders, Support, etc. I see that I can customize the top bar in Thunderbird, but I can't seem to find a way to make buttons to automate the movement of e-mails in specific folders. Is there a way to do them in this program?

    I think this add-on can do what you want:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/tidybird/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

    Also consider the method of the filters:

    http://KB.mozillazine.org/filters _ (Thunderbird)

  • In the new version of Firefox 29.0.1 removed the ability to move the right side navigation buttons. Restored version of Firefox 28.

    I always work hard and with Firefox. My customization assuming that it is transferred always organize buttons back and forward in the navigation bar on the right side which was convenient for a quick job. In the new version of Firefox 29.0.1 deleted the possibility of moving the navigation on the right side buttons... Firefox is not flexible enough for the user. Really sorry. Restored version of Firefox 28. More frequent to not remove the flexible adjustment of the navigation keys. Thank you.

    28 Firefox has security flaws. It is not safe to use.

    You can move the navigation buttons in Firefox 29 if you install an add-on.

    1. Classic restaurateur theme installation and restart Firefox when prompted.
    2. Open the modules (Ctrl + Shift + A Manager; Mac: Command + shift + A), then the Extensions category.
    3. Beside the classical restaurant theme, click on the Options button.
    4. On the main tab, make sure 'Mobile back-forward button' is checked. Close the options window when finished.
    5. Right-click on a zone empty of the tab bar and select Customize.
    6. Drag the previous/next buttons wherever you want.
    7. Click the Customize the output at the bottom right button when finished.
  • I have used to have the button "Refresh" on the left side... Why can't I move?

    Please help me move the button "Refresh" to the left... Who thinks it's good idea to move it to the right and make it static.

    There is now an obtained large container that contains the actual addresses and the back and buttons bar forward and Stop/Reload/Go button combination which is located at the right end of the address bar.

    You can move this container as a single object and not its individual components.

    You need the extension Classic theme restaurant if you want to manipulate the components such as the Refresh button.

  • How can I move the home button between the front and the address bar?

    Her that I have my firefox put in place over the years is to place the buttons like this:

    [Back] [Front] [Stop/Reload] [Home] [Progress Animation] [Address bar]

    Now in FF29 I'm trying to move the home button between BackForward buttons and the address bar and it won't let me.

    I thought that FF29 was supposed to be the most customizable Firefox yet? * confused *.

    Is there a way to do it, am I missing something? Thank you

    "I thought that FF29 was supposed to be the most customizable Firefox yet?

    Who told you that was incorrect, as far as I'm concerned. Firefox is more customizable than the 'competition', but not as much as the previous versions were.

    The home button can be moved, but the back / button drop-down list is set to the address bar - they cannot be separated.

    The combo Stop / Reload button is locked in the address bar.

    The 'old' activity indicator has disappeared. Deemed unnecessary with the animation of loading on the left corner of each tab, where the favorite icon once the page is completely loaded.

    https://support.Mozilla.org/en-us/KB/how-to-make-new-Firefox-look-like-old-Firefox

    Many users install the extension Classic theme restaurateur.

    https://addons.Mozilla.org/en-us/Firefox/addon/classicthemerestorer/
    But I don't think it will turn out to be along term solution. As users begin to install other extensions, I think they're going to face compatibility issues where the new extension "expects" the user to use what Firefox is come with - not the 'retro' functions

  • Can I move the answer, before... buttons up, next to the filter

    Hello

    I recently replace MS outlook w / Thunderbird.

    I organize my mail by date. The last incoming mail is always on top. To delete, respond, etc, I need to move the mouse to the bottom of the email list to select the reply/forward/delete.

    I am looking for help to see if I can move the answer, before, realize... buttons at the bottom of the mail list to the top of the list of mail.

    Thank you

    Click with the right button on the e-mail in the top toolbar and select Customize. See if the buttons you want are there. If so, drag and drop them in place on the toolbar.

  • Is it possible to move the menu button in the new interface?

    I find the idea of the right terrible menu. Is it possible to move the button previous position or at least to the left?

    Install Stylish for Firefox https://addons.mozilla.org/de/firefox/addon/stylish/ .

    Create a new style under modules-> User Styles and copy the following text in the largest of the three boxes:

    @namespace url ("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

    @-moz - document url ("chrome://browser/content/browser.xul") {}

     #PanelUI-button, #customization-panel-container,
    
     #customization-panelWrapper .panel-arrow,
    
     #ctr_panelui-button,
    
     #wrapper-ctr_panelui-button {
    
       -moz-box-ordinal-group: 0
    
     }
    
     #PanelUI-button {
    
       background-position: 100% 0, calc(100% - 1px) 0, calc(100% - 2px) 0;
    
     }
    

    }

    End of the text (do not copy this line). ############

    Save and restart. The button should now be on the left.

Maybe you are looking for

  • HP 3520 printer: HP ending in favor of 3520

    I read that HP will stop support & upgrades for the 3520 printer, he's too old.  Is this true?  I hope not.  I love this printer and have had no problems with it.   I hope to continue to use it until it dies.

  • Speakers cut out after 1 or 2 minutes on my Satellite L750

    The internal speakers on my Satellite L750 - 16Z (PSK1WE) cut off after 1 or 2 minutes when playing any track video or music. The headphones work fine. The sound can be restored by plug it and unplug the headphones. The speakers work again with the n

  • Tecra S10-128: Win XP recognizes only 2.99 GB instead of 4 GB of RAM

    Hello I have a question. I have downgrade to XP Pro (with recovery CD). The system has 4 GB of ram (the BIOS screen confirm that), but in system properties I * only 2, 99 GB * of RAM. I know that XP pro recognize only 3, 5 GB, but why, 2, 99 GB? I ha

  • Satellite M30 - 951 graphics card or video BIOS doesn't work properly

    On the BIOS and startup pages strange characters occur (screenshot www.audioberlin.com/M30-951_SCREEN.jpg). XP starts, but the items displayed freeze and the screen goes black for a second. The system becomes slow and does not react anymore.Maybe the

  • If I delete a folder in Albums, it removes all images?

    Hello- I'm new on Photos and have a basic question. I have a bunch of folders (I brought opening) in my iPhoto (under Albums in the left navigation) events file and folders in folders. For example,. > events iPhoto folder > Folder of stuff Bob > Spor