# programming

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

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

**Page:** 696

---

## [How or where can I learn this?](https://forum.kirupa.com/t/how-or-where-can-i-learn-this/296261)

<div class="topic-metadata">

**Author:** [@BINNG](https://forum.kirupa.com/u/BINNG)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 7:25pm UTC](https://forum.kirupa.com/t/how-or-where-can-i-learn-this/296261 "2009-09-11T19:25:44Z")

</div>

Hi guys, I have basic knowledge of flsh and a client of mine needs a 4 to 5 minutes flash presentation maybe with voiceover. My client sent me a presentation as an example. I was browsing the web but cannot find anytin…

---

## [mp3 length before fully downloaded](https://forum.kirupa.com/t/mp3-length-before-fully-downloaded/296259)

<div class="topic-metadata">

**Author:** [@radd](https://forum.kirupa.com/u/radd)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 6:50pm UTC](https://forum.kirupa.com/t/mp3-length-before-fully-downloaded/296259 "2009-09-11T18:50:22Z")

</div>

Hi, As far as I know, Flash doesn't know the exact length of an MP3 loaded via URLLoader (or similar) before it's actually fully downloaded. There are ways to approximate it but they are close to zero precision to me : …

---

## [ExternalInterface -\> Cocoa](https://forum.kirupa.com/t/externalinterface-cocoa/296255)

<div class="topic-metadata">

**Author:** [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 5:43pm UTC](https://forum.kirupa.com/t/externalinterface-cocoa/296255 "2009-09-11T17:43:57Z")

</div>

Adobe Air is great. But it doesn't do everything. Long ago, back in the Windows 2008 days, I used to program with VB. I remember it being easy to control the mouse. My guess is that it is still easy to control the mo…

---

## [Flash .swf keeps giving me warning messages](https://forum.kirupa.com/t/flash-swf-keeps-giving-me-warning-messages/296254)

<div class="topic-metadata">

**Author:** [@lorne17](https://forum.kirupa.com/u/lorne17)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 5:38pm UTC](https://forum.kirupa.com/t/flash-swf-keeps-giving-me-warning-messages/296254 "2009-09-11T17:38:50Z")

</div>

Hello there, I have a flash movie that I want to play in my site, however whenever I select the link to play it, it comes up with this error: Adobe Flash Player has stopped a potentially unsafe operation. The followi…

---

## [Tween Engine](https://forum.kirupa.com/t/tween-engine/296253)

<div class="topic-metadata">

**Author:** [@AcolyTe](https://forum.kirupa.com/u/AcolyTe)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 5:35pm UTC](https://forum.kirupa.com/t/tween-engine/296253 "2009-09-11T17:35:18Z")

</div>

Hi guys, I was just wondering what your thoughts were on the smoothest tweening engine for simple x y tweens and such. I notice that some tweens muddle the images, and it would seem that the built in tween class is actua…

---

## [Passing Array in function](https://forum.kirupa.com/t/passing-array-in-function/296252)

<div class="topic-metadata">

**Author:** [@ash\_at\_risk](https://forum.kirupa.com/u/ash_at_risk)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 5:31pm UTC](https://forum.kirupa.com/t/passing-array-in-function/296252 "2009-09-11T17:31:55Z")

</div>

how can i pass array elements as parameter in function ?

---

## [Problem with scroll bar in Chrome](https://forum.kirupa.com/t/problem-with-scroll-bar-in-chrome/296250)

<div class="topic-metadata">

**Author:** [@IngJure](https://forum.kirupa.com/u/IngJure)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 4:49pm UTC](https://forum.kirupa.com/t/problem-with-scroll-bar-in-chrome/296250 "2009-09-11T16:49:10Z")

</div>

Hello, I am making a full Flash page in AS3. I am trying to make dynamic (elastic) resize, with center/center and bottom/center alligment of window. Here is the site: http://stamac.ledina.org/temp1.html It works in…

---

## [2 swfs, 2 classes (one for each), one loads the other, how to unload?](https://forum.kirupa.com/t/2-swfs-2-classes-one-for-each-one-loads-the-other-how-to-unload/296249)

<div class="topic-metadata">

**Author:** [@dragonfly](https://forum.kirupa.com/u/dragonfly)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 4:41pm UTC](https://forum.kirupa.com/t/2-swfs-2-classes-one-for-each-one-loads-the-other-how-to-unload/296249 "2009-09-11T16:41:31Z")

</div>

I'm having just a pickle of a time with this. SWF A loads SWF B with addChild. SWF B covers SWF A entirely. Now I want to unload SWF B with a button in SWF B. The button in SWF B is programmed with SWF B's class. F…

---

## [Options for implementing flash chat?](https://forum.kirupa.com/t/options-for-implementing-flash-chat/296248)

<div class="topic-metadata">

**Author:** [@SmoothDime](https://forum.kirupa.com/u/SmoothDime)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 4:02pm UTC](https://forum.kirupa.com/t/options-for-implementing-flash-chat/296248 "2009-09-11T16:02:13Z")

</div>

Hi, My client needs a flash based chat app for a website. What should I use to power the chat? Right now we just have a lamp server...is there something I can install on this server? Or do I have to get a separate se…

---

## [displacementMap freezing](https://forum.kirupa.com/t/displacementmap-freezing/296247)

<div class="topic-metadata">

**Author:** [@jhvh1134](https://forum.kirupa.com/u/jhvh1134)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 3:59pm UTC](https://forum.kirupa.com/t/displacementmap-freezing/296247 "2009-09-11T15:59:16Z")

</div>

Hi guys, Im supposed to make a marquee that has curved dynamic text scrolling through it. I used the displacement map filter for this and it almost works. the only problem is that when the dynamic text field gets to a ce…

---

## [Flash SWF Snapshot to JPG](https://forum.kirupa.com/t/flash-swf-snapshot-to-jpg/296244)

<div class="topic-metadata">

**Author:** [@Pixel\_Pup](https://forum.kirupa.com/u/Pixel_Pup)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 2:57pm UTC](https://forum.kirupa.com/t/flash-swf-snapshot-to-jpg/296244 "2009-09-11T14:57:34Z")

</div>

I am in search of a "simple" way to implement the generation of a JPG from a Flash SWF housed within an HTML page. DETAILS: Once a visitor has assembled draggable objects within the SWF, and to their liking, I would like…

---

## [Reusing functions](https://forum.kirupa.com/t/reusing-functions/296243)

<div class="topic-metadata">

**Author:** [@cyan](https://forum.kirupa.com/u/cyan)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 2:34pm UTC](https://forum.kirupa.com/t/reusing-functions/296243 "2009-09-11T14:34:03Z")

</div>

I was hoping someone could help me; I somehow am able to write bits of code but am still learning how to restructure code so that it is more efficient. I have 15 buttons. Each one, when rolled over, should change the c…

---

## [Reading .PPT](https://forum.kirupa.com/t/reading-ppt/296240)

<div class="topic-metadata">

**Author:** [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 1:40pm UTC](https://forum.kirupa.com/t/reading-ppt/296240 "2009-09-11T13:40:01Z")

</div>

There are a ton of .PPT to SWF converters. I was thinking about making a PPT to XML converter. It would have to read all the images that are embedded, and output them as JPG. That way you have RAW Data that you can us…

---

## [\[CS4\]Arrays,Strings and Objects\[AS 2.0\]](https://forum.kirupa.com/t/cs4-arrays-strings-and-objects-as-2-0/296236)

<div class="topic-metadata">

**Author:** [@Signy](https://forum.kirupa.com/u/Signy)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 11:13am UTC](https://forum.kirupa.com/t/cs4-arrays-strings-and-objects-as-2-0/296236 "2009-09-11T11:13:35Z")

</div>

Hi All, Right I'll post my code first then chat about where I'm stuck. dynamic class scripts.actionScript.enginCode extends MovieClip { var carOne:Object; var carTwo:Object; var carThree:Object; …

---

## [MySql Delete Duplicates](https://forum.kirupa.com/t/mysql-delete-duplicates/296235)

<div class="topic-metadata">

**Author:** [@Anks45](https://forum.kirupa.com/u/Anks45)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 9:42am UTC](https://forum.kirupa.com/t/mysql-delete-duplicates/296235 "2009-09-11T09:42:19Z")

</div>

We all must have faced to delete the duplicate entries in a table. Here’s the simple solution to that. \[image\] The scenario is: The table has 3 columns, A, B, and C. Column A is unique for all rows but the columns B …

---

## [HOw to pass Query String in AS3 in FLASh CS4](https://forum.kirupa.com/t/how-to-pass-query-string-in-as3-in-flash-cs4/296231)

<div class="topic-metadata">

**Author:** [@Devendra\_Singh](https://forum.kirupa.com/u/Devendra_Singh)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 8:48am UTC](https://forum.kirupa.com/t/how-to-pass-query-string-in-as3-in-flash-cs4/296231 "2009-09-11T08:48:01Z")

</div>

HI,All HOw to pass Query String in AS3 in FLASh CS4 Plz help me out

---

## [Change pricing in a div according to IP / country](https://forum.kirupa.com/t/change-pricing-in-a-div-according-to-ip-country/296226)

<div class="topic-metadata">

**Author:** [@pixi](https://forum.kirupa.com/u/pixi)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 7:43am UTC](https://forum.kirupa.com/t/change-pricing-in-a-div-according-to-ip-country/296226 "2009-09-11T07:43:08Z")

</div>

Hi Guys, been searching for a while, can't seem to find a simple script that instead of using a redirect - will simply load pricing table content into a div according to country. so one html page with a dynamic div. …

---

## [SWF Address index page problem](https://forum.kirupa.com/t/swf-address-index-page-problem/296224)

<div class="topic-metadata">

**Author:** [@goeiste](https://forum.kirupa.com/u/goeiste)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 7:38am UTC](https://forum.kirupa.com/t/swf-address-index-page-problem/296224 "2009-09-11T07:38:43Z")

</div>

Hello, For a new site I'm implementing swfaddress to enable deeplinking. Everything works fine when i test the movie in flash. However when I upload the file on the web, the content\_mc keeps returning to its first posi…

---

## [AddChild, Remove Child, then adding again issue!](https://forum.kirupa.com/t/addchild-remove-child-then-adding-again-issue/296222)

<div class="topic-metadata">

**Author:** [@aesthetics7](https://forum.kirupa.com/u/aesthetics7)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 5:32am UTC](https://forum.kirupa.com/t/addchild-remove-child-then-adding-again-issue/296222 "2009-09-11T05:32:39Z")

</div>

.I am using addChild and removeChild. I have two main movieclips that this is based around. workss\_mc and work\_mc. workss\_mc is the slideshow, work\_mc is the selection grid. When you click on an object in work\_mc I am ad…

---

## [Question on Javascript](https://forum.kirupa.com/t/question-on-javascript/296219)

<div class="topic-metadata">

**Author:** [@wordson](https://forum.kirupa.com/u/wordson)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 4:03am UTC](https://forum.kirupa.com/t/question-on-javascript/296219 "2009-09-11T04:03:32Z")

</div>

My friend and I are creating a text based/mud game. The player can navigate from tile to tile in the world map. Sort of like the way Outwar does it. We need to figure out a way so that if a player tries to walk to the…

---

## [Trying to use restrict property to limit 1st char to 0-5, etc](https://forum.kirupa.com/t/trying-to-use-restrict-property-to-limit-1st-char-to-0-5-etc/296218)

<div class="topic-metadata">

**Author:** [@ohbeewan](https://forum.kirupa.com/u/ohbeewan)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 3:34am UTC](https://forum.kirupa.com/t/trying-to-use-restrict-property-to-limit-1st-char-to-0-5-etc/296218 "2009-09-11T03:34:07Z")

</div>

Hello all you RegEx fiends, I'm trying to use the restrict property of a TextInput field to limit the entry of minutes, so restricting the number of characters to 2, while restricting the first character to the range \[…

---

## [Array Display Problem](https://forum.kirupa.com/t/array-display-problem/296214)

<div class="topic-metadata">

**Author:** [@7788](https://forum.kirupa.com/u/7788)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 12:18am UTC](https://forum.kirupa.com/t/array-display-problem/296214 "2009-09-11T00:18:48Z")

</div>

i have the following array result (with print\_r) \[TIMESTAMP\] =\> 2009%2d09%2d11T00%3a12%3a41Z \[CORRELATIONID\] =\> be3a644f8cad9 \[ACK\] =\> Failure \[L\_ERRORCODE0\] =\> 10001 \[L\_SHORTMESSAGE0\] =\> Internal%20Er…

---

## [Resetting a property](https://forum.kirupa.com/t/resetting-a-property/296213)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 11:39pm UTC](https://forum.kirupa.com/t/resetting-a-property/296213 "2009-09-10T23:39:31Z")

</div>

.popup { left: 40%; top: 40%; background: blue; } #specificPopup { right: 1em; top: 1em; left: none; } \<div id="specificPopup" class="popup"\>hello\</div\> I need help overriding the "left" property.…

---

## [Key.removeListener Not Working](https://forum.kirupa.com/t/key-removelistener-not-working/296212)

<div class="topic-metadata">

**Author:** [@ventolinmono](https://forum.kirupa.com/u/ventolinmono)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 11:37pm UTC](https://forum.kirupa.com/t/key-removelistener-not-working/296212 "2009-09-10T23:37:35Z")

</div>

Hi Having trouble removing listeners. I have a navigation between 2 scenes. Each scene has its own listener for different functions on same keys. The first play of each scene goes without problems. When i go back to th…

---

## [Error from removeChildAt](https://forum.kirupa.com/t/error-from-removechildat/296211)

<div class="topic-metadata">

**Author:** [@KillinSprE](https://forum.kirupa.com/u/KillinSprE)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 10:19pm UTC](https://forum.kirupa.com/t/error-from-removechildat/296211 "2009-09-10T22:19:37Z")

</div>

I keep getting an "Error #1009: Cannot access a property or method of a null object reference" off the following function. Any ideas why? public function sendComplete\_logout( e:Event ):void { trace(parent.n…

---

## [Movie clip as button problem with currentTarget](https://forum.kirupa.com/t/movie-clip-as-button-problem-with-currenttarget/296207)

<div class="topic-metadata">

**Author:** [@theptsman](https://forum.kirupa.com/u/theptsman)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 8:49pm UTC](https://forum.kirupa.com/t/movie-clip-as-button-problem-with-currenttarget/296207 "2009-09-10T20:49:35Z")

</div>

Hi, Thanks to IqAndreas I have cleaned up and tried this code. Sadly he has no more input for me I hope someone can take a look at this simplified version and see why its not playing the MC's on click like it looks l…

---

## [Document Class Path Issues](https://forum.kirupa.com/t/document-class-path-issues/296202)

<div class="topic-metadata">

**Author:** [@Ricky55](https://forum.kirupa.com/u/Ricky55)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 7:05pm UTC](https://forum.kirupa.com/t/document-class-path-issues/296202 "2009-09-10T19:05:59Z")

</div>

Hi Up until very recently I've always coded my AS3 in the time line. I've just working on a project now though that uses the Document Class with Flash CS4. Currently I have my FLA and therefore my SWF file in the sam…

---

## [Masking multiple movie clips makes only one clickable](https://forum.kirupa.com/t/masking-multiple-movie-clips-makes-only-one-clickable/296201)

<div class="topic-metadata">

**Author:** [@niallos](https://forum.kirupa.com/u/niallos)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 6:59pm UTC](https://forum.kirupa.com/t/masking-multiple-movie-clips-makes-only-one-clickable/296201 "2009-09-10T18:59:23Z")

</div>

I'm having a really strange problem with movieclips that use a mask for reflection. On my main timeline i'm creating two instances of a movieclip named 'item'. In item.as i'm calling cacheAsBitmap and setting a gradie…

---

## [Stop Browser Scrolling On Arrow Keys](https://forum.kirupa.com/t/stop-browser-scrolling-on-arrow-keys/296199)

<div class="topic-metadata">

**Author:** [@PsuFan](https://forum.kirupa.com/u/PsuFan)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 6:12pm UTC](https://forum.kirupa.com/t/stop-browser-scrolling-on-arrow-keys/296199 "2009-09-10T18:12:30Z")

</div>

Hello, I am trying to stop the browser from scrolling when using the arrow keys within flash. It makes it impossible to play the game if the browser is always scrolling up and down when your using the arrow keys to pla…

---

## [Adding Preloader to XML Gallery](https://forum.kirupa.com/t/adding-preloader-to-xml-gallery/296198)

<div class="topic-metadata">

**Author:** [@Agold](https://forum.kirupa.com/u/Agold)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 5:54pm UTC](https://forum.kirupa.com/t/adding-preloader-to-xml-gallery/296198 "2009-09-10T17:54:01Z")

</div>

Ok so I have this XML gallery working perfectly, but I want to add a preloader to it. I have the loader and child all in one package, and that package is called via back and forward buttons according to if/else statement…

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

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