# programming

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

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

**Page:** 1352

---

## [Calculate the distance between 2 objects! But with heigth and width for calculating!](https://forum.kirupa.com/t/calculate-the-distance-between-2-objects-but-with-heigth-and-width-for-calculating/252474)

<div class="topic-metadata">

**Author:** [@D\_I\_C\_E](https://forum.kirupa.com/u/D_I_C_E)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 2:17pm UTC](https://forum.kirupa.com/t/calculate-the-distance-between-2-objects-but-with-heigth-and-width-for-calculating/252474 "2008-02-20T14:17:46Z")

</div>

\[FONT=Tahoma\]Hey dudes! Humm, i need some help with one thing, i have many objects in the stage, and i use the mouse to calculate the distance between a random target in this stage, using the x and y position of mouse,…

---

## [Strange problem with FCS](https://forum.kirupa.com/t/strange-problem-with-fcs/252467)

<div class="topic-metadata">

**Author:** [@pandu\_kirupa](https://forum.kirupa.com/u/pandu_kirupa)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 1:17pm UTC](https://forum.kirupa.com/t/strange-problem-with-fcs/252467 "2008-02-20T13:17:52Z")

</div>

Hi, I am making a video widget which plays FLV files connecting FCS(Flash Communication Server). Every thing working fine, but stuck with some FLV files. I don't understand why those FLV files playing not playing. I…

---

## [Error playing a song from a xml file](https://forum.kirupa.com/t/error-playing-a-song-from-a-xml-file/252465)

<div class="topic-metadata">

**Author:** [@ecptavares](https://forum.kirupa.com/u/ecptavares)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 12:54pm UTC](https://forum.kirupa.com/t/error-playing-a-song-from-a-xml-file/252465 "2008-02-20T12:54:32Z")

</div>

Hi! I am trying to play some songs that have been loaded from a XML file. The XML file is loading everything write.The problem is that when I first run my movie it plays the sound correctly but when I click a button to…

---

## [Thumb auto resize](https://forum.kirupa.com/t/thumb-auto-resize/252463)

<div class="topic-metadata">

**Author:** [@LeonardoZimbres](https://forum.kirupa.com/u/LeonardoZimbres)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 12:18pm UTC](https://forum.kirupa.com/t/thumb-auto-resize/252463 "2008-02-20T12:18:41Z")

</div>

How can I autosize images in actionscript 3? First the loader creation: \[COLOR=Blue\] l = new Loader(); thumb.here.addChild(l); var urlRequeste:URLRequest = new URLRequest(main\_fotos\*.imagem); l.load(urlRequeste); l.con…

---

## [Find and replace characters in String?](https://forum.kirupa.com/t/find-and-replace-characters-in-string/252462)

<div class="topic-metadata">

**Author:** [@Macsy](https://forum.kirupa.com/u/Macsy)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 12:15pm UTC](https://forum.kirupa.com/t/find-and-replace-characters-in-string/252462 "2008-02-20T12:15:35Z")

</div>

Hello. Checked google, but only found some outdated,homemade functions. Is there no other way to Find char in a string and replace it? the shortest function i found was about 30 Lines long.

---

## [IE not working with my css help!](https://forum.kirupa.com/t/ie-not-working-with-my-css-help/252460)

<div class="topic-metadata">

**Author:** [@cew](https://forum.kirupa.com/u/cew)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 11:59am UTC](https://forum.kirupa.com/t/ie-not-working-with-my-css-help/252460 "2008-02-20T11:59:07Z")

</div>

hi this site is not working with my css file in i.e. can someone please help? http://delilicious.co.uk/site.css :red:

---

## [\[FMX04\] Automating color object variables for multi-level game](https://forum.kirupa.com/t/fmx04-automating-color-object-variables-for-multi-level-game/252459)

<div class="topic-metadata">

**Author:** [@macgregor](https://forum.kirupa.com/u/macgregor)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 11:51am UTC](https://forum.kirupa.com/t/fmx04-automating-color-object-variables-for-multi-level-game/252459 "2008-02-20T11:51:24Z")

</div>

Hi, I'm trying to create a simple multi-level game with actionscript 2 (MX2004). In the game I have many box movie-clips which must be moved by the player to "Home" positions, when they are over a Home they change colou…

---

## [Inheritance?](https://forum.kirupa.com/t/inheritance/252456)

<div class="topic-metadata">

**Author:** [@dubbeat](https://forum.kirupa.com/u/dubbeat)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 10:42am UTC](https://forum.kirupa.com/t/inheritance/252456 "2008-02-20T10:42:08Z")

</div>

Hi, I'm having trouble referencing a components value. My main document class creates a slider control. This is fine. public class PCMAudioLibraryDemo extends Sprite { public var aSlider:Slider = new Slider(); sli…

---

## [Import a Link with "&"?](https://forum.kirupa.com/t/import-a-link-with/252454)

<div class="topic-metadata">

**Author:** [@Macsy](https://forum.kirupa.com/u/Macsy)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 10:22am UTC](https://forum.kirupa.com/t/import-a-link-with/252454 "2008-02-20T10:22:21Z")

</div>

Hello Was to import a long link from a .txt file. The link has several "&" which makes lots of other variables. This is the part of the txt files that makes error: &link=http://kartor.eniro.se/#&what=map\_adr&mop=aq&searc…

---

## [Putting CCtv in Flash \<Newbie here\>](https://forum.kirupa.com/t/putting-cctv-in-flash-newbie-here/252452)

<div class="topic-metadata">

**Author:** [@williamsun](https://forum.kirupa.com/u/williamsun)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 10:15am UTC](https://forum.kirupa.com/t/putting-cctv-in-flash-newbie-here/252452 "2008-02-20T10:15:45Z")

</div>

hihi all,im new in town and wish to know how to put the cctv view into the flash..please help the example flash frame as below: \[FONT=Arial\] \[COLOR=navy\]\[COLOR=navy\]\[FONT=Arial\]http://www.youogle.com/viewcamera/?idx=13…

---

## [onLoadProgress](https://forum.kirupa.com/t/onloadprogress/252449)

<div class="topic-metadata">

**Author:** [@flashLearner](https://forum.kirupa.com/u/flashLearner)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 9:39am UTC](https://forum.kirupa.com/t/onloadprogress/252449 "2008-02-20T09:39:14Z")

</div>

i want to load external swf file in empty movie clip inside my flash. I want to make preloader for loading external swf. do anyone know a working example of onLoadPrgress in which preloader is made. any help any example …

---

## [The chicken egg paradox of using help files](https://forum.kirupa.com/t/the-chicken-egg-paradox-of-using-help-files/252448)

<div class="topic-metadata">

**Author:** [@hoolagon](https://forum.kirupa.com/u/hoolagon)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 9:36am UTC](https://forum.kirupa.com/t/the-chicken-egg-paradox-of-using-help-files/252448 "2008-02-20T09:36:13Z")

</div>

Does anyone know of the existence and whereabouts of a definitive reference AS2 to AS3 dictionary of where I can look up a method, function, class, etc and get to see the AS3.0 equivalent. This would make using and le…

---

## [\[C++\] Keyboard Codes](https://forum.kirupa.com/t/c-keyboard-codes/252445)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 7:51am UTC](https://forum.kirupa.com/t/c-keyboard-codes/252445 "2008-02-20T07:51:13Z")

</div>

I'm using the OpenGL/Glut library. In the handleKeyPress function, I attempted to display the key that was pressed. To my surprise, the cout is only triggered when the exit key is pressed. So how can I find the number th…

---

## [Action Script Stuck error](https://forum.kirupa.com/t/action-script-stuck-error/252442)

<div class="topic-metadata">

**Author:** [@chethan](https://forum.kirupa.com/u/chethan)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 7:09am UTC](https://forum.kirupa.com/t/action-script-stuck-error/252442 "2008-02-20T07:09:27Z")

</div>

Hello Guys, Can any one please tell me why the Action Script Stuck error occurs. To resolve that what can be done...? Pelase let me know anyone..... Thanks for your efforts.. Chethan

---

## [\[Req\] Map with xml data and search](https://forum.kirupa.com/t/req-map-with-xml-data-and-search/252440)

<div class="topic-metadata">

**Author:** [@cyber007](https://forum.kirupa.com/u/cyber007)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 6:17am UTC](https://forum.kirupa.com/t/req-map-with-xml-data-and-search/252440 "2008-02-20T06:17:44Z")

</div>

http://www.cyclegear.com/store.cfm i want to make this type of map in flash with xml data or php and seach function all in flash. i already made that static flash. http://creativegeek.biz/map/index.html now i w…

---

## [\[Flash8\] mouse triggers animation](https://forum.kirupa.com/t/flash8-mouse-triggers-animation/252436)

<div class="topic-metadata">

**Author:** [@trippel](https://forum.kirupa.com/u/trippel)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 4:29am UTC](https://forum.kirupa.com/t/flash8-mouse-triggers-animation/252436 "2008-02-20T04:29:17Z")

</div>

Hello gurus, (or is it guri?) Basically I want to have something pop-up, and stay up on when the mouse moves to a side of the swf, but it re-animates the pop-up motion when the mouse is moved even after it is on one si…

---

## [Duplicate entries in db](https://forum.kirupa.com/t/duplicate-entries-in-db/252435)

<div class="topic-metadata">

**Author:** [@jpearson311](https://forum.kirupa.com/u/jpearson311)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 4:01am UTC](https://forum.kirupa.com/t/duplicate-entries-in-db/252435 "2008-02-20T04:01:39Z")

</div>

Ok, so I have a page which pulls db entries and they display fine. When the array is echoed it spits out a form with one input field, one textarea and a save and delete button for each entry. Each input field and textar…

---

## [How do I stop a movie stretching to fit the size of the conatiner](https://forum.kirupa.com/t/how-do-i-stop-a-movie-stretching-to-fit-the-size-of-the-conatiner/252433)

<div class="topic-metadata">

**Author:** [@Curby](https://forum.kirupa.com/u/Curby)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 3:34am UTC](https://forum.kirupa.com/t/how-do-i-stop-a-movie-stretching-to-fit-the-size-of-the-conatiner/252433 "2008-02-20T03:34:48Z")

</div>

Can you tell me how (or even why this is happening?) I stop a new movie, that opens in a container, to stop stretching to fit the container size?? The new movie is smaller and I want to keep the container the size it is …

---

## [Drag and Drop Reordering](https://forum.kirupa.com/t/drag-and-drop-reordering/252431)

<div class="topic-metadata">

**Author:** [@horizens](https://forum.kirupa.com/u/horizens)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 2:48am UTC](https://forum.kirupa.com/t/drag-and-drop-reordering/252431 "2008-02-20T02:48:47Z")

</div>

hi, i'm looking for a javascript style drag and drop reordering class or tutorial. if you move one clip, the rest of the clips will shift depending on where you drop it. any help would be much appreciated!

---

## [My roll out code isn't working, is there a better way to do this?](https://forum.kirupa.com/t/my-roll-out-code-isnt-working-is-there-a-better-way-to-do-this/252427)

<div class="topic-metadata">

**Author:** [@dtrace](https://forum.kirupa.com/u/dtrace)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 1:09am UTC](https://forum.kirupa.com/t/my-roll-out-code-isnt-working-is-there-a-better-way-to-do-this/252427 "2008-02-20T01:09:19Z")

</div>

I am making a banner and I have a movie clip animate onto the stage on roll over, and on roll out, I have it leave the stage. But the quality checker just noticed that if you roll off the banner really fast, the mc doe…

---

## [Dynamic Hover Over Captions](https://forum.kirupa.com/t/dynamic-hover-over-captions/252423)

<div class="topic-metadata">

**Author:** [@haider](https://forum.kirupa.com/u/haider)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 1:02am UTC](https://forum.kirupa.com/t/dynamic-hover-over-captions/252423 "2008-02-20T01:02:03Z")

</div>

I have a flash file that loads external icon.png files that represent project icons for projects that have titles listed in an xml file. I want to know if it is possible in AS to have the hoverover display the name of …

---

## [loadSound using values in Array](https://forum.kirupa.com/t/loadsound-using-values-in-array/252422)

<div class="topic-metadata">

**Author:** [@taadang](https://forum.kirupa.com/u/taadang)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 12:55am UTC](https://forum.kirupa.com/t/loadsound-using-values-in-array/252422 "2008-02-20T00:55:06Z")

</div>

Hi, I'm trying to get this to work but must be missing something in the syntax. \[COLOR=Black\]I'm using an Array to move from label to label (AS 2):\[/COLOR\] \[COLOR=Blue\]var myArr:Array = \["start","intro1","intro2", etc.…

---

## [Fix known Mac Firefox bug with JavaScript](https://forum.kirupa.com/t/fix-known-mac-firefox-bug-with-javascript/252421)

<div class="topic-metadata">

**Author:** [@morktron](https://forum.kirupa.com/u/morktron)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 12:23am UTC](https://forum.kirupa.com/t/fix-known-mac-firefox-bug-with-javascript/252421 "2008-02-20T00:23:18Z")

</div>

Hi I hope I've come to the right place. I don't know how to write JavaScript, basically how do I add this: hideWindowFixed(id){ var win = document.getElementById(id); win.style.visibility = "hidden"; win.style.displ…

---

## [Cant get rid of gap in IE](https://forum.kirupa.com/t/cant-get-rid-of-gap-in-ie/252419)

<div class="topic-metadata">

**Author:** [@rondog](https://forum.kirupa.com/u/rondog)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 12:01am UTC](https://forum.kirupa.com/t/cant-get-rid-of-gap-in-ie/252419 "2008-02-20T00:01:08Z")

</div>

my page is here --\> http://dopserv1.com/hosted/army/ the problem only exists in IE..firefox it displays fine. My search area is spaced perfectly. If you look at it in IE, their is a big gap. I cant figure out why. It…

---

## [Xml Slideshow Fade Out](https://forum.kirupa.com/t/xml-slideshow-fade-out/252418)

<div class="topic-metadata">

**Author:** [@Martinez](https://forum.kirupa.com/u/Martinez)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 11:55pm UTC](https://forum.kirupa.com/t/xml-slideshow-fade-out/252418 "2008-02-19T23:55:46Z")

</div>

Hello im new. Ive just completed the Kirupa XML Slideshow today and have it all working well. But i cant figure out how to fade out the previous image as the next image fades in. Can Anyone help. M delay = 3000; …

---

## [Cool sliding gallery + Tooltip integration Help! = one very happy chappy](https://forum.kirupa.com/t/cool-sliding-gallery-tooltip-integration-help-one-very-happy-chappy/252416)

<div class="topic-metadata">

**Author:** [@dax1](https://forum.kirupa.com/u/dax1)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 10:54pm UTC](https://forum.kirupa.com/t/cool-sliding-gallery-tooltip-integration-help-one-very-happy-chappy/252416 "2008-02-19T22:54:37Z")

</div>

\*\* Can someone help me out with my project please? see attached fla and look at the the action script referenced in the library. One part applies to the function of the interactive gallery and the other to the the toolti…

---

## [PHP Form Mailer -- Grab URL](https://forum.kirupa.com/t/php-form-mailer-grab-url/252415)

<div class="topic-metadata">

**Author:** [@thunsberger](https://forum.kirupa.com/u/thunsberger)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 10:50pm UTC](https://forum.kirupa.com/t/php-form-mailer-grab-url/252415 "2008-02-19T22:50:41Z")

</div>

I am using the PHP form mailer code: http://www.kirupa.com/web/form\_mailer.htm, It works great! But what I would like to do is grab the url of the page they are filling out the form on. My reason is that I want to put th…

---

## [Multiple Object Collision Detection Help!](https://forum.kirupa.com/t/multiple-object-collision-detection-help/252413)

<div class="topic-metadata">

**Author:** [@benjamnw](https://forum.kirupa.com/u/benjamnw)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 10:38pm UTC](https://forum.kirupa.com/t/multiple-object-collision-detection-help/252413 "2008-02-19T22:38:35Z")

</div>

I read the tutorial about Multiple Object Collision Detection. What I want to do is have there be 3 circles and 3 squares. the circles are moving randomly while the squares are stationary. The actionscript would need …

---

## [Cool sliding gallery + Tooltip integration solution = one very happy chappy](https://forum.kirupa.com/t/cool-sliding-gallery-tooltip-integration-solution-one-very-happy-chappy/252412)

<div class="topic-metadata">

**Author:** [@dax1](https://forum.kirupa.com/u/dax1)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 10:30pm UTC](https://forum.kirupa.com/t/cool-sliding-gallery-tooltip-integration-solution-one-very-happy-chappy/252412 "2008-02-19T22:30:55Z")

</div>

See my other post for more details...

---

## [DateChooser](https://forum.kirupa.com/t/datechooser/252411)

<div class="topic-metadata">

**Author:** [@vizun](https://forum.kirupa.com/u/vizun)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 10:27pm UTC](https://forum.kirupa.com/t/datechooser/252411 "2008-02-19T22:27:17Z")

</div>

Hello, I'm working on a CMS for a website, and i'm using the date chooser to select a date to set dynamic content for. Is there a way to change the style of a date on the date chooser for dates that already have content …

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

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