# programming

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

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

**Page:** 1476

---

## [Can I add sound with 100% program-matically](https://forum.kirupa.com/t/can-i-add-sound-with-100-program-matically/243775)

<div class="topic-metadata">

**Author:** [@Doppy](https://forum.kirupa.com/u/Doppy)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 7:29pm UTC](https://forum.kirupa.com/t/can-i-add-sound-with-100-program-matically/243775 "2007-11-10T19:29:12Z")

</div>

Hi everyone... I learn that if I want to add sound in flash, I need to put the sound in library, and then assign linkage... But I have like 100-200 of sounds, and some of them update runtime... So...how can I dynamic…

---

## [XML Question / Dynamic Content](https://forum.kirupa.com/t/xml-question-dynamic-content/243768)

<div class="topic-metadata">

**Author:** [@wahiche](https://forum.kirupa.com/u/wahiche)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 4:39pm UTC](https://forum.kirupa.com/t/xml-question-dynamic-content/243768 "2007-11-10T16:39:15Z")

</div>

Hello everyone I am hoping someone can help me with my problem. I have a dynamic site that I created using XML and Xpath. I have everything doing what I want it to do except for my last section called the GUESTS secti…

---

## [Friction equations?](https://forum.kirupa.com/t/friction-equations/243759)

<div class="topic-metadata">

**Author:** [@duncanhall](https://forum.kirupa.com/u/duncanhall)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 2:50pm UTC](https://forum.kirupa.com/t/friction-equations/243759 "2007-11-10T14:50:19Z")

</div>

I have a billiard ball system, whic detects collisions between balls and modifies their x and y velocities accordingly. I have included a friction variable and I have a very basic system for applying the force of frict…

---

## [Stopping starfield?](https://forum.kirupa.com/t/stopping-starfield/243757)

<div class="topic-metadata">

**Author:** [@Hawkflame1](https://forum.kirupa.com/u/Hawkflame1)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 1:14pm UTC](https://forum.kirupa.com/t/stopping-starfield/243757 "2007-11-10T13:14:24Z")

</div>

Hi Is it possible to stop a starfield after one frame? I followed this tutorial http://www.flashninjaclan.com/tutorialpage.php?ID=34 to make a starfield but i only want it on only one frame. at the moment it comes on a…

---

## [How to stop a starfield?](https://forum.kirupa.com/t/how-to-stop-a-starfield/243756)

<div class="topic-metadata">

**Author:** [@Hawkflame1](https://forum.kirupa.com/u/Hawkflame1)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 1:12pm UTC](https://forum.kirupa.com/t/how-to-stop-a-starfield/243756 "2007-11-10T13:12:14Z")

</div>

Hi Is it possible to stop a starfield after one frame? I followed this tutorial http://www.flashninjaclan.com/tutorialpage.php?ID=34 to make a starfield but i only want it on only one frame. at the moment it comes on a…

---

## [Preventing users with lower Flash version from viewing my Flash file](https://forum.kirupa.com/t/preventing-users-with-lower-flash-version-from-viewing-my-flash-file/243754)

<div class="topic-metadata">

**Author:** [@Zomis](https://forum.kirupa.com/u/Zomis)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 11:07am UTC](https://forum.kirupa.com/t/preventing-users-with-lower-flash-version-from-viewing-my-flash-file/243754 "2007-11-10T11:07:22Z")

</div>

I've discovered that users with lower versions of Flash player (such as 9,0,28,0) cannot display my Flash applications properly. So I want to detect the users version of Flash player. If the version is below a certain …

---

## [Motion Path Relative to Mouse Position. URGENT](https://forum.kirupa.com/t/motion-path-relative-to-mouse-position-urgent/243752)

<div class="topic-metadata">

**Author:** [@robdarkplace](https://forum.kirupa.com/u/robdarkplace)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 10:45am UTC](https://forum.kirupa.com/t/motion-path-relative-to-mouse-position-urgent/243752 "2007-11-10T10:45:28Z")

</div>

Ok im using MX 2004 although i do have Flash 9 atm if anyone has an example in that Anyway, im trying to slow down and speed up an orbit of an mc relative to where the mouse position is. So basically i need some sort of …

---

## [Merge](https://forum.kirupa.com/t/merge/243751)

<div class="topic-metadata">

**Author:** [@fw2803](https://forum.kirupa.com/u/fw2803)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 10:44am UTC](https://forum.kirupa.com/t/merge/243751 "2007-11-10T10:44:21Z")

</div>

Hi there How can I merge three or more arrays into one? Something like this? array0 = array1.concat(array2,array3,array4) Thanks

---

## [A new "goto" after the first one?](https://forum.kirupa.com/t/a-new-goto-after-the-first-one/243743)

<div class="topic-metadata">

**Author:** [@Azyr](https://forum.kirupa.com/u/Azyr)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 4:55am UTC](https://forum.kirupa.com/t/a-new-goto-after-the-first-one/243743 "2007-11-10T04:55:46Z")

</div>

Ok at a menubar in my flash Button 1 has the action : on (press); { gotoAndPlay(25) } Right now when the button is pressed it goes and plays the 25th frame to the 35th frame, then at the 35 th frame there is an actio…

---

## [Controling music with as](https://forum.kirupa.com/t/controling-music-with-as/243741)

<div class="topic-metadata">

**Author:** [@leonthelion](https://forum.kirupa.com/u/leonthelion)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 3:30am UTC](https://forum.kirupa.com/t/controling-music-with-as/243741 "2007-11-10T03:30:38Z")

</div>

How can I start/stop music with action script? Also how could I have a volume control for the music? Thanks

---

## [Myspace Friends](https://forum.kirupa.com/t/myspace-friends/243737)

<div class="topic-metadata">

**Author:** [@creyentededios](https://forum.kirupa.com/u/creyentededios)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 12:42am UTC](https://forum.kirupa.com/t/myspace-friends/243737 "2007-11-10T00:42:11Z")

</div>

Heres what i would like to do... in your friends section on myspace, i would like to put a flash file there...which of course i can do what i would like to do is maybe make an xml file for each of my friends, and the…

---

## [Problem with website background](https://forum.kirupa.com/t/problem-with-website-background/243735)

<div class="topic-metadata">

**Author:** [@vega](https://forum.kirupa.com/u/vega)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 12:34am UTC](https://forum.kirupa.com/t/problem-with-website-background/243735 "2007-11-10T00:34:06Z")

</div>

Hi all, I am working on a flash based website for a friend of mine. We are using a big background image for the site(don't ask) and the flash loads up at center-top. I am using swfObject for the placement and auto-resi…

---

## [How can i change what value an array returns?](https://forum.kirupa.com/t/how-can-i-change-what-value-an-array-returns/243734)

<div class="topic-metadata">

**Author:** [@ferdy\_beekmans](https://forum.kirupa.com/u/ferdy_beekmans)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 12:03am UTC](https://forum.kirupa.com/t/how-can-i-change-what-value-an-array-returns/243734 "2007-11-10T00:03:33Z")

</div>

I am trying to make a subclass of Array so that when i ask for a certain value of the array, i can alter what value i get. What method do i need to override to achieve this?

---

## [Moving dots change rate (timer)](https://forum.kirupa.com/t/moving-dots-change-rate-timer/243733)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 11:56pm UTC](https://forum.kirupa.com/t/moving-dots-change-rate-timer/243733 "2007-11-09T23:56:39Z")

</div>

I have a very lengthy class that "transmits" three red dots -- dot1, dot2, and dot3 -- from one box to another along a line that takes two 90 degree corners. I've attached a picture illustrating. Here are snippets of cod…

---

## [Interactive CD ROM](https://forum.kirupa.com/t/interactive-cd-rom/243732)

<div class="topic-metadata">

**Author:** [@residentcoppa](https://forum.kirupa.com/u/residentcoppa)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 11:54pm UTC](https://forum.kirupa.com/t/interactive-cd-rom/243732 "2007-11-09T23:54:19Z")

</div>

Hi I´ve been asked to do a cd rom presentation ( the usual stuff : 4/5 main areas with music , text , pictures , eventually some video ) It´s been 5 years now since i did my last cd rom using Macromedia Director at…

---

## [Class instantiation problem](https://forum.kirupa.com/t/class-instantiation-problem/243729)

<div class="topic-metadata">

**Author:** [@Rick\_Banghart](https://forum.kirupa.com/u/Rick_Banghart)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 11:13pm UTC](https://forum.kirupa.com/t/class-instantiation-problem/243729 "2007-11-09T23:13:17Z")

</div>

I have a class: package { public class newClass { public var value1:int = 10; function newClass() { trace(“constructing”); } public function someMethod():String { return “hello”; } } } It is saved as newClas…

---

## [XML image gallery with thumbnail grid -- help please!](https://forum.kirupa.com/t/xml-image-gallery-with-thumbnail-grid-help-please/243728)

<div class="topic-metadata">

**Author:** [@rrex](https://forum.kirupa.com/u/rrex)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 11:12pm UTC](https://forum.kirupa.com/t/xml-image-gallery-with-thumbnail-grid-help-please/243728 "2007-11-09T23:12:28Z")

</div>

I've followed Kirupa's XML photogallery and thumbnail scroller and it worked great. However, there is mention of a GRID setup for the thumbnails, but no explanation about how to accomplish it. Working from the Kirupa…

---

## [What is wrong when adding my external file to stage?](https://forum.kirupa.com/t/what-is-wrong-when-adding-my-external-file-to-stage/243727)

<div class="topic-metadata">

**Author:** [@Mippzon](https://forum.kirupa.com/u/Mippzon)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 11:05pm UTC](https://forum.kirupa.com/t/what-is-wrong-when-adding-my-external-file-to-stage/243727 "2007-11-09T23:05:11Z")

</div>

Hey! Could use some help here. I have an empty fla-file, and this code as the document class: package { import flash.display.\*; import flash.events.Event; import flash.net.URLLoader; import flash.ne…

---

## [CMS with Versioning](https://forum.kirupa.com/t/cms-with-versioning/243726)

<div class="topic-metadata">

**Author:** [@pbrollwitme](https://forum.kirupa.com/u/pbrollwitme)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 10:59pm UTC](https://forum.kirupa.com/t/cms-with-versioning/243726 "2007-11-09T22:59:46Z")

</div>

Hi All, I'm in need of a CMS solution that allows the administrator to review changes before they are posted. I'd like for any changes to content to be highlighted. I've found a few CMS systems that offer this function…

---

## [Load XML file in AIR](https://forum.kirupa.com/t/load-xml-file-in-air/243722)

<div class="topic-metadata">

**Author:** [@mprzybylski](https://forum.kirupa.com/u/mprzybylski)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 10:25pm UTC](https://forum.kirupa.com/t/load-xml-file-in-air/243722 "2007-11-09T22:25:59Z")

</div>

So this is the first time I've touched AIR (ever!) and I was going about my business trying to use AS3 to load an XML file. If the XML file was not in the same directory as the swf file i was publishing out of AIR (publ…

---

## [\[CSS\] Simple Positioning](https://forum.kirupa.com/t/css-simple-positioning/243721)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 9:49pm UTC](https://forum.kirupa.com/t/css-simple-positioning/243721 "2007-11-09T21:49:25Z")

</div>

I'm trying to make a DIV for a left side navigation. In Firefox, it looks like what I want. In Internet Explorer, it does not display the way I want. How do I fix this? CSS #left { background: url(interface/leftBG.…

---

## [AS2 Preloader - AS3 content](https://forum.kirupa.com/t/as2-preloader-as3-content/243718)

<div class="topic-metadata">

**Author:** [@RubenDoliveira](https://forum.kirupa.com/u/RubenDoliveira)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 9:28pm UTC](https://forum.kirupa.com/t/as2-preloader-as3-content/243718 "2007-11-09T21:28:12Z")

</div>

Hi everyone, I just want to ask if it's possible to use an AS2 preloader to load AS3 content? and if it solves all the issues like the IE7 bug etc... ? Thanks in advance, Ruben

---

## [Music loop - how can I stop it!](https://forum.kirupa.com/t/music-loop-how-can-i-stop-it/243715)

<div class="topic-metadata">

**Author:** [@northstar\_86](https://forum.kirupa.com/u/northstar_86)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 9:01pm UTC](https://forum.kirupa.com/t/music-loop-how-can-i-stop-it/243715 "2007-11-09T21:01:46Z")

</div>

I have a built in music player with several different tracks, after a song is complete is starts over and continues. I can not seem to stop the loop, any help would be much appreciated! here is my source. var numtrack …

---

## [How to read an XML file](https://forum.kirupa.com/t/how-to-read-an-xml-file/243712)

<div class="topic-metadata">

**Author:** [@techie](https://forum.kirupa.com/u/techie)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 8:43pm UTC](https://forum.kirupa.com/t/how-to-read-an-xml-file/243712 "2007-11-09T20:43:01Z")

</div>

\<P\> Hi,\</P\> \<P\> \</P\> \<P\>I'm trying to read an XML file. How do i read through all the child nodes.\</P\> \<P\>I have attached a sample of the XML file.\</P\> \<P\>Please help!\</P\> \<P\> \</P\> \<P\>\<?xml version="1.0" encoding="UTF-8"…

---

## [Toggling MC alpha with a button](https://forum.kirupa.com/t/toggling-mc-alpha-with-a-button/243707)

<div class="topic-metadata">

**Author:** [@bigSHIFT](https://forum.kirupa.com/u/bigSHIFT)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 8:16pm UTC](https://forum.kirupa.com/t/toggling-mc-alpha-with-a-button/243707 "2007-11-09T20:16:00Z")

</div>

Hey all, I'm trying to have one button turn an mc's alpha from 0 to 100, then next press from 100 to 0 but since I am new to action scripting, I am kinda just hit and miss with things. I have this part done... on (pr…

---

## [External SWF -\> Please Help](https://forum.kirupa.com/t/external-swf-please-help/243704)

<div class="topic-metadata">

**Author:** [@JChristian](https://forum.kirupa.com/u/JChristian)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 7:38pm UTC](https://forum.kirupa.com/t/external-swf-please-help/243704 "2007-11-09T19:38:10Z")

</div>

I know how to load an external swf like: I have container.swf that has this code : var request:URLRequest = new URLRequest("content.swf"); var loader:Loader = new Loader(); loader.load(request); addChild(loader); B…

---

## [Whats the best way to version your ActionScript files?](https://forum.kirupa.com/t/whats-the-best-way-to-version-your-actionscript-files/243703)

<div class="topic-metadata">

**Author:** [@daidai](https://forum.kirupa.com/u/daidai)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 7:28pm UTC](https://forum.kirupa.com/t/whats-the-best-way-to-version-your-actionscript-files/243703 "2007-11-09T19:28:56Z")

</div>

Since using AS I've never found a good way of versioning my AS files, i.e. MyClass\_01.as, MyClass\_02.as, etc...At the minute I have a folder containing all my files needed for a project: .fla, .as, images, .xml and every…

---

## [IE6 - Cache changes div sizes](https://forum.kirupa.com/t/ie6-cache-changes-div-sizes/243701)

<div class="topic-metadata">

**Author:** [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 7:02pm UTC](https://forum.kirupa.com/t/ie6-cache-changes-div-sizes/243701 "2007-11-09T19:02:46Z")

</div>

http://www.pinkbike.com/video/list/?category=1&date=all. Video thumbs show up fine on first load - but if it is cached - the video thumbs are tiny. Clearing the cache automatically reloads the page and the thumbs are t…

---

## [Streaming mp3 via xml hacked(being downloaded)](https://forum.kirupa.com/t/streaming-mp3-via-xml-hacked-being-downloaded/243700)

<div class="topic-metadata">

**Author:** [@Zombo](https://forum.kirupa.com/u/Zombo)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 7:02pm UTC](https://forum.kirupa.com/t/streaming-mp3-via-xml-hacked-being-downloaded/243700 "2007-11-09T19:02:06Z")

</div>

I made this site for a dj/producer, and unfortunately I found out that someone has hacked my swf, found the xml file on my server which revealed the location of the mp3 that I am streaming, and shared that link informati…

---

## [Need help on the "CameraMoveAndPan" demo](https://forum.kirupa.com/t/need-help-on-the-cameramoveandpan-demo/243696)

<div class="topic-metadata">

**Author:** [@slickness](https://forum.kirupa.com/u/slickness)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 6:34pm UTC](https://forum.kirupa.com/t/need-help-on-the-cameramoveandpan-demo/243696 "2007-11-09T18:34:30Z")

</div>

Sry I'm a noob in actionscripting. Anyway in this guide http://www.kirupa.com/developer/actionscript/more\_panning.htm I really like the way the 8 figures are able to have prespective, but I can't seem to manipulate i…

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

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