# programming

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

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

**Page:** 1554

---

## [Force download of mp3](https://forum.kirupa.com/t/force-download-of-mp3/237969)

<div class="topic-metadata">

**Author:** [@hoolagon](https://forum.kirupa.com/u/hoolagon)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 11:17pm UTC](https://forum.kirupa.com/t/force-download-of-mp3/237969 "2007-09-05T23:17:52Z")

</div>

\*\*Hi I know this question been asked too many times before, but i simply do not understand the answers. My question, I hope is really simple: myButton.onRelease = function () { //what do I need to put here t…

---

## [Runtime Gif Mask](https://forum.kirupa.com/t/runtime-gif-mask/237962)

<div class="topic-metadata">

**Author:** [@project1\_exe](https://forum.kirupa.com/u/project1_exe)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 10:36pm UTC](https://forum.kirupa.com/t/runtime-gif-mask/237962 "2007-09-05T22:36:30Z")

</div>

i have loaded a jpg file(a simple hat graphic) to a loader and added it inside a sprite. the jpg file also has a mask which is a gif file(black and white where the white area is the area that is occupied by the simple ha…

---

## [\*\*.parentNode.onclick](https://forum.kirupa.com/t/parentnode-onclick/237955)

<div class="topic-metadata">

**Author:** [@Nutty](https://forum.kirupa.com/u/Nutty)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 8:15pm UTC](https://forum.kirupa.com/t/parentnode-onclick/237955 "2007-09-05T20:15:18Z")

</div>

Hi, Hi i'm creating a tree-like menu. When i click on the top btn the submenu opens, and when i click again it closes. Now, the problem is that if the submenu is open and i click on a submenu item, the submenu closes.…

---

## [\<embed\> attributes to stop auto-resizing?](https://forum.kirupa.com/t/embed-attributes-to-stop-auto-resizing/237953)

<div class="topic-metadata">

**Author:** [@Kristopher](https://forum.kirupa.com/u/Kristopher)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 8:09pm UTC](https://forum.kirupa.com/t/embed-attributes-to-stop-auto-resizing/237953 "2007-09-05T20:09:19Z")

</div>

Hey all. For anyone familiar with Facebook's "Share" functionality, you might understand what I'm asking. My flash player is being auto-resized to 350px wide by Facebook. I'm trying to figure out a way to stop it from …

---

## [Flash in DIV](https://forum.kirupa.com/t/flash-in-div/237952)

<div class="topic-metadata">

**Author:** [@HandyMan](https://forum.kirupa.com/u/HandyMan)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 8:04pm UTC](https://forum.kirupa.com/t/flash-in-div/237952 "2007-09-05T20:04:07Z")

</div>

Why isn't flash showing when u put it in a Div? It works when I preview it in dreamveawer , but when I put it on my ftp and look at it online, it doesn't show at all.. U cant even se that is suppose to be something there…

---

## [Adding easing to "Simple Custom Scrollbar"](https://forum.kirupa.com/t/adding-easing-to-simple-custom-scrollbar/237951)

<div class="topic-metadata">

**Author:** [@nosh247](https://forum.kirupa.com/u/nosh247)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 7:56pm UTC](https://forum.kirupa.com/t/adding-easing-to-simple-custom-scrollbar/237951 "2007-09-05T19:56:43Z")

</div>

\[COLOR=#003366\]\*\*About Simple \*\*Custom Scrollbar \<-- is there a possible way to add easing to this tutorial?\[/COLOR\] \[COLOR=#003366\]\[/COLOR\] \[COLOR=#003366\]link: http://www.kirupa.com/developer/flash8/scrollbar.htm\[/COL…

---

## [Xml-rpc](https://forum.kirupa.com/t/xml-rpc/237948)

<div class="topic-metadata">

**Author:** [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 7:36pm UTC](https://forum.kirupa.com/t/xml-rpc/237948 "2007-09-05T19:36:59Z")

</div>

Trying to find some good documentation on using XML-RPC and implementing it, where if a MC is released myMC.onRelease = function () calls a function to send out to server the proper params. Please hit me back if you kn…

---

## [Corner Coordinates of Rotated Rectangle](https://forum.kirupa.com/t/corner-coordinates-of-rotated-rectangle/237947)

<div class="topic-metadata">

**Author:** [@snawbel](https://forum.kirupa.com/u/snawbel)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 7:33pm UTC](https://forum.kirupa.com/t/corner-coordinates-of-rotated-rectangle/237947 "2007-09-05T19:33:19Z")

</div>

I bet there's an easy answer to this one: How do I get the x and y position of a rotated rectangle's (or an MC that contains a rectangular shape) top-right, bottom-right and bottom-left corners (not its bounding rectan…

---

## [Please help with array](https://forum.kirupa.com/t/please-help-with-array/237945)

<div class="topic-metadata">

**Author:** [@fathed](https://forum.kirupa.com/u/fathed)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 7:05pm UTC](https://forum.kirupa.com/t/please-help-with-array/237945 "2007-09-05T19:05:37Z")

</div>

I want to swap columns and rows in an array. What I want is to take column one and swap it for columns 2 or 3. Or I would like to do the same for rows. I have an array with 9 columns and rows. I need a way to swap row…

---

## [\[F8\] Format Money - Number to $xx,xxx.xx](https://forum.kirupa.com/t/f8-format-money-number-to-xx-xxx-xx/237943)

<div class="topic-metadata">

**Author:** [@xohol](https://forum.kirupa.com/u/xohol)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:49pm UTC](https://forum.kirupa.com/t/f8-format-money-number-to-xx-xxx-xx/237943 "2007-09-05T18:49:41Z")

</div>

Hello, what is an easy way to format a number to money? I want to add commas for every thousand, and force the decimal to 2 digits. Thanks much for any help or insight.

---

## [Flash not playing full videos](https://forum.kirupa.com/t/flash-not-playing-full-videos/237941)

<div class="topic-metadata">

**Author:** [@Papaprime](https://forum.kirupa.com/u/Papaprime)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:34pm UTC](https://forum.kirupa.com/t/flash-not-playing-full-videos/237941 "2007-09-05T18:34:19Z")

</div>

I'm importing videos that for some reason will only play exatly 2/3rds of the way. I thought the problem lay with Quicktime, as I updated final cut pro to the newest quicktime and the problem began then. But, today i…

---

## [Image Marquee](https://forum.kirupa.com/t/image-marquee/237940)

<div class="topic-metadata">

**Author:** [@Takaya213](https://forum.kirupa.com/u/Takaya213)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:25pm UTC](https://forum.kirupa.com/t/image-marquee/237940 "2007-09-05T18:25:59Z")

</div>

Hi All I was wondering if anybody could help me with an image marquee from scratch. I have the image that needs to scroll continuosly without a break. It needs to scroll from the right off to the left of the page. Any he…

---

## [Add button functionality to Kirupa XML slide show?](https://forum.kirupa.com/t/add-button-functionality-to-kirupa-xml-slide-show/237939)

<div class="topic-metadata">

**Author:** [@ltwilley1](https://forum.kirupa.com/u/ltwilley1)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 5:51pm UTC](https://forum.kirupa.com/t/add-button-functionality-to-kirupa-xml-slide-show/237939 "2007-09-05T17:51:18Z")

</div>

I am making a more complex version of the slide show that Kirupa created here: http://www.kirupa.com/developer/mx2004/xml\_slideshow.htm How can I add functionality so that when I create (for instance) a button for slid…

---

## [SQL escape](https://forum.kirupa.com/t/sql-escape/237935)

<div class="topic-metadata">

**Author:** [@bardic](https://forum.kirupa.com/u/bardic)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 4:49pm UTC](https://forum.kirupa.com/t/sql-escape/237935 "2007-09-05T16:49:55Z")

</div>

I'm trying to insert a row that looks like this: INSERT INTO country VALUES ('CI','COTE D\\'IVOIRE','Cote D\\'Ivoire','CIV','384'); but no matter what I try it keeps spitting an error at me. How would I get sql to real…

---

## [\[REQ\] Encrypt / Decrypt Functions](https://forum.kirupa.com/t/req-encrypt-decrypt-functions/237930)

<div class="topic-metadata">

**Author:** [@wjaspers](https://forum.kirupa.com/u/wjaspers)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 3:29pm UTC](https://forum.kirupa.com/t/req-encrypt-decrypt-functions/237930 "2007-09-05T15:29:47Z")

</div>

Does anyone have or know where to find a function or set of functions that will encrypt and decrypt terminal nodes (the lowest levels) from an XML document?

---

## [Easy issue, but running out of time!](https://forum.kirupa.com/t/easy-issue-but-running-out-of-time/237929)

<div class="topic-metadata">

**Author:** [@Spotopolis](https://forum.kirupa.com/u/Spotopolis)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 3:02pm UTC](https://forum.kirupa.com/t/easy-issue-but-running-out-of-time/237929 "2007-09-05T15:02:38Z")

</div>

I'm new to AS2 and I have been so frustrated trying to do what I think is easy. I've searched and experimented for hours and my brain is sizzling. I need to have a search box, and when the user types in a term and hits…

---

## [Resizing Primitive Objects in as3](https://forum.kirupa.com/t/resizing-primitive-objects-in-as3/237927)

<div class="topic-metadata">

**Author:** [@project1\_exe](https://forum.kirupa.com/u/project1_exe)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 2:43pm UTC](https://forum.kirupa.com/t/resizing-primitive-objects-in-as3/237927 "2007-09-05T14:43:43Z")

</div>

hello again Lords and Ladies, i was experimenting primitive objects in flash cs3 and i wonder if there is a way to change the properties of a primitive object. sadly it's a shape therefore it doesn't carry instance nam…

---

## [Picture Comment box](https://forum.kirupa.com/t/picture-comment-box/237926)

<div class="topic-metadata">

**Author:** [@stefanmhodgson](https://forum.kirupa.com/u/stefanmhodgson)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 2:38pm UTC](https://forum.kirupa.com/t/picture-comment-box/237926 "2007-09-05T14:38:30Z")

</div>

I was wandering if you could help me. I want to have a gallery, and in that gallery, have exclusive pictures that can be commented on. So you would click on a picture and that would take you to another page where you c…

---

## [CSS Depth - Text over Image?](https://forum.kirupa.com/t/css-depth-text-over-image/237925)

<div class="topic-metadata">

**Author:** [@StigC](https://forum.kirupa.com/u/StigC)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 2:33pm UTC](https://forum.kirupa.com/t/css-depth-text-over-image/237925 "2007-09-05T14:33:39Z")

</div>

Hey All! I really hope you can help me out here, as I'm going quite nuts over this css business. This is my first attempt at grasping CSS (besides playing around with my myspace page). I'm having trouble with z-index…

---

## [Billiard ball like physics in Flash](https://forum.kirupa.com/t/billiard-ball-like-physics-in-flash/237921)

<div class="topic-metadata">

**Author:** [@hatu](https://forum.kirupa.com/u/hatu)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 1:54pm UTC](https://forum.kirupa.com/t/billiard-ball-like-physics-in-flash/237921 "2007-09-05T13:54:35Z")

</div>

Can someone explain or does someone know a good tutorial on how to turn billiard ball collision physics into code? I've found some stuff from a physicist point of view but that's just really confusing.

---

## [Make smooth gravity rollovers?](https://forum.kirupa.com/t/make-smooth-gravity-rollovers/237919)

<div class="topic-metadata">

**Author:** [@dcsquawk](https://forum.kirupa.com/u/dcsquawk)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 1:45pm UTC](https://forum.kirupa.com/t/make-smooth-gravity-rollovers/237919 "2007-09-05T13:45:12Z")

</div>

I have made some rollovers here, but I would like them to have smooth gravity. Right now, I can only make them so when you rollover, they go up and down. However, when you roll off, they abruptly stop in their original…

---

## [Resizing video within SWF, while maintaining size of skin?](https://forum.kirupa.com/t/resizing-video-within-swf-while-maintaining-size-of-skin/237913)

<div class="topic-metadata">

**Author:** [@rollinlow54](https://forum.kirupa.com/u/rollinlow54)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 1:02pm UTC](https://forum.kirupa.com/t/resizing-video-within-swf-while-maintaining-size-of-skin/237913 "2007-09-05T13:02:15Z")

</div>

Hi guys! I'm new here. In fact, new to Flash altogether. I'm using the default Flash CS3 FLV player, with the Mohave skin. I've set the SWF to be 320x285 (with controls). Some videos have an aspect ratio of 16:9, whi…

---

## [\_xmouse movement from left and right](https://forum.kirupa.com/t/-xmouse-movement-from-left-and-right/237908)

<div class="topic-metadata">

**Author:** [@darkstyle](https://forum.kirupa.com/u/darkstyle)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 12:30pm UTC](https://forum.kirupa.com/t/-xmouse-movement-from-left-and-right/237908 "2007-09-05T12:30:21Z")

</div>

Hi , I am a having a MovieClip on the stage , instance name "photo" width 1500 px height 100px; and main scene width & height 400px; Now when i take mouse on the left side of the main scene, the "photo" MovieClip sh…

---

## [Gradient Mask Problem](https://forum.kirupa.com/t/gradient-mask-problem/237907)

<div class="topic-metadata">

**Author:** [@Guro](https://forum.kirupa.com/u/Guro)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 12:09pm UTC](https://forum.kirupa.com/t/gradient-mask-problem/237907 "2007-09-05T12:09:13Z")

</div>

hello I'm trying to place gradient mask on dynamically loaded images. I'm using cacheAsBitmap function for both the mask and images. Then, when I animate any part of my movie, the mask disappears from time to time. I c…

---

## [HEY I AM HAVING TROUBLE WITH mc.swapDepths()](https://forum.kirupa.com/t/hey-i-am-having-trouble-with-mc-swapdepths/237905)

<div class="topic-metadata">

**Author:** [@chandings](https://forum.kirupa.com/u/chandings)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 11:51am UTC](https://forum.kirupa.com/t/hey-i-am-having-trouble-with-mc-swapdepths/237905 "2007-09-05T11:51:26Z")

</div>

hi all i am having serious trouble with \<movieClip\>.swapDepths() function. do we have any other way of bringing a movieclip to the front through Action Scripting.

---

## [CSS to use wav files](https://forum.kirupa.com/t/css-to-use-wav-files/237904)

<div class="topic-metadata">

**Author:** [@glidealong](https://forum.kirupa.com/u/glidealong)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 11:47am UTC](https://forum.kirupa.com/t/css-to-use-wav-files/237904 "2007-09-05T11:47:10Z")

</div>

I had an interview last week and one of the questions asked was "Is it possible to play a sound using CSS?" . I replied in the negative since i had no prior knowledge about the same. On searching the net, i found that no…

---

## [Thumbnail Scroller on Picture Gallery](https://forum.kirupa.com/t/thumbnail-scroller-on-picture-gallery/237903)

<div class="topic-metadata">

**Author:** [@Banthorpe](https://forum.kirupa.com/u/Banthorpe)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 11:36am UTC](https://forum.kirupa.com/t/thumbnail-scroller-on-picture-gallery/237903 "2007-09-05T11:36:27Z")

</div>

Hi everyone, I'm making a picture gallery and need a bit of a point in the right direction, coz I'm quite new to flash. Take a look at my progress so far. \[COLOR=Green\]I'd like to be able to make the thumbs scroll …

---

## [XML Gallery Album categories](https://forum.kirupa.com/t/xml-gallery-album-categories/237895)

<div class="topic-metadata">

**Author:** [@loopzilla](https://forum.kirupa.com/u/loopzilla)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 8:37am UTC](https://forum.kirupa.com/t/xml-gallery-album-categories/237895 "2007-09-05T08:37:14Z")

</div>

I have seen the XML Gallery tutorial and it looks great but how do you add a category or album list next to the imageholder? this way the user can select different albums and this list will be updated via the XML file...…

---

## [Flash movies in div tags?!?](https://forum.kirupa.com/t/flash-movies-in-div-tags/237893)

<div class="topic-metadata">

**Author:** [@popbrown](https://forum.kirupa.com/u/popbrown)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 7:52am UTC](https://forum.kirupa.com/t/flash-movies-in-div-tags/237893 "2007-09-05T07:52:11Z")

</div>

I recently revisited this tutorial http://www.kirupa.com/developer/mx2004/transitions.htm and it works fine as a stand alone swf when posted on my site, but when I put it in a div tag, which is where I need it nothing wo…

---

## [How to change text content of Title tag using DOM?](https://forum.kirupa.com/t/how-to-change-text-content-of-title-tag-using-dom/237887)

<div class="topic-metadata">

**Author:** [@prost](https://forum.kirupa.com/u/prost)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 4:47am UTC](https://forum.kirupa.com/t/how-to-change-text-content-of-title-tag-using-dom/237887 "2007-09-05T04:47:55Z")

</div>

Hi! I have a title tag: \<TITLE\>Title - Old\</TITLE\> I want to change it to: \<TITLE\>Title - New\</TITLE\> I tried the following: \<BODY\> \<SCRIPT\> var DocTitle = document.getElementsByTagName("title")\[0\]; alert(DocTitle.n…

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

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