# programming

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

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

**Page:** 1095

---

## [Multilevel platforms for Double Dragon styled game](https://forum.kirupa.com/t/multilevel-platforms-for-double-dragon-styled-game/269757)

<div class="topic-metadata">

**Author:** [@Skribble](https://forum.kirupa.com/u/Skribble)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 5:16am UTC](https://forum.kirupa.com/t/multilevel-platforms-for-double-dragon-styled-game/269757 "2008-09-01T05:16:15Z")

</div>

Hey guys! Long time no post. I've been a busy monkey working, I've had hardly any time to pursue my own projects other than on the weekends. But I've progressed to the point now where I have most basic things in the engi…

---

## [Working with lots of random numbers (external txt file, x and y positions, etc.)](https://forum.kirupa.com/t/working-with-lots-of-random-numbers-external-txt-file-x-and-y-positions-etc/269752)

<div class="topic-metadata">

**Author:** [@morrowasted](https://forum.kirupa.com/u/morrowasted)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 3:36am UTC](https://forum.kirupa.com/t/working-with-lots-of-random-numbers-external-txt-file-x-and-y-positions-etc/269752 "2008-09-01T03:36:22Z")

</div>

Okay so I have a flash cs3 project I am working on. I am very new to the whole thing, especially to working with Actionscript. Essentially what I want to achieve is this: I have a text file full of quotes- I want to rand…

---

## [Changing the color of a input text field?](https://forum.kirupa.com/t/changing-the-color-of-a-input-text-field/269751)

<div class="topic-metadata">

**Author:** [@roach888](https://forum.kirupa.com/u/roach888)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 3:09am UTC](https://forum.kirupa.com/t/changing-the-color-of-a-input-text-field/269751 "2008-09-01T03:09:28Z")

</div>

Seen some posts of different ways, whats the right and the easiest way? I don't want it white!! Thanks

---

## [Array values mysteriously change](https://forum.kirupa.com/t/array-values-mysteriously-change/269750)

<div class="topic-metadata">

**Author:** [@vurx](https://forum.kirupa.com/u/vurx)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 3:03am UTC](https://forum.kirupa.com/t/array-values-mysteriously-change/269750 "2008-09-01T03:03:25Z")

</div>

the code below is a much simplified version but it duplicates the mysterious error. below i trace the contents of genesArray using a function and all of the cells are different, but when i trace it again they are all the…

---

## [Replay Loop](https://forum.kirupa.com/t/replay-loop/269748)

<div class="topic-metadata">

**Author:** [@Blissd](https://forum.kirupa.com/u/Blissd)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 2:43am UTC](https://forum.kirupa.com/t/replay-loop/269748 "2008-09-01T02:43:24Z")

</div>

Hi there, Thanks for taking the time to read my post. I am currently looking through an array of swf files, which is working fine, however I can not figure out how to make it all play again. My actionscript is as foll…

---

## [BitmapData.draw() glitch](https://forum.kirupa.com/t/bitmapdata-draw-glitch/269747)

<div class="topic-metadata">

**Author:** [@rosyTown](https://forum.kirupa.com/u/rosyTown)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 2:26am UTC](https://forum.kirupa.com/t/bitmapdata-draw-glitch/269747 "2008-09-01T02:26:51Z")

</div>

\[FONT=Verdana\] \[FONT=Verdana\] I have a Bitmap which I am scaling and then splicing using BitmapData.draw() along with a Matrix. Everything is working fine except for a strange glitch in the resultant Bitmap. There …

---

## [Fatal error: Call to undefined static function: domdocument::loadxml()](https://forum.kirupa.com/t/fatal-error-call-to-undefined-static-function-domdocument-loadxml/269746)

<div class="topic-metadata">

**Author:** [@java\_ftp\_er](https://forum.kirupa.com/u/java_ftp_er)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 2:23am UTC](https://forum.kirupa.com/t/fatal-error-call-to-undefined-static-function-domdocument-loadxml/269746 "2008-09-01T02:23:26Z")

</div>

\<?php //file $query = "technologies.txt"; //Create the DOM Document object from the XML returned by the query $xml = file\_get\_contents($query); $dom = new DOMDocument; $dom = DOMDocument::loadXML($xml); function xm…

---

## [Problem when instanciating a class](https://forum.kirupa.com/t/problem-when-instanciating-a-class/269745)

<div class="topic-metadata">

**Author:** [@Ismael\_92](https://forum.kirupa.com/u/Ismael_92)\
**Replies:** 0\
**Last updated:** [September 1, 2008, 1:08am UTC](https://forum.kirupa.com/t/problem-when-instanciating-a-class/269745 "2008-09-01T01:08:32Z")

</div>

In the game I'm making, I have a class called slowBall, which extends MovieClip. The class works perfectly because when I put the movieclip on the stage and test the game everything goes fine. But the problem happens w…

---

## [Hmm. I need some help. :)](https://forum.kirupa.com/t/hmm-i-need-some-help/269743)

<div class="topic-metadata">

**Author:** [@lectersmeal](https://forum.kirupa.com/u/lectersmeal)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 11:27pm UTC](https://forum.kirupa.com/t/hmm-i-need-some-help/269743 "2008-08-31T23:27:04Z")

</div>

Okay, I have a question, and I hope that I can explain it well. Inside of a movie clip, I have a button with this action: docs.addEventListener(MouseEvent.MOUSE\_DOWN, mouseDownHandlerdocs); function mouseDownHandle…

---

## [Displaying movieclip on container roll over](https://forum.kirupa.com/t/displaying-movieclip-on-container-roll-over/269741)

<div class="topic-metadata">

**Author:** [@svenski](https://forum.kirupa.com/u/svenski)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 10:23pm UTC](https://forum.kirupa.com/t/displaying-movieclip-on-container-roll-over/269741 "2008-08-31T22:23:50Z")

</div>

I'm trying to make something similar to the Vimeo video player but I can't figure out how to make the video controls visible only when you roll over the video clip. I tried creating a movieclip in the background the same…

---

## [Flash Video - pausing player until viewer presses play on startup](https://forum.kirupa.com/t/flash-video-pausing-player-until-viewer-presses-play-on-startup/269737)

<div class="topic-metadata">

**Author:** [@ciecierega](https://forum.kirupa.com/u/ciecierega)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 8:06pm UTC](https://forum.kirupa.com/t/flash-video-pausing-player-until-viewer-presses-play-on-startup/269737 "2008-08-31T20:06:54Z")

</div>

hi there, this is probably an easy one that someone could quickly send me a link or tutorial to, but usually when i embed my flash video, when i play it back, it loads and plays right away just fine. however, i think m…

---

## [Graphics draw monkey!](https://forum.kirupa.com/t/graphics-draw-monkey/269729)

<div class="topic-metadata">

**Author:** [@ventoline](https://forum.kirupa.com/u/ventoline)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 5:21pm UTC](https://forum.kirupa.com/t/graphics-draw-monkey/269729 "2008-08-31T17:21:47Z")

</div>

Hi, I have drawn graohics as part of my layout, they work fine in the sw, but in the the browser window they draw just the visibla part inside it (meaning if the window is shrunk and you resize it you would miss a pa…

---

## [Flash Drawing Board Toy / Game with Send](https://forum.kirupa.com/t/flash-drawing-board-toy-game-with-send/269724)

<div class="topic-metadata">

**Author:** [@PinkPoliceman](https://forum.kirupa.com/u/PinkPoliceman)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 4:04pm UTC](https://forum.kirupa.com/t/flash-drawing-board-toy-game-with-send/269724 "2008-08-31T16:04:24Z")

</div>

Hi, I need help creating a very simple drawing toy in Flash, all I want is a drawing board in which you can draw with a variety of colours and also rub out or just 'clear all'. Also a fill tool would be good... somethin…

---

## [Compile time Vs runtime](https://forum.kirupa.com/t/compile-time-vs-runtime/269723)

<div class="topic-metadata">

**Author:** [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 3:53pm UTC](https://forum.kirupa.com/t/compile-time-vs-runtime/269723 "2008-08-31T15:53:35Z")

</div>

Hello What is the main difference bw compile time and runtime in Flash? Like many books or articles say that the values are generated at runtime what is the meaning for this? Thanks

---

## [Difference Bw http and https](https://forum.kirupa.com/t/difference-bw-http-and-https/269722)

<div class="topic-metadata">

**Author:** [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 3:51pm UTC](https://forum.kirupa.com/t/difference-bw-http-and-https/269722 "2008-08-31T15:51:20Z")

</div>

hello what is the difference bw http and https and how they are used in terms of flash programming? thanks

---

## [Why the Jump from AS2 to AS3?](https://forum.kirupa.com/t/why-the-jump-from-as2-to-as3/269721)

<div class="topic-metadata">

**Author:** [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 3:49pm UTC](https://forum.kirupa.com/t/why-the-jump-from-as2-to-as3/269721 "2008-08-31T15:49:41Z")

</div>

Hello Can anyone please tell the major improvements in AS3 that was missing in AS2? Also what are the differences bw AS2 and AS3 programming? Thanks in advance.

---

## [Baffling error](https://forum.kirupa.com/t/baffling-error/269720)

<div class="topic-metadata">

**Author:** [@imb0red123](https://forum.kirupa.com/u/imb0red123)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 3:21pm UTC](https://forum.kirupa.com/t/baffling-error/269720 "2008-08-31T15:21:54Z")

</div>

I'm making a flash game in which each level has its own scene. When a level is completed, the movie goes to the next scene. When a level is failed, the movie goes to a blank scene and then back to that level. My reason f…

---

## [\[help\] If statement query?](https://forum.kirupa.com/t/help-if-statement-query/269712)

<div class="topic-metadata">

**Author:** [@csj16](https://forum.kirupa.com/u/csj16)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 9:27am UTC](https://forum.kirupa.com/t/help-if-statement-query/269712 "2008-08-31T09:27:43Z")

</div>

I'm trying to run a MYSQL query on my PHP page. I think I need some sort of IF STATEMENT. I'm just not sure how to even go about doing this. I need data from 2 seperate tables. From the first table (users) I need t…

---

## [SOUND: Fade in & Fade out](https://forum.kirupa.com/t/sound-fade-in-fade-out/269710)

<div class="topic-metadata">

**Author:** [@toonz\_atom](https://forum.kirupa.com/u/toonz_atom)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 7:45am UTC](https://forum.kirupa.com/t/sound-fade-in-fade-out/269710 "2008-08-31T07:45:40Z")

</div>

Hi every one \[smile\] this my first post the code below load external sound file "bg.mp3" the sound will play automatically. i have a a buuton that load FLV i want to FADE OUT the sound "bg.mp3" if i loaded the flv. a…

---

## [After last pic of xml do an action](https://forum.kirupa.com/t/after-last-pic-of-xml-do-an-action/269709)

<div class="topic-metadata">

**Author:** [@youwh](https://forum.kirupa.com/u/youwh)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 7:24am UTC](https://forum.kirupa.com/t/after-last-pic-of-xml-do-an-action/269709 "2008-08-31T07:24:12Z")

</div>

I'm trying to trigger an action at the time frame after the last picture in the xml file is loaded. I was thinking can I add a line of code in the end of the xml list with actionscript3? (like gotoAndPlay kind of scri…

---

## [Can't call function inside a movieclip?](https://forum.kirupa.com/t/cant-call-function-inside-a-movieclip/269708)

<div class="topic-metadata">

**Author:** [@cholin](https://forum.kirupa.com/u/cholin)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 7:01am UTC](https://forum.kirupa.com/t/cant-call-function-inside-a-movieclip/269708 "2008-08-31T07:01:05Z")

</div>

This is hard to explain, but basically here goes: I have a "frame" movieclip that loads images. I call frame.loadImage(the URL) and everything works. So far so good. When I put "frame" inside of another clip, named…

---

## [Sound: 2 code lines--1 error](https://forum.kirupa.com/t/sound-2-code-lines-1-error/269706)

<div class="topic-metadata">

**Author:** [@johnb816](https://forum.kirupa.com/u/johnb816)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 6:10am UTC](https://forum.kirupa.com/t/sound-2-code-lines-1-error/269706 "2008-08-31T06:10:10Z")

</div>

Hello community, I'm trying my best to learn how sound works in flash cs3. But I can't get past the simplest thing... getting an imported mp3 to play. This is my code: var s:Sound= new Sound("test1.mp3"); s.play(); F…

---

## [XML/XSL Eternal Loading w/Flash in Firefox only](https://forum.kirupa.com/t/xml-xsl-eternal-loading-w-flash-in-firefox-only/269703)

<div class="topic-metadata">

**Author:** [@kittleb](https://forum.kirupa.com/u/kittleb)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 3:09am UTC](https://forum.kirupa.com/t/xml-xsl-eternal-loading-w-flash-in-firefox-only/269703 "2008-08-31T03:09:23Z")

</div>

Hi All, I've been scouring forums and the internet high and low for a solution to the problem I'm having and I can't seem to find anything that resolves my issue. This is about XML/XSL but its being done on the client si…

---

## [My actionScript only works half the time - animate on/off](https://forum.kirupa.com/t/my-actionscript-only-works-half-the-time-animate-on-off/269701)

<div class="topic-metadata">

**Author:** [@dango](https://forum.kirupa.com/u/dango)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 2:49am UTC](https://forum.kirupa.com/t/my-actionscript-only-works-half-the-time-animate-on-off/269701 "2008-08-31T02:49:06Z")

</div>

hello, i have a basic formula i use on most websites that i make. the current site i am making is not working properly. when i open a new page, the current page does not always animate off. sometimes it does, but 50% o…

---

## [Associated databases, good or bad?](https://forum.kirupa.com/t/associated-databases-good-or-bad/269699)

<div class="topic-metadata">

**Author:** [@nburlington](https://forum.kirupa.com/u/nburlington)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 12:47am UTC](https://forum.kirupa.com/t/associated-databases-good-or-bad/269699 "2008-08-31T00:47:51Z")

</div>

I need some advice on planning a database structure. Is it a bad idea to break up your data into different databases? For example, if I am collecting: username password firstname lastname address etc and then last…

---

## [Parental Guidance Needed!](https://forum.kirupa.com/t/parental-guidance-needed/269698)

<div class="topic-metadata">

**Author:** [@slimpickinz](https://forum.kirupa.com/u/slimpickinz)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 12:46am UTC](https://forum.kirupa.com/t/parental-guidance-needed/269698 "2008-08-31T00:46:36Z")

</div>

I have a main MC, on which I have a button which dynamically loads another MC on top (like a popup). On this popup, I have a close button, which works. On the popup, I have another button which dynamically loads another …

---

## [Quick fix: Passing a int Variable into a function](https://forum.kirupa.com/t/quick-fix-passing-a-int-variable-into-a-function/269697)

<div class="topic-metadata">

**Author:** [@Z11](https://forum.kirupa.com/u/Z11)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 12:39am UTC](https://forum.kirupa.com/t/quick-fix-passing-a-int-variable-into-a-function/269697 "2008-08-31T00:39:50Z")

</div>

I can't seem to get this to work: var i:int = 0; function count(a:int):void { a++; } count(i); count(i); count(i); trace(i);//traces 0 Is there a way I can make it do it's math, to the variable itse…

---

## [Flash just won't show](https://forum.kirupa.com/t/flash-just-wont-show/269695)

<div class="topic-metadata">

**Author:** [@sarumitai](https://forum.kirupa.com/u/sarumitai)\
**Replies:** 0\
**Last updated:** [August 31, 2008, 12:00am UTC](https://forum.kirupa.com/t/flash-just-wont-show/269695 "2008-08-31T00:00:11Z")

</div>

I made some computer games for learning English. I have played them hundreds of times on my home computer, computers around the world, computers at home in the US (I am in Japan now), and many others. When I decide t…

---

## [Random Movie Clips](https://forum.kirupa.com/t/random-movie-clips/269690)

<div class="topic-metadata">

**Author:** [@small\_guy](https://forum.kirupa.com/u/small_guy)\
**Replies:** 0\
**Last updated:** [August 30, 2008, 9:30pm UTC](https://forum.kirupa.com/t/random-movie-clips/269690 "2008-08-30T21:30:41Z")

</div>

I have three different movie clips linked out of the library. I would like to set it up so (randomly) it will be a different movie clip that comes up when the user brings up the site. Any thoughts on how to achieve thi…

---

## [Tweening imported graphics](https://forum.kirupa.com/t/tweening-imported-graphics/269689)

<div class="topic-metadata">

**Author:** [@NANO3](https://forum.kirupa.com/u/NANO3)\
**Replies:** 0\
**Last updated:** [August 30, 2008, 9:02pm UTC](https://forum.kirupa.com/t/tweening-imported-graphics/269689 "2008-08-30T21:02:36Z")

</div>

Is it possible to tween imported graphics? I made some boxes in photoshop and want to tween them to make a flowing transition on a navigation menu. Thank you.

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

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