Sometimes _currentframe returns "undefined"

Here's an example of how I am using this..
I am calling a function "nearestOctet()" that begins with the
following two lines:
quote:
currentFrame = theMovie_mc._currentframe;
trace("On entering nearestOctet, the currentFrame is:
"+currentFrame);
Sometimes I call it and it returns a number, other times it
does not.
Can anybody please tell me what might cause this?
Thanks.

"Timothy Hall" <[email protected]> wrote in
message
news:ej05ms$p49$[email protected]..
> Here's an example of how I am using this..
> I am calling a function "nearestOctet()" that begins
with the following
> two
> lines:
>
quote:
currentFrame = theMovie_mc._currentframe;
> trace("On entering nearestOctet, the currentFrame is:
"+currentFrame);
>
> Sometimes I call it and it returns a number, other times
it does not.
>
> Can anybody please tell me what might cause this?
>
> Thanks.
>
What action is causing the nearestOctet() function to be
fired off?

Similar Messages

  • Help! artlayer.textItem returns undefined when asked for a valid property like baselineShift

    This is driving me nuts:
    When asking for a property of a textItem like baselineShift, and that property has not been manually set by the user before, it returns undefined even though it may have a default value, as evidenced in the Character properties panel. Is there a workaorund to this bug?
    To replicate:
    • Put a paragraph style textfield into your document
    • Put in some text
    • Do not change any of the default values
    • alert(app.activeDocument.activeLayer.textItem.baselineShift)
    [ result: undefinded]
    • Now set the baseline shift in the properties panel to say 15
    • alert(app.activeDocument.activeLayer.textItem.baselineShift)
    [ result: 15 px]

    When working with textItem properties it's good practice to always wrap access and have default value (and maybe user warnings), it can just blow up For example sometimes accessing justification gets in a bad state and only help is resetting the setting in UI.

  • Cisco UCS Blades ¦ smbiosDump command returns "undefined, but settable"

    Hello Community -
    I have installed ESXi on a UCS B-Series Blade but have been unable to enumerate the UUID (set via Service Profile) with the smbiosDump ¦ More command.
    All other fields return correctly for Serial Number, etc... but not UUID. UUID returns:  "undefined, but settable".    Is this an ESXi and UCS problem?
    (NOTE, with ESX classic, dmidecoe ¦ more command enumerates UUID perfectly.)
    Thoughts, comments, suggestions, input welcome.
    Best all,
    Jason

    This was helpful.... esxcfg-info | grep UUID and is getting further.
    Just wondering and researching today if there is a command to actually take it further and set it...or is this done via the Service Profile ¦ Server Details only.
    Thanks Chris,
    Jason

  • Trace(this["count"+ii]); returns undefined within function

    So I have a function that looks like this.
    fu = function () {
    var count1 = 0;
    var count2 = 0;
    var count3 = 0;
    for (var ii = 1; ii<=3; ii++) {
    trace(this["count"+ii]);
    when it runs it returns
    undefined
    undefined
    undefined
    However,when I declare the variables outside that function,
    like this:
    var count1 = 0;
    var count2 = 0;
    var count3 = 0;
    fu = function () {
    for (var ii = 1; ii<=3; ii++) {
    trace(this["count"+ii]);
    it returns:
    0
    0
    0
    Which is what i want, but I need those variables declared
    locally. SO WHY DOESNT IT WORK THE OTHER WAY????
    Someone please help me, because I'm obviously missing
    something.
    Thanks
    Chris

    "ChrisFlynn" <[email protected]> wrote in
    message news:e50orp$cs5$[email protected]..
    > So I have a function that looks like this.
    >
    > fu = function () {
    > var count1 = 0;
    > var count2 = 0;
    > var count3 = 0;
    > for (var ii = 1; ii<=3; ii++) {
    > trace(this["count"+ii]);
    > }
    > };
    >
    > when it runs it returns
    >
    > undefined
    > undefined
    > undefined
    You can't get a reference to a local variable using this
    method..
    this["count"+ii]);
    That will try to find an object.. movieclip or button with
    that instance name.
    If you need to address variables in a loop it's easiest to
    make them arrays like this..
    fu = function () {
    var count = new Array(4);
    count[1] = 0;
    count[2] = 0;
    count[3] = 0;
    for (var ii = 1; ii<=3; ii++) {
    trace(count[ii]);
    fu();
    tralfaz

  • Worker.current.getSharedProperty return undefined

    Hi.
    Why Worker.current.getSharedProperty return me undefined and mb.addEventListener(Event.CHANNEL_MESSAGE, onMainToTest); causes
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    i try to run sample from gotoandearn.com "Using ActionScript Workers - Part 2".
    best regards,
       gaffkins

    Hi.
    Why Worker.current.getSharedProperty return me undefined and mb.addEventListener(Event.CHANNEL_MESSAGE, onMainToTest); causes
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    i try to run sample from gotoandearn.com "Using ActionScript Workers - Part 2".
    best regards,
       gaffkins

  • Why does FP Advise sometimes erroneously return terminated?

    I am running a multi-threaded LV 5.1 app with fieldpoint and a NI-4060 dmm. Sometimes, the first call to FP Advise returns terminated as true. This never happened when using a NI-4050 dmm. Are there other interactions between these two systems I need to know about?

    The FieldPoint driver is totally independant of the drivers for the NI-4050 DMM, there should be no interaction between them at all. A couple of questions, what are you using as the Advise Rate input to the FP Advise.vi, a rate that is too small (e.g. 0) can sometimes cause erroneous behavior. To avoid this, the default is set to 10 ms starting in FieldPoint Explorer 2.0.3 or 2.0.4, but if you are using an older version, this may be the cause. What version of FieldPoint Explorer are you using? Alternatively, how many I/O points are in your IAK file and what type of network module are you using. An extremely large IAK (e.g. several hundred to several thousand points) that has numerous ethernet points will take longer to launch the server so it is possible that the
    server has not finished connecting to all of the I/O points by the time you do the first advise which could return the improper information that the server is not online ("terminated"). If this is the case, a small delay before you start the Advise should clear this up.
    Regards,
    Aaron

  • PHP returning "undefined" variable to flash

    Hello Everyone, I am working on a touch screen POS login interface that takes in a four digit user pin and searches a database. It uses Flash, PHP and MYSQL. I need PHP to return the user name and access level. The AS3 code below is what I have so far, but it doesn't work correctly.
    "IntLogin" is the 4 digit pin that is sent to PHP when the user touches login on the GUI.
    function onLoginClick(e:MouseEvent):void
              keyLogin.gotoAndStop("KeyDn");
              var loader:URLLoader = new URLLoader();
              var request:URLRequest = new URLRequest("Login.php");
              var variables:URLVariables = new URLVariables();
              loader.dataFormat = URLLoaderDataFormat.VARIABLES;
              request.method = URLRequestMethod.POST;
              variables.login = intLogin;
              request.data = variables;
              trace(request.data = variables);
              loader.addEventListener(Event.COMPLETE, onComplete);
              loader.load(request);
               function onComplete(event:Event):void{
                        var loader:URLLoader = URLLoader(event.target);
                        var variables:URLVariables = new URLVariables(loader.data);
                        txtUser.text = variables.username;
    Next is the PHP code which works great in the browser when I implictly give $select a value, returning "username=Walker&access=1"
    However, when I run the program from Flash it returns an undefined variable and the end of the PHP file.
    <?php # Login.php
    require_once ('mysqli_connect.php');
    //Connect to the db
    if (!empty($_POST['login'])){
              $select = $_POST['login'];
              $sql = "SELECT Last_Name AS name, Access_Level AS level FROM Users WHERE User_ID = '$select'";
              $q = mysqli_query($dbc, $sql);
              if($q){
                        $row = mysqli_fetch_array($q, MYSQLI_ASSOC);
                        $name = $row['name'];
                        $access = $row['level'];
                        echo "username=$name";
      echo "&access=access";
    ?>
    I have have tried debugging the both the PHP and the AS code, but I am stuck. When I trace in AS3 I get the following:
    1445
    login=1445
    undefined
    $access";
    ?>
    Please if you anyone can help with this it would be greatly appreciated. I am on a strict timeline and I don't know what to do here.
    Thanks:)
    Jusmark

    You have to send it as a flash var
    Take a look at the code on my php webpage:
    http://www.spectacularstuff.com/php-test/inprogress/scrfix/home.php
    That is how I sent it to flash. Now, we want to receive it in
    flash. You need the following actionscript in AS3.
    // Display FlashVar onto webpage to ensure we are
    // receiving it
    var tf:TextField = new TextField();
    tf.autoSize = TextFieldAutoSize.LEFT;
    tf.border = false;
    tf.x = 50;
    tf.y = 10;
    addChild(tf);
    // Detect the FlashVar from the webpage
    try {
    var keyStr:String;
    var valueStr:String;
    var paramObj:Object =
    LoaderInfo(this.root.loaderInfo).parameters;
    for (keyStr in paramObj) {
    valueStr = String(paramObj[keyStr]);
    if (keyStr.indexOf(".") != -1){
    keyStr = keyStr.substring(0, keyStr.indexOf(".")); //now
    it's "home"
    // tf.appendText(keyStr);
    } catch (error:Error) {
    // tf.appendText(error);

  • Sometimes report return rows sometimes not

    Hello everybody,
    well, I'm using apex 4.0.2 and I have a simple report returning values from my table, like this:
    SELECT '1',
    SYSDATE
    FROM DUAL;
    But, if I refresh the page with the key F5 or mannually the report doesn't return any rows. If I refresh the page again, after five moments the report normally return the rows.
    This is a bug of the Apex? Because if I put the same code in the SQLPLUS the problem desappears. I don't know how can I resolve this. Thank you in advice.
    At.
    Raul Welter

    Hello everybody,
    well, I'm using apex 4.0.2 and I have a simple report returning values from my table, like this:
    SELECT '1',
    SYSDATE
    FROM DUAL;
    But, if I refresh the page with the key F5 or mannually the report doesn't return any rows. If I refresh the page again, after five moments the report normally return the rows.
    This is a bug of the Apex? Because if I put the same code in the SQLPLUS the problem desappears. I don't know how can I resolve this. Thank you in advice.
    At.
    Raul Welter

  • Javascript open() function returns undefined

    The javascript function open() specs like "fullscreen", "width", "height", seem not to work under Safari while they do under Firefox, Opera and even Explorer. So, I open a popup with : Win=open("<url>","","") and then , I use Win.resizeTo(<width>,<height>) where <width> and <height> was evaluated previously . But I obtain the message : "TypeError : 'undefined' is not an object (evaluating Win.resizeTo)".
    I found several problems with Safari (performance different from other browsers), and up to now, I managed to get round the problem. But in this case, I go blank !!!
    Please, can you help me to produce a code visible by Safarists ;o)

    Beaver13 wrote:
    Thank you "etresoft". In fact, I wrote the inappropriate term function, but as I detailed above, I used correctly resizeTo as a method of "what should be a window object". Syntax of the evaluation of this object by open is also correct since the root object window is implicit. Anyway, I tried adding window or this and I obtained the same behavior.
    In theory that is true, but it isn't working for you. While I'm quite fond of Javascript, it is a very flexible language and you could have installed any number of 3rd party additions that do all kinds of crazy things with it.
    Finally, could you say me how you would  open a popup with given dimensions ?
    I normally don't use pop-ups but I have one special case where a page is displayed inside of Google Earth. Google Earth isn't a real web browser, but looks like one, so it needs lots of hacks to get some functionality. When the user clicks an image link, it uses this function to pop-up a new window that redirects itself to the appropriate image URL, successfully downloading the requested image instead of the nasty error message the user would have seen otherwise - and no download. I will add a few extra comments to explain what is going on...
    // Pass in the id of the item to download.
    function embeddedDownloadItem(id)
         // Center the pop-up in a platform-neutral way.
        var top =
            window.screenTop
                ? window.screenTop
                : window.screenY;
        var left =
            window.screenLeft
                ? window.screenLeft
                : window.screenX;
        top += $(window).height();
        left += $(window).width();
        // Move it over a bit.
        left -= 200;
        // Use the id to construct a selector to
        // find and extract the URL.
        var url = $('#url-' + id).attr('value');
        // Download the file via new window.
        downloadWindow =
            window.open(
                url,
                "Download",
                'top=' + top + ', left=' + left
                    + ',width=200,height=100');
        // Close the new window in 5 seconds.
        setTimeout("downloadWindow.close();", 5000);
        // Hide it until that happens.
        window.focus();
    As you can see, I am using jQuery which does some of that crazy stuff I mentioned earlier. However, that is not something you really want to live without. This is a special case that just pops up a window, redirects to download an image, and then goes away. I actually recommend not using pop-ups at all because they are too easy to block. In this case, it is running out of Google Earth with doesn't have a pop-up blocker, so I lucked out.
    I don't know why your code isn't working. Have you tried the demos at w3schools? They are always very handy.
    I agree with you, Safari has the best debugging features, but, I'm a little more circumspect about "the most standard compliant", but maybe I'm wrong.
    That is just what I have found. I am not really a web developer, but I have been roped into it. Because I don't really enjoy it, I don't have the same obsession towards perfection that I would elsewhere. If I can get it working in the major browsers, that's good enough for me.
    I always build in Safari first. The latest Safari has a few more debugging bells and whistles but is actually a bit harder to use in this aspect than the previous version. I build a "clean-room" version of the site in Safari with no hacks of any kind. Everything works as it should in an "ideal" browser, which just happens to be Safari. The console window and "window.console.log()" are your friends. "Inspect element" is very powerful.
    I don't bother with Chrome because it is so similar to Safari. I have never seen a significant difference between the two.
    Next up is IE7. Parallels to the rescue. Thankfully, I don't have to support IE6 anymore. IE has some very nice, version-specific hacks that allow you retain some of your sanity. I also use Zend which automatically generates these constructs. I can do something like:
            $this->view->headLink()->appendStylesheet(
                $this->view->baseUrl() . '/css/ie7.css', 'all', 'IE 7');
            $this->view->headLink()->appendStylesheet(
                $this->view->baseUrl() . '/css/ie8.css', 'all', 'IE 8');
    which will generate:
    <!--[if IE 7]> <link href="/css/ie7.css" media="all" rel="stylesheet" type="text/css" /><![endif]-->
    <!--[if IE 8]> <link href="/css/ie8.css" media="all" rel="stylesheet" type="text/css" /><![endif]-->
    Zend supports the same thing with Javascript, with a little bit more mess:
            $this->view->headScript()->appendFile(
                $this->view->baseUrl() . '/js_include/warning.js',
                'text/javascript',
                array('conditional' => 'IE 6'));
            $this->view->headScript()->appendScript(
                sprintf(
                    'window.onload=function(){e("%s")}',
                    $this->view->baseUrl() . '/images'),
                'text/javascript',
                array('conditional' => 'IE 6'));
    generates:
    <!--[if IE 6]> <script type="text/javascript" src="/js_include/warning.js"></script><![endif]-->
    <!--[if IE 6]> <script type="text/javascript">
        //<![CDATA[
    window.onload=function(){e("/images")}    //]]>
    </script><![endif]-->
    In this example, I just pop-up a warning saying IE6 isn't supported at all.
    You can do most of the IE7 and IE8 support with the above CSS hacks. If you need to change the structure to support IE, then once it works in IE you have to go back and re-test in Safari.
    I have found that IE9 is much more standards-compliant and needs very little help.
    Firefox is actually one of the flakier browsers these days - even more so than IE9. I actually have to add a special section of Firefox hacks at the end of my CSS like this:
    /* Firefox hacks */
    @-moz-document url-prefix()
        #kml_loading,
        #kmz_loading,
        #shapefile_loading
            top: -1px;
    Unfortunately, Firefox wasn't known to be a troublemaker like IE so the hacks are more ugly than in IE.

  • Robot getpixelColor returns wrong color sometimes...

    Hey
    I ve got a problem. I read Pixels from a Game with the Robot getPixelColor method. Sometimes it returns right values, sometimes wrong! I check some pixels if they are white. The pixels dont move, so this same pixels are white everytime!.
    Now sometimes he returns wrong colors. Instead of 255,255,255 ...it returns 0,12,25 or something like that. (with the same x, y coordinate).
    My assumption is: My code is like following
    CheckPixel(MyRobot.getPixelColor(30,40);
    CheckPixel(MyRobot.getPixelColor(31,45);
    CheckPixel(MyRobot.getPixelColor(36,20);
    CheckPixel(MyRobot.getPixelColor(51,70);
    Now it has to return 255,255,255 but somtimes its not working, he return 0,0.12 .... 0,0,15..... 255,255,255 .. or something like that
    Could it be, that java does not refresh the robot object so fast when I call getPixelColor so fast in a row?
    Is there a command with which I force Java to wait until the pointer is on the right x,y coordinate? Except of Thread.Sleep();
    Thank you for your help..

    ok I try:
    Robot r = new Robot();
    int x, int y;
    x = getItSomehwere();
    y = getitsomehwere();
    for (int i= 0, i< 20; i++) {
    if (isThatPixelsWhite(x, y) != 0) {
      DoSomething;
    public int isThatPixelsWhite(int x, int y) {
    if  (
    r.getPixelColor(x+5,y+15).equals(Color.WHITE)  &&
    r.getPixelColor(x+7,y+19).equals(Color.WHITE) &&
    r.getPixelColor(x+9,y+11).equals(Color.WHITE) &&
    r.getPixelColor(x+21,y+5).equals(Color.WHITE) &&
    r.getPixelColor(x+13,y+2).equals(Color.WHITE) &&
    r.getPixelColor(x+23,y+7).equals(Color.WHITE) &&
    r.getPixelColor(x+9,y+9).equals(Color.WHITE) &&
    r.getPixelColor(x+10,y+21).equals(Color.WHITE) &&
    r.getPixelColor(x+11,y+22).equals(Color.WHITE)
    ) return 1;
    return 0;
    }Thats the relevant code.
    I guess the fast calling of getPixelColor in this if struct (in Method isthatPixelsWhite) overburd java ..

  • [URGENT] The remote server returned an error: (503) Server Unavailable

    Hi All,
    Im using vb.net to write a web services. After couple of days the stress test on all the function, my exception catch sometimes is return the error message as a title but sometimes is not, why is this problems? Please advice.
    Below is the coding to connect on the crmod server and this sample code is provided from oracle webservices sample code,
    Public Sub Establish()
    If Not sessionId Is Nothing Then
    Destroy()
    End If
    ' create a container for an HTTP request
    Dim req As HttpWebRequest
    req = WebRequest.Create(GetLogInURL())
    'username and password are passed as HTTP headers
    req.Headers.Add("UserName", UserName)
    req.Headers.Add("Password", Password)
    'req.Credentials = New NetworkCredential(UserName, Password)
    req.UserAgent = "Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0"
    req.KeepAlive = False
    req.Proxy = Nothing
    ' cookie container has to be added to request in order to
    ' retrieve the cookie from the response.
    req.CookieContainer = New CookieContainer
    ' make the HTTP call
    Dim resp As HttpWebResponse
    resp = req.GetResponse()
    If resp.StatusCode = System.Net.HttpStatusCode.OK Then
    'store cookie for later...
    cookie = resp.Cookies("JSESSIONID")
    sessionId = cookie.Value
    End If
    End Sub

    Hi runndn2,
    Yes, absolutely. Please see my reply as below,
    (1) Are you running this single threaded? - is there more than one program running the same request?
    So far, what I did just a single thread. For example, I click on "functionA", after few seconds is display out result, i close the result pages then i submit the "functionA" again.
    (2) Do you have logic to re-try the request when you get a 503?
    I do, but the logic and retry to get the error message is very inconsistency. For example, I click on "functionA", it can display result and no error message within couple of times clicking. But sometimes even I first click on the same function already display out that error message.
    This really confusing where is the error came from, please advice for the possibility.
    Thanks :)

  • Return of goods appears in list of BNG or GNB?

    Hi,
    In our standard system, when use F.19, all the goods received but not invoiced will be in the list of GNB with credit balance. And if we use mov. typ 122 to return part of goods to vendor, the value will be in the list of GNB with debit balance as the offsetting of the GR with mov. typ 101.
    But sometimes the return of goods with mov. typ 122 appears in list of BNG with debit balance. It's quite weird. when we tried to make a test by creating another PO and return of goods. The new return of goods appears in list GNB. So we cannot tell why some returns appear in BNG and some others in GNB.
    Is there any place that can decide whether the balance will appear in GNB or BNG list?
    p.s. if we use return PO, i.e., mov typ 161, it always appear in list of BNG.
    Thanks!
    Wesley

    Hi Wesley,
    I am facing the same situation where :
    1st IR is complete
    2nd GR is complete
    3rd GR reversal is done
    Ideally it Should regrp under BNG but in our system it's regrp under GNB.
    Please let me know if you found any solution for this.
    Thanks
    KK

  • T60p Win7 LCD sometimes off when resume from sleep

    T60p Win7 - Sometimes when returning from sleep the LCD does not come on.  When this happens sleeping and awaking again has no effect.  Only solution is to hard power down.
    Latest BIOS, system up to date.  Any ideas?

    How about including a link then to where he/she might find the answer instead of ragging them for not searching?
    I am having the same problem and have searched endlessly for a solution - and none so far have resolved it. So if you know where the answer is then by all means please share that.
    - Hurk

  • Output Displays "Undefined"....  Help

    Hello All,
    I have posted here quite a bit for help before and I have received vast amounts of help.  Thanks in advance to anyone who can help with this.  I have some code that is returning "Undefined" in the output when I click the submit button.  I have a variable named "score" and the button is named "submit_btn". If you have any questions or need more info, feel free to ask.
    var scores_lv = new LoadVars();
    function showHighScores(success) {
    if (success) {
      gotoAndStop(13);
    submit_btn.onRelease = function() {
    if (name_txt.text != '')
      submit_btn.enabled = false;
      trace(score);
      scores_lv.name  = name_txt.text;
      scores_lv.score = score;
      scores_lv.onLoad = showHighScores;
      scores_lv.sendAndLoad('scores.php',scores_lv);

    If you visit the link below it provides information on how to use LoadVars that you can compare to what you have, and includes PHP example code that you might find useful to compare as well.
    http://www.sephiroth.it/tutorials/flashPHP/loadVars/page02.php

  • Loader.loaderURL returns "wrong" location. [[DYNAMIC]]/9

    Hey everyone,
    I have an issue where I am watching the value of:  loaderInfo.url and sometimes it returns the url of my file just fine, example "path/myfile.swf and it is all good. Other times it will return  path/myotherfile//[[DYNAMIC]]/9
    I found the following URL that helps explain it a bit http://swfshield.com/info/problems however how do I make a swf un-protected so it will return my url correctly?
    Thanks a bunch guys.

    not that I know of, some that get loaded in are fine, and some return the /[[DYNAMIC]], not really sue why, other then it being "protected".

Maybe you are looking for

  • DVD drive will not read DVD-Roms

    I recently tried to reinstall a game that I had played previously, only to find that my drive will not read it. I can hear the disk spinning, but my computer will not recognize that there is a disk in the drive. I tried some of my other games and I n

  • Want to add and remove GL account in report through report painter

    Hi, Thanks in advance, 1.I want to add new GL account in IS01 report i.e. Income Statement. I am trying to add through report painter but could not able to do it. 2.Also i want to delete existing GL account from report through report painter. Any bod

  • Rebuild the index form brtools ended with error

    Dear all, I am getting error in db13 Update Stats  there error is BR0884I Statistics collected for table: SAPDEV.TCX00, rows old/new: 24117/24117 BR0986W Index SAPDEV.TCX00~0 is unbalanced - please rebuild the index I have try to rebuild for brtools

  • Generating EWA for JAVA

    Hello, I need to generate an EWA report for a JAVA stack. I have an ABAP + JAVA system for which I've configured SMD. The SETUP (Diagnostic Setup-->Managed Sytems) has been executed successfully. In SMSY I've created a JAVA component for the system.

  • Displaying W message on selction screen and on enter need to go to ALV liso

    Dear All, I have  a requirement where i get my data in end-of-selection evenet after that i do  some calculation / validation and i display the warning message . But i need to display the warning on selction screen and on enetr need to go to ALV list