# programming

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

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

**Page:** 68

---

## [Animation in HTML, CSS, and JavaScript | kirupa.com](https://forum.kirupa.com/t/animation-in-html-css-and-javascript-kirupa-com/635483)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [October 26, 2016, 6:23am UTC](https://forum.kirupa.com/t/animation-in-html-css-and-javascript-kirupa-com/635483 "2016-10-26T06:23:16Z")

</div>

by kirupa | 2 October 2014 As most of you know, there are few things I like more than creating animations and seeing things move on the screen. Those other few things are writing, painting, laughing, …

---

## [Is it necessary to use ANE extensions for facebook login on air app?](https://forum.kirupa.com/t/is-it-necessary-to-use-ane-extensions-for-facebook-login-on-air-app/635436)

<div class="topic-metadata">

**Author:** [@ekoneo](https://forum.kirupa.com/u/ekoneo)\
**Replies:** 2\
**Last updated:** [October 26, 2016, 5:50am UTC](https://forum.kirupa.com/t/is-it-necessary-to-use-ane-extensions-for-facebook-login-on-air-app/635436 "2016-10-26T05:50:37Z")

</div>

About 10 days I have been researching for Facebook Login. I achieved to make a login ability on as3 work. When I try to prepare this ability for AIR Android I am having problem. Ex: ExternalInterface error facebook.login…

---

## [Global Variables and Best Practices](https://forum.kirupa.com/t/global-variables-and-best-practices/635475)

<div class="topic-metadata">

**Author:** [@Jonny\_Silva](https://forum.kirupa.com/u/Jonny_Silva)\
**Replies:** 1\
**Last updated:** [October 25, 2016, 12:59pm UTC](https://forum.kirupa.com/t/global-variables-and-best-practices/635475 "2016-10-25T12:59:44Z")

</div>

I've been reading on best pratices in javascript, and aparently using global variables is bad :dizzy\_face: I have a general idea as to why it is not recomended, but I don't understad it completely. Since I learned prog…

---

## [Check If Internet Connection Exists in JavaScript](https://forum.kirupa.com/t/check-if-internet-connection-exists-in-javascript/331639)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 11\
**Last updated:** [October 25, 2016, 8:37am UTC](https://forum.kirupa.com/t/check-if-internet-connection-exists-in-javascript/331639 "2016-10-25T08:37:36Z")

</div>

http://www.kirupa.com/html5/check\_if\_internet\_connection\_exists\_in\_javascript.htm I am always taking notes on my phone, and I wanted to sync them to a web service that I created for fun. As part of that, I needed to en…

---

## [need help with flash video](https://forum.kirupa.com/t/need-help-with-flash-video/635330)

<div class="topic-metadata">

**Author:** [@dandewa](https://forum.kirupa.com/u/dandewa)\
**Replies:** 2\
**Last updated:** [October 25, 2016, 2:09am UTC](https://forum.kirupa.com/t/need-help-with-flash-video/635330 "2016-10-25T02:09:50Z")

</div>

hello. I have only a bit knowledge with flash as3. most of it was i did my own research from the web. lately im trying to create kiosk that dealt with a lot video which is imported from my pc externally. the problem is i…

---

## [Moving the movie (swf) from a public folder to a pvt folder](https://forum.kirupa.com/t/moving-the-movie-swf-from-a-public-folder-to-a-pvt-folder/635454)

<div class="topic-metadata">

**Author:** [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Replies:** 4\
**Last updated:** [October 24, 2016, 3:45pm UTC](https://forum.kirupa.com/t/moving-the-movie-swf-from-a-public-folder-to-a-pvt-folder/635454 "2016-10-24T15:45:44Z")

</div>

Hi all ! Is it possible and normal to move a movie (swf) file from the public folder / path to a folder outside the root directory so that the swf may not be directly invoked by any user? The image above shows the …

---

## [When I adda a class to my work why I am getting 1046: Type was not found Error?](https://forum.kirupa.com/t/when-i-adda-a-class-to-my-work-why-i-am-getting-1046-type-was-not-found-error/635471)

<div class="topic-metadata">

**Author:** [@ekoneo](https://forum.kirupa.com/u/ekoneo)\
**Replies:** 0\
**Last updated:** [October 24, 2016, 2:22pm UTC](https://forum.kirupa.com/t/when-i-adda-a-class-to-my-work-why-i-am-getting-1046-type-was-not-found-error/635471 "2016-10-24T14:22:12Z")

</div>

Hi everyboy, My work normally Works fine. But I decided to add a class (controlParts.as). Although this class empty (includes the default creation includings), my work gives an error: 1046: Type was not found or was no…

---

## [Help with Event Listeners ?](https://forum.kirupa.com/t/help-with-event-listeners/635440)

<div class="topic-metadata">

**Author:** [@Jonny\_Silva](https://forum.kirupa.com/u/Jonny_Silva)\
**Replies:** 1\
**Last updated:** [October 20, 2016, 9:53pm UTC](https://forum.kirupa.com/t/help-with-event-listeners/635440 "2016-10-20T21:53:55Z")

</div>

Say I have two buttons with 'click' events, as the event goes it's way in the capturing phase and passes through both buttons, will it trigger both of them instead of just the clicked button ?

---

## [CSS Switching banner problem](https://forum.kirupa.com/t/css-switching-banner-problem/84606)

<div class="topic-metadata">

**Author:** [@jw06](https://forum.kirupa.com/u/jw06)\
**Replies:** 4\
**Last updated:** [October 20, 2016, 4:15pm UTC](https://forum.kirupa.com/t/css-switching-banner-problem/84606 "2016-10-20T16:15:37Z")

</div>

I'm trying to make my site stylesheet switchable... Were its all controlled by css and stuff. I'm confused on how I can load a different swf file as the banner when i switch the default stylesheet. Any idea? :(Hope t…

---

## [JavaScript Program \[was: Java Program\]](https://forum.kirupa.com/t/javascript-program-was-java-program/635396)

<div class="topic-metadata">

**Author:** [@PJO999](https://forum.kirupa.com/u/PJO999)\
**Replies:** 5\
**Last updated:** [October 19, 2016, 12:26am UTC](https://forum.kirupa.com/t/javascript-program-was-java-program/635396 "2016-10-19T00:26:43Z")

</div>

The Absolute Beginner's Guide does not follow what I was able to get working. \<h1\>, \<p\>, etc. don't appear in the book. alert does, but does not work. What I am doing wrong? Thanks \<!DOCTYPE html\> \<html\> \<bo…

---

## [Weird Variable Scope ?](https://forum.kirupa.com/t/weird-variable-scope/635426)

<div class="topic-metadata">

**Author:** [@Jonny\_Silva](https://forum.kirupa.com/u/Jonny_Silva)\
**Replies:** 11\
**Last updated:** [October 18, 2016, 2:57pm UTC](https://forum.kirupa.com/t/weird-variable-scope/635426 "2016-10-18T14:57:14Z")

</div>

Hey there, I've been learning Javascript for about a week now and I have this thing going: var input = { inputNumber: "0", bool: true, setInputNumber: function(id){ …

---

## [Controlling the scroll eventlistener](https://forum.kirupa.com/t/controlling-the-scroll-eventlistener/635415)

<div class="topic-metadata">

**Author:** [@bstagy](https://forum.kirupa.com/u/bstagy)\
**Replies:** 6\
**Last updated:** [October 18, 2016, 4:30am UTC](https://forum.kirupa.com/t/controlling-the-scroll-eventlistener/635415 "2016-10-18T04:30:44Z")

</div>

Hello. I’m trying to control a ‘scroll’ eventlistener and I added some conditionals within the function it’s calling. But I’m not having success. It’s actually harder than I originally thought it would be to do this. …

---

## [Streaming audio/timeline won't stop when PrintJob print dialog open](https://forum.kirupa.com/t/streaming-audio-timeline-wont-stop-when-printjob-print-dialog-open/635410)

<div class="topic-metadata">

**Author:** [@e\_v](https://forum.kirupa.com/u/e_v)\
**Replies:** 3\
**Last updated:** [October 13, 2016, 9:32pm UTC](https://forum.kirupa.com/t/streaming-audio-timeline-wont-stop-when-printjob-print-dialog-open/635410 "2016-10-13T21:32:28Z")

</div>

Using Flash Professional CS6, targeting Flash Player 10.3, I have multiple "slides" in a timeline with sound (a narrator) set to stream, synced to animation, and a stop() in the timeline at the end of each slide. On one …

---

## [Javascript Listeners - memory usage / resources / efficiency](https://forum.kirupa.com/t/javascript-listeners-memory-usage-resources-efficiency/634857)

<div class="topic-metadata">

**Author:** [@Olaf\_Calderon](https://forum.kirupa.com/u/Olaf_Calderon)\
**Replies:** 3\
**Last updated:** [October 12, 2016, 6:33pm UTC](https://forum.kirupa.com/t/javascript-listeners-memory-usage-resources-efficiency/634857 "2016-10-12T18:33:21Z")

</div>

Hello, I was reading your post: https://www.kirupa.com/html5/handling\_events\_for\_many\_elements.htm Comments were closed but I had a question I'm hoping the community can help me with. When someone wants to implemen…

---

## [Facebook login](https://forum.kirupa.com/t/facebook-login/635391)

<div class="topic-metadata">

**Author:** [@ekoneo](https://forum.kirupa.com/u/ekoneo)\
**Replies:** 1\
**Last updated:** [October 11, 2016, 11:58am UTC](https://forum.kirupa.com/t/facebook-login/635391 "2016-10-11T11:58:45Z")

</div>

There are many information about this topic. I need to know about its logic. I am preparing an android game by using as3. Should I research about Android or Websites or mobile websites via this link?: https://developers.…

---

## [Is https://github.com/kirupa will be used to avail the demonstrated applications here?](https://forum.kirupa.com/t/is-https-github-com-kirupa-will-be-used-to-avail-the-demonstrated-applications-here/635371)

<div class="topic-metadata">

**Author:** [@tecnodesigner](https://forum.kirupa.com/u/tecnodesigner)\
**Replies:** 1\
**Last updated:** [October 6, 2016, 11:51pm UTC](https://forum.kirupa.com/t/is-https-github-com-kirupa-will-be-used-to-avail-the-demonstrated-applications-here/635371 "2016-10-06T23:51:20Z")

</div>

Hello I found the https://github.com/kirupa but i saw just few appilcations there. So i want know if all (or at least more) of applications here will be uploaded gradually to Github.

---

## [How to check if no items in an array are being hitTestObjected?](https://forum.kirupa.com/t/how-to-check-if-no-items-in-an-array-are-being-hittestobjected/635363)

<div class="topic-metadata">

**Author:** [@Twisted4000](https://forum.kirupa.com/u/Twisted4000)\
**Replies:** 1\
**Last updated:** [October 6, 2016, 7:49am UTC](https://forum.kirupa.com/t/how-to-check-if-no-items-in-an-array-are-being-hittestobjected/635363 "2016-10-06T07:49:41Z")

</div>

So there's an array of notch markers that appear on a bar. You have your own little bar that slides across and, when it touches any the notches, you press a key to get a point. The problem is, I want to make it so that w…

---

## [Can you get your PHP "POST" code to run before your Javascript?](https://forum.kirupa.com/t/can-you-get-your-php-post-code-to-run-before-your-javascript/635323)

<div class="topic-metadata">

**Author:** [@bkrafft](https://forum.kirupa.com/u/bkrafft)\
**Replies:** 6\
**Last updated:** [October 3, 2016, 1:20pm UTC](https://forum.kirupa.com/t/can-you-get-your-php-post-code-to-run-before-your-javascript/635323 "2016-10-03T13:20:17Z")

</div>

I would like to be able to display an Alert based on data I get out of my POST event. Here is a simplified example of what I am trying to do. /\* I want the order of events to be: 1. User types in a letter 2. …

---

## [Please help convert as2 to as3](https://forum.kirupa.com/t/please-help-convert-as2-to-as3/635344)

<div class="topic-metadata">

**Author:** [@11132](https://forum.kirupa.com/u/11132)\
**Replies:** 1\
**Last updated:** [October 1, 2016, 9:43pm UTC](https://forum.kirupa.com/t/please-help-convert-as2-to-as3/635344 "2016-10-01T21:43:29Z")

</div>

duplicateMovieClip("shape", "shape" + i, 900 - i); setProperty("shape" + i, \_yscale, getProperty("shape" + (i - 1), \_yscale) - i \* 0.090909); setProperty("shape" + i, \_xscale, getProperty("shape" + (i - 1), \_xscale) - i …

---

## [AddChild HitTestObject?](https://forum.kirupa.com/t/addchild-hittestobject/635345)

<div class="topic-metadata">

**Author:** [@Twisted4000](https://forum.kirupa.com/u/Twisted4000)\
**Replies:** 0\
**Last updated:** [October 2, 2016, 2:10am UTC](https://forum.kirupa.com/t/addchild-hittestobject/635345 "2016-10-02T02:10:20Z")

</div>

In AS3, how do I code it so that two separate added children to the stage can check if they HitTestObject each other? For example, a game where you fire projectiles at a bunch of generated enemies. Please show me how to …

---

## [Let's do something fun - brainstorming](https://forum.kirupa.com/t/lets-do-something-fun-brainstorming/635270)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 21\
**Last updated:** [September 21, 2016, 7:01pm UTC](https://forum.kirupa.com/t/lets-do-something-fun-brainstorming/635270 "2016-09-21T19:01:22Z")

</div>

Let's do something fun. Something to get our creative juices flowing. Kirupa Racquet Club never really panned out. Maybe there's something a little more accessible we can do. Maybe codepen tennis or something? What do…

---

## [Quiz does not run well with timer.](https://forum.kirupa.com/t/quiz-does-not-run-well-with-timer/634434)

<div class="topic-metadata">

**Author:** [@kumakozo](https://forum.kirupa.com/u/kumakozo)\
**Replies:** 1\
**Last updated:** [September 20, 2016, 5:24pm UTC](https://forum.kirupa.com/t/quiz-does-not-run-well-with-timer/634434 "2016-09-20T17:24:07Z")

</div>

Hi. I have created one quiz project and everything run well before I add timer function into it. When I hit "pause" timer, the timer stop, the buttons are all disabled for Q1 (this are good as what the quiz was suppose…

---

## [Stripe gateway rejecting live payments, thinking it’s in test mode](https://forum.kirupa.com/t/stripe-gateway-rejecting-live-payments-thinking-it-s-in-test-mode/635274)

<div class="topic-metadata">

**Author:** [@AnderSco01](https://forum.kirupa.com/u/AnderSco01)\
**Replies:** 0\
**Last updated:** [September 16, 2016, 2:52pm UTC](https://forum.kirupa.com/t/stripe-gateway-rejecting-live-payments-thinking-it-s-in-test-mode/635274 "2016-09-16T14:52:37Z")

</div>

Hello, Hope you are well. I'm trying to test my Stripe account with a live payment using my own debit card, but even though the toggle on my homepage dashboard is pointing to "Live", I get the following error on my sit…

---

## [javascript to actionScript 3](https://forum.kirupa.com/t/javascript-to-actionscript-3/635112)

<div class="topic-metadata">

**Author:** [@javadsavary](https://forum.kirupa.com/u/javadsavary)\
**Replies:** 6\
**Last updated:** [September 12, 2016, 8:38pm UTC](https://forum.kirupa.com/t/javascript-to-actionscript-3/635112 "2016-09-12T20:38:49Z")

</div>

hello i am try to create crossWord generator and i have javascript sourc code but i have encountered problem i want to convert this code to as3 for(var r = row + 1, c = col, i = 0; r \< grid.length && c \< col + word.len…

---

## [HELP: how to make a 3d page transition with css and jquery](https://forum.kirupa.com/t/help-how-to-make-a-3d-page-transition-with-css-and-jquery/635250)

<div class="topic-metadata">

**Author:** [@priyaravidesign](https://forum.kirupa.com/u/priyaravidesign)\
**Replies:** 0\
**Last updated:** [September 12, 2016, 6:13pm UTC](https://forum.kirupa.com/t/help-how-to-make-a-3d-page-transition-with-css-and-jquery/635250 "2016-09-12T18:13:24Z")

</div>

Hi everyone, I'm a student in webdesign, i'm building my portfolio using html/css and jquery. What i want is: - apply a \*\*page transition effect using css with the 'perspective' or 'transform' - and on click on navigat…

---

## [AS3 HTML/WebAssembly Target](https://forum.kirupa.com/t/as3-html-webassembly-target/635221)

<div class="topic-metadata">

**Author:** [@Flash2Web](https://forum.kirupa.com/u/Flash2Web)\
**Replies:** 0\
**Last updated:** [September 7, 2016, 12:42am UTC](https://forum.kirupa.com/t/as3-html-webassembly-target/635221 "2016-09-07T00:42:56Z")

</div>

https://bugbase.adobe.com/index.cfm?event=bug&id=4178275 Please support/vote, every vote counts!

---

## [SQL Server:Cannot open user default database](https://forum.kirupa.com/t/sql-server-cannot-open-user-default-database/635117)

<div class="topic-metadata">

**Author:** [@GarryWitt](https://forum.kirupa.com/u/GarryWitt)\
**Replies:** 3\
**Last updated:** [September 2, 2016, 10:10pm UTC](https://forum.kirupa.com/t/sql-server-cannot-open-user-default-database/635117 "2016-09-02T22:10:40Z")

</div>

Hello. My problem conserns Microsoft SQL Server. When I try to connect SQL Server get the error message : "Cannot open user default database" What is it? Can anyone suggest me for SQL database fix? Regards, Garry

---

## [if else statement](https://forum.kirupa.com/t/if-else-statement/635200)

<div class="topic-metadata">

**Author:** [@uxk83961](https://forum.kirupa.com/u/uxk83961)\
**Replies:** 1\
**Last updated:** [September 1, 2016, 5:52pm UTC](https://forum.kirupa.com/t/if-else-statement/635200 "2016-09-01T17:52:12Z")

</div>

I want to create a scenario in a webpage using javascript whereby there are two different pictures on stage, and when the user hits (mouse over) one of the image, there is a message that is displayed accordingly. How do …

---

## [How to wrap text with two different styles on same line?](https://forum.kirupa.com/t/how-to-wrap-text-with-two-different-styles-on-same-line/351951)

<div class="topic-metadata">

**Author:** [@ecsancho](https://forum.kirupa.com/u/ecsancho)\
**Replies:** 1\
**Last updated:** [October 23, 2014, 3:16pm UTC](https://forum.kirupa.com/t/how-to-wrap-text-with-two-different-styles-on-same-line/351951 "2014-10-23T15:16:06Z")

</div>

Hello See attached image on how I want my copy to wrap. I'm having issues with wrapping text with 2 different styles. So I have a headline with a larger bolder font and the body copy which is thinner. I want both headli…

---

## [how to hover an image ?](https://forum.kirupa.com/t/how-to-hover-an-image/635077)

<div class="topic-metadata">

**Author:** [@xImad12](https://forum.kirupa.com/u/xImad12)\
**Replies:** 3\
**Last updated:** [August 23, 2016, 4:23pm UTC](https://forum.kirupa.com/t/how-to-hover-an-image/635077 "2016-08-23T16:23:48Z")

</div>

i want to hover image on another image ? like i have black facebook icon when i want to hover on it i want to switch the color to blue how i can do this ? note( facebook icon is circle)

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

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