How can I check the locV of a sprite on every frame?

I'd like to know how can I tell Director, in Lingo, to check
the position of a sprite in every frame in order to use that
position to set the value of a global variable. I want to avoid
having an on enterFrame script on every frame as I will need to do
this with various sprites all the time. I tried an on enterFrame
movie script but when I check the value of the variable with the
message window it's always 1 (I initialized the variable with that
value), regardless of wether the condition is being met on that
specific frame or not. I also placed an on enterFrame script on the
sprite and it would not work either. According to the
documentation, on beginSprite only works if the sprite was not on
the stage previous, and this sprite will always be on the stage,
just in a different locV when I need it to be.
Any suggestions please?

Here's how you could create a single list containing all the
locV values that you want:
global gLocVList
on enterFrame
if ilk(gLocVList) <> #propList then
gLocVList = [:]
end if
vSpriteList = [2, 3, 5, 7, 11, 13, 17, 19] -- or other
spriteNums
repeat with vSpriteNum in vSpriteList
vLocV = sprite(vSpriteNum).locV
gLocVList.setaProp(vSpriteNum, vLocV)
end repeat
end enterFrame
However, it seems rather pointless to do this, as it checks
the locV of every sprite on every frame whether you need that
information or not. Since the sprite references are globally
available anyway, you would use fewer CPU cycles if you just asked
for...
sprite(x).locV
... (where x is a sprite name or spriteNum, or a variable
holding such information ) whenever you actually require the value
of the locV.

