# programming

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

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

**Page:** 628

---

## [Memory Game - With a Twist!](https://forum.kirupa.com/t/memory-game-with-a-twist/300575)

<div class="topic-metadata">

**Author:** [@bluemuppet](https://forum.kirupa.com/u/bluemuppet)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 11:08pm UTC](https://forum.kirupa.com/t/memory-game-with-a-twist/300575 "2009-11-23T23:08:43Z")

</div>

Hey all, I am scratching my noodle on this one. I want to create a simple 'memory' game, like the simple card game versions that are all over the interwebs, but rather than using AS to generate a set 'grid' of the s…

---

## [Button w/ two functions](https://forum.kirupa.com/t/button-w-two-functions/300573)

<div class="topic-metadata">

**Author:** [@arctavian](https://forum.kirupa.com/u/arctavian)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 10:16pm UTC](https://forum.kirupa.com/t/button-w-two-functions/300573 "2009-11-23T22:16:06Z")

</div>

I'm trying to get a button to do two functions, but its only doing the last statement. Could someone look at my code and tell what I'm doing wrong.

---

## [UIloader not completely unloading (music)](https://forum.kirupa.com/t/uiloader-not-completely-unloading-music/300572)

<div class="topic-metadata">

**Author:** [@jesseclark](https://forum.kirupa.com/u/jesseclark)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 9:59pm UTC](https://forum.kirupa.com/t/uiloader-not-completely-unloading-music/300572 "2009-11-23T21:59:30Z")

</div>

I have an application that calls external SWF files through the UILoader component. I do this so I can keep the file size smaller in the beginning and only load objects as the user needs. (if there is a better way to do …

---

## [Simple OOP best practice questions](https://forum.kirupa.com/t/simple-oop-best-practice-questions/300570)

<div class="topic-metadata">

**Author:** [@albino](https://forum.kirupa.com/u/albino)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 9:36pm UTC](https://forum.kirupa.com/t/simple-oop-best-practice-questions/300570 "2009-11-23T21:36:42Z")

</div>

Hi, I'd consider myself fairly competent at flash, and I understand most principles regarding OOP, but I am still having a little trouble merging it all together. I have 2 simple (I hope) questions: How do you fee…

---

## [Rotation and Matrices Help](https://forum.kirupa.com/t/rotation-and-matrices-help/300567)

<div class="topic-metadata">

**Author:** [@Nejuf](https://forum.kirupa.com/u/Nejuf)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 7:14pm UTC](https://forum.kirupa.com/t/rotation-and-matrices-help/300567 "2009-11-23T19:14:50Z")

</div>

Hello, I am using Corey Oneil's collision detection kit, but I am having a problem with rotation. In my code I have: myItem.rotationY = 180; However, during a collision detection, having it rotated like this caus…

---

## [How do Frames and the TimeLine work in AS3? Any thorough guides?](https://forum.kirupa.com/t/how-do-frames-and-the-timeline-work-in-as3-any-thorough-guides/300564)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 6:32pm UTC](https://forum.kirupa.com/t/how-do-frames-and-the-timeline-work-in-as3-any-thorough-guides/300564 "2009-11-23T18:32:46Z")

</div>

The truth is, I hate frames. I only use them for testing or debugging small projects, but other than for convenience, I only use Classes. I cannot stand not being able to add properties, and since I can't use "private" o…

---

## [Bitmap.draw and RTMP](https://forum.kirupa.com/t/bitmap-draw-and-rtmp/300562)

<div class="topic-metadata">

**Author:** [@rondog](https://forum.kirupa.com/u/rondog)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 6:08pm UTC](https://forum.kirupa.com/t/bitmap-draw-and-rtmp/300562 "2009-11-23T18:08:06Z")

</div>

I am trying to use Bitmap.draw on a streaming FLV. My streaming host is limelight and they said they have this already added to their application.xml \<AudioSampleAccess enabled="true"\>/\</AudioSampleAccess\> \<VideoSampl…

---

## [If not USA function](https://forum.kirupa.com/t/if-not-usa-function/300556)

<div class="topic-metadata">

**Author:** [@Zebda](https://forum.kirupa.com/u/Zebda)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 5:22pm UTC](https://forum.kirupa.com/t/if-not-usa-function/300556 "2009-11-23T17:22:15Z")

</div>

Trying to create a function that checks if a drop down menu value is not equal to "USA" or United States of America change the shipping value to $15. I can't seem to figure out how to format/write it properly. Can any…

---

## [Sound doesn't work when I load AS2 from AS3](https://forum.kirupa.com/t/sound-doesnt-work-when-i-load-as2-from-as3/300551)

<div class="topic-metadata">

**Author:** [@enridp](https://forum.kirupa.com/u/enridp)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 3:44pm UTC](https://forum.kirupa.com/t/sound-doesnt-work-when-i-load-as2-from-as3/300551 "2009-11-23T15:44:51Z")

</div>

Hello! I have a AS2 file which I'm loading into an AS3, everything works except the sound, I don't know why. These are the lines: LOAD AS2 from AS3: var rect:Shape = new Shape(); rect.graphics.beginFill(0xFFFFFF);…

---

## [Security Sandbox Violations](https://forum.kirupa.com/t/security-sandbox-violations/300550)

<div class="topic-metadata">

**Author:** [@flashisland](https://forum.kirupa.com/u/flashisland)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 3:32pm UTC](https://forum.kirupa.com/t/security-sandbox-violations/300550 "2009-11-23T15:32:42Z")

</div>

I recently installed Flex to use the memory profiler. It works great and I am able to debug my files, however now whenever I visit a web page with flash a flash movie I get this same error: Error #2044: Unhandled secu…

---

## [Mysql row counting](https://forum.kirupa.com/t/mysql-row-counting/300549)

<div class="topic-metadata">

**Author:** [@drummer392](https://forum.kirupa.com/u/drummer392)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 3:19pm UTC](https://forum.kirupa.com/t/mysql-row-counting/300549 "2009-11-23T15:19:01Z")

</div>

I have a table called pages. In this table are columns called 'is\_cat' and 'catid'. 'cat\_id' is a column that gives each page a category id. 'is\_cat' tells whether the page is a regular page or subpage by giving a '…

---

## [How to make this News Headline display feature?](https://forum.kirupa.com/t/how-to-make-this-news-headline-display-feature/300547)

<div class="topic-metadata">

**Author:** [@westy2006](https://forum.kirupa.com/u/westy2006)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 2:53pm UTC](https://forum.kirupa.com/t/how-to-make-this-news-headline-display-feature/300547 "2009-11-23T14:53:08Z")

</div>

Hi everyone \[smile\] Does anyone know a tutorial or template to create a similar news display feature like the one shown on the homepage here http://www.uefa.com/ The news headlines and thumbnails are displayed and you …

---

## [Projector external files don't work at Windows](https://forum.kirupa.com/t/projector-external-files-dont-work-at-windows/300545)

<div class="topic-metadata">

**Author:** [@ethernal](https://forum.kirupa.com/u/ethernal)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 2:20pm UTC](https://forum.kirupa.com/t/projector-external-files-dont-work-at-windows/300545 "2009-11-23T14:20:57Z")

</div>

Hi, I have a projector published from Mac into two formats: Mac and Windows. The main movie loads an intro flv, and it has a button to skip which loads another swf. When I run the .app in MacOS, it works fine. The vi…

---

## [Flash 10 - crashes- help me](https://forum.kirupa.com/t/flash-10-crashes-help-me/300543)

<div class="topic-metadata">

**Author:** [@revo999](https://forum.kirupa.com/u/revo999)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 1:23pm UTC](https://forum.kirupa.com/t/flash-10-crashes-help-me/300543 "2009-11-23T13:23:43Z")

</div>

I have flash-10 , when i increase the amount of movie-clips on stage , it crashes anyway to avoid the crash

---

## [Removing objects from Array](https://forum.kirupa.com/t/removing-objects-from-array/300541)

<div class="topic-metadata">

**Author:** [@KimboRambo](https://forum.kirupa.com/u/KimboRambo)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 1:03pm UTC](https://forum.kirupa.com/t/removing-objects-from-array/300541 "2009-11-23T13:03:29Z")

</div>

Hi, sorry to bother but I really can't get this to work. I'm trying to remove all objects from an array, and then emptying the array using splice. I'm restarting the game, removing all objects etc so that I can add the…

---

## [Icon on tab](https://forum.kirupa.com/t/icon-on-tab/300539)

<div class="topic-metadata">

**Author:** [@hans667](https://forum.kirupa.com/u/hans667)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 11:45am UTC](https://forum.kirupa.com/t/icon-on-tab/300539 "2009-11-23T11:45:00Z")

</div>

hello! Please give a hint, how bring image with icon of site on tab?

---

## [Resize movieClip based on my xml Content](https://forum.kirupa.com/t/resize-movieclip-based-on-my-xml-content/300538)

<div class="topic-metadata">

**Author:** [@vjn\_23](https://forum.kirupa.com/u/vjn_23)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 11:41am UTC](https://forum.kirupa.com/t/resize-movieclip-based-on-my-xml-content/300538 "2009-11-23T11:41:36Z")

</div>

Hi Friends, I have problem in my flash. I create scroll bar and attached one movie clip in library. Integrate with xml driven. Now the content background movieclip not resized on content height. How can i resize the mo…

---

## [Scale content problem... (CS3)](https://forum.kirupa.com/t/scale-content-problem-cs3/300535)

<div class="topic-metadata">

**Author:** [@Varl](https://forum.kirupa.com/u/Varl)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 10:37am UTC](https://forum.kirupa.com/t/scale-content-problem-cs3/300535 "2009-11-23T10:37:19Z")

</div>

Hey Guys, I have a problem I can't figure out and I was wondering if anyone might have a suggestion. I have a photo page on which I have a movieclip (instance name - bigpic\_mc) that I use to call up external images. I…

---

## [\*\*help with Preloader\*\* use image NOT bar](https://forum.kirupa.com/t/help-with-preloader-use-image-not-bar/300534)

<div class="topic-metadata">

**Author:** [@HippieCoderAlec](https://forum.kirupa.com/u/HippieCoderAlec)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 10:08am UTC](https://forum.kirupa.com/t/help-with-preloader-use-image-not-bar/300534 "2009-11-23T10:08:05Z")

</div>

HELLO!!!!! so i am in the midst of working on a game, and i need a preloader SHOCK :!: i have one that works fine, it's a pic and some text with a load bar and a % value shown. but i don't want a damn bar, there evil!…

---

## [Genie Effect Accordian menu](https://forum.kirupa.com/t/genie-effect-accordian-menu/300531)

<div class="topic-metadata">

**Author:** [@dubbeat](https://forum.kirupa.com/u/dubbeat)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 10:04am UTC](https://forum.kirupa.com/t/genie-effect-accordian-menu/300531 "2009-11-23T10:04:22Z")

</div>

Hey, I was going to attempt to create a vertical accordion menu with a genie effect this week. So it'll be like your normal text based accordion menu but the entries will shrink and grow depending on where your mouse…

---

## [\[AS 2.0\]getChildIndex(mC)](https://forum.kirupa.com/t/as-2-0-getchildindex-mc/300529)

<div class="topic-metadata">

**Author:** [@NamikazeMinato](https://forum.kirupa.com/u/NamikazeMinato)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 9:29am UTC](https://forum.kirupa.com/t/as-2-0-getchildindex-mc/300529 "2009-11-23T09:29:17Z")

</div>

I have a series of movieclips namely alpha1,alpha2....till alpha56,inside another parent movieclip parentMc. The problem is do I have to write onPress() event actions for each alpha movieclip ? Or is there any other …

---

## [gotoAndPlay button](https://forum.kirupa.com/t/gotoandplay-button/300523)

<div class="topic-metadata">

**Author:** [@alexyackel](https://forum.kirupa.com/u/alexyackel)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 6:48am UTC](https://forum.kirupa.com/t/gotoandplay-button/300523 "2009-11-23T06:48:05Z")

</div>

hey guys...is there anyway to have a button play frames 5-10 on a movie clip inside the current frame, as well as skipping to...lets say...frame 10 of the scene? i want to create a site where buttons go to different …

---

## [Dropping a ball on an uneven surface - physics!](https://forum.kirupa.com/t/dropping-a-ball-on-an-uneven-surface-physics/300518)

<div class="topic-metadata">

**Author:** [@Kaitenshin](https://forum.kirupa.com/u/Kaitenshin)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 4:29am UTC](https://forum.kirupa.com/t/dropping-a-ball-on-an-uneven-surface-physics/300518 "2009-11-23T04:29:52Z")

</div>

I was wondering if anyone could direct me to a physics tutorial on dropping a ball on an uneven surface, for example, a slope or a jagged line. Thus the ball would bounce and change trajectory based on how fast it hit an…

---

## [Forms validation or check up issues](https://forum.kirupa.com/t/forms-validation-or-check-up-issues/300516)

<div class="topic-metadata">

**Author:** [@thevibe](https://forum.kirupa.com/u/thevibe)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 3:42am UTC](https://forum.kirupa.com/t/forms-validation-or-check-up-issues/300516 "2009-11-23T03:42:23Z")

</div>

Hi Guys, I am doing some forms in Flash Cs4 with AS3. The forms are working well, but i have a code to check if people have enter information in every field. But the verification only works for 2 field. The code is exa…

---

## [2 minute countdown timer](https://forum.kirupa.com/t/2-minute-countdown-timer/300515)

<div class="topic-metadata">

**Author:** [@spellbound55](https://forum.kirupa.com/u/spellbound55)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 1:51am UTC](https://forum.kirupa.com/t/2-minute-countdown-timer/300515 "2009-11-23T01:51:33Z")

</div>

Hi, I'm making a side scrolling flash game called Kit-Run using actionscript 2.0. I want to give each level a two minute time limit - ideally to have an enemy mc load that comes and kills you when it reaches 00:00. I'…

---

## [AS2 mc loads 1 external swf from group depending on cookies and .html location](https://forum.kirupa.com/t/as2-mc-loads-1-external-swf-from-group-depending-on-cookies-and-html-location/300513)

<div class="topic-metadata">

**Author:** [@ryanrowlett](https://forum.kirupa.com/u/ryanrowlett)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 1:02am UTC](https://forum.kirupa.com/t/as2-mc-loads-1-external-swf-from-group-depending-on-cookies-and-html-location/300513 "2009-11-23T01:02:05Z")

</div>

I am attempting to load an external swf banner into an empty movieclip (main.fla for argument), which seems straightforward enough. But the idea is that each .swf (banner) is a link to its own respective html page. I.E. …

---

## [Set \_X and \_Y value from Array](https://forum.kirupa.com/t/set--x-and--y-value-from-array/300512)

<div class="topic-metadata">

**Author:** [@brian\_nathaniel](https://forum.kirupa.com/u/brian_nathaniel)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 12:30am UTC](https://forum.kirupa.com/t/set--x-and--y-value-from-array/300512 "2009-11-23T00:30:38Z")

</div>

Hello, Here is what I am trying to do: I have four circles in four different positions. On top of each circle I have a randomly generated number. What I would like is to position the numbers randomly on top of the…

---

## [How to achieve this type of calender in AS3](https://forum.kirupa.com/t/how-to-achieve-this-type-of-calender-in-as3/300511)

<div class="topic-metadata">

**Author:** [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 11:42pm UTC](https://forum.kirupa.com/t/how-to-achieve-this-type-of-calender-in-as3/300511 "2009-11-22T23:42:16Z")

</div>

Hi Can anyone give any pointers on how to develop something like this in AS3 http://joobili.com/ Thanks Ad

---

## [Howto: inculde flex swc in flash cs4](https://forum.kirupa.com/t/howto-inculde-flex-swc-in-flash-cs4/300508)

<div class="topic-metadata">

**Author:** [@kadaj](https://forum.kirupa.com/u/kadaj)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 8:58pm UTC](https://forum.kirupa.com/t/howto-inculde-flex-swc-in-flash-cs4/300508 "2009-11-22T20:58:08Z")

</div>

A quote from flashkit.com I dont use Flex but I use .swc files with Flash all the time. Did you try adding the swc to your components folder so they show up in the components panel? (make sure to restart Flash) Adobe…

---

## [SWF Slowing Down Over Time / Having GC Issues](https://forum.kirupa.com/t/swf-slowing-down-over-time-having-gc-issues/300507)

<div class="topic-metadata">

**Author:** [@damonlee3](https://forum.kirupa.com/u/damonlee3)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 8:39pm UTC](https://forum.kirupa.com/t/swf-slowing-down-over-time-having-gc-issues/300507 "2009-11-22T20:39:26Z")

</div>

Hi all, I have a main movie in which I load two types of external movies, pages and themes. My main swf slows down which each click of one of the menu items. I've tried garbage collecting by doing and unloadAndStop f…

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

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