really weird math in flash

OK - I have a function that looks at some data grabs a variable which is an object, another variable that is a parameter and adds it to a third number, which is a variable... it looks like this...

Item number [parameter] +=;

This is all pretty standard stuff... but it's absolutely crazy! When I hard code a value in the number, it works fine. When I enter the number of a table of numbers, adding does not change the value of the parameter.

UG.

Any tips? I'm breaking the rules?

Here's the code twice with the trace output in the comment blocks... Just look at the trace output and you'll see the problem.


Hey - I'm beast... figured it out...
Splice() returns a table, not a number. so I changed...

... _root._mcTempSwoosh._aSwooshData . movements.splice (0, 1);

TO

... _root._mcTempSwoosh._aSwooshData. movements.splice (0, 1) [0];

and it works.

Thank you guys.

(I feel like a retard)

Tags: Adobe Animate

Similar Questions

  • Tasks really weird when you insert photoshop files in my indesign document

    Dear Indesigners

    I had encountered this problem before. Then I exported the file in JPEG format and print from there on.

    But now he really mind what adobe does.

    I'm creating a birthcard. There, I designed the background (in indesign with lines simple and circles). Photo with Ribbon that I designed in photoshop. Circle around the image model is also in Indesign.

    When I print this file from indesign, I have really weird stains on my part of Photoshop document.  You can check it in the attachment.

    If I export and print it from there, the tasks are nowhere to be seen.

    Is this some weird setting that I looked over? The Photoshop document is in CMYK format.

    It is the export file:

    Design front - export.jpg

    This is the file scanned, print (increased contrast)

    Design front - scan.jpg

    http://InDesignSecrets.com/eliminating-YDB-yucky-discolored-box-syndrome.php

  • A really weird text formatting problem

    I tried to fix a weird text problem in a new InDesign document.

    Behavior: When I hit enter at the end of a line, it gives me a jump page instead of a newline behavior. All the following text is presented on the next page.

    Installation: I have created a group of text boxes (simple script, wall of text, no images), lie on several pages and active the text stream. Then I placed the text via the import command. This is a.doc file and checked, the text it contains is behaving properly. I turned on "View hidden characters" and are all it shows end of paragraphs. Even the place where to get the odd page break, it shows only paragraph. I tried to play with the styles of character, paragraph styles, pipette, formatting of tool... nothing works. This problem appears in several chapter headings in the document, but not all.

    I've been home for hours and have exhausted all the possibilities I could think. Really need help.

    What button?

    OPERATING SYSTEM? Version of InDesign?

    Have you checked the paragraph after the break for an Option keep forcing him to start at a specific location?

  • My iMac doesn't work that in safe mode, normal mode the screen layout is really weird. Help, please! :)

    Hi guys,.

    Since yesterday my iMac 27 inches of the end 2009 has acted weird. Text was not good more visible and popupscreen were empty, white or black. (do not know why they are uploaded in reverse)

    Then I tried a clean install. Screen was working again fine. Then formatted my drive and installed the new OSX.

    Download went fine, but when installing the pop-up screens were not visible.

    After a few random reboots on my side, it worked again.  Thus, installation...

    But... Now, I always have the same question. In safe mode, everything works fine, but in normal mode, the screen is *. Pop - up screens are blank/black or white, the numbers are mixed, etc. What it can be.

    I already installed it on an external HARD disk, reset the SMC and the PRAM, Test hardware (message only 1 failure: 4sns/1/40000000: TH00 - 9,000.) "But I think it's because I installed my SSD later, that's why I need to use a program like HDD control to control the fan).

    so... What can be? I've tried everything! If any of you guys could help me, I would like to do a happy dance ;-)

    You have a sensor error. You can make an appointment at the Apple Store - Genius Bar store and bring it into service. You can also search an Apple Store - find a store - Apple.

    Install El Capitan from scratch

    Restart the computer. Immediately after that the chime hold down the command and R until the Apple logo appears. When the Utility Menu appears:

    1. Select utility disc in the Menu Utility, then click the continue button.
    2. When loading disk utility, select the volume (entered into withdrawal, usually Macintosh HD) in the list to one side.
    3. Click Delete in the main window of disk utility. A panel will fall.
    4. Define the type of Format Mac OS extended (journaled).
    5. Click on the apply button, then wait for the done button to activate and click on it.
    6. Quit disk utility and re-enter the Utility Menu.
    7. Select reinstall OS X and click on the continue button.
  • Really weird hard drive partitions.

    Hi, I read on the forum about this, but I have not found any post from anyone with all partitions that I have on my hard drive, by the way my laptop is a Lenovo G480 (20149) brand new and what you see on the screenshot is what it comes as lenovo, I didn't touch anything yet , but it seems to me that 11 partitions is a little too tight?

    Can someone please explain to me why I have 5 partitions that are exactly the same?

    Thanks in advance!

    Screenshot

    I have 8 on my flex 14, do not know why you have 11, but I really wouldn't touch them. I consider that these are partitions of recovery and utility OKR

  • REALLY weird Y570 screen problem. Video card problem?

    So I have a lenovo y570, and during random times of the day, my screen ends up looking like this.

    http://img845.imageshack.us/img845/4519/weirdscreen.PNG

    Now, once that I clic click on the screen, scroll upwards or downwards or refresh the page, the image disappears, so this isn't a serious problem, its all just annoying. I have already updated the video card driver and uninstalled mcafee (who got rid of other problems that I had), but this problem still remains. Any suggestions?

    Hi Thaibo,

    weird display can be caused by a bug in the browser Google Chrome .

    Please try a different browser e.g. Firefox or IE.

    Zehn

  • Pavilion 17-F001dx: my laptop backlight is something really weird + hang on restart/shutdown

    This laptop is by far (on paper) more powerful than my previous E1 AMD processor powered notebook; but since I got it (it is refurbished, but in the warantey of 90 days as I've had it less than 2 weeks) it was much less responsive than my laptop prior. I get weird popups as follows:

    And even the tabs in internet explore crashing and reloading for the basic sites like the google home page.

    Every time I restart there are several applications, I've never seen on my laptop prior "prevents me to restart"; including just a file Explorer window and there are always abnormally slow restart and shutdown. He also takes his sweet time of mode "Eve".

    And earlier, my screen faded very bright and blinking then black a few times. For now, I fixed it to the maximum brightness and it looks like a medium brightness. It is after the restart after this strange behavior out of the blue backlight.

    BIOS version: F.33-11/21/2014

    @Quintix256 ,

    Hello and thanks for the display on the HP support forums.  If you are having a hardware problem question and system performance of a refurbishment purchased from a third-party supplier 3rd unit.  Although it is under warranty I would contact HP support by phone for repair options.

    Please contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number. http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    If this is not the case, contact the supplier for replacement options.

    Thanks again for posting and have a great day.

  • My keboard is weird .the screen flashes keystroke and there is only a single action on the keys

    It's a laptop and the screen flashes white on each keystrore ihere is a squeek in keyboard noise strikes the keyboard and keys only affect the one unique touch. Act as thoughj River is incorrect

    Hi MichaelGabriel,
     
    -What is the brand and model of your laptop?
    -A your keyboard without any problems before work?
     
    Check if there is an updated driver for the keyboard to your laptop from the manufacturer's website and install the same.
     

    More information about the update of the drivers are available at:

    How to manage devices in Windows XP

  • weird problem with flash events

    I use a RTP300 (NA unlocked with 3.1.24 latest firmware) router and I'm having a strange problem with my phone.  I think I've finally pushed back.  The problem occurs only in the following circumstances.  When I'm on the phone with a single contact, and I get a call waiting 'click', if the first caller hangs up (I say someone calls etc.), and then when I pick up the 'click', the other appellant does not at all - hear me (sometimes I can hear them perfectly, sometimes without even that).  This problem occurs only if the first caller hangs up - if the first caller stays on the line when I pick up the second call all right.  It does not help if I hang up before you press the flash on the first point of contact.  The only way to make it work, is if I take the second call until the first caller hangs up.

    I'm not using a NAT, the telephone is directly connected to a cable modem and has an external IP address, so it can't be the problem.  Any ideas?  Thank you.

    I don't yet know what was causing the problem, but I found a work around.
    Instead of connect my phone to the port of line 1, I went to port RJ11 2 line and voila! problem solved.  So as long as I don't have need a second phone line I'll be ok .

  • Really weird bluescreens of my HP Envy 15 (P/n: nx356aar)

    Recently I have formatted my laptop and installed windows from scratch, because I couldn't deal with the weird police put nationwide and other strange software bugs in the "stuff" that comes pre-installed with a desire 15 bat more.

    Since I have problems to blue screen during the start screen of windows from a "cold start" State (and only when boothing in Windows 7 x 64-cold-start from my USB pendrive linux works very well, every time), then by "cold start" I mean is this happens only immediately when I turn on the PC of an engine totally out of State.  If I start in safe mode then restart from there it will work correctly.

    The error I see is usually either STOP 0 x 0101 (CLOCK_WATCHDOG_TIMEOUT) "an interruption of clock has not received on a secondary processor in the allotted time interval.

    -OR-

    STOP 0 x 09 (MACHINE_CHECK_EXCEPTION) - but this one is much less common.

    In addition I can cause a blue screen or restart spontaneous if once I'm inside windows I ask the machine to go on standby or hibernate modes.

    All this leads me to believe there is some sort of power management / ACPI drivers and/or software that I'm missing because I formatted.  Check on the HP drivers for this machine - http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4063&lc=en&cc=us&dlc=en&sw_lang=&product=4048... - page nothing immediately according to descriptions jumps on me as something that I have to install to solve this problem.  Also, the Device Manager shows no missing driver / broken.  SP1 is installed and the windows updates are completely up-to-date.  BIOS is fully updated as well.

    Any ideas?  Should I just format it again and I hope it continues to occur?

    Thanks in advance for any help / ideas.  Seen a lot of behavior wacky computer in my time, but not sure on this one.

    I see the same problem on my desire to 15 institutions.  (Beats edition No.)  I think I started to receive this error message after you install the latest amd catalyst drivers, although I had other questions before too, so if something drivers gets worse.

    I plan on restructuring and tryign hp provided drivers to see if that helps.  If you find a real solution, please post back and let us know!

  • weird math

    I'm working on a calculator application simple grade, but I can't do the math at work. If I input 100 to inPossible and 50 for augL, I get 2 for finalGrade... am I missing something here?

    import bb.cascades 1.0
    
    //-- create one page with a label and text
    
    Page {
        Container {
            layout: StackLayout {
                leftPadding: 80
                rightPadding: leftPadding
            }
            layoutProperties: DockLayoutProperties {
                horizontalAlignment: HorizontalAlignment.Center
                verticalAlignment: VerticalAlignment.Center
            }
    
            // A one line TextField that captures total possible points
            TextField {
                id: inPossible
                inputMode: TextFieldInputMode.NumbersAndPunctuation
                hintText: "How many possible?"
                bottomMargin: 50
                textStyle {
                    base: SystemDefaults.TextStyles.BodyText
                }
                layoutProperties: StackLayoutProperties {
                    horizontalAlignment: HorizontalAlignment.Fill
                }
    
                // On text change the label text is updated.
                // onTextChanging: {
                //    finalGrade.text = text;
                // }
            }
    
            // A one line TextField that captures number of correct items
            TextField {
                id: inTotal
                inputMode: TextFieldInputMode.NumbersAndPunctuation
                hintText: "How many correct?"
                bottomMargin: 50
                textStyle {
                    base: SystemDefaults.TextStyles.BodyText
                }
                layoutProperties: StackLayoutProperties {
                    horizontalAlignment: HorizontalAlignment.Fill
                }
    
                // On text change the label text is updated.
                //onTextChanging: {
                //    finalGrade.text = text;
                //}
            }
    
            // Calculate Percentage
            Label {
                id: finalGrade
                text: (inPossible.text / inTotal.text);
                textStyle.alignment: TextAlignment.Center
                textStyle.justification: TextJustification.Default
                textStyle.fontWeight: FontWeight.Bold
                textStyle.size: 60.0
                layoutProperties: StackLayoutProperties {
                    horizontalAlignment: HorizontalAlignment.Center
                    verticalAlignment: VerticalAlignment.Center
                }
            }
        }
    }
    

    I don't see where alias properties (soaman response) in this, but maybe I skimmed the code question too quickly. It seems to me, however, you want to say 100 / 50 gives you 2... but this isn't what you wanted?

  • Weird behavior in Flash CC 2015 Brush tool

    I just installed the 2015 CC Flash and the brush has some lag and stroke is very imprecise and sharp, tried with "size of the zoom with scene' power and the value of different stroke of stroke smooth, or it makes me think of the horrible first version of Flash CC 2013.

    I was wondering if some has this problem too, or is it just something wrong with my computer (I CC 13.1.0 v and CC 2014 14.1.0 and Brush tool works fine, well, like the 'big' as usual)

    (I use Flash for entertainmentsn since Macromedia Flash 4, and the Brush tool, this is the device most whacked, each version has its own problems... it's very strange, because many people use Flash for animation and this tool, it is more important for that...)

    Hello! I found the problem, just had to remove this folder:

    / Users/myuser/Library/Application Support/Adobe/Flash CC 2015

    Flash CC 2015 brush works now

    Thank you!

  • Cannot convert a clip simple targeting AS3 to HTML5 (really new to HTML5 Flash CC)

    Please, I beg you! A good soul can convert this to HTML5? I've tried everything! I need to see where I am going wrong... It works perfect in as3, but every time I tried to convert it into js, it stops... Someone? :/

    buttonOne.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayAtFrame);

    function fl_ClickToGoToAndPlayAtFrame(event:MouseEvent):void
    {mc.gotoAndPlay (2) ;}}

    Stop();

    I already tried this:

    var _this = this;
    this.buttonOne.addEventListener("click", fl_ClickToGoToAndPlayAtFrame);
    function fl_ClickToGoToAndPlayAtFrame(event) { // Note: Types are not supported either.
      _this.mc.gotoAndPlay(2);
    }

    It works in a empty fla, but not on the i'm working:

    I just want to call the mc (with effect) and at the same time, go to section 348 and play... I'm downloading the original fla that I am working on... Please, help me find what's the problem?

    www.agenciacreh.com.br/downloads/Home.fla (here the fla file!)

    Thank you!

    Hello

    This could be a problem do not specify an instance name on the first image where this instance is placed at providing the instance name to a frame later. Flash takes the instance name what is the setting in which the instance is named but CreateJS it does not bind this way.

    Joined the work file.

    Thank you!

    Mohan

  • Dual monitor - really weird problem.

    I posted this same question awhile back, but now I have more information that my fix this.

    Windows 7pro, 24g of RAM, 2 - dual 1 g cards, two 1 TB drives, PS5 64bits.

    GPU - open GL is on, try off, seems not to matter.

    I tried with Zoom clicked point to Center on and outside.

    I tried Zoom Resizes Windows - on and outside.

    Zoom clicked at the central point, and outside.

    I use three monitors - left - 24 "Samsung, intermediate level - 27 '' Dell and right - 24 '' Dell.

    I started with PS and it opens on the right screen.  All my tools, menus, panels... stay on the right screen and the picture is moved from the right monitor to the central monitor. Before I drag the tab to the Middle monitor I can zoom in and move the photo anywhere I want with the hand tool, which is the upper left corner of the photo can be positioned in the center of the screen.  Once I have move tab (picture) for the monitor environment I can not move the picture that he's stuck horizontally and vertically, I can't get any gray area, if full screen and the photo will not move.  I can navigate in the navigator pane, but I can't move the picture around the screen using the hand tool, I can if left in right monitor.  Now if I move things around, using the central monitor for the tool, panels etc and move the tab to the right monitor it still doesn't move.  If I move the rear tab of the average monitor to the right screen, everything works fine.  It's really odd behavior.  I dragged to the left monitor as well, does not work, only in the original window files was launched in.

    Does anyone else have this problem?  could someone please try this, surely someone has a configuration dual monitor.  Thank you.

    Resemble its full screen in test mode hit the F button a few times.

  • I just got back from vacation and had Sercives free location. Now, all my photos are geo tagged really weird! I have iOS 10

    How to change places in the 10 iOS?

    and I think that he just took a dagger blow to where I was (Vancouver)

    Hello

    You can change the location of your photos to the photo App Mac.

Maybe you are looking for