# programming

**URL:** https://forum.kirupa.com/c/programming/41.md?page=46

[Latest](https://forum.kirupa.com/latest.md) · [Categories](https://forum.kirupa.com/categories.md)

**Page:** 47

---

## [JS Tip of the Day: Thenable Objects](https://forum.kirupa.com/t/js-tip-of-the-day-thenable-objects/643177)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [February 19, 2020, 5:35pm UTC](https://forum.kirupa.com/t/js-tip-of-the-day-thenable-objects/643177 "2020-02-19T17:35:02Z")

</div>

---

## [JS Tip of the Day: Default Function Parameters](https://forum.kirupa.com/t/js-tip-of-the-day-default-function-parameters/643178)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [February 18, 2020, 1:15pm UTC](https://forum.kirupa.com/t/js-tip-of-the-day-default-function-parameters/643178 "2020-02-18T13:15:55Z")

</div>

---

## [JS Tip of the Day: Detecting Dark Mode](https://forum.kirupa.com/t/js-tip-of-the-day-detecting-dark-mode/643179)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [February 17, 2020, 10:13pm UTC](https://forum.kirupa.com/t/js-tip-of-the-day-detecting-dark-mode/643179 "2020-02-17T22:13:57Z")

</div>

---

## [Using a svg file in image manipulation](https://forum.kirupa.com/t/using-a-svg-file-in-image-manipulation/641809)

<div class="topic-metadata">

**Author:** [@Pyrde\_Pavkki](https://forum.kirupa.com/u/Pyrde_Pavkki)\
**Replies:** 3\
**Last updated:** [February 17, 2020, 5:25am UTC](https://forum.kirupa.com/t/using-a-svg-file-in-image-manipulation/641809 "2020-02-17T05:25:12Z")

</div>

Basically, I am trying to make a bot into an application called Discord, and I have a problem: This is a bot related to war strategy games, like Hearts of Iron and Civilization. You have a “roll” command using which yo…

---

## [Immediately Invoked Function Expressions (IIFE)](https://forum.kirupa.com/t/immediately-invoked-function-expressions-iife/526860)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 6\
**Last updated:** [February 16, 2020, 11:57pm UTC](https://forum.kirupa.com/t/immediately-invoked-function-expressions-iife/526860 "2020-02-16T23:57:52Z")

</div>

This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/immediately\_invoked\_function\_expressions\_iife.htm

---

## [JS Tip of the Day: The Official JavaScript Reference: MDN](https://forum.kirupa.com/t/js-tip-of-the-day-the-official-javascript-reference-mdn/643180)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [February 16, 2020, 4:29pm UTC](https://forum.kirupa.com/t/js-tip-of-the-day-the-official-javascript-reference-mdn/643180 "2020-02-16T16:29:01Z")

</div>

---

## [kirupa.com - Movement Using ActionScript](https://forum.kirupa.com/t/kirupa-com-movement-using-actionscript/641805)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [February 15, 2020, 10:42pm UTC](https://forum.kirupa.com/t/kirupa-com-movement-using-actionscript/641805 "2020-02-15T22:42:29Z")

</div>

After reading a post on another site about a dearth of "scripted movement" tutorials, I realized how true that observation was. When was the last time you saw a comprehensive tutorial that outlines the basics on how to …

---

## [JS Tip of the Day: Nullish Coalescing Operator](https://forum.kirupa.com/t/js-tip-of-the-day-nullish-coalescing-operator/643181)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [February 15, 2020, 5:09pm UTC](https://forum.kirupa.com/t/js-tip-of-the-day-nullish-coalescing-operator/643181 "2020-02-15T17:09:42Z")

</div>

---

## [JS Tip of the Day: Optional Chaining](https://forum.kirupa.com/t/js-tip-of-the-day-optional-chaining/643182)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [February 14, 2020, 10:10pm UTC](https://forum.kirupa.com/t/js-tip-of-the-day-optional-chaining/643182 "2020-02-14T22:10:20Z")

</div>

---

## [JavaScript Tips of the Day](https://forum.kirupa.com/t/javascript-tips-of-the-day/641803)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [February 14, 2020, 10:08pm UTC](https://forum.kirupa.com/t/javascript-tips-of-the-day/641803 "2020-02-14T22:08:43Z")

</div>

Here, you’ll find tips posted daily relating to JavaScript: its features, how its used, and anything else related to the language and developing with it. Tips Latest ES2021 Preview Async Generators The Long Arrow Oper…

---

## [Pulsing Circles (CSS Animation)](https://forum.kirupa.com/t/pulsing-circles-css-animation/638202)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 6\
**Last updated:** [February 13, 2020, 9:16pm UTC](https://forum.kirupa.com/t/pulsing-circles-css-animation/638202 "2020-02-13T21:16:02Z")

</div>

Just a little example I created to highlight a pulsing effect: https://www.kirupa.com/animations/examples/pulsing\_circle.html The full markup looks as follows: \<!DOCTYPE html\> \<html\> \<head\> \<meta name="viewport" con…

---

## [Repositioning everything on the stage (across all frames) with JSFL?](https://forum.kirupa.com/t/repositioning-everything-on-the-stage-across-all-frames-with-jsfl/326476)

<div class="topic-metadata">

**Author:** [@Stickeroo](https://forum.kirupa.com/u/Stickeroo)\
**Replies:** 2\
**Last updated:** [February 12, 2020, 3:26pm UTC](https://forum.kirupa.com/t/repositioning-everything-on-the-stage-across-all-frames-with-jsfl/326476 "2020-02-12T15:26:20Z")

</div>

I have a bunch of old FLAs with one set of dimensions, including a 60 pixel offset along the y axis. I'm writing a jsfl script to resize the stage (works), delete some unneeded layers (works), and reposition everything (…

---

## [Error While setting a state:“Can't call setState on a component that is not yet mounted.” React-Native](https://forum.kirupa.com/t/error-while-setting-a-state-cant-call-setstate-on-a-component-that-is-not-yet-mounted-react-native/641765)

<div class="topic-metadata">

**Author:** [@Sukhwinder\_Saini](https://forum.kirupa.com/u/Sukhwinder_Saini)\
**Replies:** 5\
**Last updated:** [February 11, 2020, 2:25pm UTC](https://forum.kirupa.com/t/error-while-setting-a-state-cant-call-setstate-on-a-component-that-is-not-yet-mounted-react-native/641765 "2020-02-11T14:25:40Z")

</div>

I am trying to setState of my object but i am getting this error “Can’t call setState on a component that is not yet mounted…” My approach is i want to set the value which is in variable “location” to the state “buses”. …

---

## [Storing Data Using Web Storage](https://forum.kirupa.com/t/storing-data-using-web-storage/636230)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 2\
**Last updated:** [January 31, 2020, 1:49am UTC](https://forum.kirupa.com/t/storing-data-using-web-storage/636230 "2020-01-31T01:49:45Z")

</div>

by kirupa | 4 December 2015 Have questions? Discuss this HTML5 tutorial with others on the forums. This is a companion discussion topic for the original entry at http://www.kirupa.com/things\_to\_do\_with\_data/we…

---

## [how to create a email form in Adobe Animate html5](https://forum.kirupa.com/t/how-to-create-a-email-form-in-adobe-animate-html5/641727)

<div class="topic-metadata">

**Author:** [@goos1](https://forum.kirupa.com/u/goos1)\
**Replies:** 0\
**Last updated:** [January 28, 2020, 5:15pm UTC](https://forum.kirupa.com/t/how-to-create-a-email-form-in-adobe-animate-html5/641727 "2020-01-28T17:15:11Z")

</div>

Was familiar with as1, 2 and 3. Now creating it in animate html5…can create the form…but how about the changed code

---

## [Animating with Robert Penner's Easing Functions | kirupa.com](https://forum.kirupa.com/t/animating-with-robert-penners-easing-functions-kirupa-com/352650)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 3\
**Last updated:** [January 27, 2020, 2:32pm UTC](https://forum.kirupa.com/t/animating-with-robert-penners-easing-functions-kirupa-com/352650 "2020-01-27T14:32:10Z")

</div>

by kirupa | 28 April 2013 To borrow something I repeated in the Easing Functions in CSS tutorial, one of the most important things you can do is introduce your animations to easing functions. This is a…

---

## [RegEx for Selecting an Attribute and its Value](https://forum.kirupa.com/t/regex-for-selecting-an-attribute-and-its-value/641655)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [January 23, 2020, 5:42am UTC](https://forum.kirupa.com/t/regex-for-selecting-an-attribute-and-its-value/641655 "2020-01-23T05:42:13Z")

</div>

Because I rely a lot on HTML code generators, I often end up in some weird situations where some attribute and value gets thrown into the markup. Here is an example: \<span data-sheets-value="{'1':2,'2':'Get your feet we…

---

## [Checking If A File Exists](https://forum.kirupa.com/t/checking-if-a-file-exists/399354)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 10\
**Last updated:** [January 19, 2020, 6:02am UTC](https://forum.kirupa.com/t/checking-if-a-file-exists/399354 "2020-01-19T06:02:17Z")

</div>

by kirupa | 8 November 2012 From images to stylesheets to script files, what you see in your HTML document often involves a collection of files that work together to display the final result: This i…

---

## [Dragging items between lists](https://forum.kirupa.com/t/dragging-items-between-lists/641615)

<div class="topic-metadata">

**Author:** [@HILAL\_KEKEC](https://forum.kirupa.com/u/HILAL_KEKEC)\
**Replies:** 0\
**Last updated:** [January 17, 2020, 6:51am UTC](https://forum.kirupa.com/t/dragging-items-between-lists/641615 "2020-01-17T06:51:41Z")

</div>

---

## [A Deeper Look at Equilateral Triangles](https://forum.kirupa.com/t/a-deeper-look-at-equilateral-triangles/641436)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 6\
**Last updated:** [January 1, 2020, 11:40pm UTC](https://forum.kirupa.com/t/a-deeper-look-at-equilateral-triangles/641436 "2020-01-01T23:40:43Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/math/equilateral\_triangles.htm

---

## [I made snow! Based only on what I know.](https://forum.kirupa.com/t/i-made-snow-based-only-on-what-i-know/641277)

<div class="topic-metadata">

**Author:** [@kvapster](https://forum.kirupa.com/u/kvapster)\
**Replies:** 6\
**Last updated:** [January 1, 2020, 8:19pm UTC](https://forum.kirupa.com/t/i-made-snow-based-only-on-what-i-know/641277 "2020-01-01T20:19:45Z")

</div>

Hi! I have not coded much in the last five-six months, so I decided to get back into it by making snow from piggy-backing off my last learning project. I was going to use bezier curves with CSS animation, but discovered…

---

## [The KIRUPA Newsletter | kirupa.com](https://forum.kirupa.com/t/the-kirupa-newsletter-kirupa-com/641481)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [January 1, 2020, 6:46am UTC](https://forum.kirupa.com/t/the-kirupa-newsletter-kirupa-com/641481 "2020-01-01T06:46:22Z")

</div>

Have you ever wanted cool front-end design and development stuff delivered directly to your inbox? This is a companion discussion topic for the original entry at https://www.kirupa.com/newsletter.htm

---

## [Pure CSS Galley Carousel with Keypress?](https://forum.kirupa.com/t/pure-css-galley-carousel-with-keypress/641469)

<div class="topic-metadata">

**Author:** [@4a0g1kfa54](https://forum.kirupa.com/u/4a0g1kfa54)\
**Replies:** 1\
**Last updated:** [December 30, 2019, 5:12pm UTC](https://forum.kirupa.com/t/pure-css-galley-carousel-with-keypress/641469 "2019-12-30T17:12:35Z")

</div>

Hi I have a pure css carousel lightbox which is working fine. However, I would like to do three things: -when i press ESC it simulates clicking the close button; -when pressing left and right it simulates clicking the…

---

## [Ipower Nightmare](https://forum.kirupa.com/t/ipower-nightmare/251973)

<div class="topic-metadata">

**Author:** [@Darren\_E](https://forum.kirupa.com/u/Darren_E)\
**Replies:** 0\
**Last updated:** [February 14, 2008, 3:07pm UTC](https://forum.kirupa.com/t/ipower-nightmare/251973 "2008-02-14T15:07:29Z")

</div>

I am here to warn fellow Kirupa members who may be considering getting a VPS. I have been an Ipower customer since about 2004 I believe. I have had many issues in the past with Ipower and their customer support has been …

---

## [Parallax](https://forum.kirupa.com/t/parallax/634974)

<div class="topic-metadata">

**Author:** [@VaiFanatic](https://forum.kirupa.com/u/VaiFanatic)\
**Replies:** 8\
**Last updated:** [July 29, 2016, 5:24am UTC](https://forum.kirupa.com/t/parallax/634974 "2016-07-29T05:24:19Z")

</div>

I'm creating a parallax website (using an older standard of jQuery to perform the sliding animation from the nav bar) and I'm having an issue setting the first "slide" to be max height regardless of resolution. Here's …

---

## [Adobe Animate (Formerly Flash) got a nice visual refresh!](https://forum.kirupa.com/t/adobe-animate-formerly-flash-got-a-nice-visual-refresh/641362)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 3\
**Last updated:** [December 19, 2019, 7:21pm UTC](https://forum.kirupa.com/t/adobe-animate-formerly-flash-got-a-nice-visual-refresh/641362 "2019-12-19T19:21:54Z")

</div>

While I’ve pretty much switched to using Sketch for all of my illustrations, I have a ton of legacy content that I need to edit only in Animate. Today, when I launched it, the entire UI has been overhauled a bit: Thi…

---

## [How to make an object face the mouse in Canvas?](https://forum.kirupa.com/t/how-to-make-an-object-face-the-mouse-in-canvas/641330)

<div class="topic-metadata">

**Author:** [@brilliant](https://forum.kirupa.com/u/brilliant)\
**Replies:** 5\
**Last updated:** [December 17, 2019, 10:41am UTC](https://forum.kirupa.com/t/how-to-make-an-object-face-the-mouse-in-canvas/641330 "2019-12-17T10:41:51Z")

</div>

Hello there. I am wondering how to make an object rotate to face the current position of the mouse in a canvas. I am not sure if this is a question yet but I am keen to knowing how to do this. For example, in agar.io, y…

---

## [The Konami Code Challenge](https://forum.kirupa.com/t/the-konami-code-challenge/641312)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 3\
**Last updated:** [December 16, 2019, 7:21pm UTC](https://forum.kirupa.com/t/the-konami-code-challenge/641312 "2019-12-16T19:21:21Z")

</div>

If you’ve ever played some old-school/classic video games published by the game company Konami, you may have entered (or heard of) the following sequence of button presses: This is a companion discussion topic for the …

---

## [Sprite Sheet Animations Using Only CSS | kirupa.com](https://forum.kirupa.com/t/sprite-sheet-animations-using-only-css-kirupa-com/633169)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 7\
**Last updated:** [December 13, 2019, 6:53pm UTC](https://forum.kirupa.com/t/sprite-sheet-animations-using-only-css-kirupa-com/633169 "2019-12-13T18:53:27Z")

</div>

by kirupa | 9 May 2015 Sprite sheets can be used for more than just optimizing how you display static images. Hearkening back to the very first arcade games, your sprite sheets can also be used to con…

---

## [Creating Complex Components](https://forum.kirupa.com/t/creating-complex-components/636222)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 18\
**Last updated:** [December 11, 2019, 1:43pm UTC](https://forum.kirupa.com/t/creating-complex-components/636222 "2019-12-11T13:43:50Z")

</div>

In a previous article, we learned about components and all the awesome things that they do. We learned that components are the primary ways through which React allows our visual elements to behave like little reusable b…

[Previous page](https://forum.kirupa.com/c/programming/41.md?page=45)

[Next page](https://forum.kirupa.com/c/programming/41.md?page=47)
