# programming

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

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

**Page:** 1767

---

## [Random Color Generator - question!](https://forum.kirupa.com/t/random-color-generator-question/222564)

<div class="topic-metadata">

**Author:** [@dafnabru](https://forum.kirupa.com/u/dafnabru)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 9:32pm UTC](https://forum.kirupa.com/t/random-color-generator-question/222564 "2007-04-14T21:32:19Z")

</div>

Thanks for this tutorial, its great! I only have a tiny problem: I want the squares to start white and not black. How can I do that? Ive looked deeply at the codes and tryed changing some stuff - but nothing works for me…

---

## [Soh Cah Toa, pythagoras equation/code problems](https://forum.kirupa.com/t/soh-cah-toa-pythagoras-equation-code-problems/222563)

<div class="topic-metadata">

**Author:** [@scag](https://forum.kirupa.com/u/scag)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 9:12pm UTC](https://forum.kirupa.com/t/soh-cah-toa-pythagoras-equation-code-problems/222563 "2007-04-14T21:12:27Z")

</div>

Hello firstly i have looked through so many examples explaining trigonometry, ive even got out my old GCSE maths text books (no hope) and my old scientific calculator doesnt seem to give sensible answers. Here is som…

---

## [Long time no see... PHP Arrays anyone?](https://forum.kirupa.com/t/long-time-no-see-php-arrays-anyone/222559)

<div class="topic-metadata">

**Author:** [@FreakSheep](https://forum.kirupa.com/u/FreakSheep)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 8:07pm UTC](https://forum.kirupa.com/t/long-time-no-see-php-arrays-anyone/222559 "2007-04-14T20:07:54Z")

</div>

It's been a while since I've strolled these woods... Anyway... Good to be back. I'm making a photo gallery with php, and I want to make a directory list of all the folders in which the photos are kept in. You click o…

---

## [Drawing a box with Actionscript](https://forum.kirupa.com/t/drawing-a-box-with-actionscript/222556)

<div class="topic-metadata">

**Author:** [@wahiche](https://forum.kirupa.com/u/wahiche)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 6:57pm UTC](https://forum.kirupa.com/t/drawing-a-box-with-actionscript/222556 "2007-04-14T18:57:48Z")

</div>

Hello All, I have seen some tutorials for this type of thing but not exactly what I was looking for. For instance this code here: this.createEmptyMovieClip("rectangle\_mc", 10); rectangle\_mc.\_x = 100; rectangle\_mc.\_…

---

## [XML wont load properly](https://forum.kirupa.com/t/xml-wont-load-properly/222555)

<div class="topic-metadata">

**Author:** [@uthai](https://forum.kirupa.com/u/uthai)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 6:54pm UTC](https://forum.kirupa.com/t/xml-wont-load-properly/222555 "2007-04-14T18:54:48Z")

</div>

hi. i'm doing a simple web page for my restaurant using a tree component. Got Starters, Main Courses and Desserts. When clicking the tree rows i want to show - description, price for sit in, price for take away and a pic…

---

## [\[VB.NET\] MySQL](https://forum.kirupa.com/t/vb-net-mysql/222554)

<div class="topic-metadata">

**Author:** [@blazes](https://forum.kirupa.com/u/blazes)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 6:44pm UTC](https://forum.kirupa.com/t/vb-net-mysql/222554 "2007-04-14T18:44:57Z")

</div>

I'm learning VB.NET and am wanting to make a small application that requires a connection to a mysql database. I've stuff I can download and install to make this work, however, I want to be able to distribute it, and so…

---

## [Preloader doesn't work when loaded into another movie](https://forum.kirupa.com/t/preloader-doesnt-work-when-loaded-into-another-movie/222551)

<div class="topic-metadata">

**Author:** [@matbury](https://forum.kirupa.com/u/matbury)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 5:57pm UTC](https://forum.kirupa.com/t/preloader-doesnt-work-when-loaded-into-another-movie/222551 "2007-04-14T17:57:11Z")

</div>

I've got this preloader working nicely on a standalone movie. The problem arises when I load it into a main movie. It loads and counts up to 100% but the playhead doesn't go on to frame 3 with this.gotoAndStop(3); I've…

---

## [Missing information while sending from flash to php](https://forum.kirupa.com/t/missing-information-while-sending-from-flash-to-php/222550)

<div class="topic-metadata">

**Author:** [@Nonni](https://forum.kirupa.com/u/Nonni)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 5:54pm UTC](https://forum.kirupa.com/t/missing-information-while-sending-from-flash-to-php/222550 "2007-04-14T17:54:36Z")

</div>

I'm not sure how to efficiently describe my problem, but here it goes: I made a very simple drawing application in flash similar to this one here. I wanted to save the images the user creates, so I save each action in …

---

## [Favorite Version Control System?](https://forum.kirupa.com/t/favorite-version-control-system/222548)

<div class="topic-metadata">

**Author:** [@pingnak](https://forum.kirupa.com/u/pingnak)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 5:46pm UTC](https://forum.kirupa.com/t/favorite-version-control-system/222548 "2007-04-14T17:46:07Z")

</div>

If you're not already using version control, you should start. The biggest service it provides is keeping track of what you changed, and backing it up somewhere in a repository where all your documents and code can b…

---

## [Launching a Centered Pop-Up Window HELP!](https://forum.kirupa.com/t/launching-a-centered-pop-up-window-help/222545)

<div class="topic-metadata">

**Author:** [@ewramos](https://forum.kirupa.com/u/ewramos)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 4:50pm UTC](https://forum.kirupa.com/t/launching-a-centered-pop-up-window-help/222545 "2007-04-14T16:50:36Z")

</div>

I am very new to FLASH8 and found the tut. mentioned in the subject line. I got it to work just fine as is. I can also get it to work with a bitmap button image. My question in, how can this same thing work with a tran…

---

## [Text effects: pinched, wavy, bloated etc?](https://forum.kirupa.com/t/text-effects-pinched-wavy-bloated-etc/222542)

<div class="topic-metadata">

**Author:** [@iceblueflame](https://forum.kirupa.com/u/iceblueflame)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 4:13pm UTC](https://forum.kirupa.com/t/text-effects-pinched-wavy-bloated-etc/222542 "2007-04-14T16:13:29Z")

</div>

ok, i agree i'm posting many questions based on text and fonts, but i cant help it.. :puzzled: these things are making me go crazy. well, i need to write AS 2.0 code for creating text effects like those we have in ms w…

---

## [PHP and Flash 8](https://forum.kirupa.com/t/php-and-flash-8/222540)

<div class="topic-metadata">

**Author:** [@Laalun](https://forum.kirupa.com/u/Laalun)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 3:40pm UTC](https://forum.kirupa.com/t/php-and-flash-8/222540 "2007-04-14T15:40:25Z")

</div>

Hi all, I do realise there is a similar topic on the go at the minute but I didn't want to hijack it. Anyway, I've got a flash movie, a mySQL database and php connecting them. I want to display some data from my databa…

---

## [\[AS3.0\] strange BitmapData behavior](https://forum.kirupa.com/t/as3-0-strange-bitmapdata-behavior/222538)

<div class="topic-metadata">

**Author:** [@watcher](https://forum.kirupa.com/u/watcher)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 3:36pm UTC](https://forum.kirupa.com/t/as3-0-strange-bitmapdata-behavior/222538 "2007-04-14T15:36:43Z")

</div>

Hi there, I have some problems with Bitmap displaying properly loaded image, when providing variables as width and height in the constructor as opposed to numbers, example: if(\_bitmapData) { \_bitmapData.dispose()…

---

## [ASP Microsoft Access Syntax Error when trying to add new record](https://forum.kirupa.com/t/asp-microsoft-access-syntax-error-when-trying-to-add-new-record/222537)

<div class="topic-metadata">

**Author:** [@woop47](https://forum.kirupa.com/u/woop47)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 3:30pm UTC](https://forum.kirupa.com/t/asp-microsoft-access-syntax-error-when-trying-to-add-new-record/222537 "2007-04-14T15:30:04Z")

</div>

I am currently using Dreamweaver to produce a asp and vbscript page with an Access database to create a small project. I have been able to update records in various other table no problem, but this one particular table …

---

## [Draggable Rectangle](https://forum.kirupa.com/t/draggable-rectangle/222534)

<div class="topic-metadata">

**Author:** [@goblinkid](https://forum.kirupa.com/u/goblinkid)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 1:51pm UTC](https://forum.kirupa.com/t/draggable-rectangle/222534 "2007-04-14T13:51:34Z")

</div>

Hi, I have a rectangle on the stage and would like to scale the rectangle when it is dragged. When the rectangle is dragged to the right, the width of the rectangle will increase. When the rectangle is dragged to the…

---

## [HOW TO Copy a scene](https://forum.kirupa.com/t/how-to-copy-a-scene/222533)

<div class="topic-metadata">

**Author:** [@avishayil](https://forum.kirupa.com/u/avishayil)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 1:22pm UTC](https://forum.kirupa.com/t/how-to-copy-a-scene/222533 "2007-04-14T13:22:24Z")

</div>

Hi, I would like to copy one scene from one .fla file to another. How should I do it? \*\*INCLUDING the actions, layers, etc… Or alternatively, how do I link to various scene in a flash movie from another movie? Thank …

---

## [Tween class navigation?](https://forum.kirupa.com/t/tween-class-navigation/222532)

<div class="topic-metadata">

**Author:** [@antibob](https://forum.kirupa.com/u/antibob)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 1:20pm UTC](https://forum.kirupa.com/t/tween-class-navigation/222532 "2007-04-14T13:20:37Z")

</div>

Hi, Can someone explain how this sort of navigation works: http://www.unit9.com/moon/ (you have to enter the site). I see this sort of thing used a lot and I would like to implement a simple version of this. I …

---

## [Whats wrong with this function?](https://forum.kirupa.com/t/whats-wrong-with-this-function/222530)

<div class="topic-metadata">

**Author:** [@phena](https://forum.kirupa.com/u/phena)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 12:42pm UTC](https://forum.kirupa.com/t/whats-wrong-with-this-function/222530 "2007-04-14T12:42:40Z")

</div>

ActionScript Code: \[FONT=Courier New\]\[LEFT\]\</p\> \<p\>function boatdrag\[COLOR=#000000\](\[/COLOR\]\[COLOR=#000000\])\[/COLOR\] \[COLOR=#000000\]{\[/COLOR\]\</p\> \<p\> i++\</p\> \<p\> \[COLOR=#0000ff\]\_root\[/COLOR\]\[COLOR=#000000\]\[\[/COLOR\]båter\[…

---

## [Wrap a textblock around another textblock?](https://forum.kirupa.com/t/wrap-a-textblock-around-another-textblock/222527)

<div class="topic-metadata">

**Author:** [@Tony\_Bolero](https://forum.kirupa.com/u/Tony_Bolero)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 9:47am UTC](https://forum.kirupa.com/t/wrap-a-textblock-around-another-textblock/222527 "2007-04-14T09:47:52Z")

</div>

Hi all! I´ve got a headline and a text paragraph. I want the text to wrap around the headline so that the text and the headline start on the same line and the text continues underneath the headline. I´ve tried to use …

---

## [Download method for Flash 8](https://forum.kirupa.com/t/download-method-for-flash-8/222525)

<div class="topic-metadata">

**Author:** [@cortek](https://forum.kirupa.com/u/cortek)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 9:24am UTC](https://forum.kirupa.com/t/download-method-for-flash-8/222525 "2007-04-14T09:24:09Z")

</div>

Hi, I was getting a little confused with how to make a button link download a file. Apparently with Flash 8 you can embed the download link in flash. I read that the "download();" method needs two parameters. The UR…

---

## [A question of memory limitations](https://forum.kirupa.com/t/a-question-of-memory-limitations/222524)

<div class="topic-metadata">

**Author:** [@iceblueflame](https://forum.kirupa.com/u/iceblueflame)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 9:07am UTC](https://forum.kirupa.com/t/a-question-of-memory-limitations/222524 "2007-04-14T09:07:53Z")

</div>

Ok, this is not a real problem i have, but i am just trying to be cautious. I'm making a flash app to upload on a site. It's a drawing tool so there's a lot of attachMovie() and array business in my app. And some array…

---

## [Sending Variables PHP to FLASH 8](https://forum.kirupa.com/t/sending-variables-php-to-flash-8/222523)

<div class="topic-metadata">

**Author:** [@lastradius](https://forum.kirupa.com/u/lastradius)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 9:05am UTC](https://forum.kirupa.com/t/sending-variables-php-to-flash-8/222523 "2007-04-14T09:05:16Z")

</div>

The following two examples are quite simple and for the life of me I can't figure out what is wrong. I must have spent all of two days unsuccessfully searching the internet for some insight. Thanxs in Advance: Lastradi…

---

## [This should work, but doesn't... actionScript issues](https://forum.kirupa.com/t/this-should-work-but-doesnt-actionscript-issues/222522)

<div class="topic-metadata">

**Author:** [@Freddythunder](https://forum.kirupa.com/u/Freddythunder)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 9:03am UTC](https://forum.kirupa.com/t/this-should-work-but-doesnt-actionscript-issues/222522 "2007-04-14T09:03:59Z")

</div>

So I'm making this actionscripted thing to look like a cube spinning with externally loaded pictures. I haven't used flash in a little while, so I don't even know if there's an easier way to do this. The zip I've adde…

---

## [FLASH/PHP/SQL terrors!](https://forum.kirupa.com/t/flash-php-sql-terrors/222521)

<div class="topic-metadata">

**Author:** [@MUX](https://forum.kirupa.com/u/MUX)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 7:26am UTC](https://forum.kirupa.com/t/flash-php-sql-terrors/222521 "2007-04-14T07:26:05Z")

</div>

\[COLOR=#ffffff\]FLASH/PHP/SQL terrors!\[/COLOR\]hi there guys.. and have a simple contact form that uses php to send an email. all works grand and the job gets done.. but.. the problem now is : i am trying to submit t…

---

## [\[FlashPro8\] Tween Class](https://forum.kirupa.com/t/flashpro8-tween-class/222520)

<div class="topic-metadata">

**Author:** [@small\_guy](https://forum.kirupa.com/u/small_guy)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 6:19am UTC](https://forum.kirupa.com/t/flashpro8-tween-class/222520 "2007-04-14T06:19:38Z")

</div>

I have a createEmptyMovieClip. Upon the press of a button on my main menu a .swf loads into the createEmptyMovieClip. My problem/question is this: I want the loaded clip to tween in along \_x to approximately center st…

---

## [Referencing Duplicated Movie Clip In Separate Code Block](https://forum.kirupa.com/t/referencing-duplicated-movie-clip-in-separate-code-block/222518)

<div class="topic-metadata">

**Author:** [@Vexir](https://forum.kirupa.com/u/Vexir)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 4:44am UTC](https://forum.kirupa.com/t/referencing-duplicated-movie-clip-in-separate-code-block/222518 "2007-04-14T04:44:56Z")

</div>

I have the following code: bubble\_mc.\_visible = false; var bubbleCount:Number = 40; var vertMaxSpeed:Number = 10; // will be used in calculating maxiumum vertical speed for bubbles' movement dupMovie = function () …

---

## [Using Prototypes](https://forum.kirupa.com/t/using-prototypes/222515)

<div class="topic-metadata">

**Author:** [@riveroaks](https://forum.kirupa.com/u/riveroaks)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 3:34am UTC](https://forum.kirupa.com/t/using-prototypes/222515 "2007-04-14T03:34:39Z")

</div>

I'm trying to use prototypes to create a thumbnail class but I can't seem to access my prototype methods...when I trace the methods I get "undefined". Can anyone find any obvious, or even not so obvious, problems with t…

---

## [\[AS2 OOP\] - Dynamic MCs or TextFields](https://forum.kirupa.com/t/as2-oop-dynamic-mcs-or-textfields/222514)

<div class="topic-metadata">

**Author:** [@Flash\_Test](https://forum.kirupa.com/u/Flash_Test)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 3:23am UTC](https://forum.kirupa.com/t/as2-oop-dynamic-mcs-or-textfields/222514 "2007-04-14T03:23:38Z")

</div>

Hi, as you'll see with the following snippet of code, I'm rather new to OOP for Flash. I've been trying to dynamically create a textField with no luck. //mcPath:MovieClip is a parameter passed to the class' constructo…

---

## [Can't Access Timeline Variable](https://forum.kirupa.com/t/cant-access-timeline-variable/222503)

<div class="topic-metadata">

**Author:** [@tgjb007](https://forum.kirupa.com/u/tgjb007)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 12:14am UTC](https://forum.kirupa.com/t/cant-access-timeline-variable/222503 "2007-04-14T00:14:49Z")

</div>

I've created a SWF scrubber that allows me to fast forward and rewind swf's I load into a container MC. The forward works fine and very smoothly. The rewind however, does work but is quite choppy and very slow. The …

---

## [Organizing C/C++ code](https://forum.kirupa.com/t/organizing-c-c-code/222502)

<div class="topic-metadata">

**Author:** [@Al6200](https://forum.kirupa.com/u/Al6200)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 12:11am UTC](https://forum.kirupa.com/t/organizing-c-c-code/222502 "2007-04-14T00:11:17Z")

</div>

How do you guys like to organize your C++ code? What I usually do is create a single .cpp file with my main loop, and then put all my support functions (graphics, keyboard, etc. ) in headers. But I've found that this o…

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

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