# programming

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

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

**Page:** 708

---

## [Ranking? (using assoc array / objects?)](https://forum.kirupa.com/t/ranking-using-assoc-array-objects/295516)

<div class="topic-metadata">

**Author:** [@kalasdojan](https://forum.kirupa.com/u/kalasdojan)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 6:32pm UTC](https://forum.kirupa.com/t/ranking-using-assoc-array-objects/295516 "2009-08-31T18:32:36Z")

</div>

5 players are awarded points: "player 1" =\> 500 "player 2" =\> 400 "player 3" =\> 600 "player 4" =\> 100 "player 5" =\> 400 The players should now be ranked according to the points they were awarded: "rank 1" =\> "playe…

---

## [Alpha not applying to text in Button?](https://forum.kirupa.com/t/alpha-not-applying-to-text-in-button/295515)

<div class="topic-metadata">

**Author:** [@mnd](https://forum.kirupa.com/u/mnd)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 6:26pm UTC](https://forum.kirupa.com/t/alpha-not-applying-to-text-in-button/295515 "2009-08-31T18:26:24Z")

</div>

I'm making an interface with quite a few dynamically generated instances of the Button component. I'm trying to animate the buttons' alpha. The graphical elements in the buttons change alpha as expected, but the text lab…

---

## [AS3: stopping sound from overlapping](https://forum.kirupa.com/t/as3-stopping-sound-from-overlapping/295509)

<div class="topic-metadata">

**Author:** [@inspired78](https://forum.kirupa.com/u/inspired78)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 4:50pm UTC](https://forum.kirupa.com/t/as3-stopping-sound-from-overlapping/295509 "2009-08-31T16:50:39Z")

</div>

Hello! How can I control sound in flash so that: 1) the music starts when the user clicks on a play button but when they click on the play button again while the music is playing, the music DOESN'T overlap?? 2) the mus…

---

## [Layout Question - Basic Setup](https://forum.kirupa.com/t/layout-question-basic-setup/295505)

<div class="topic-metadata">

**Author:** [@woodman650](https://forum.kirupa.com/u/woodman650)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 3:12pm UTC](https://forum.kirupa.com/t/layout-question-basic-setup/295505 "2009-08-31T15:12:08Z")

</div>

Good Morning, It's been a while since I dabbled with CSS and my recent attempts don't seem to be ending well. I'm trying to build an array of layouts in an attempt to re-learn, but I've run into an issue I'm a bit stum…

---

## [Refresh / reread variables within movie](https://forum.kirupa.com/t/refresh-reread-variables-within-movie/295504)

<div class="topic-metadata">

**Author:** [@kekekiko](https://forum.kirupa.com/u/kekekiko)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 2:59pm UTC](https://forum.kirupa.com/t/refresh-reread-variables-within-movie/295504 "2009-08-31T14:59:40Z")

</div>

I have created a little virtual shop that reads the amount of money a player has and then enables different products to be bought. Eg - if someone has 200 points they can buy a ball for 20 or a bat for 200. This all work…

---

## [Reduce Lag... Help!](https://forum.kirupa.com/t/reduce-lag-help/295503)

<div class="topic-metadata">

**Author:** [@jebego](https://forum.kirupa.com/u/jebego)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 2:44pm UTC](https://forum.kirupa.com/t/reduce-lag-help/295503 "2009-08-31T14:44:33Z")

</div>

Currently, I am creating a flash document where the main character can shoot a shotgun that has 7 bullets come out of it. This is a picture of where the bullets go and what they look like: \[image\] These are all insi…

---

## [Developing for the Wii](https://forum.kirupa.com/t/developing-for-the-wii/295499)

<div class="topic-metadata">

**Author:** [@Arelle](https://forum.kirupa.com/u/Arelle)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 1:51pm UTC](https://forum.kirupa.com/t/developing-for-the-wii/295499 "2009-08-31T13:51:51Z")

</div>

help!!! how exactly do you use the API's in order to incorporate the movement of the Wii remote in flash games? a .js is also needed right? i am having trouble researching this \[frowning\] can't find an answer anywhere …

---

## [From banners to different startpages](https://forum.kirupa.com/t/from-banners-to-different-startpages/295498)

<div class="topic-metadata">

**Author:** [@Eichen](https://forum.kirupa.com/u/Eichen)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 1:51pm UTC](https://forum.kirupa.com/t/from-banners-to-different-startpages/295498 "2009-08-31T13:51:03Z")

</div>

Lets say I have three different banners: A, B and C I have a main site in flash. Here I want to show a different startpage depending on which banner you have clicked. So if I click banner A I want to got to startpage…

---

## [MOUSE\_DOWN event and tiles](https://forum.kirupa.com/t/mouse-down-event-and-tiles/295495)

<div class="topic-metadata">

**Author:** [@experiencedRook](https://forum.kirupa.com/u/experiencedRook)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 1:33pm UTC](https://forum.kirupa.com/t/mouse-down-event-and-tiles/295495 "2009-08-31T13:33:49Z")

</div>

Hello to all on Kirupa forums, and I also want to say that this page is absolutley AWESOME. I still haven't read all the articles, but a lot what I have learned about Flash is from here. Anyway, I have a question abou…

---

## [FileReference](https://forum.kirupa.com/t/filereference/295494)

<div class="topic-metadata">

**Author:** [@Ricky55](https://forum.kirupa.com/u/Ricky55)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 12:52pm UTC](https://forum.kirupa.com/t/filereference/295494 "2009-08-31T12:52:49Z")

</div>

Hi I've been using file reference in AS3 for users to download PDF's and images. This works great as the user gets the save as dialogue box which I really like. I've now got to make sure edits to an older project th…

---

## [loaderInfo.parameters when URLRequestMethod.POST](https://forum.kirupa.com/t/loaderinfo-parameters-when-urlrequestmethod-post/295493)

<div class="topic-metadata">

**Author:** [@omnivibe](https://forum.kirupa.com/u/omnivibe)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 12:51pm UTC](https://forum.kirupa.com/t/loaderinfo-parameters-when-urlrequestmethod-post/295493 "2009-08-31T12:51:47Z")

</div>

I have something like the following code: var req:URLRequest = new URLRequest('child.swf'); var vars:URLVariables = new URLVariables(); vars.foo = 'bar'; vars.hello = 'world'; req.data = vars; req.method = URLRequest…

---

## [Xml Grid - new issue to be resolved!](https://forum.kirupa.com/t/xml-grid-new-issue-to-be-resolved/295492)

<div class="topic-metadata">

**Author:** [@inspired78](https://forum.kirupa.com/u/inspired78)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 12:18pm UTC](https://forum.kirupa.com/t/xml-grid-new-issue-to-be-resolved/295492 "2009-08-31T12:18:35Z")

</div>

Hey peeps! I've used the XML grid photo gallery on my website that was featured in a tutorial on this website: http://www.republicofcode.com/tutorials/flash/as3gridgallery/index.php. However, whenever I click on anoth…

---

## [Navigation buttons error](https://forum.kirupa.com/t/navigation-buttons-error/295491)

<div class="topic-metadata">

**Author:** [@inspired78](https://forum.kirupa.com/u/inspired78)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 12:16pm UTC](https://forum.kirupa.com/t/navigation-buttons-error/295491 "2009-08-31T12:16:51Z")

</div>

Hey peeps My three navigation buttons on my website ('but1', 'but2', 'but3') are programmed to go to each section on my timeline: 'home', 'pics' and 'contact'. However, whenever I click on my homepage button (but1), …

---

## [Full Browser not working with addChild](https://forum.kirupa.com/t/full-browser-not-working-with-addchild/295490)

<div class="topic-metadata">

**Author:** [@ttmt](https://forum.kirupa.com/u/ttmt)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 11:04am UTC](https://forum.kirupa.com/t/full-browser-not-working-with-addchild/295490 "2009-08-31T11:04:35Z")

</div>

Full Browser not working with addChild Hi all I'm working on a full browser site - it has 3 MovieClips, header\_mc, body\_mc and footer\_mc. When the browser resizes, the header and footer stay the same height and th…

---

## [Content assist in Flex](https://forum.kirupa.com/t/content-assist-in-flex/295489)

<div class="topic-metadata">

**Author:** [@nook](https://forum.kirupa.com/u/nook)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 10:50am UTC](https://forum.kirupa.com/t/content-assist-in-flex/295489 "2009-08-31T10:50:07Z")

</div>

Is it possible to make the content assist in Flex Builder to pop up as soon as I start typing and not just after pressing CTRL+SPACE? It does pop up by itself after a '.' (foo.) or a ':' (var foo:). But to get a list…

---

## [Button to put data into an external swf](https://forum.kirupa.com/t/button-to-put-data-into-an-external-swf/295477)

<div class="topic-metadata">

**Author:** [@As2\_Kills](https://forum.kirupa.com/u/As2_Kills)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 7:00am UTC](https://forum.kirupa.com/t/button-to-put-data-into-an-external-swf/295477 "2009-08-31T07:00:49Z")

</div>

\[COLOR=Black\]\[COLOR=#1F497D\]How can I set up a button, when clicked puts a string into a newly created swf file which is then saved. \[/COLOR\]\[/COLOR\] \[COLOR=Black\]\[COLOR=#1F497D\] \[/COLOR\]\[/COLOR\] \[COLOR=Black\]\[COLOR=#1F…

---

## [Help with animating a wire being plugged into socket](https://forum.kirupa.com/t/help-with-animating-a-wire-being-plugged-into-socket/295476)

<div class="topic-metadata">

**Author:** [@megawinks](https://forum.kirupa.com/u/megawinks)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 6:41am UTC](https://forum.kirupa.com/t/help-with-animating-a-wire-being-plugged-into-socket/295476 "2009-08-31T06:41:52Z")

</div>

Hi there, I'm trying to animate this scene where the plug at the end of a blue wire would snap-in to the white colored socket. Its a simple process, but the tricky part is that I have to make it interactive. In other w…

---

## [DHTML help~ (Newb)](https://forum.kirupa.com/t/dhtml-help-newb/295472)

<div class="topic-metadata">

**Author:** [@DumbNub](https://forum.kirupa.com/u/DumbNub)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 4:20am UTC](https://forum.kirupa.com/t/dhtml-help-newb/295472 "2009-08-31T04:20:55Z")

</div>

Hello there! I’m kinda new to javascript and dhtml. If my question is moronic I’m sorry :hair: really trying! Anyway, it goes like this… I want to make this prompt, it asks for your age, you put in a number, below 60 …

---

## [Why Flash CS4](https://forum.kirupa.com/t/why-flash-cs4/295471)

<div class="topic-metadata">

**Author:** [@ash\_at\_risk](https://forum.kirupa.com/u/ash_at_risk)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 3:56am UTC](https://forum.kirupa.com/t/why-flash-cs4/295471 "2009-08-31T03:56:54Z")

</div>

hello friends, this may sound wacky, I m quite comfortable with Flash CS3, why should i install Flash CS4, i need advice becoz i m little aware of the differences b/w flash cs3 & flash cs4, doz it responds slow on 512 mb…

---

## [Font Embedding - Library versus dynamic textField object](https://forum.kirupa.com/t/font-embedding-library-versus-dynamic-textfield-object/295470)

<div class="topic-metadata">

**Author:** [@Zarniwoop](https://forum.kirupa.com/u/Zarniwoop)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 3:08am UTC](https://forum.kirupa.com/t/font-embedding-library-versus-dynamic-textfield-object/295470 "2009-08-31T03:08:41Z")

</div>

Is there any difference or penalty for embedding fonts into a AS3 project using the library as opposed to placing a dynamic text field off the side of the stage with font embedding turned on? It seems using a dynamic t…

---

## [\[as3\] arrange menu dynamically](https://forum.kirupa.com/t/as3-arrange-menu-dynamically/295469)

<div class="topic-metadata">

**Author:** [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 2:59am UTC](https://forum.kirupa.com/t/as3-arrange-menu-dynamically/295469 "2009-08-31T02:59:22Z")

</div>

Good evening Kirupa friends: Im creating a menu of 10 items and I want to arrange their x and y positions without writing too many lines of code... so this is what i got so far. //these are my menu items that are re…

---

## [String Handling](https://forum.kirupa.com/t/string-handling/295467)

<div class="topic-metadata">

**Author:** [@kyan](https://forum.kirupa.com/u/kyan)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 1:47am UTC](https://forum.kirupa.com/t/string-handling/295467 "2009-08-31T01:47:22Z")

</div>

Hello. I have a question..and if someone could answer to me or tell me where to look at. How string handling can be used to add interactivity to a Flash movie? Thanks

---

## [Where to put "IF"](https://forum.kirupa.com/t/where-to-put-if/295465)

<div class="topic-metadata">

**Author:** [@photosteve13](https://forum.kirupa.com/u/photosteve13)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 1:31am UTC](https://forum.kirupa.com/t/where-to-put-if/295465 "2009-08-31T01:31:39Z")

</div>

I bought a flash template, and now want to add a button to connect to a HTML page (full screen), if the button pushed says "Portfolio" The buttons are generated in the code, and are of two types, \_btnGall for the flash …

---

## [TypeError: Error #2007, when initializing ENTER\_FRAME function with dynamic MCs](https://forum.kirupa.com/t/typeerror-error-2007-when-initializing-enter-frame-function-with-dynamic-mcs/295461)

<div class="topic-metadata">

**Author:** [@fjckls](https://forum.kirupa.com/u/fjckls)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 11:42pm UTC](https://forum.kirupa.com/t/typeerror-error-2007-when-initializing-enter-frame-function-with-dynamic-mcs/295461 "2009-08-30T23:42:13Z")

</div>

I have three dynamically created MCs on stage and when I press on first one I want to initialize ENTER\_FRAME function , but Im getting this error: TypeError: Error #2007: Parameter listener must be non-null. at fl…

---

## [SWFs start with a white blink when viewed online](https://forum.kirupa.com/t/swfs-start-with-a-white-blink-when-viewed-online/295459)

<div class="topic-metadata">

**Author:** [@briotron](https://forum.kirupa.com/u/briotron)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 11:24pm UTC](https://forum.kirupa.com/t/swfs-start-with-a-white-blink-when-viewed-online/295459 "2009-08-30T23:24:52Z")

</div>

This is not a problem I'm familiar with, haven't seen this with anything else I've published online. An example of it is viewable here: http://www.briotron.com/Suehiro/001-Logo%20Page.html The .swfs that make up thi…

---

## [Problem trying to mask a SWF file imported with loadMovie()](https://forum.kirupa.com/t/problem-trying-to-mask-a-swf-file-imported-with-loadmovie/295458)

<div class="topic-metadata">

**Author:** [@dodg](https://forum.kirupa.com/u/dodg)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 10:51pm UTC](https://forum.kirupa.com/t/problem-trying-to-mask-a-swf-file-imported-with-loadmovie/295458 "2009-08-30T22:51:43Z")

</div>

Hi all, Not sure whether I'm being too ambitious for MX 2004 but I'll outline what I'm trying to do: I'm creating a fairly basic movie which will include a blog in one of the sections. The blog posts will be quite sm…

---

## [Coldfusion function help](https://forum.kirupa.com/t/coldfusion-function-help/295457)

<div class="topic-metadata">

**Author:** [@zzxjoanw](https://forum.kirupa.com/u/zzxjoanw)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 10:22pm UTC](https://forum.kirupa.com/t/coldfusion-function-help/295457 "2009-08-30T22:22:47Z")

</div>

I have the following function: \<cfparam name="password" default=""\> \<cffunction name="passwordGen" returntype="string"\> \<cfloop index="loopCount" from="0" to="4"\> \<cfset passwordGen = #password# & #toString(RandRange…

---

## [Using Cellrenderer in a datagrid to add Movieclip to a column](https://forum.kirupa.com/t/using-cellrenderer-in-a-datagrid-to-add-movieclip-to-a-column/295455)

<div class="topic-metadata">

**Author:** [@blackcoma](https://forum.kirupa.com/u/blackcoma)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 10:02pm UTC](https://forum.kirupa.com/t/using-cellrenderer-in-a-datagrid-to-add-movieclip-to-a-column/295455 "2009-08-30T22:02:01Z")

</div>

I created a column in a datagrid which displays a movieclip. How can I control which frame is displayed in each row? using this.parent from inside the movieclip doesn't work. What's the path to the specific row in whic…

---

## [AS3 - Access class functions from inside an instance](https://forum.kirupa.com/t/as3-access-class-functions-from-inside-an-instance/295450)

<div class="topic-metadata">

**Author:** [@cordlesspaper](https://forum.kirupa.com/u/cordlesspaper)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 4:14pm UTC](https://forum.kirupa.com/t/as3-access-class-functions-from-inside-an-instance/295450 "2009-08-30T16:14:45Z")

</div>

I am attempting to create a fluid layout which will house a rather wide animation. I want to be able to set variables from inside the timeline of the instance of the class. Class for creating a fluid object on the sta…

---

## [addChild can't add dynamically created mcs?](https://forum.kirupa.com/t/addchild-cant-add-dynamically-created-mcs/295449)

<div class="topic-metadata">

**Author:** [@OMG](https://forum.kirupa.com/u/OMG)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 4:07pm UTC](https://forum.kirupa.com/t/addchild-cant-add-dynamically-created-mcs/295449 "2009-08-30T16:07:46Z")

</div>

I used a loop to create a series of instances of a class called "Ball": ball\_0, ball\_1, ball\_2, etc. But then somewhere else I need to add them on the stage. When I use stage.addChild(Ball("ball\_"+ballNum)) it gives me…

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

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