# programming

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

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

**Page:** 67

---

## [Help with switch statements!](https://forum.kirupa.com/t/help-with-switch-statements/635773)

<div class="topic-metadata">

**Author:** [@Hassan\_Ahmed](https://forum.kirupa.com/u/Hassan_Ahmed)\
**Replies:** 25\
**Last updated:** [January 11, 2017, 4:48pm UTC](https://forum.kirupa.com/t/help-with-switch-statements/635773 "2017-01-11T16:48:08Z")

</div>

What will be printed out when you run the following code (choose 1)? var n = 1; switch { case 3: console.log('C'); case 1: console.log('A'); case 2: console.log('B'); } does this switch statement go in order starting f…

---

## [I want to change the Picture of slider but i am not i able to get the location of slider in source code](https://forum.kirupa.com/t/i-want-to-change-the-picture-of-slider-but-i-am-not-i-able-to-get-the-location-of-slider-in-source-code/635803)

<div class="topic-metadata">

**Author:** [@Awais\_Memon](https://forum.kirupa.com/u/Awais_Memon)\
**Replies:** 1\
**Last updated:** [January 11, 2017, 4:45pm UTC](https://forum.kirupa.com/t/i-want-to-change-the-picture-of-slider-but-i-am-not-i-able-to-get-the-location-of-slider-in-source-code/635803 "2017-01-11T16:45:26Z")

</div>

Hi , i am working on a Theme , i just need to change the background images and slider images , can you help me out with this ? here is the website http://devawais.com/Universtiyofmiami/ Thanks

---

## [Adding two number variables produces NaN?](https://forum.kirupa.com/t/adding-two-number-variables-produces-nan/635795)

<div class="topic-metadata">

**Author:** [@kainev](https://forum.kirupa.com/u/kainev)\
**Replies:** 12\
**Last updated:** [January 10, 2017, 6:59pm UTC](https://forum.kirupa.com/t/adding-two-number-variables-produces-nan/635795 "2017-01-10T18:59:20Z")

</div>

Hi, In my application I'm calculating the time between each frame with the following: private function onGameTick(e:Event):void { timePrevious = timeCurrent; timeCurrent = getTimer(); delta = (timeCurrent…

---

## [Flash printer dialogue box](https://forum.kirupa.com/t/flash-printer-dialogue-box/250414)

<div class="topic-metadata">

**Author:** [@digiteam](https://forum.kirupa.com/u/digiteam)\
**Replies:** 0\
**Last updated:** [January 29, 2008, 11:36am UTC](https://forum.kirupa.com/t/flash-printer-dialogue-box/250414 "2008-01-29T11:36:15Z")

</div>

Hi, I am currently trying to print from Flash but I need to print without the printer dialogue box appearing. I have done serveral searchs online and it looks like it can't be done. Is there any other way in which I …

---

## [How to stop product tags defaulting to alphabetical order](https://forum.kirupa.com/t/how-to-stop-product-tags-defaulting-to-alphabetical-order/635639)

<div class="topic-metadata">

**Author:** [@Codess](https://forum.kirupa.com/u/Codess)\
**Replies:** 2\
**Last updated:** [January 7, 2017, 5:28am UTC](https://forum.kirupa.com/t/how-to-stop-product-tags-defaulting-to-alphabetical-order/635639 "2017-01-07T05:28:22Z")

</div>

The information on product pages I have are imported to database by a script, i.e. the title, the description and the products tags. This information comes from the metadata of images. However if an image has the tags in…

---

## [dbf file problem](https://forum.kirupa.com/t/dbf-file-problem/635615)

<div class="topic-metadata">

**Author:** [@pupils12](https://forum.kirupa.com/u/pupils12)\
**Replies:** 2\
**Last updated:** [January 4, 2017, 4:22am UTC](https://forum.kirupa.com/t/dbf-file-problem/635615 "2017-01-04T04:22:59Z")

</div>

I was working on my dbf database and saved all the data. When I opened it again I got an error msg - Not a valid dBASE table. Is there methods for recovery dbf?

---

## [React - css/style/className(s)](https://forum.kirupa.com/t/react-css-style-classname-s/635623)

<div class="topic-metadata">

**Author:** [@gNeandr](https://forum.kirupa.com/u/gNeandr)\
**Replies:** 3\
**Last updated:** [January 3, 2017, 12:20am UTC](https://forum.kirupa.com/t/react-css-style-classname-s/635623 "2017-01-03T00:20:16Z")

</div>

With a project started at an university for the design React was chosen. Functionally it was a great move, but I see it's not a 'pure' React approach, mainly the styling. First pure CSS was used alongside the React compo…

---

## [Responsive Web Design](https://forum.kirupa.com/t/responsive-web-design/635740)

<div class="topic-metadata">

**Author:** [@VaiFanatic](https://forum.kirupa.com/u/VaiFanatic)\
**Replies:** 2\
**Last updated:** [January 1, 2017, 1:10pm UTC](https://forum.kirupa.com/t/responsive-web-design/635740 "2017-01-01T13:10:53Z")

</div>

As I struggle to keep up with the times (mainly because I’m just not that intelligent, nor can my brain keep up), I’m looking at ways to improve my users’ browsing experience for new pages that I design. While using a d…

---

## [Browser compatibility.](https://forum.kirupa.com/t/browser-compatibility/635682)

<div class="topic-metadata">

**Author:** [@Jonny\_Silva](https://forum.kirupa.com/u/Jonny_Silva)\
**Replies:** 4\
**Last updated:** [December 20, 2016, 8:59pm UTC](https://forum.kirupa.com/t/browser-compatibility/635682 "2016-12-20T20:59:56Z")

</div>

Hey guys, I've been working on a project and made the mistake of not checking if it was working well often enough. Now I made a lot of work and found out that things went really wrong in some browsers. Now I have to go o…

---

## [Couple of things about embedding swf files](https://forum.kirupa.com/t/couple-of-things-about-embedding-swf-files/635673)

<div class="topic-metadata">

**Author:** [@David\_Kachlon](https://forum.kirupa.com/u/David_Kachlon)\
**Replies:** 0\
**Last updated:** [December 19, 2016, 12:09am UTC](https://forum.kirupa.com/t/couple-of-things-about-embedding-swf-files/635673 "2016-12-19T00:09:14Z")

</div>

I am using a .swf file with FlashVars to create a .flv web player... I managed to load the flv and play it. WHen it's done however, I want to switch to an HTML5 VideoPlayer playing a .mp4/.ogg How can I tell when …

---

## [Debugging JavaScript by Using Breakpoints](https://forum.kirupa.com/t/debugging-javascript-by-using-breakpoints/635574)

<div class="topic-metadata">

**Author:** [@itsthomas](https://forum.kirupa.com/u/itsthomas)\
**Replies:** 3\
**Last updated:** [December 16, 2016, 4:34pm UTC](https://forum.kirupa.com/t/debugging-javascript-by-using-breakpoints/635574 "2016-12-16T16:34:11Z")

</div>

Hi, I love to see this tutorial but it seems that it's not available any more. Could you please check? Thanks

---

## [sliding button](https://forum.kirupa.com/t/sliding-button/635649)

<div class="topic-metadata">

**Author:** [@StaceyMcWhorter](https://forum.kirupa.com/u/StaceyMcWhorter)\
**Replies:** 0\
**Last updated:** [December 13, 2016, 5:23pm UTC](https://forum.kirupa.com/t/sliding-button/635649 "2016-12-13T17:23:56Z")

</div>

how to control shape or colour of movie clip, with sliding button using A.S 2..?

---

## [.mdf file](https://forum.kirupa.com/t/mdf-file/634403)

<div class="topic-metadata">

**Author:** [@bullfrogert](https://forum.kirupa.com/u/bullfrogert)\
**Replies:** 2\
**Last updated:** [December 14, 2016, 5:05pm UTC](https://forum.kirupa.com/t/mdf-file/634403 "2016-12-14T17:05:59Z")

</div>

Good afternoon. So there SCCM2012r2 mode primary site (PS), is 5t secondary site (SS). It so happened that the file is broken: master.mdf or mastlog on primary site, do not start sql-server, and SQL + SCCM one a serv…

---

## [How can I delay the click event to occur after 10 seconds delay?](https://forum.kirupa.com/t/how-can-i-delay-the-click-event-to-occur-after-10-seconds-delay/635624)

<div class="topic-metadata">

**Author:** [@LearnerFlashPro](https://forum.kirupa.com/u/LearnerFlashPro)\
**Replies:** 1\
**Last updated:** [December 5, 2016, 9:11pm UTC](https://forum.kirupa.com/t/how-can-i-delay-the-click-event-to-occur-after-10-seconds-delay/635624 "2016-12-05T21:11:22Z")

</div>

I would like to delay the button click event to trigger for 10 seconds after I press the button. The following is the Actionscript3 code I am using now. I want to delay the GLButton mouse click event. stop(); import …

---

## [Design page for desktop and Android & ios - React Native?](https://forum.kirupa.com/t/design-page-for-desktop-and-android-ios-react-native/635621)

<div class="topic-metadata">

**Author:** [@gNeandr](https://forum.kirupa.com/u/gNeandr)\
**Replies:** 2\
**Last updated:** [December 5, 2016, 4:38pm UTC](https://forum.kirupa.com/t/design-page-for-desktop-and-android-ios-react-native/635621 "2016-12-05T16:38:28Z")

</div>

Just read about React Native to design once and use it for Android and IOS devices, sounds great. But how to design for a desktop page also (like using Firefox or Thunderbird)?

---

## [I want to learn Vue.js !](https://forum.kirupa.com/t/i-want-to-learn-vue-js/635568)

<div class="topic-metadata">

**Author:** [@Jonny\_Silva](https://forum.kirupa.com/u/Jonny_Silva)\
**Replies:** 1\
**Last updated:** [November 22, 2016, 6:24am UTC](https://forum.kirupa.com/t/i-want-to-learn-vue-js/635568 "2016-11-22T06:24:56Z")

</div>

Hey there ! I intend to learn Vue, I only know some intermediate level JS HTML and CSS. But while taking a peek at it I found myself lacking some concepts. So i'm wondering what I should learn before going into Vue, shou…

---

## [I need som help with a school project! it\`s my first time coding](https://forum.kirupa.com/t/i-need-som-help-with-a-school-project-it-s-my-first-time-coding/635561)

<div class="topic-metadata">

**Author:** [@Fabian\_Jessen](https://forum.kirupa.com/u/Fabian_Jessen)\
**Replies:** 2\
**Last updated:** [November 16, 2016, 6:50pm UTC](https://forum.kirupa.com/t/i-need-som-help-with-a-school-project-it-s-my-first-time-coding/635561 "2016-11-16T18:50:04Z")

</div>

It is to make a random math problem but all that shows up is the tall1+tall2 when it should sho 2+4 or 5+6

---

## [inline jquery / js to an external file.](https://forum.kirupa.com/t/inline-jquery-js-to-an-external-file/635559)

<div class="topic-metadata">

**Author:** [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Replies:** 3\
**Last updated:** [November 16, 2016, 2:37pm UTC](https://forum.kirupa.com/t/inline-jquery-js-to-an-external-file/635559 "2016-11-16T14:37:52Z")

</div>

Hi all ! Back with yet another small (I hope) issue. Below is a working jquery snippet which shows a preview of an image once the image is selected. It is however causing a CSP conflict because of the "this" parameter …

---

## [Tutorial: Filtering Items in a List](https://forum.kirupa.com/t/tutorial-filtering-items-in-a-list/331567)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 4\
**Last updated:** [November 15, 2016, 4:20pm UTC](https://forum.kirupa.com/t/tutorial-filtering-items-in-a-list/331567 "2016-11-15T16:20:58Z")

</div>

This is happening place to discuss all things related to the Filtering Items in a List tutorial. Cheers, Kirupa :vamp:

---

## [Javascript parseInt returning fractional number?](https://forum.kirupa.com/t/javascript-parseint-returning-fractional-number/635547)

<div class="topic-metadata">

**Author:** [@Jonny\_Silva](https://forum.kirupa.com/u/Jonny_Silva)\
**Replies:** 4\
**Last updated:** [November 8, 2016, 8:17pm UTC](https://forum.kirupa.com/t/javascript-parseint-returning-fractional-number/635547 "2016-11-08T20:17:03Z")

</div>

Hey ! I'm geting an element's width using this method: var containerWidth = parseInt($(".progress-bar").width()); So I can do this: if(barWidth \>= (containerWidth\*60)/100){ do something... } I'm trying to see i…

---

## [Little animation with JQuery](https://forum.kirupa.com/t/little-animation-with-jquery/635542)

<div class="topic-metadata">

**Author:** [@Jonny\_Silva](https://forum.kirupa.com/u/Jonny_Silva)\
**Replies:** 4\
**Last updated:** [November 6, 2016, 10:00pm UTC](https://forum.kirupa.com/t/little-animation-with-jquery/635542 "2016-11-06T22:00:50Z")

</div>

Hey there ! I'm trying to make a animation with this code: $(".MyClass").each(function(index) { setTimeout($(this).fadeIn("slow"), 1000); }); The idea was to wait a second then execute the function f…

---

## [Adding multiple QR codes for print](https://forum.kirupa.com/t/adding-multiple-qr-codes-for-print/635534)

<div class="topic-metadata">

**Author:** [@McLucky](https://forum.kirupa.com/u/McLucky)\
**Replies:** 0\
**Last updated:** [November 3, 2016, 3:09pm UTC](https://forum.kirupa.com/t/adding-multiple-qr-codes-for-print/635534 "2016-11-03T15:09:43Z")

</div>

Hi all, Here's what I'm trying to do: \[image\] I would like to add multiple QR codes to a movieclip for printing. The number in the QR increments by 1 I am using this class: The QR encoding works but my proble…

---

## [Help to steer me (please) on a Flash Pro 6 to Flex SDK compiler path?](https://forum.kirupa.com/t/help-to-steer-me-please-on-a-flash-pro-6-to-flex-sdk-compiler-path/635518)

<div class="topic-metadata">

**Author:** [@FLBill](https://forum.kirupa.com/u/FLBill)\
**Replies:** 5\
**Last updated:** [November 2, 2016, 11:41pm UTC](https://forum.kirupa.com/t/help-to-steer-me-please-on-a-flash-pro-6-to-flex-sdk-compiler-path/635518 "2016-11-02T23:41:02Z")

</div>

Can you steer me on this? Even -- to let me know where to ask? (I think all of the old Flash mailing lists are gone; although I'll try on the Apache Flex lists). I have a (VERY LARGE) Adobe AIR app. It is fairly co…

---

## [Cool Canvas Animation](https://forum.kirupa.com/t/cool-canvas-animation/635495)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [November 2, 2016, 2:10pm UTC](https://forum.kirupa.com/t/cool-canvas-animation/635495 "2016-11-02T14:10:53Z")

</div>

Getting excited over interactive animations like is just one of those things I've never really outgrown! :older\_man:

---

## [Problems with PHP code and google MAP API](https://forum.kirupa.com/t/problems-with-php-code-and-google-map-api/635513)

<div class="topic-metadata">

**Author:** [@LatoshaCavanah](https://forum.kirupa.com/u/LatoshaCavanah)\
**Replies:** 0\
**Last updated:** [November 1, 2016, 10:25am UTC](https://forum.kirupa.com/t/problems-with-php-code-and-google-map-api/635513 "2016-11-01T10:25:27Z")

</div>

"I am using my computer as a mySQL server. Further, I have created a free account at 0fees .us(as a test hosting), which provides free hosting with a windows panel.It has support for PHP, FTP and it's own mySQL server(mu…

---

## [Slider with "Random" button.](https://forum.kirupa.com/t/slider-with-random-button/635457)

<div class="topic-metadata">

**Author:** [@DesignsCross](https://forum.kirupa.com/u/DesignsCross)\
**Replies:** 9\
**Last updated:** [October 31, 2016, 7:26pm UTC](https://forum.kirupa.com/t/slider-with-random-button/635457 "2016-10-31T19:26:47Z")

</div>

I wanna Create sth like this, but im relativly new to javascript the main features shout be: the Slider should start at a random position (image) when you “click” the “Random” button, the slider moves x(maybe 20images…

---

## [Restrict text input to numbers only](https://forum.kirupa.com/t/restrict-text-input-to-numbers-only/635502)

<div class="topic-metadata">

**Author:** [@McLucky](https://forum.kirupa.com/u/McLucky)\
**Replies:** 3\
**Last updated:** [October 30, 2016, 5:49pm UTC](https://forum.kirupa.com/t/restrict-text-input-to-numbers-only/635502 "2016-10-30T17:49:44Z")

</div>

Hi all, I have a quick question. In as3, Flash CS6 I am using : txtLocation.restrict = "0-9"; However, the textfield accepts a "." too (dot/decimal point). It does not accept comma "," Any idea why ? I also t…

---

## [AIR 24 beta](https://forum.kirupa.com/t/air-24-beta/635496)

<div class="topic-metadata">

**Author:** [@tbo](https://forum.kirupa.com/u/tbo)\
**Replies:** 0\
**Last updated:** [October 28, 2016, 9:45pm UTC](https://forum.kirupa.com/t/air-24-beta/635496 "2016-10-28T21:45:37Z")

</div>

Air 24 beta is released Release notes: http://fpdownload.macromedia.com/pub/labs/flashruntimes/shared/air24\_flashplayer24\_releasenotes.pdf You now request device permissions in actionscript rather than the app descript…

---

## [JS101: JavaScript for Beginners (2.0) | kirupa.com](https://forum.kirupa.com/t/js101-javascript-for-beginners-2-0-kirupa-com/635484)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [October 27, 2016, 1:49am UTC](https://forum.kirupa.com/t/js101-javascript-for-beginners-2-0-kirupa-com/635484 "2016-10-27T01:49:45Z")

</div>

by kirupa | 20 March 2015 Have you ever wondered what it would be like to learn a programming language like JavaScript without all the boring and unnecessary stuff that usually goes along with it? Well, …

---

## [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, …

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

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