Animating x position via A.S.

I have a gallery with a menu that is a row of
thumbnails (horizontal--right to left). And a button
on each side of the tumbnail menu---and of course when
you click on the right button the menu scrolls to the
right and vise-versa for the left button. The code I
have on the buttons is pretty basic:
right_btn.onRelease = function(){
menu_01._x -= 20;
I trying to set-up the menu so that when you click on one on
the buttons
the menu slides over so many pixels and eases out. And I also
need the
buttons to know when the menu mc has reached its end(say the
menu is only 400
pixels wide). I've tried a few different things with no luck.
Any idea's or direction to a tutorial???
I would really any help.
thanks,
hutch

In the authoring environment, move the menu_01 all the way to
the left and
see what its x position is (e.g., - 200) then change your
code to test the x
position before moving it.
right_btn.onRelease = function() {
if (menu_01._x > -180) {
menu_01._x -= 20;
You should then do the same sort of thing from the opposite
side.
left_btn.onRelease = function() {
if (menu_01._x < 180) {
menu_01._x += 20;
The numbers show are just for illustration; yours may differ
depending on
the size of the graphic or movie clip you are moving.
If your image is very large, then the constant clicking to
move 20 pixels
may be frustrating for the user. There are other ways.

Similar Messages

  • Animation of multiple background image positions via keyframes works in Chrome & Safari, not Firefox.

    The goal is to create an infinitely scrolling, two-layer parallax, patterned background. The effect works perfectly in Mac Chrome 35.0.1916.153, Mac Safari 7.0.4, iOS Chrome 35.0.1916.41, and iOS Safari 7.1.2, but it stutters in Mac Firefox 30.0 (haven't tested on iOS FF).
    My code is visible at http://jsbin.com/cifig/2 and is basically modeled after http://davidwalsh.name/multiple-background-css-animations (demo http://davidwalsh.name/demo/multiple-background-css-animations.php).
    If I make either one of the following changes, the stutter in FF resolves:
    • Limit `background-repeat` to `repeat-x` or to `repeat-y`.
    • Remove one of the two animated backgrounds.
    So it seems FF can't handle the continuous animation of two backgrounds that each have background-repeat, whereas Chrome and Safari can.
    Any tips? Thanks!

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Users Are Not Removed From Old Position Via Structural Auth

    Hello...
    Has anyone experienced an issue where someone move from one position into a new one, the old reporting manager can still see this person information via structural auth?  There's a general structural profile with the evaluation path o-s-p and function module RH_GET_ORG_ASSIGNMENT which is assigned to all accounts in the system.  This profile works as intended when Person A moves to a different position reporting to Manager B.  Manager B can view Person A information (time, personal, etc.); however, the system does not remove Person A from Manager A.  In addition, the RHPROFL0 is scheduled twice a day.
    Thanks for any insights or thoughts on this issue.

    Hmm...
    Which release and SP are you on?
    Also check the depth of the profile (just in case the employees were demoted...) and the period (although you mention that it should be current only).
    I have only been involved is custom implementations of "structural authorizations" because the standard is quite tricky and complex to find an error or inconsistency - so hopefully one of the other gurus who are more familiar with it can help as well.
    Cheers,
    Julius

  • How to get manager position via hrp1001?

    Hello
    lets say that i have worker number and i need is manager number.
    i think that via 4 selections i can get his boss.
    1st find position of work
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'P'
      and objid = '50000666' "
    and relat = 008
      and rsign = 'A'
      and sclas = 'S'.
    2nd find unit of position
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'S'
      and objid =  lv_sobid
    and relat = 003
      and rsign = 'A'
      and sclas = 'O'.
    3rd want to find manager of unit
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'O'
      and objid = 'lv_sobid'
      where otype = 'S'
      and objid =  lv_sobid
    and relat = ? // i thought 012 but it is giving me 2 actual positions
      and rsign = 'A'
      and sclas = 'S'.
    4th I want to find the worker of the manager position
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'S'
      and objid = lv_sobid
    and relat = ?
    and rsign = 'A'
      and sclas = 'P'.
    Thanks in advance
    Avner
    Moderator message: only one open thread per issue, please.
    Edited by: Thomas Zloch on Aug 22, 2011 10:05 AM

    Hi
    Use the Function Module : RH_GET_LEADER to get the Manager's Position.
    Go through the FM : RH_GET_LEADER documentation for more information.
    OR
    DATA: it_result LIKE swhactor OCCURS 0.
    DATA: wa_result LIKE swhactor.
    DATA: l_employee_position TYPE objid VALUE '20000022'.
    DATA: l_manager_position TYPE objid.
    CALL FUNCTION 'RH_STRUC_GET'
      EXPORTING
        act_otype              = 'S'
        act_objid              = l_employee_position "This is employee's position
        act_wegid              = 'A002'
      ACT_BEGDA              = SY-DATUM
      ACT_ENDDA              = SY-DATUM
       act_tdepth             = 2
    TABLES
       result_tab             = it_result. "This table will hold manager's position
    IF sy-subrc = 0.
      READ TABLE it_result INDEX 1 INTO wa_result.
      WRITE: wa_result-objid.
    ENDIF.
    Regards,
    Sree
    Edited by: Sreeram Kumar Madisetty on Aug 22, 2011 8:26 AM

  • Set slider path position via calc

    So I have a simple display icon (Icon title = Flash Movie
    Position Slider) object set with the following settings:
    Positioning = On Path
    Movable = On Path
    Base = 0
    Initial = 0
    End = 100
    I know how to get the current position using PathPosition or
    DisplayX, but how do I set it via code? I have tried using
    SetIconProperty for LocationX, BaseX, InitialX but none work. Other
    than just the user sliding the slider I want the slider to move on
    it's own during the flash video playing. I have the calculation
    down to set an X position based on the current frame, just cant
    find that magic setting to specify a value to the path to make it
    happen.
    PS: This is not using the WinCtrls slider just a basic
    Authorware path using a display icon.

    > Movie icon does not support swf flsh files.
    Yes I know.
    > All our videos are being converted
    > to flash so I must use a media icon and not a movie
    icon.
    The Flash Sprite help file will tell you how to get the
    equivalent of
    MediaPosition form a Flash movie. Open your Flash Sprite
    properties and
    press the Help button on the properties dialogue.
    >
    > The only problem I am having now is setting the path
    position does not
    > work on
    > a publish to web project only on the exe.
    >
    What's your code?
    Steve
    EuroTAAC eLearning 2007
    http://www.eurotaac.com
    Adobe Community Expert: Authorware, Flash Mobile and Devices
    My blog -
    http://stevehoward.blogspot.com/
    Authorware tips -
    http://www.tomorrows-key.com

  • Problem animating 3D position change in Photoshop Extended CS6

    I am trying to animate  a simple 3D position change in Photoshop Extended CS6 (OS 10.7.4)
    Here's what I do:
    1. I move my object to its starting position.
    2. I move the Current Time Indicator ("playhead")  to the time I want the position change to start.
    3. I click the Time‑Vary stopwatch icon on the Position layer of the timeline, and a keyframe is automatically created, no problem.
    4. I move the playhead away from the initial keyframe to the time I want the position change to end.
    5. I move my object to its ending position.
    At this point, I expect to see the second keyframe be automatically created, as advertised, BUT it is not. What's more, if i move the playhead to "scrub" through the animation, I see no movement. What's happened is the position I set for Keyframe 1 has changed to the position I just moved the object to, which I intended to be Keyframe 2.
    Any advice greatly appreciated! 
    Thanks!
    --Carol Gunn

    Same problem here. I cant seem to get any predictable behaviour from the 3d camera in terms of adding keyframes. Other non-3d layers dont seem to be affected.

  • FCPX - Animation - Transform Position

    I am trying to learn to do basic animation in FCPX. Here's what I did:
    I am working with still images put to music. At a certain point in my video I brought in a small square image and put it on top of another larger image in the timeline. Then I clicked on the smaller image and chose Transform Position, made a keyframe by doing Option K, moved alone one second and did another keyframe and at that point moved the image from the center to the upper left corner. It works fine EXCEPT that immediately after the second keyframe it bounces back to the middle.
    What did I do wrong?

    just had a quick look and under the RMB when over the keyframe - select delete point
    BUT you have to wait for the cursor to become a cross hair...

  • HR Change in position via PA40 (Change log not stored)

    Hi ,
    I know that the program RPUAUD00 displays all infotype logs from cluster PCL4.
    But when there is change in position P0001-PLANS through any action type,then this change is neither captured by this program nor by the cluster PCL4.
    Can someone tell me where I can get the previous position of a employee once it has been changed.
    Thanks very much.
    Sandip.
    Ph : +44 121 683 2814.

    Hi Sandip,
    You can look up HRP1001..
    for ex:
    data:
         w_plans type plans,
         w_sobid type sobid.
    move your pernr to w_sobid.
    select plans into w_plans
                 from hrp1001
        where otype = 'S'
          and plvar = '01'
          and rsign = 'A'
          and relat = '008'
          and sobid = w_sobid.
    w_plans will have all the positions held by tshi pernr * in each loop pass.
    endselect.
    PL close the thread if this solves ur issue..
    thanks
    Suresh Datti

  • Getting text object content and position via script / extra?

    Hello everybody,
    we have several Freehand files on OS X (maps) where I need to
    get the text content and the coordinates of objects in a given
    layer. I could not find a possibility how to achieve this via
    Freehand's Applescript support. Am I missing something or is this
    impossible with the standard scripting support?
    I have found a website about an older Xtra (CARTO-INDEX) that
    seems to something along those lines but it was written in the
    Classic days of the Mac OS. Is there a possibility or maybe even
    some sample code showing how this can be done with an Xtra? Is it
    possible to call an Xtra function via AppleScript?
    Illustrator seems to be no alternative here because although
    it seems to provide better scripting support, I get conversion
    errors with my Freehand documents and the object parameters do not
    match.
    Thanks in advance for your advice.

    > we have several Freehand files on OS X (maps) where I
    need to get the text
    > content and the coordinates of objects in a given layer.
    I could not find a
    > possibility how to achieve this via Freehand's
    Applescript support. Am I
    > missing something or is this impossible with the
    standard scripting support?
    MaPublisher 5 for FreeHand might do what you wish to do.
    http://www.avenza.com/products.mapub50.html
    Boris Jerenec and Michael Slomski have written useful Xtras
    for FreeHand.
    You can find contact info for them here, under "Other
    Plug-ins/Xtras".
    http://www.freehandsource.com/_frames/_misc/plugins.html
    If you decide to work in Illustrator, a script called "Make
    Point Type"
    converts FH text to AI point type. There's also a script to
    "Make Area
    Type".
    http://kelsocartography.com/scripts/
    Judy Arndt

  • Changing panels XY position via code ?

    Hi
    Here is Some info about my program.
    i have a main panel on which i create about 15 child panels and each child panel has a canvas control on it.
    i created a scrollbar which moves the xy position of each panel.
    i could not use the standard panel scroll bar because it is does not allow the amout child panels that i need that is why im rotating the 15 panels.
    Could someone please explain to me why when i change the childs panels xy position the display updates the panels position so slowly ?
    and how could i speed this up?
    Thanks
    Shako
    Help share your knowlegde

    Hello,
    Could you also post your code, so that we can see closely how you are implementing this? What version of CVI are you using? At what point does the time delay occur and how long is this delay? Note also this Knowledge Base:
    Adding a Scroll Bar to a Canvas Control in LabWindows/CVI
    http://digital.ni.com/public.nsf/allkb/33CBB49128DD6A1586256F7C0082EC96?OpenDocument
    Thanks,
    National Instruments

  • Animation with easing via ActionScript

    How cain I make animation of an object in Flash with easing
    by using actionscript...

    Check out
    http://laco.wz.cz/mc_tween/
    and download the Custom Tween Extension

  • Via Code : Creating Org. Unit and Position and assignment of User ID to Position

    Hello,
    I am looking for code which will create Org. Unit and creates Position in it. Also the User IDs should be assigned to the Position via code.
    I do this via PPOC but would like to automate this process.
    Will appreciate your kind help.
    Thank you!
    Naina..

    Dear Naina,
    SAP has given the multiple option to create the units ( Org. Unit, Position, Job, cost center, etc). The best ways to use tcode-pp01 (Maintain object)
    Plan version- current Plan
    Object type-Org unit or Position or Job or other as per requirement
    infotype name- select object
    Time period :- 11.03.2014 to 31.12.9999
    then create- fill the required & save
    Example:- Creation of organisation unit
    Tcode-pp01
    Plan version- current Plan
    Object type-Org unit
    Time period :- 11.03.2014 to 31.12.9999
    infotype name-  Object (select)
    then create (F5)
    Object Abbration:- HR Department
    save
    After, system ask
    Relationship type -A002
    Type of related object- organisation unit (default)
    ID of related :- Give the eight digit number
    In the similar way, we can create other units.
    All the best!
    Regards,
    Rakesh

  • Assignment of territories via HR position in Org Management

    Hi
    How are Territories  assigned to the employee via HR position in Org management? In Org management we have Org units and sales orgs and how can be territories?
    Please help- will reward with full points
    Thanks
    Tarang

    Hello Tarang,
    you can create the position via transaction PPOMA_CRM. Then you assign the position to an org unit.
    When maintaining the position you see tab 'Areas'. Here you can assign the territory for a certain validity.
    Finally you can assign employee(s) to the position. Technically the employee is a Business Partner in role 'employee'.
    So a typical representation in OrgManagement could look like this:
    OrgUnit
    -> Position1 -> Territory1
         -> Employee1
         -> Employee2
    -> Position2  -> Territory2
         -> Employee3
    Kind regards
    Ralf

  • Animated Gifs won't animate when forwarded to other people from mail...

    I received a cute series of animated gif files via email today. I decided to forward the mail to a few friends and included myself on the list since I've had issues with forwarded gif files not animating in the past. Several friends received the files in working order. Others, including myself, received what appear to be the first frame of each of the animations but not animating at all.
    Any suggestions?
    Bruce

    try another usb port but usb is a poor way to charge the batt.
    if you look under menu/settings/batt, at the bottom it says you won't show a full charge with usb charging.
    i have the phone off & charge with wall adapter for 3 hours.

  • Error: Organizational Assignment created via Orgnizational Management in HCM form

    Hi All,
    I am getting below error while moving an EE to certain position via HCM form.
    I have cheked and found that if an org unit is to be assigned to another cost center in Organizational management from a certain date, this action generates a new record in infotype 0001 for integrated persons from the date of assignment to the new cost center and if we perform any action which would be deleting the new record (created from OM) in IT0001 then this error would populate.
    Here is the the same case a new Cost Centre has been assigned with the orgunit and a new record is creaed in IT0001 from the OM but when I am performing the same action via PA40 then I not getting any error, the error is occuring from the form only.
    Can you please help me to resove this error and provide me the reason why it is not occring when I am performing the same action from PA40.
    Regards,
    Mayank

    Hi Mayank,
    I think you will be triggering Job Salary Form for the action you have mentioned. Please check in the Tcode HRASR_DT for the form name as I have show below from my development system. In Back-End services - SAP_PA - Infotypes and Operations and for Infotype 0001 check what is the operation that you have maintained.. It should be "change" to avoid the error message.
    For PA40 action you would have configured the same as "change" thats why you are not getting error message in PA40.
    Thanks,
    Sriram

Maybe you are looking for

  • Oracle 8.1.6 installation on windows

    Hi, I have a Oracle 8.1.6 database installed on a pc with o.s. windows. Now I need to set my pc network identification because our network manager changed network domain settings. What kind of troubles do I have to expect when i will change the netwo

  • Status in Import history of Transport Management System

    Hello Experts, I tried to import a TR from a DEV  to a QA.  After the first attempt I got an error RC=8. I retried the operation and as I can see in the overview of the transport logs, it worked (succesfully completed). Now I am only wondering why th

  • Is DELL Equalogic PS4600 supported with Oracle VM 3.1?

    Hi, I am having some problems configuring Oracle VM for SAN storage, the compatibility matrix in this site: http://linux.oracle.com/pls/apex/f?p=117:3:0::NO::: shows me that there isn't any support. When I try to setup SAN configuration, I am having

  • Getting ICM_HTTP_CONNECTION_FAILED  message in SM59.....?????

    Hi,   I have set all the SSL and ICM related parameters in the instance profile. I have activated the HTTPS on 18040 port. also i have installed the SSL ceertificate in strust. but im still getting the ICM_HTTP_CONNECTION_FAILED when trying to test t

  • Image Duration trouble

    For some reason when I change the duration settings for Images it doesnt seem to apply - it always stays at 2 seconds and also the default transition doesnt come up on the timeline even though its ticked to do so - could someone shed some light on th