Similar Messages

  • IP Job in BW finished, but how can I check the IDoc receive status in BW ?

    Hi,experts
    After I execute a Infopackage with loading more than 200000 records data, the infopackage monitor show me yellow light, 186020 from 200000 records. this infomation still show me till now, seaval hours,it looks pause here.
    And I check the request in the R/3, the Job has finished. as you know it means the R/3 push the IDoc already finished.
    and how can I do now ? or how can I check the IDoc receive status in BW side?

    Hi,
    I too had the same problem, i executed the following to solve the proble, may be this will help you:
    1) Go to T-code SM58 and select TRFC and press F6,
    2) For manual push of I-Docs, GO to T-COde BD87 select perticular idoc and see the status if it is not executed properly then do the manual push by pressing Execute option,
    Thanks,

  • I have two email accounts. It is only letting me check one. How can I check the other?

    I registered two different email accounts on my iPad mini. It's only letting me check one. How can I check the other one too?

    Congratuations on your new iPad!
    Since your device is so new, I can state categorically that this an issue with configuration. Delete the account that doesn't work, and enter the information anew.
    If you're still having problems, check that your email address and password are correct, and if possible, verify it by checking your ISP's settings.

  • How can i check the office web app server(wac client) is calling custom WOPI host?

    I am getting an error when I testing my wopi host(which is the same as
    example) with Office Web app server "Sorry, there was a problem and we can't open this document.  If this happens again, try opening the document in Microsoft Word."
    1-how can find the log files of this error?
    2-how can i check the office web app server(wac client) is calling my WOPI host?
    I am not sure about cumunication between owa to wopi host. I actually dont know how to implement checkfile and getfile functions to wopi host for waiting for call back from owa client.
    Note:I am sure that office web app server is configured true. Because i test it with sharepoint 2013 and editing and viewing is working well.

    Hi,
    According to your post, my understanding is that
    CheckFileInfo is how the WOPI application gets information about the file and the permissions a user has on the file. It should have a URL that looks like this:
    HTTP://server/<...>/wopi*/files/<id>?access_token=<token>
    While CheckFileInfo provides information about a file, GetFile returns the file itself. It should have a URL that looks like this:
    HTTP://server/<...>/wopi*/files/<id>/contents?access_token=<token>
    There is a great article for your reference.
    http://blogs.msdn.com/b/officedevdocs/archive/2013/03/20/introducing-wopi.aspx
    You can also refer to the following article which is about building an Office Web Apps(OWA) WOPI Host.
    http://blogs.msdn.com/b/scicoria/archive/2013/07/22/building-an-office-web-apps-owa-wopi-host.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How can I check the expiration date of a Certificate Keychain from terminal?

    Hello, I am writing a bash script to alert me when my corporate certificates are about to expire. How can I check the expiration date of a certificate in keychain? I'm running Mac OS 10.6.8 on a newer MacBook pro with full admin rights.
    Specifically I will be checking three certs: a Root Authority, Issuing Authority, and a user cert (Identity).
    I was exploring the Security and Openssl command line tools. But I can't seem to get the info I need.
    Any recommendations would be appreciated.
    Thank you!

    Anyone?

  • How can I check the specs with a broken LCD?

    A friend just gave me an ibook, but the LCD does not come on. How can I check the specs of the computer?
    I tried hooking it up to an external monitor, but I believe I need to setup the prefs to show on the external (I.E. the external was just black, but the computer was on).
    Any ideas here?
    All I know about the computer is that it's a white ibook with dual USB ports, firewire, and eithernet port on the side.
    Thanks in advance.
    -brown
    Message was edited by: Ryan Brown2

    The specs for the iBook should be on the label with the serial number.
    http://support.apple.com/kb/TA27282?viewlocale=en_US
    What does it say there?

  • How can I check the version of the rdf file?

    Dear all:
    How can I check the version of the rdf file? such like CEXRECRE.rdf .
    my environment is : oracle 11.5.9
    platform : Linux red hat 4.0
    Regards
    Terry

    Terry,
    Use "adident" or "strings -a" commands -- See (Note: 125922.1 - How To Find Oracle Application File Versions) for details.
    Thanks,
    Hussein

  • How can I check the version of Oracle in Linux?

    Dear all :
    How can I check the version of Oracle in Linux ?
    Regards
    Terry

    Hi terry;
    How can I check the version of Oracle in Linux ?You mean your db version or something else? If you mean you want to control your version issue is:
    source env file as oramgr
    sqlplus "/as sysdba"
    when u login sqlplus it will give u something as below:
    SQL*Plus: Release 10.2.0.4.0 - Production on
    Regard
    Helios

  • How can i check the file  which is upload from  the server

    when upload the excel file from the server file to the internal table ,how can i check the data whether it accord with  the required condition .
    for example ,i want to upload the file which have the data whose type is pack, and it have three integer and  two decimal ,how can i check in my code.
    thanks,

    Hi Sichen,
    First upload the file, Then do ur validations and delete the records that doesn't satisfy ur requirements.
    Thanks,
    Vinod.

  • How can i check the license file installed on the server CCM 6.1.4

    Hi;
    i have installed the CCM 6.1.4; and now i want to upgrade to 8.5, but i don't remenber witch type license i have uploaded ( normal or Hospitality).
    how can i check the license file installed on this server???
    thanks.

    Hi Matthew,
    I think your idea should work just fine, but you will need to work with;
    [email protected]
    To put together the proper license file due to this change called the "License MAC"
    Customer Impact from New Licensing Procedures
    Cisco Unified Communications Manager on VMware on Cisco UCS B-Series Blade Servers uses a different licensing model than Cisco Unified Communications Manager on an MCS server. The MAC address of the NIC card is no longer used to associate the license to the server.
    Instead, the license gets associated to a license MAC, which is a 12 digit HEX value created by hashing the following parameters that you configure on the server:
    •Time zone
    •NTP server 1 (or "none")
    •NIC speed (or "auto")
    •Hostname
    •IP Address (or "dhcp")
    •IP Mask (or "dhcp")
    •Gateway Address (or "dhcp")
    •Primary DNS (or "dhcp")
    •SMTP server (or "none")
    •Certificate Information (Organization, Unit, Location, State, Country)
    This hash of these fields is called the LICENSE MAC
    Note : Once there is a change in any of the parameters that creates the License MAC, it will
    give you 30 day grace period to generate a new license file for the CM based on new license
    MAC.
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/install/8_0_2/install/cmins802.html#wp584709
    Cheers!
    Rob

  • How can I check the open-mode of an opened file from the file refNum?

    How can I check the open-mode of an opened file from the file refNum?
    Especially whether a file is opened as read-only or write-only? I haven't found any VI in the panel with file VIs.
    Thanks for any hints!

    Check this post. Probably you can use a kernel.dll call.
    http://forums.ni.com/t5/LabVIEW/file-date-created/m-p/109836

  • How can i check the procedure execution time..?

    Hi All,
    Can any one of you tell me how can i check the procedure execution time..?
    Thanks in advance.

    if running it from SQL*Plus,
    SQL> set timing on
    Or from PL/SQL, use DBMS_UTILITY.GET_TIME before and after the call and calclate the difference.

  • How can I check the billing address on file for me at iTunes?

    i received an email stating a change in my billing address. I did not make a change. How can I check the address on file? 

    You can viee the billions my address on your account by logging into the accontunt's nt via the Store > View Account menu option on your computer's iTunes, or via the 'manage your apple id' button on http://appleid.apple.com
    But the email may be a phishing email : Identifying fraudulent "phishing" email
    t

  • How can I check the price of upgrading CS5 educational edition to CS6 educational edition?

    How can I check the price of upgrading
    "Adobe Creative Suite 5 Design Premium Student and Teacher Edition" to
    "Adobe Creative Suite 6 Design & Web Premium Student and Teacher Edition"?
    Accroding to http://www.adobe.com/hk_en/products/cs6/faq.html , "owners of a CS5 or CS5.5 suite edition qualify for upgrade pricing to a CS6 suite edition."
    I can only found the price for CS6 full version from the site. But I can't found the upgrade price. Where can I check the upgrade price?
    Thanks.

    There are no upgrades for edu products. You simply buy a complete new license at the discounted price.
    Mylenium

  • How can I check the all schedule CM jobs' time?

    Dear all:
    How can I check the all schedule CM jobs' schedule time?
    my environment is : EBS 11.5.9 | DB:ORACLE 9.2.0.8 | PLATFORM: LINUX redhat 4.0*
    Regards
    Terry
    Edited by: Terry Chen on 2010/4/14 下午 7:12

    Terry,
    Please see (Note: 170107.1 - How to Determine Scheduled Concurrent Requests).
    Regards,
    Hussein

Maybe you are looking for