Timeout Object Problem: Can't recreate scaling error

In my movie there is a function that scales 3D objects over
time using a timeout object. The 3D objects are in an array that is
shuffled each round, and based on the outcome of the array shuffle,
some 3D objects are scaled and some are not.
I have been testing this for a while and it almost always
works as I anticipate, however I have encountered some events
wherein unexpected 3D objects are scaled. To track down the error,
I have been tracing the results of the array shuffle, as this is
what drives the scaling. When I encountered an event where
unexpected objects were scaled I recorded what I thought was a
“bad” array shuffle. Then, disabling the array shuffle
function, I set the shuffle result to my “bad” array. I
expected it would recreate the problem (unexpectedly scaled
objects) however it worked accurately this time around.
Are there any rules regarding timeout objects that are
commonly broken that may be causing this? Does a timeout object
behave any differently in the Director environment than it does in
a published projector? Any broad or general tips (sorry I
can’t post the code) are appreciated.

Hi
In the "fShrink", function the variable called "sTimeout" is
a string:
sTimeout = String("ShrinkTimeOut"+(_system.milliseconds));
in the function "fShrinkLoop", the second parameter being
passed in is the timeout object. Therefore in this function, the
variable called "sTimeout" is a timeout object.
The thing to remember is the object that sends the message
determines what the parameter is (it doesn't matter what you name
the parameter).
In the case of Timeout objects, the first parameter is the
object that Director sends the timeout callback message to (in this
case, your model object... and since your model doesn't have a
method for handling the response, Direct tries the global name
space instead - but still conveniently sends the reference to the
'callback object' as the first parameter). The second parameter is
always a reference to the timeout object itself.
(on a side note - you have taken advantage of a quirk with
timeout objects that let you pass parameters with timeout callbacks
by using the 'callback target' but letting a movie script handle
the callback). If you want to send more than one parameter, you
have to bundle them together into a single paremeter object).
-- Luke

