# programming

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

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

**Page:** 569

---

## [Getting rid of duplicate items in a multidimensional array](https://forum.kirupa.com/t/getting-rid-of-duplicate-items-in-a-multidimensional-array/304346)

<div class="topic-metadata">

**Author:** [@andrewlong](https://forum.kirupa.com/u/andrewlong)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 8:04pm UTC](https://forum.kirupa.com/t/getting-rid-of-duplicate-items-in-a-multidimensional-array/304346 "2010-02-05T20:04:55Z")

</div>

I'm having trouble going through a multidimensional array and weeding out duplicate items. For instance, here is some simple code: var arr1:Array=new Array(1,2,3) var arr2:Array=new Array(2,3,4) var arr3:Array=new Ar…

---

## [Organizing library of functions](https://forum.kirupa.com/t/organizing-library-of-functions/304345)

<div class="topic-metadata">

**Author:** [@BoppreH](https://forum.kirupa.com/u/BoppreH)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 7:56pm UTC](https://forum.kirupa.com/t/organizing-library-of-functions/304345 "2010-02-05T19:56:50Z")

</div>

I have a library of functions to manipulate DisplayObjects. Currently, it's a class with static methods. It's getting pretty huge (the .as file weights 20 kb) and adds over 4 kb to every swf that uses it. Other problem…

---

## [Remove symbols from main scene so they won't be shown in a button](https://forum.kirupa.com/t/remove-symbols-from-main-scene-so-they-wont-be-shown-in-a-button/304343)

<div class="topic-metadata">

**Author:** [@roobiniho](https://forum.kirupa.com/u/roobiniho)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 7:44pm UTC](https://forum.kirupa.com/t/remove-symbols-from-main-scene-so-they-wont-be-shown-in-a-button/304343 "2010-02-05T19:44:21Z")

</div>

Hello I would really apriciatate it if you could help me with a problme that has ocurred to me in flash cs3. I have done a movie and in the end a have a text which i have animated it letter by letter. i also have a leaf …

---

## [Text not appearing when fonts are embedded](https://forum.kirupa.com/t/text-not-appearing-when-fonts-are-embedded/304341)

<div class="topic-metadata">

**Author:** [@xvkarbear](https://forum.kirupa.com/u/xvkarbear)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 7:35pm UTC](https://forum.kirupa.com/t/text-not-appearing-when-fonts-are-embedded/304341 "2010-02-05T19:35:23Z")

</div>

I have a dynamic text field on my stage with the instance name of "yesno". In the text box panel, (so not the code) I have it set to embed all the glyphs. In my code I have the following: yesno.text = "Incorrect. T…

---

## [fileReference.download()](https://forum.kirupa.com/t/filereference-download/304340)

<div class="topic-metadata">

**Author:** [@werehunt](https://forum.kirupa.com/u/werehunt)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 7:00pm UTC](https://forum.kirupa.com/t/filereference-download/304340 "2010-02-05T19:00:06Z")

</div>

If i want to use fileReference.download() files from another domain do i need cross domain policy or not? or i need something else? thanks! also, can I download files only from http/https protocol or can I use relative…

---

## [Different Scroll Speeds Explorer/Firefox](https://forum.kirupa.com/t/different-scroll-speeds-explorer-firefox/304338)

<div class="topic-metadata">

**Author:** [@Derugash](https://forum.kirupa.com/u/Derugash)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 6:23pm UTC](https://forum.kirupa.com/t/different-scroll-speeds-explorer-firefox/304338 "2010-02-05T18:23:40Z")

</div>

A strange issue is plagueing me today. I'm using a slightly modified version of the Kirupa XML gallery + Thumbnail bar. When scrolling in Explorer, the speed is only a fraction of what its supposed to be. Firefox handles…

---

## [AS3 Dynamic menu](https://forum.kirupa.com/t/as3-dynamic-menu/304337)

<div class="topic-metadata">

**Author:** [@maidbarion](https://forum.kirupa.com/u/maidbarion)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 5:40pm UTC](https://forum.kirupa.com/t/as3-dynamic-menu/304337 "2010-02-05T17:40:30Z")

</div>

Hi Guys! I'm having a bit of trouble getting a dynamic menu to work is AS3. Here's the code... import caurina.transitions.Tweener; import caurina.transitions.properties.ColorShortcuts; ColorShortcuts.init(); var me…

---

## [Track Frame on Movieclip to execute diferents commands](https://forum.kirupa.com/t/track-frame-on-movieclip-to-execute-diferents-commands/304333)

<div class="topic-metadata">

**Author:** [@Nimaro](https://forum.kirupa.com/u/Nimaro)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 3:29pm UTC](https://forum.kirupa.com/t/track-frame-on-movieclip-to-execute-diferents-commands/304333 "2010-02-05T15:29:01Z")

</div>

Hy everyone, Im doing a movieclip that is an empty square. On the first frame of the movieclip i have this empty square, and on the second i have a square with a cross in the center. What im trying to do is when i c…

---

## [Question about Export classes in library](https://forum.kirupa.com/t/question-about-export-classes-in-library/304332)

<div class="topic-metadata">

**Author:** [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 2:43pm UTC](https://forum.kirupa.com/t/question-about-export-classes-in-library/304332 "2010-02-05T14:43:59Z")

</div>

Hi! Suppose I have a website that loads pages (swf). Every page has it's own document class. Every page's fla has an item in library that wrap the page contents and that's exported as Content. In every document class, I …

---

## [Need help with FLV preloads and playback timing](https://forum.kirupa.com/t/need-help-with-flv-preloads-and-playback-timing/304331)

<div class="topic-metadata">

**Author:** [@cblads](https://forum.kirupa.com/u/cblads)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 2:08pm UTC](https://forum.kirupa.com/t/need-help-with-flv-preloads-and-playback-timing/304331 "2010-02-05T14:08:57Z")

</div>

I'm working on a Flash movie project (AS2) that involves playing back five external 20sec-40sec FLVs at specific starting point frames within a overall storyline. These are not to be controllable by the user, meaning t…

---

## [Error #1009 Function with ceveral if statements won't run completely](https://forum.kirupa.com/t/error-1009-function-with-ceveral-if-statements-wont-run-completely/304330)

<div class="topic-metadata">

**Author:** [@mephisto102](https://forum.kirupa.com/u/mephisto102)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 1:59pm UTC](https://forum.kirupa.com/t/error-1009-function-with-ceveral-if-statements-wont-run-completely/304330 "2010-02-05T13:59:39Z")

</div>

Hello, Starting to learn actionscript bit by bit. But im running into a problem i can't solve atm. Does anyone have a clue what the solution is? a fla CS3 document with labels and dropzones assignment. Place 10 label…

---

## [AJAX Tutorial and PHP problems](https://forum.kirupa.com/t/ajax-tutorial-and-php-problems/304329)

<div class="topic-metadata">

**Author:** [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 1:51pm UTC](https://forum.kirupa.com/t/ajax-tutorial-and-php-problems/304329 "2010-02-05T13:51:16Z")

</div>

I've been following this tutorial: http://en.w3schools.com/php/php\_ajax\_database.asp I'm just trying to get my head around how all the elements of AJAX work together. I have moderate knowledge of PHP, HTML, Javascrip…

---

## [Creating a dynamic quote box](https://forum.kirupa.com/t/creating-a-dynamic-quote-box/304324)

<div class="topic-metadata">

**Author:** [@A\_Lwin](https://forum.kirupa.com/u/A_Lwin)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 11:25am UTC](https://forum.kirupa.com/t/creating-a-dynamic-quote-box/304324 "2010-02-05T11:25:21Z")

</div>

Hi everyone, I'm new to the forum and to flash. I would like to ask for assistance with solving a particular problem in flash. Task: Create a flash application which will be displayed on a web page which will read f…

---

## [\[CS4\]Limit an object's movement](https://forum.kirupa.com/t/cs4-limit-an-objects-movement/304323)

<div class="topic-metadata">

**Author:** [@SangHee](https://forum.kirupa.com/u/SangHee)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 10:52am UTC](https://forum.kirupa.com/t/cs4-limit-an-objects-movement/304323 "2010-02-05T10:52:14Z")

</div>

Hi, I've made a sort of sliding menu in Flash (CS4) which is basically a movie clip that has a function assigned to it that if the cursor goes over a button it starts moving in a direction. Code: \_root.right.onRollOver…

---

## [Problem on redirect, login page and SEO](https://forum.kirupa.com/t/problem-on-redirect-login-page-and-seo/304320)

<div class="topic-metadata">

**Author:** [@annielhy](https://forum.kirupa.com/u/annielhy)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 9:59am UTC](https://forum.kirupa.com/t/problem-on-redirect-login-page-and-seo/304320 "2010-02-05T09:59:27Z")

</div>

I have a SEO problem regards 301/302 redirection. Here is the situation: I have a domain, for example, \[COLOR=Blue\]http://mydomain.com\[/COLOR\] All my public content is placed at \[COLOR=Blue\]http://mydomain.com\[/CO…

---

## [XML with php](https://forum.kirupa.com/t/xml-with-php/304319)

<div class="topic-metadata">

**Author:** [@jehankokila](https://forum.kirupa.com/u/jehankokila)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 9:57am UTC](https://forum.kirupa.com/t/xml-with-php/304319 "2010-02-05T09:57:16Z")

</div>

Hi,i am very new to XML,i want to use XML with php,this is the cord i used \<?php $host = "localhost"; $user = "lanuage"; $pass = "testing"; $database = "xrandomusa\_4"; $linkID = mysql\_connect($host, $user, $pass) or …

---

## [Pen tool - On/Off (AS2)](https://forum.kirupa.com/t/pen-tool-on-off-as2/304318)

<div class="topic-metadata">

**Author:** [@Keytar\_Andy](https://forum.kirupa.com/u/Keytar_Andy)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 9:53am UTC](https://forum.kirupa.com/t/pen-tool-on-off-as2/304318 "2010-02-05T09:53:15Z")

</div>

Hey! I've been having a problem for the past month or so, and for the life of me I can't work out how to switch off the pen tool I have in actionscript. I have the following code in frame 2, and frame one doesn't ha…

---

## [Is it good practice to use static variables?](https://forum.kirupa.com/t/is-it-good-practice-to-use-static-variables/304317)

<div class="topic-metadata">

**Author:** [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 9:29am UTC](https://forum.kirupa.com/t/is-it-good-practice-to-use-static-variables/304317 "2010-02-05T09:29:28Z")

</div>

Hi, Up until now.. I've always used this way to refer to variables on my document class MovieClip(root).variablename But that complicates things because I would need to extend my class as a displayObject and then …

---

## [How to add validation to Form Mailer](https://forum.kirupa.com/t/how-to-add-validation-to-form-mailer/304316)

<div class="topic-metadata">

**Author:** [@TRixation](https://forum.kirupa.com/u/TRixation)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 9:26am UTC](https://forum.kirupa.com/t/how-to-add-validation-to-form-mailer/304316 "2010-02-05T09:26:16Z")

</div>

Hi, I am new to PHP and I found a really great tutorial here: http://www.kirupa.com/web/form\_mailer.htm I just need to know how to add validation to the fields to make sure people fill in the first 2 fields. Any …

---

## [Class Design problem](https://forum.kirupa.com/t/class-design-problem/304315)

<div class="topic-metadata">

**Author:** [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 9:16am UTC](https://forum.kirupa.com/t/class-design-problem/304315 "2010-02-05T09:16:59Z")

</div>

Hi! The actors: Controller class: loads unloads pages (swf) of a website. Listens to transitionIn/Out custom events to manage the sequence loadnewpage-transIn-transOut, that can vary depending on the website, for e…

---

## [Speed: if and while vs. if When Condition is False](https://forum.kirupa.com/t/speed-if-and-while-vs-if-when-condition-is-false/304314)

<div class="topic-metadata">

**Author:** [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 9:08am UTC](https://forum.kirupa.com/t/speed-if-and-while-vs-if-when-condition-is-false/304314 "2010-02-05T09:08:30Z")

</div>

So, if the condition is false, which would be faster: if(condition) while(condition) or just while(condition) ??

---

## [Movement restriction](https://forum.kirupa.com/t/movement-restriction/304313)

<div class="topic-metadata">

**Author:** [@SangHee](https://forum.kirupa.com/u/SangHee)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 8:53am UTC](https://forum.kirupa.com/t/movement-restriction/304313 "2010-02-05T08:53:35Z")

</div>

Hi, I've made a sort of sliding menu which is basically a movie clip that has a function assigned to it that if the cursor goes over a button it starts moving in a direction. \_root.right.onRollOver = function() { …

---

## [Document class / singleton question](https://forum.kirupa.com/t/document-class-singleton-question/304312)

<div class="topic-metadata">

**Author:** [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 8:41am UTC](https://forum.kirupa.com/t/document-class-singleton-question/304312 "2010-02-05T08:41:13Z")

</div>

Hi! Suppose I have a test.fla with a document class associated, say DocTestClass.as. Normally I load the test.swf and DocTestClass is automatically instantiated. But I'm curious. What if I make some other instances o…

---

## [Should I use e.stopImmediatePropagation(); alot?](https://forum.kirupa.com/t/should-i-use-e-stopimmediatepropagation-alot/304309)

<div class="topic-metadata">

**Author:** [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 7:15am UTC](https://forum.kirupa.com/t/should-i-use-e-stopimmediatepropagation-alot/304309 "2010-02-05T07:15:16Z")

</div>

If I have only one destination for my event, does it then make sense to use function someFunction(e:Event):void { e.stopImmediatePropagation(); //more code } or does it not make any difference? In my mind if the …

---

## [Fluid/Fixed layout](https://forum.kirupa.com/t/fluid-fixed-layout/304307)

<div class="topic-metadata">

**Author:** [@arundracula](https://forum.kirupa.com/u/arundracula)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 6:42am UTC](https://forum.kirupa.com/t/fluid-fixed-layout/304307 "2010-02-05T06:42:51Z")

</div>

How to do the layout like this template? http://www.templatemonster.com/website-templates/27555.html (Click on the advanced full size preview) In this the body bg is a gradient. And there are two bubble image contain…

---

## [Advanced as3 buttons](https://forum.kirupa.com/t/advanced-as3-buttons/304306)

<div class="topic-metadata">

**Author:** [@Danief](https://forum.kirupa.com/u/Danief)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 6:36am UTC](https://forum.kirupa.com/t/advanced-as3-buttons/304306 "2010-02-05T06:36:42Z")

</div>

Okay. I have a button that looks like this: http://www.swfcabin.com/open/1265348657 so when you rollover, it plays an animation, and when you rollout, it plays the exit animation. And if you rollout before the the en…

---

## [Similar layout to this site](https://forum.kirupa.com/t/similar-layout-to-this-site/304305)

<div class="topic-metadata">

**Author:** [@chockybickyman](https://forum.kirupa.com/u/chockybickyman)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 5:53am UTC](https://forum.kirupa.com/t/similar-layout-to-this-site/304305 "2010-02-05T05:53:42Z")

</div>

I was looking at making a site similar to this http://au.roxy.com/ The way the white frame scales into whatever the screen res is with no distortion and the center movie I have code to allow that to stay centered, but…

---

## [Help with nested loops](https://forum.kirupa.com/t/help-with-nested-loops/304304)

<div class="topic-metadata">

**Author:** [@andrewlong](https://forum.kirupa.com/u/andrewlong)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 5:33am UTC](https://forum.kirupa.com/t/help-with-nested-loops/304304 "2010-02-05T05:33:32Z")

</div>

I am creating a method that creates all possible combinations of a given series and stores them in an array (i.e. all the possible combinations to a bicycle combo lock). The way I am going about doing this is to first ra…

---

## [Help modify fade in AS 2.0](https://forum.kirupa.com/t/help-modify-fade-in-as-2-0/304301)

<div class="topic-metadata">

**Author:** [@TerraAustralia](https://forum.kirupa.com/u/TerraAustralia)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 2:55am UTC](https://forum.kirupa.com/t/help-modify-fade-in-as-2-0/304301 "2010-02-05T02:55:06Z")

</div>

The following AS works fine but I seek the wisdom of an AS guru to modify the action. I have a tweened movie which plays on a loop. A click on the image area stops the movie and the image fades nicely from alpha 100 to…

---

## [N iterations of K function calls, or K function calls of N iterations?](https://forum.kirupa.com/t/n-iterations-of-k-function-calls-or-k-function-calls-of-n-iterations/304300)

<div class="topic-metadata">

**Author:** [@KomodoDave](https://forum.kirupa.com/u/KomodoDave)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 2:34am UTC](https://forum.kirupa.com/t/n-iterations-of-k-function-calls-or-k-function-calls-of-n-iterations/304300 "2010-02-05T02:34:14Z")

</div>

Hi guys, I wish to implement a constraints solver in a physical simulation, and wish to model each constraint as a Function object. I'm wondering whether it's best to have each constraint operate on a full set of dat…

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

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