# programming

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

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

**Page:** 601

---

## [Declaring variables only once](https://forum.kirupa.com/t/declaring-variables-only-once/302333)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [December 27, 2009, 4:52pm UTC](https://forum.kirupa.com/t/declaring-variables-only-once/302333 "2009-12-27T16:52:43Z")

</div>

Hello, I have a simple math game where the user enters his answer and clicks a button. The problem I am having is that if the answer is wrong, the numbers in the question do not change on the screen but but in the action…

---

## [\[Flash8\]Thumbnail gallery not passing right vars](https://forum.kirupa.com/t/flash8-thumbnail-gallery-not-passing-right-vars/302329)

<div class="topic-metadata">

**Author:** [@mentha](https://forum.kirupa.com/u/mentha)\
**Replies:** 0\
**Last updated:** [December 27, 2009, 1:51pm UTC](https://forum.kirupa.com/t/flash8-thumbnail-gallery-not-passing-right-vars/302329 "2009-12-27T13:51:09Z")

</div>

I'm struggling with my XML thumbnails gallery. The gallery itself is set up without a problem, nice grid of images created, including a listener etc. But then... In my mc.onRelease function, I can't the the node ID to pa…

---

## [Nested IFs](https://forum.kirupa.com/t/nested-ifs/302326)

<div class="topic-metadata">

**Author:** [@mrblonde](https://forum.kirupa.com/u/mrblonde)\
**Replies:** 0\
**Last updated:** [December 27, 2009, 12:47pm UTC](https://forum.kirupa.com/t/nested-ifs/302326 "2009-12-27T12:47:55Z")

</div>

Hi, I hope you can help \[image\] I have a if statement that first checks to see if the enter key is pressed. Although i cant figure out how to to nest futher statements with in that initial statement. At the moment I'…

---

## [Is it possible to stop all actionscripts?](https://forum.kirupa.com/t/is-it-possible-to-stop-all-actionscripts/302324)

<div class="topic-metadata">

**Author:** [@yarafashion](https://forum.kirupa.com/u/yarafashion)\
**Replies:** 0\
**Last updated:** [December 27, 2009, 10:06am UTC](https://forum.kirupa.com/t/is-it-possible-to-stop-all-actionscripts/302324 "2009-12-27T10:06:12Z")

</div>

Hello, Is it possible to stop all actionscripts with maybe another actionscript? Because I've some trouble with an actionscript that wouldn't stop playing, even if I use the stop;() command.

---

## [Video Format Total Solution: How to Convert and Edit Video on Windows/Mac](https://forum.kirupa.com/t/video-format-total-solution-how-to-convert-and-edit-video-on-windows-mac/302321)

<div class="topic-metadata">

**Author:** [@goomeyy](https://forum.kirupa.com/u/goomeyy)\
**Replies:** 0\
**Last updated:** [December 27, 2009, 7:48am UTC](https://forum.kirupa.com/t/video-format-total-solution-how-to-convert-and-edit-video-on-windows-mac/302321 "2009-12-27T07:48:27Z")

</div>

More and More video formats are coming out with different video encoders and it makes our spare time more and more colorful. However, it is not to say that there is no problems. Actually, different video formats make it …

---

## [DisplayObject error](https://forum.kirupa.com/t/displayobject-error/302320)

<div class="topic-metadata">

**Author:** [@phastings](https://forum.kirupa.com/u/phastings)\
**Replies:** 0\
**Last updated:** [December 27, 2009, 6:53am UTC](https://forum.kirupa.com/t/displayobject-error/302320 "2009-12-27T06:53:14Z")

</div>

i'm looping though a display object and trying to reset some button. the issue i'm having is i'm getting and error: 1119: Access of possibly undefined property menuText through a reference with static type flash.display…

---

## [Dynamically compositing a movieclip](https://forum.kirupa.com/t/dynamically-compositing-a-movieclip/302319)

<div class="topic-metadata">

**Author:** [@ls\_ac](https://forum.kirupa.com/u/ls_ac)\
**Replies:** 0\
**Last updated:** [December 27, 2009, 3:44am UTC](https://forum.kirupa.com/t/dynamically-compositing-a-movieclip/302319 "2009-12-27T03:44:21Z")

</div>

I want to dynamically create a movieclip and draw a different image (via the mc.graphics functions) onto each of three frames. Eg: I want to draw a red square in frame one, a blue circle in frame two, and a green line i…

---

## [gotoAndPlay Animation](https://forum.kirupa.com/t/gotoandplay-animation/302317)

<div class="topic-metadata">

**Author:** [@Galaxy\_Turbo](https://forum.kirupa.com/u/Galaxy_Turbo)\
**Replies:** 0\
**Last updated:** [December 27, 2009, 1:23am UTC](https://forum.kirupa.com/t/gotoandplay-animation/302317 "2009-12-27T01:23:09Z")

</div>

Okay, so I’m working on a game for my design course, it’s a two player beat-em-up game, but right now I’m really stuck and quite desperate for help. I’m quite inexperienced with flash, and this is my first major flash p…

---

## [Need help with CSS layout](https://forum.kirupa.com/t/need-help-with-css-layout/302316)

<div class="topic-metadata">

**Author:** [@blimpman](https://forum.kirupa.com/u/blimpman)\
**Replies:** 0\
**Last updated:** [December 27, 2009, 12:11am UTC](https://forum.kirupa.com/t/need-help-with-css-layout/302316 "2009-12-27T00:11:46Z")

</div>

I'm trying to attempt this layout but not 100% sure it's possible. LAYOUT EXAMPLE: \[image\] The fullscreen background image will be done using the supersized 2.0 project. The orange bar at the bottom will act as th…

---

## [Copy an Image/Sprite/DisplayObject](https://forum.kirupa.com/t/copy-an-image-sprite-displayobject/302315)

<div class="topic-metadata">

**Author:** [@brunoja](https://forum.kirupa.com/u/brunoja)\
**Replies:** 0\
**Last updated:** [December 26, 2009, 11:26pm UTC](https://forum.kirupa.com/t/copy-an-image-sprite-displayobject/302315 "2009-12-26T23:26:00Z")

</div>

Hello! I load an png image and add it to the display list. Now I want to add this image more than once, like a pinball game there could be 3,4,5 balls, all with the same image. But I cant add the same image reference m…

---

## [Background that moves - Moving Movieclip](https://forum.kirupa.com/t/background-that-moves-moving-movieclip/302313)

<div class="topic-metadata">

**Author:** [@Snivvle](https://forum.kirupa.com/u/Snivvle)\
**Replies:** 0\
**Last updated:** [December 26, 2009, 9:19pm UTC](https://forum.kirupa.com/t/background-that-moves-moving-movieclip/302313 "2009-12-26T21:19:09Z")

</div>

I have a movieclip which I move, acting as a background on one of my frames. When someone goes to frame 20, for example, the moving movieclip is added to the frame, and it moves dowe the page acting as a moving backgroun…

---

## [Mouse over (display "next")](https://forum.kirupa.com/t/mouse-over-display-next/302312)

<div class="topic-metadata">

**Author:** [@luftadler](https://forum.kirupa.com/u/luftadler)\
**Replies:** 0\
**Last updated:** [December 26, 2009, 8:06pm UTC](https://forum.kirupa.com/t/mouse-over-display-next/302312 "2009-12-26T20:06:10Z")

</div>

In image gallery mouse click function is to go next image... How can i make to display \[NEXT\] when the mouse is over the image in AS2. Thank you!:egg:

---

## [Re-using objects](https://forum.kirupa.com/t/re-using-objects/302307)

<div class="topic-metadata">

**Author:** [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Replies:** 0\
**Last updated:** [December 26, 2009, 2:22pm UTC](https://forum.kirupa.com/t/re-using-objects/302307 "2009-12-26T14:22:02Z")

</div>

Is it better to create a new Object or to reset the same object over and over again? Create: function f(){ var myObject:Object = new Object(); } f(); f(); Reset: var myObject:Object = new Object(); functio…

---

## [Using the Tweener Class](https://forum.kirupa.com/t/using-the-tweener-class/302299)

<div class="topic-metadata">

**Author:** [@g1power](https://forum.kirupa.com/u/g1power)\
**Replies:** 0\
**Last updated:** [December 26, 2009, 4:08am UTC](https://forum.kirupa.com/t/using-the-tweener-class/302299 "2009-12-26T04:08:19Z")

</div>

Hello, I'm trying to use the tweener class and i need a little help, I have a container movieclip and i would like it to shrink a little bit, rotate 180 degrees and then return to its origional size. I have the first…

---

## [Movieclip over my clickable movieclip](https://forum.kirupa.com/t/movieclip-over-my-clickable-movieclip/302297)

<div class="topic-metadata">

**Author:** [@Pattt](https://forum.kirupa.com/u/Pattt)\
**Replies:** 0\
**Last updated:** [December 26, 2009, 2:00am UTC](https://forum.kirupa.com/t/movieclip-over-my-clickable-movieclip/302297 "2009-12-26T02:00:12Z")

</div>

I have a movieclip which works as a button. But I also have a movieclip which doesn't preform anything when you click it. The button-movieclip is behind the other movieclip. I want to be able to click the button even if …

---

## [5 lines of filling a textbox itemtemplate in gridview](https://forum.kirupa.com/t/5-lines-of-filling-a-textbox-itemtemplate-in-gridview/302293)

<div class="topic-metadata">

**Author:** [@Corpes](https://forum.kirupa.com/u/Corpes)\
**Replies:** 0\
**Last updated:** [December 25, 2009, 6:07pm UTC](https://forum.kirupa.com/t/5-lines-of-filling-a-textbox-itemtemplate-in-gridview/302293 "2009-12-25T18:07:29Z")

</div>

I want to insert a dynamic string to a textbox that placed in a gridview as itemtemplate. On the code in which im adding information to the gridview, i want to create a line that'll insert to the textbox a dinamic inform…

---

## [Special Characters in dynamic text field](https://forum.kirupa.com/t/special-characters-in-dynamic-text-field/302287)

<div class="topic-metadata">

**Author:** [@black\_pearl](https://forum.kirupa.com/u/black_pearl)\
**Replies:** 0\
**Last updated:** [December 25, 2009, 1:47pm UTC](https://forum.kirupa.com/t/special-characters-in-dynamic-text-field/302287 "2009-12-25T13:47:37Z")

</div>

I want to show special characters in flash I have taken a dynamic text field with HTML property = true; Some of the characters are working fine. But some of the special characters are not. For example the angle symbo…

---

## [AS3 RSS feed working locally but not online](https://forum.kirupa.com/t/as3-rss-feed-working-locally-but-not-online/302285)

<div class="topic-metadata">

**Author:** [@rohan](https://forum.kirupa.com/u/rohan)\
**Replies:** 0\
**Last updated:** [December 25, 2009, 9:40am UTC](https://forum.kirupa.com/t/as3-rss-feed-working-locally-but-not-online/302285 "2009-12-25T09:40:12Z")

</div>

Hi all, got a weird problem. I've got an RSS feed coming into my flash site. When I test this locally its all good, everything works fine, I can see the RSS feed and everything. But now when I test online, I can't s…

---

## [Will a self reference prevent garbage collection?](https://forum.kirupa.com/t/will-a-self-reference-prevent-garbage-collection/302277)

<div class="topic-metadata">

**Author:** [@ls\_ac](https://forum.kirupa.com/u/ls_ac)\
**Replies:** 0\
**Last updated:** [December 25, 2009, 2:35am UTC](https://forum.kirupa.com/t/will-a-self-reference-prevent-garbage-collection/302277 "2009-12-25T02:35:12Z")

</div>

Will a self reference prevent garbage collection? eg: public class Foo { private var \_self:Foo; public function Foo() { \_self = this; } } ... var f = new Foo(); f = null; Will the instantiation of Foo …

---

## [Problem: tween flickering](https://forum.kirupa.com/t/problem-tween-flickering/302274)

<div class="topic-metadata">

**Author:** [@marceloreborn](https://forum.kirupa.com/u/marceloreborn)\
**Replies:** 0\
**Last updated:** [December 25, 2009, 12:59am UTC](https://forum.kirupa.com/t/problem-tween-flickering/302274 "2009-12-25T00:59:08Z")

</div>

Hi fellas! I have a dynamic sliding menu ( various buttons added into a sprite ). When I tween the menu, the buttons flick / dance a little. How can I solve that? I've heard to use cacheAsBitmap, but it didn't work…

---

## [Load mp3 from external xml file and make to load random](https://forum.kirupa.com/t/load-mp3-from-external-xml-file-and-make-to-load-random/302273)

<div class="topic-metadata">

**Author:** [@luftadler](https://forum.kirupa.com/u/luftadler)\
**Replies:** 0\
**Last updated:** [December 25, 2009, 12:28am UTC](https://forum.kirupa.com/t/load-mp3-from-external-xml-file-and-make-to-load-random/302273 "2009-12-25T00:28:12Z")

</div>

Hi, How I can make this script lo load mp3 files via an external xml file like music.xml and if is possible to load random. Thank you! music = new Sound(); music.onSoundComplete = function() { this.…

---

## [Opening Links from XML?](https://forum.kirupa.com/t/opening-links-from-xml/302272)

<div class="topic-metadata">

**Author:** [@Mini\_Master2000](https://forum.kirupa.com/u/Mini_Master2000)\
**Replies:** 0\
**Last updated:** [December 24, 2009, 11:28pm UTC](https://forum.kirupa.com/t/opening-links-from-xml/302272 "2009-12-24T23:28:23Z")

</div>

Here is the situation, I am currently building a XML gallery. The thumbnails are created inside the FLA file, and it's driven with a XML file. When a thumbnail is clicked, it will bring up the Detail movieclip. And insid…

---

## [Christmas Special offer from 4Easysoft Studio: All Products at 30% Discount During De](https://forum.kirupa.com/t/christmas-special-offer-from-4easysoft-studio-all-products-at-30-discount-during-de/302271)

<div class="topic-metadata">

**Author:** [@merryusus](https://forum.kirupa.com/u/merryusus)\
**Replies:** 0\
**Last updated:** [December 24, 2009, 9:38pm UTC](https://forum.kirupa.com/t/christmas-special-offer-from-4easysoft-studio-all-products-at-30-discount-during-de/302271 "2009-12-24T21:38:13Z")

</div>

The exciting Christmas is coming and are you prepared well to enjoy it? Well, maybe this is a hot news for you. In order to bring more enjoyment for Christmas holiday and express the gratitude to her dear customers, 4Eas…

---

## [\[AS3\]External SWF scaling to objects outside of stage](https://forum.kirupa.com/t/as3-external-swf-scaling-to-objects-outside-of-stage/302268)

<div class="topic-metadata">

**Author:** [@pcehnaids](https://forum.kirupa.com/u/pcehnaids)\
**Replies:** 0\
**Last updated:** [December 24, 2009, 8:05pm UTC](https://forum.kirupa.com/t/as3-external-swf-scaling-to-objects-outside-of-stage/302268 "2009-12-24T20:05:33Z")

</div>

I have an swf in which objects go outside the boundaries of the stage (but are properly masked). Whenever I externally load this swf into a container it scales down to fit in the objects located off stage. EX: \[\[IMG…

---

## [Custom events within package](https://forum.kirupa.com/t/custom-events-within-package/302266)

<div class="topic-metadata">

**Author:** [@H4T](https://forum.kirupa.com/u/H4T)\
**Replies:** 0\
**Last updated:** [December 24, 2009, 6:32pm UTC](https://forum.kirupa.com/t/custom-events-within-package/302266 "2009-12-24T18:32:10Z")

</div>

I'm trying to create a custom multi-touch application that consists of a package containing about 6 classes at the moment. I'm trying to find a way to communicate between the various classes when certain custom events ha…

---

## [Need help, very easy stupid question](https://forum.kirupa.com/t/need-help-very-easy-stupid-question/302264)

<div class="topic-metadata">

**Author:** [@ChaddyD](https://forum.kirupa.com/u/ChaddyD)\
**Replies:** 0\
**Last updated:** [December 24, 2009, 5:59pm UTC](https://forum.kirupa.com/t/need-help-very-easy-stupid-question/302264 "2009-12-24T17:59:51Z")

</div>

i havent used flash since flash 8. i now have cs4 and i'm working on a new project. i'm having problems with controlling the timeline. i have a movie clip on a frame and a stop action on a different layer of the timeli…

---

## [Text problem in SWF](https://forum.kirupa.com/t/text-problem-in-swf/302261)

<div class="topic-metadata">

**Author:** [@worthless](https://forum.kirupa.com/u/worthless)\
**Replies:** 0\
**Last updated:** [December 24, 2009, 3:55pm UTC](https://forum.kirupa.com/t/text-problem-in-swf/302261 "2009-12-24T15:55:30Z")

</div>

Hello Can anybody help me in one matter? Recently whenever I tested my swf it did not show any text (static or dynamic) but if I preview the html version then it showed all the text. What is the reason and kindly h…

---

## [Instantiate using XML](https://forum.kirupa.com/t/instantiate-using-xml/302259)

<div class="topic-metadata">

**Author:** [@renton79](https://forum.kirupa.com/u/renton79)\
**Replies:** 0\
**Last updated:** [December 24, 2009, 3:02pm UTC](https://forum.kirupa.com/t/instantiate-using-xml/302259 "2009-12-24T15:02:00Z")

</div>

Hi I have an XML file with stored couple of objects: \<assets\> \<object\> \<mesh\>Sphere(60, 12)\</mesh\> \</object\> \<object\> \<mesh\>Plane(400, 200, 4, 2)\</mesh\> \</object\> \</assets\> I can r…

---

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

<div class="topic-metadata">

**Author:** [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Replies:** 0\
**Last updated:** [December 24, 2009, 11:46am UTC](https://forum.kirupa.com/t/class-instantiation-inside-class/302255 "2009-12-24T11:46:15Z")

</div>

Performance wise, is it better to instantiate inside or outside the constructor? public class example { private var \_mc:MovieClip = new Movieclip(); function example(){ } } public class example { pri…

---

## [Accessing a combobox from within a function](https://forum.kirupa.com/t/accessing-a-combobox-from-within-a-function/302254)

<div class="topic-metadata">

**Author:** [@noobie123](https://forum.kirupa.com/u/noobie123)\
**Replies:** 0\
**Last updated:** [December 24, 2009, 10:57am UTC](https://forum.kirupa.com/t/accessing-a-combobox-from-within-a-function/302254 "2009-12-24T10:57:04Z")

</div>

I have a combo box defined inside a function and want to access it from a function that is called on the OnChange event of the combo box. combo1.addEventListener(Event.CHANGE, chkAnswer); How do I access combo1 from…

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

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