Similar Messages

  • Key chain dissapeared - can not recreate - also safari gone wrong

    i was working on my email and had safari opened. I had an error message trying to read an email account and it said your keychain can not be found, reverst to default? I said no and since I have no key chain and can't recreate one. error message is error occured while creating key chain.
    I then tried to access this forum though safari and it worked well until the login screen where is said:
    Safari can’t open the page.
    Safari can’t open the page “https://www.apple.com/support/mod_ssl:error:HTTP-request”. The error was: “lost network connection” (NSURLErrorDomain:-1005) Please choose Report Bug to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.
    i have a backup of my keychain on idisk but when i try to access it it says there is no keychain to write the password to. if I cancel, nothing happens, if i say reset, i go into a loop with the same error asking for a passw but saying it can't be saved
    i guess there is some corruption somewhere but have no idea what I can recreate or delete
    any idea anyone??? i have a backup at home as well but i am currently traveling so also don:t have my original set up disk
    i will be backhome in 6 hours, will check email and this forum then, hopefully with a solution...
    thanks
    bernard

    The only way that I know of to fix this problem, is to reinstall the system software. You can choose and option that will import you current settings after the system is installed and all you files will be put in a folder labled "Previous System." I would still back up any important files you may have because I don't know how reliable it is or to what extent it works.

  • Multiple timeout objects (object declaration problem?)

    So what I'm trying to do here is create 4 separate timeOut objects that are each applied to 4 different sprites. Each has a variable for the duration that is set to 0 by default so that it does not even check to call the timeout handlers. When the user clicks on a sprite, the variable associated with that sprite's related timer duration is set to 5 seconds. When that timer runs out, the handler that is called stops the timer, resets the duration variable of the timer to 0, and changes that particular sprite's image.
    Essentially, I want it so that the user can click each individual sprite and have each sprite change its image 5 seconds after that specific sprite was clicked.
    While my code is probably repetitive and clunky, it seems like it should work to me - but I am no expert by far. It compiles fine, but when it runs, I get this message:
    Script error : Object expected
    timer1 = timeOut().new("timer1", timeoutDuration1, #timeOut1, me)
    What exactly did I do wrong? I'm assuming it's some kind of simple syntax error but I can't figure out what. I've tried changing the name of the timer objects, setting them as global properties, etc., all I can think to do, but I can't figure it out. Or am I doing it entirely wrong altogether? Thank you SO much to anyone who can provide help.
    My code is below.
    property spriteNum, pMySpriteRef
    property timeOut1, timeOut2, timeOut3, timeOut4
    on beginSprite me
      timeoutDuration1 = 0
      timeoutDuration2 = 0
      timeoutDuration3 = 0
      timeoutDuration4 = 0
      timer1 = timeOut().new("timer1", timeoutDuration1, #timeOut1, me)
      timer2 = timeOut().new("timer2", timeoutDuration2, #timeOut2, me)
      timer3 = timeOut().new("timer3", timeoutDuration3, #timeOut3, me)
      timer4 = timeOut().new("timer4", timeoutDuration4, #timeOut4, me)
    end
    on enterFrame me 
      if (_mouse.clickOn = me.spriteNum) then
        pMySpriteRef = sprite(me.spriteNum)
        if pMySpriteRef = 1 then
          timeoutDuration1 = 5000
        else if pMySpriteRef = 2 then
          timeoutDuration2 = 5000
        else if pMySpriteRef = 3 then
          timeoutDuration3 = 5000
        else if pMySpriteRef = 4 then
          timeoutDuration4 = 5000
        end if
      end if
    end
    on timeOut1 me
      timeOut("timer1").forget()
      timeoutDuration1 = 0
      sprite(1).member = "Jellyfish_new_1"
    end
    on timeOut2 me
      timeOut("timer2").forget()
      timeoutDuration2 = 0
      sprite(2).member = "Jellyfish_new_1"
    end
    on timeOut3 me
      timeOut("timer3").forget()
      timeoutDuration3 = 0
      sprite(3).member = "Jellyfish_new_1"
    end
    on timeOut4 me
      timeOut("timer4").forget()
      timeoutDuration4 = 0
      sprite(4).member = "Jellyfish_new_1"
    end

    Is it possible you're updating an older movie that has its scriptExecutionStyle set to 9? What does the following tell you when executed from the message window:
    put the scriptExecutionStyle
    If it returns 9, change this by executing
    the scriptExecutionStyle = 10
    again from the message window and save your file. Timeouts should now work as expected (test and confirm).

  • ICal problem--an error box comes up an won't go away. I can't close the error box and I can't activate the calendar because the error box needs to be cleared. There is no place on the box to click in order to close it.

    I have a problem that just affects iCal. An error box popped up when I was trying to past something into a new appointment. The box blocks me from using the calendar. I can't clear the error box. It has nowhere to click to close it. Nothing happpens when I right click it. I have force closed iCal, but when it reopens the error box is still there blocking any use of the calendar. There is no error number, just a copy of the text I was trying to paste.

    Try this.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

    Installed Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

    Installed Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

  • I have a problem, from system test says:  Error 4mem/61/400000000:0x8444fb98, I know how you can solve. Thanks

    I have a problem, from system test says:  Error 4mem/61/400000000:0x8444fb98, I know how you can solve.

    If you have Apple Care for that computer, give them a call: Apple's Customer Support - in the US, (800) 767-2775
    If you're not sure how to handle the situation, consider walking your MB into the nearest Apple Store and asking someone there to take a look, etc.
    Good luck in any case.

  • I have purchased adobe photoshop element 10 editor today but been having problem downloading.. it says error and problem on verification. Also tried contacting customer support but couldn't get through? can I still get my money back?

    i have purchased adobe photoshop element 10 editor today but been having problem downloading.. it says error and problem on verification. Also tried contacting customer support but couldn’t get through? can I still get my money back?

    Hi ...
    If you have anti virus software installed, you need to disable that in order to download apps.
    Apple's policy clearly states that, "all sales are final" >  iTUNES STORE - MAC APP STORE - TERMS AND CONDITIONS
    edited by:  cs

  • Hi,  We use a Mac os window. How can we get Adobe error code 16 problems in premier cs5. Before 6 da

    Hi,
    We use a Mac os window. How can we get Adobe error code 16 problems in premier cs5. Before 6 days premier does not loaded a Audio.
    please help me.

    I think you are posting to the wrong forum.  I'd post this in the Premier forum: http://forums.adobe.com/community/premiere/premierepro_current
    -Carl V.

  • Itunes can't sync photo error -50

    after upgrading itunes and iphoneS (5 and 4) and ipad 2 to new ios 7.1 i cam't sync photos to all of that devices....i have this error
    11/03/14 21:44:53,039 MDCrashReportTool[363]: 363:17305600|CrashReportCopierAFC.m:-[CrashReportCopierAFC copyAndProcessRemotePath:usingConnection:]| ERROR: Could not remove remote path at ./DiagnosticLogs/security.log.20140311T162320Z
    i already try to delete that file but this error still exist.
    anyone can help me?
    i hav already contact apple support but they don't give me a solutions yet

    where is apple support??no answer to this problem?i contact apple support in these days and they have still no answer yet!they make me do the same things that i made the last and previous time.they don't tell me if it's possible to recreat that error, they told me nothing, i gave them log, test and anything thay aske me!!
    they told me that the engineers are analyzing the problem, they repeat this for a month! they told me the same thinks about a bug that i open 2 years ago and it's still presen

  • [MESSAGE.GENERAL] How can take the actual error text for ABAP proxy error?

    Hi...
    I'm a ABAPer.
    I got to create outbound abap proxy for synchronous server proxy and described below.
    My problem is program can not catch the actual error message when occurred error during send data to XI.
    The return message is just 'MESSAGE.GENERAL'.
    But according to the XI part, 'Key error' is actual reason.
    So... how can i take the actual error text like 'Key error'?
    <b>* Only MESSAGE.GENERAL is return message for all kind of errors.</b>
    Thanks.
    Below----
      TRY.
          CREATE OBJECT abap_proxy.
          CALL METHOD abap_proxy->execute_synchronous
            EXPORTING
              output = gs_out
            IMPORTING
              input  = gs_in.
      Exception Handling
    <b>    CATCH cx_ai_system_fault  INTO  go_sys_exception.
          g_sys_result = go_sys_exception->get_text( ).</b>
        CATCH cx_ai_application_fault INTO go_app_exception.
          g_app_result = go_app_exception->get_text( ).
      ENDTRY.
      COMMIT WORK.
    Return status 'D' is succeeded.
      if  gs_in-sales_group_rer_sap-xstat <> 'D'. 
         WRITE:/ 'System Error Message      :', g_sys_result.
         WRITE:/ 'Application Error Message :', g_app_result.
      endif.
    *--Result--
    System Error Message      : MESSAGE.GENERAL
    Application Error Message :
    Message was edited by: Miju cho
    Message was edited by: Miju cho

    Thanks guys, this was useful.
    My scenario is for Asynchronous communication.
    I guess Fault messages are used in case of Synchronous communication for handling application errors. So if there was something wrong at the JDBC end then I could use the fault messages.
    Have i got this right?
    I also came across this piece on Acknowledgements. But is says that they can be used with the following Receivers:
    The following receivers support acknowledgments:
    ABAP and Java proxies (XI 3.0 SP1 for the latter)
    Integration processes
    IDocs (note that IDocs only return acknowledgments when they have been configured using the ALE audit)
    Receiver adapters support system acknowledgments but not application acknowledgments
    My Receiver is JDBC. So I guess I cannot use acknowledgements either.
    Hence, I need to know what I can do to replicate the system errors eg. failed server etc...so that I can get catch these errors during sending.
    I'll tell you abt what happened earlier.
    My XI server was down. I executed the code for the sender ABAP Proxy and it did not catch the error. In SXMB_MONI in the R/3 system, I could see the messages queued up. When the XI server started, the messages were transferred to XI.
    I need to handle such errors...ie. If  the server is down or message did not reach XI then my ABAP program that sends data via ABAP proxy needs to know that something went wrong.
    Thanks and Regards,
    Ashwin

  • REP-1814: Report cannot be formatted. Object 'vertically' can never fit

    Hi,
    Iam using report server 9.0.2. I have a typical problem. I have developed the report which works fine on the windows environment. But when same report is executed on AIX machine it is giving the problem
    REP-1814: Report cannot be formatted. Object 'vertically' can never fit
    within 'F_17'.
    What could be the problem? Do we need to change the setting or layout as per the environment specific?
    can any one help out in solving this problem plz
    it very urgent.
    thanks
    Kalyan

    I had this issue too, and finally discovered the problem. In my situation it had nothing to do with the vertical size of the field. The problem was with the proximity of the offending field to its enclosing frame. Not its vertical proximity, as the error message would have you believe, but its horizontal proximity.
    The magic number seems to be 5 spaces (I'm refering to a 'space' as pressing the arrow key when the field is selected) to away from the enclosing frame. I played with it, and when the field was only 4 spaces or closer to the frame, I got the "Object 'vertically' can never fit ... " error again. Again, not 5 spaces vertically away from the frame, but 5 spaces horizontally away from the frame. Hope this helps.
    Nate

  • Need help generating variable name for timeout object

    Below is a function I am using to scale an object down and
    then hide it. It works fine on just one object, but if I try to run
    it on multiple objects at the same time, only the last object gets
    scaled down. I believe this is because the timeout list only ever
    has a single item in it, “ShrinkTimeOut”.
    Does each entity in the timeout list need a distinct name?
    And if so, how would I dynamically generate a name and save it so I
    can kill the timeout object once the object has scaled down fully?

    > Does it look like I am getting rid of the timeout object
    properly in my code?
    Now that you mention it, and I have a look, no - it doesn't:
    //not sure of the order of parameters here:
    function fShrinkLoop(mModel, aTimeout) {
    //Creates a variable that contains the vector value of the
    model's
    scale (vector( 1.0000, 1.0000, 1.0000 )).
    nScaleVector = mModel.getPropRef("transform").scale;
    //Checks to see if the model is 1% or less than its original
    size.
    if (nScaleVector[1]<=0.01) {
    //Makes the model invisible.
    mModel.visibility = symbol("none");
    //Kills the timeout object.
    aTimeout.forget();
    } else {
    //If it is not, we scale the model down further and allow
    the loop to
    repeat.
    mModel.scale(0.9);

  • Data Scaling Error

    Hi,
    I am working through the tutorial file for NI Lookout 6.2.
    I have attached a screenshot of a Data Scaling Error problem  following completion of the section "Configure Data for Logging, Scaling and Alarms" on page 8 of the tutorial.
    In the attached screenshot you will see the settings in the Edit Data Member Configuration are Raw Units 0-100 and Eng. Units 0-250000 - as set out in the tutorial.
    However the resulting scaling of the percent full to gallons shows a 49% setting as over 42 million gallons!
    Please can you assist with where the scaling settings are in error. I have repeated the tutorial several times from scratch with the same results.
    Attachments:
    Lookout Tutorial Problem.pdf ‏34 KB

    I guess you are control the F40001. F40001 is 32bit floating which combines 40001 and 40002, while the alias you set is 40001, 16 bit integer.
    When F40001 is 49, 40001 is 16964, TankLevel1 is 42410000.
    Ryan Shi
    National Instruments

  • REP-1814: Report cannot be formatted. Object 'vertically' can never fit wit

    Hi all
    I am using Oracle Developer 6i with Oracle 9.2.0.6.0 database.
    I am having the subjected problem on one PC. while on others the report is generating successfully.
    What is the reason?
    Thanks
    Hassan

    I had this issue too, and finally discovered the problem. In my situation it had nothing to do with the vertical size of the field. The problem was with the proximity of the offending field to its enclosing frame. Not its vertical proximity, as the error message would have you believe, but its horizontal proximity.
    The magic number seems to be 5 spaces (I'm refering to a 'space' as pressing the arrow key when the field is selected) to away from the enclosing frame. I played with it, and when the field was only 4 spaces or closer to the frame, I got the "Object 'vertically' can never fit ... " error again. Again, not 5 spaces vertically away from the frame, but 5 spaces horizontally away from the frame. Hope this helps.
    Nate

  • Can't Create Bean Error

    I modified the numguess example that comes with tomcat but I get a "can't create bean" error message when I call my jsp file. If anyone can see what I'm doing wrong or suggest ways to discover the problem I'd appreciate it.
    My modified jsp:
    <!--
    Copyright (c) 1999 The Apache Software Foundation. All rights
    reserved.
    Number Guess Game
    Written by Jason Hunter, CTO, K&A Software
    http://www.servlets.com
    -->
    <%@ page import = "num.NumberGuessBean" %>
    <jsp:useBean id="numguess" class="num.NumberGuessBean" scope="session"/>
    <jsp:setProperty name="numguess" property="*"/>
    <html>
    <head><title>Number Guess</title></head>
    <body bgcolor="white">
    <font size=4>
    <% if (numguess.getSuccess()) { %>
    Congratulations! You got it.
    And after just <%= numguess.getNumGuesses() %> tries.<p>
    <% numguess.reset(); %>
    Care to try again?
    <% } else if (numguess.getNumGuesses() == 0) { %>
    Welcome to the Number Guess game.<p>
    Play with default limits ( a number between 0 and 100)<p>
    or enter upper and lower limits.<p>
    <form method=get>
    Play with defaults?: <input type=radio name=default value="yes">Yes
    <input type=radio name=default value="no">No
    <\form>
    <% if (numguess.getRadio().equals("no")) { %>
    <form method=get>
    Enter upper limit:<input type=text name=upperLimit>
    Enter lower limit:<input type=text name=lowerLimit>
    <\form>
    <% numguess.reset(); %>
    <% } %>
    <form method=get>
    What's your guess? <input type=text name=guess>
    <input type=submit value="Submit">
    </form>
    <% } else { %>
    Good guess, but nope. Try <b><%= numguess.getHint() %></b>.
    You have made <%= numguess.getNumGuesses() %> guesses.<p>
    I'm thinking of a number between <jsp:getProperty name="numguess" property="lowerLimit"/> and <jsp:getProperty name="numguess" property="upperLimit"/>.<p>
    <form method=get>
    What's your guess? <input type=text name=guess>
    <input type=submit value="Submit">
    </form>
    <% } %>
    </font>
    </body>
    </html>
    and the modified bean:
    * ====================================================================
    * The Apache Software License, Version 1.1
    * Copyright (c) 1999 The Apache Software Foundation. All rights
    * reserved.
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    * 1. Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    * 2. Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in
    * the documentation and/or other materials provided with the
    * distribution.
    * 3. The end-user documentation included with the redistribution, if
    * any, must include the following acknowlegement:
    * "This product includes software developed by the
    * Apache Software Foundation (http://www.apache.org/)."
    * Alternately, this acknowlegement may appear in the software itself,
    * if and wherever such third-party acknowlegements normally appear.
    * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
    * Foundation" must not be used to endorse or promote products derived
    * from this software without prior written permission. For written
    * permission, please contact [email protected].
    * 5. Products derived from this software may not be called "Apache"
    * nor may "Apache" appear in their names without prior written
    * permission of the Apache Group.
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
    * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    * SUCH DAMAGE.
    * ====================================================================
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation. For more
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    * Originally written by Jason Hunter, http://www.servlets.com.
    package num;
    import java.util.*;
    public class NumberGuessBean {
    int answer;
    boolean success;
    String hint;
    int numGuesses;
    String radiochoice;
    int lowerLimit=0;
    int upperLimit=100;
    String error;
    public NumberGuessBean() {
    reset();
    public void setGuess(String guess) {
    numGuesses++;
    int g;
    try {
    g = Integer.parseInt(guess);
    catch (NumberFormatException e) {
    g = -1;
    if (g == answer) {
    success = true;
    else if (g == -1) {
    hint = "a number next time";
    else if (g < answer) {
    hint = "higher";
    else if (g > answer) {
    hint = "lower";
    public void setRadio(String s) {
         radiochoice=s;
    public String getRadio() {
         return radiochoice;
    public void setLowerLimit( int lowerLimit) {
         this.lowerLimit=lowerLimit;
    public int getLowerLimit() {
         return lowerLimit;
    public void setUpperLimit(int upperLimit) {
         this.upperLimit=upperLimit;
    public int getUpperLimit() {
         return upperLimit;
    public boolean getSuccess() {
    return success;
    public String getHint() {
    return "" + hint;
    public String getError() {
         return ""+error;
    public int getNumGuesses() {
    return numGuesses;
    public void reset() {
         if (getRadio().equals("yes")) {
              answer = (int)(Math.random()*100);
         else {
              int i;
              i=(int)(Math.random()*upperLimit);
              if (i<lowerLimit) {
                   i=i+lowerLimit;
              answer=i;
         success = false;
    numGuesses = 0;

    implement synchronizable and createa constructor, then check it once again.

Maybe you are looking for

  • PR to PO conversion using MD04

    Dear Experts, when i convert the PR to PO using MD04, document type by default comes as NB. Can anyone help me in sorting the issue. Regards, Praveen Sinha.

  • What's happen in Photoshop CS4?? please help...

    Hi everybody, now i have problem with Photoshop CS4 but i don't know why. I've installed it in Windows Vista, when finished installing, open the picture and ... (please see the picture as below) I've already re-installed many times but still same pro

  • Tax code is not reflecting in invoice

    Hi Experts, Recently i have created VAT tax code 7k for condition type JIN6 with effect from date 01.04.2010. Old tax code there with end date as 31.03.2010. I have created material and order , i am trying to make the invoice of that. Tax is calculat

  • How do I add a new Tool Bar?

    I wish to use Firefox as my browser - However, I would like to add the OBA-TEP Tool bar, if I can't, then Firefox will be of no use to me. Can somebody Help please?

  • How to connect with Oracle in java

    Hello! I would like to use java for my graduation project. And connect with Oracle in java. I used j2sdk1.4.2_04 and Oracle 9i release 9.2.0.1.0 May I ask where could supply me information or content ? Thanks!!