# programming

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

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

**Page:** 902

---

## [getChildByName mc inside mc](https://forum.kirupa.com/t/getchildbyname-mc-inside-mc/282987)

<div class="topic-metadata">

**Author:** [@ryrocks](https://forum.kirupa.com/u/ryrocks)\
**Replies:** 0\
**Last updated:** [March 1, 2009, 1:12am UTC](https://forum.kirupa.com/t/getchildbyname-mc-inside-mc/282987 "2009-03-01T01:12:04Z")

</div>

Hey, I'm trying to declare a movieclip variable in a class by finding the instance name of the movieclip. On my stage I have a 'Container' (linkage class name) MC, inside that is a 'PlayerInfo' (linkage class name) MC…

---

## [Making tetris clone](https://forum.kirupa.com/t/making-tetris-clone/282986)

<div class="topic-metadata">

**Author:** [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Replies:** 0\
**Last updated:** [March 1, 2009, 12:17am UTC](https://forum.kirupa.com/t/making-tetris-clone/282986 "2009-03-01T00:17:00Z")

</div>

i'm trying to make a tetris clone.. this will be my first ever game in Flash. \[smile\] but I need help on figuring out the best way to do things.. right now, here is what I have in mind for the classes: -Block (the indivi…

---

## [Problem In Sound Controlling Code: It Causes Strange Behavior](https://forum.kirupa.com/t/problem-in-sound-controlling-code-it-causes-strange-behavior/282985)

<div class="topic-metadata">

**Author:** [@Paradise\_Wolf](https://forum.kirupa.com/u/Paradise_Wolf)\
**Replies:** 0\
**Last updated:** [March 1, 2009, 12:14am UTC](https://forum.kirupa.com/t/problem-in-sound-controlling-code-it-causes-strange-behavior/282985 "2009-03-01T00:14:08Z")

</div>

\[FONT=Arial\]I created two simple prototype programs ( see below ) to test an algorithm of sound control in a loaded SWF before adding it in more complex programs.\[/FONT\] \[FONT=Arial\]Both use separated .as files. My in…

---

## [Noob Disappearing Buttons Problem](https://forum.kirupa.com/t/noob-disappearing-buttons-problem/282984)

<div class="topic-metadata">

**Author:** [@Parkaboy](https://forum.kirupa.com/u/Parkaboy)\
**Replies:** 0\
**Last updated:** [March 1, 2009, 12:08am UTC](https://forum.kirupa.com/t/noob-disappearing-buttons-problem/282984 "2009-03-01T00:08:47Z")

</div>

Here is the site I'm working on http://thedogparticle.com/ fla file http://thedogparticle.com/Flash/Drop\_Down\_mine.rar As you can see the buttons disappear before you get to hit them which I guess has something to d…

---

## [Use Library Resources from Class](https://forum.kirupa.com/t/use-library-resources-from-class/282980)

<div class="topic-metadata">

**Author:** [@absameen](https://forum.kirupa.com/u/absameen)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 10:47pm UTC](https://forum.kirupa.com/t/use-library-resources-from-class/282980 "2009-02-28T22:47:51Z")

</div>

I have a font in my library and I want to access it from a class. myFont:Font = new FontName(); doesn't seem to be working. The linkage is setup. How can I get this to work?

---

## [Generate XML thru Flash](https://forum.kirupa.com/t/generate-xml-thru-flash/282978)

<div class="topic-metadata">

**Author:** [@gkp\_gaurav1](https://forum.kirupa.com/u/gkp_gaurav1)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 10:16pm UTC](https://forum.kirupa.com/t/generate-xml-thru-flash/282978 "2009-02-28T22:16:06Z")

</div>

Hello, From a remoting i am getting a recordset/array from database. structure is like this: label ---- id ---- parent\_id gr1 ------ 1 ---- 0 gr2 ------ 2 ---- 1 gr3 ------ 3 ---- 2 gr4 ------ 4 ---- 3 gr5 ------ 5 ---…

---

## [Pass variables through frames](https://forum.kirupa.com/t/pass-variables-through-frames/282977)

<div class="topic-metadata">

**Author:** [@The\_X](https://forum.kirupa.com/u/The_X)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 10:03pm UTC](https://forum.kirupa.com/t/pass-variables-through-frames/282977 "2009-02-28T22:03:14Z")

</div>

Ohai I've recently migrated from AS2 to AS3 (kinda), and I'm trying to convert some of my files across. However, I've come across a problem. Can you pass variables across frames, like in AS2? I've tried and failed. \[fr…

---

## [CS4 3D vs Pv3D](https://forum.kirupa.com/t/cs4-3d-vs-pv3d/282976)

<div class="topic-metadata">

**Author:** [@nook](https://forum.kirupa.com/u/nook)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 9:54pm UTC](https://forum.kirupa.com/t/cs4-3d-vs-pv3d/282976 "2009-02-28T21:54:23Z")

</div>

Is there any reason for learning Papervision 3D now that CS4 has built in 3D, or does PV contain much more functionality?

---

## [Getting angle of line](https://forum.kirupa.com/t/getting-angle-of-line/282975)

<div class="topic-metadata">

**Author:** [@evildrummer](https://forum.kirupa.com/u/evildrummer)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 9:32pm UTC](https://forum.kirupa.com/t/getting-angle-of-line/282975 "2009-02-28T21:32:50Z")

</div>

I've not done trig in a long time, or any form of maths. If I have a line (in which I have access to both x,y co-ords of both points). How do I get the angle of the line in radians when against a horizontal line.

---

## [Tween Animated Page Flip](https://forum.kirupa.com/t/tween-animated-page-flip/282974)

<div class="topic-metadata">

**Author:** [@thedark\_master](https://forum.kirupa.com/u/thedark_master)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 8:52pm UTC](https://forum.kirupa.com/t/tween-animated-page-flip/282974 "2009-02-28T20:52:46Z")

</div>

Hello, I am looking for a tween animated page flip without any actionscript. There are many page flips our there but they all use action script.

---

## [Mod\_Rewrite Niggle!](https://forum.kirupa.com/t/mod-rewrite-niggle/282972)

<div class="topic-metadata">

**Author:** [@thedaveyb](https://forum.kirupa.com/u/thedaveyb)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 8:23pm UTC](https://forum.kirupa.com/t/mod-rewrite-niggle/282972 "2009-02-28T20:23:39Z")

</div>

Hey Kirupians...I have seem to have hit a brick wall adding Mod\_Rewrite to a site. The site is PHP/MySQL driven and includes a product database. The products are arranged in a category/product format. The Mod\_rewrite…

---

## [Bitmap hue shift with custom palette? Help!](https://forum.kirupa.com/t/bitmap-hue-shift-with-custom-palette-help/282971)

<div class="topic-metadata">

**Author:** [@frankichiro](https://forum.kirupa.com/u/frankichiro)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 7:47pm UTC](https://forum.kirupa.com/t/bitmap-hue-shift-with-custom-palette-help/282971 "2009-02-28T19:47:11Z")

</div>

Hi everybody! So I've got this idea, but I don't know how to do it. How do you shift the colors of a bitmap image, with a red/yellow cloud, so that red becomes orange, then yellow, then orange, then red again? The ye…

---

## [XML Node Variables?](https://forum.kirupa.com/t/xml-node-variables/282970)

<div class="topic-metadata">

**Author:** [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 7:20pm UTC](https://forum.kirupa.com/t/xml-node-variables/282970 "2009-02-28T19:20:34Z")

</div>

So I have a ton of loops that look into different levels of nodes in my XML database. Here is an example: var db:XML; ...\*loading the database code...\* for each(var option:XML in db.team.rep.number.\*) { \*...lot…

---

## [Random Number help](https://forum.kirupa.com/t/random-number-help/282968)

<div class="topic-metadata">

**Author:** [@merkybeam](https://forum.kirupa.com/u/merkybeam)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 5:08pm UTC](https://forum.kirupa.com/t/random-number-help/282968 "2009-02-28T17:08:27Z")

</div>

Making a random number between lets say 0 and 99 is relatively straight forward using the Math.random class What is the best way to create 100 unique random numbers from between 0 and 99 where no random number is repe…

---

## [Testing Collision Between Multiple Object Of The Same Class](https://forum.kirupa.com/t/testing-collision-between-multiple-object-of-the-same-class/282966)

<div class="topic-metadata">

**Author:** [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 4:06pm UTC](https://forum.kirupa.com/t/testing-collision-between-multiple-object-of-the-same-class/282966 "2009-02-28T16:06:54Z")

</div>

Okay, so I have a function on the Main Timeline that creates an instance of the class Ball once every 60 frames (1 second). In the class code for Ball I have this: package { import flash.display.MovieClip; i…

---

## [Preloade Multiple Elements](https://forum.kirupa.com/t/preloade-multiple-elements/282962)

<div class="topic-metadata">

**Author:** [@obmon](https://forum.kirupa.com/u/obmon)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 1:59pm UTC](https://forum.kirupa.com/t/preloade-multiple-elements/282962 "2009-02-28T13:59:29Z")

</div>

Hello, Let's say I have a movie clip.. it's a dynamically created movie clip. In this movie clip i want to put several other movie clips that have other content being loaded into them. Such as a jpeg image, a library r…

---

## [XML and List component](https://forum.kirupa.com/t/xml-and-list-component/282956)

<div class="topic-metadata">

**Author:** [@bgflasher](https://forum.kirupa.com/u/bgflasher)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 8:01am UTC](https://forum.kirupa.com/t/xml-and-list-component/282956 "2009-02-28T08:01:01Z")

</div>

Hello to all! That's my first post here and I am happy to be part of kirupa flash community. Well. I'll tell you about my problem. I am developing a flash audio player that streams audio(radio stations) from a flash medi…

---

## [Hmm.. I need some help with a function reading a "password"?](https://forum.kirupa.com/t/hmm-i-need-some-help-with-a-function-reading-a-password/282955)

<div class="topic-metadata">

**Author:** [@Maxorz](https://forum.kirupa.com/u/Maxorz)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 7:53am UTC](https://forum.kirupa.com/t/hmm-i-need-some-help-with-a-function-reading-a-password/282955 "2009-02-28T07:53:26Z")

</div>

Hello! I just started learning flash and actions and stuff so to practice I'm making this little totally random game of a guy that starts playing a guitar and then goes to the space and weird stuff \>\< haha, anyway! The…

---

## [\_visible.variable not updating correctly](https://forum.kirupa.com/t/-visible-variable-not-updating-correctly/282953)

<div class="topic-metadata">

**Author:** [@ImSoConfused84](https://forum.kirupa.com/u/ImSoConfused84)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 5:14am UTC](https://forum.kirupa.com/t/-visible-variable-not-updating-correctly/282953 "2009-02-28T05:14:38Z")

</div>

Hello Everyone, I am a little new to actionscript and I have run into a wall that I can't break down. Basically, I am using the \_visible. command to turn on and off some overlapping movie objects (it's a complex actio…

---

## [Strange unidentifiable object](https://forum.kirupa.com/t/strange-unidentifiable-object/282952)

<div class="topic-metadata">

**Author:** [@samoscratch](https://forum.kirupa.com/u/samoscratch)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 4:26am UTC](https://forum.kirupa.com/t/strange-unidentifiable-object/282952 "2009-02-28T04:26:57Z")

</div>

Hello to all, I've recently started to modify a Website that I didn't create (Developer left company) and all in all it's going well, except for one little thing. On any page where an item is displayed such as this: h…

---

## [Help With a Flash Contact Form](https://forum.kirupa.com/t/help-with-a-flash-contact-form/282950)

<div class="topic-metadata">

**Author:** [@rudy\_b](https://forum.kirupa.com/u/rudy_b)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 3:31am UTC](https://forum.kirupa.com/t/help-with-a-flash-contact-form/282950 "2009-02-28T03:31:31Z")

</div>

I have a form now that when submitted it uses the getURL function to post to a php page and then loads a blank confirmation page. But, I would like to use my existing form (that is part of the template, with a "send" but…

---

## [Preloader to load external .txt files?](https://forum.kirupa.com/t/preloader-to-load-external-txt-files/282947)

<div class="topic-metadata">

**Author:** [@nufish](https://forum.kirupa.com/u/nufish)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 3:10am UTC](https://forum.kirupa.com/t/preloader-to-load-external-txt-files/282947 "2009-02-28T03:10:40Z")

</div>

I have made a preloader for my content, where my content is .txt files that are loaded into a movieclip that fades in with alpha. But if I upload my files the content in the .txt files do not fade in smoothly, the just…

---

## [hasGlyphs always returns false](https://forum.kirupa.com/t/hasglyphs-always-returns-false/282945)

<div class="topic-metadata">

**Author:** [@that1guy](https://forum.kirupa.com/u/that1guy)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 2:19am UTC](https://forum.kirupa.com/t/hasglyphs-always-returns-false/282945 "2009-02-28T02:19:24Z")

</div>

I want to go through the text in a TextField and switch each and only those characters which cannot be represented in the font of the TextField over to a different font (non-standard characters such as a not equal sign ≠…

---

## [Loading Image Underneath Flash?](https://forum.kirupa.com/t/loading-image-underneath-flash/282942)

<div class="topic-metadata">

**Author:** [@dColumbus](https://forum.kirupa.com/u/dColumbus)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 1:00am UTC](https://forum.kirupa.com/t/loading-image-underneath-flash/282942 "2009-02-28T01:00:42Z")

</div>

So here's the problem: Flash and Flex do a great job preloading themselves... however, they are big enough that they take forever to even get to that point... so the user on a slower connection sits and waits with a bl…

---

## [\[AS2\] Returning getSelectedItem().label in a list component?](https://forum.kirupa.com/t/as2-returning-getselecteditem-label-in-a-list-component/282939)

<div class="topic-metadata">

**Author:** [@Lurker](https://forum.kirupa.com/u/Lurker)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 11:42pm UTC](https://forum.kirupa.com/t/as2-returning-getselecteditem-label-in-a-list-component/282939 "2009-02-27T23:42:20Z")

</div>

Okay, so I have this code: if (get\_slot() == "Save Slot 1") { function loadXML(loaded) { if (loaded) { link = this.firstChild.childNodes\[0\].childNodes\[0\].firstChild.nodeValue; link.text = link; } else { …

---

## [HTML link to website AND ALSO link to location in SWF .... is it possible?](https://forum.kirupa.com/t/html-link-to-website-and-also-link-to-location-in-swf-is-it-possible/282936)

<div class="topic-metadata">

**Author:** [@rrenderman](https://forum.kirupa.com/u/rrenderman)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 11:29pm UTC](https://forum.kirupa.com/t/html-link-to-website-and-also-link-to-location-in-swf-is-it-possible/282936 "2009-02-27T23:29:23Z")

</div>

ok, I have a 90% all flash-site and when u click news .... webpage splits up in HTML blended with flash in a page called news.asp (buttons are in flash and content in asp bellow) When loceted on news.asp and you clic…

---

## [Custom scrollbar with easing?](https://forum.kirupa.com/t/custom-scrollbar-with-easing/282935)

<div class="topic-metadata">

**Author:** [@jpearson311](https://forum.kirupa.com/u/jpearson311)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 10:01pm UTC](https://forum.kirupa.com/t/custom-scrollbar-with-easing/282935 "2009-02-27T22:01:08Z")

</div>

I have a dynamic textfield that loads an xml file and I'm looking for a good tutorial on how to create a custom scrollbar component to scroll the textfield with easing. Does anyone know of a good one? Thanks! Jesse

---

## [Scale photo galley image proportionally](https://forum.kirupa.com/t/scale-photo-galley-image-proportionally/282934)

<div class="topic-metadata">

**Author:** [@psi\_design](https://forum.kirupa.com/u/psi_design)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 9:22pm UTC](https://forum.kirupa.com/t/scale-photo-galley-image-proportionally/282934 "2009-02-27T21:22:03Z")

</div>

Hi everybody, I'm building a full bowser photo galley that adjusts to the size and shape of the browser. I would like to have the main photos scale proportionally to the height of the stage. But I'm running into some i…

---

## [Dynamically loading multiple movie clips](https://forum.kirupa.com/t/dynamically-loading-multiple-movie-clips/282930)

<div class="topic-metadata">

**Author:** [@jeros10](https://forum.kirupa.com/u/jeros10)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 8:31pm UTC](https://forum.kirupa.com/t/dynamically-loading-multiple-movie-clips/282930 "2009-02-27T20:31:22Z")

</div>

I want to dynamically load one image into one movie clip, and do the same for other movie clips......souds like it should be easy, but for some reason i can't figure it out. any thoughts? thanks!

---

## [Place button/link in loaded swf](https://forum.kirupa.com/t/place-button-link-in-loaded-swf/282928)

<div class="topic-metadata">

**Author:** [@rondog](https://forum.kirupa.com/u/rondog)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 8:22pm UTC](https://forum.kirupa.com/t/place-button-link-in-loaded-swf/282928 "2009-02-27T20:22:42Z")

</div>

I am loading a SWF into a placeHolder. I dont have the FLA for the loaded swf, but need to place a link in it. Is that possible?

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

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