# programming

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

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

**Page:** 629

---

## [Issue on a mac when browser is deselected](https://forum.kirupa.com/t/issue-on-a-mac-when-browser-is-deselected/300505)

<div class="topic-metadata">

**Author:** [@MattGrannary](https://forum.kirupa.com/u/MattGrannary)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 7:58pm UTC](https://forum.kirupa.com/t/issue-on-a-mac-when-browser-is-deselected/300505 "2009-11-22T19:58:49Z")

</div>

Hi All, I'm having a really weird issue happening to my project that I can't seem to find any information about online. The problem is when I'm viewing my project online in a browser (on a mac only) and I go to another…

---

## [Animated button funky behaviour](https://forum.kirupa.com/t/animated-button-funky-behaviour/300504)

<div class="topic-metadata">

**Author:** [@pulecz](https://forum.kirupa.com/u/pulecz)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 7:10pm UTC](https://forum.kirupa.com/t/animated-button-funky-behaviour/300504 "2009-11-22T19:10:23Z")

</div>

Got animated buttons that consist of multiple graphics. And two problems go with that. Problem 1 - when you rollover them the animation runs, that's fine. But when you click them the animation starts to run again, that's…

---

## [Php list-style menu issues](https://forum.kirupa.com/t/php-list-style-menu-issues/300503)

<div class="topic-metadata">

**Author:** [@drummer392](https://forum.kirupa.com/u/drummer392)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 5:27pm UTC](https://forum.kirupa.com/t/php-list-style-menu-issues/300503 "2009-11-22T17:27:57Z")

</div>

Hey there, I have a list menu using PHP with 3 levels. Here is how it is laid out: Category 1 \[INDENT\]-Link\[/INDENT\] \[INDENT\]- Subcategory\[/INDENT\] \[INDENT\]\[INDENT\]- Sublink\[/INDENT\]\[/INDENT\] and so on. The prob…

---

## [Resize in Web Browser - Help](https://forum.kirupa.com/t/resize-in-web-browser-help/300500)

<div class="topic-metadata">

**Author:** [@Andy6521](https://forum.kirupa.com/u/Andy6521)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 4:50pm UTC](https://forum.kirupa.com/t/resize-in-web-browser-help/300500 "2009-11-22T16:50:45Z")

</div>

Hi Guys, im sure youve heard this question many times before... I am designing a flash website for a friend, the link is here www.TheLastSeven.co.uk as you can see the flash file doesnt resize to fit everyones different …

---

## [SQL: Insert between two rows](https://forum.kirupa.com/t/sql-insert-between-two-rows/300499)

<div class="topic-metadata">

**Author:** [@kadaj](https://forum.kirupa.com/u/kadaj)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 4:24pm UTC](https://forum.kirupa.com/t/sql-insert-between-two-rows/300499 "2009-11-22T16:24:35Z")

</div>

How to insert between two rows. My table has 3 columns--\> id, req, res id begins with 1. how to insert at id =10 , a new values for req and res. The already present values must then have the next id. i.e id+1. Please …

---

## [IF/ELSE using WHILE LOOP](https://forum.kirupa.com/t/if-else-using-while-loop/300498)

<div class="topic-metadata">

**Author:** [@drummer392](https://forum.kirupa.com/u/drummer392)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 4:21pm UTC](https://forum.kirupa.com/t/if-else-using-while-loop/300498 "2009-11-22T16:21:25Z")

</div>

I have been searching all over the internet for an answer. Is it possible to use if/else with a while loop? Like so: if (variable=1) WHILE LOOP else WHILE LOOP

---

## [AS Image Gallery Help ASAP!](https://forum.kirupa.com/t/as-image-gallery-help-asap/300497)

<div class="topic-metadata">

**Author:** [@smarie77](https://forum.kirupa.com/u/smarie77)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 4:02pm UTC](https://forum.kirupa.com/t/as-image-gallery-help-asap/300497 "2009-11-22T16:02:35Z")

</div>

Please help!!!! The code I have for my image gallery linked to an xml file with the images and descriptions is below and works fine as is. However, I need to add functions to it. I need to be able to have 2 columns of…

---

## [Bouncing Ball on Slope Physics?](https://forum.kirupa.com/t/bouncing-ball-on-slope-physics/300492)

<div class="topic-metadata">

**Author:** [@Kaitenshin](https://forum.kirupa.com/u/Kaitenshin)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 12:04pm UTC](https://forum.kirupa.com/t/bouncing-ball-on-slope-physics/300492 "2009-11-22T12:04:42Z")

</div>

Does anyone know where I can find a tutorial (or get some code!) on flash physics concerning dropping a ball in motion onto a slope, or any surface for that matter. Heres a sloppy paint drawing I put together to descri…

---

## [Embedding Google Project Code](https://forum.kirupa.com/t/embedding-google-project-code/300491)

<div class="topic-metadata">

**Author:** [@riveroaks](https://forum.kirupa.com/u/riveroaks)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 11:12am UTC](https://forum.kirupa.com/t/embedding-google-project-code/300491 "2009-11-22T11:12:52Z")

</div>

I am running a Google Project so that I have an easy to use repository for my code, but I need to display my source code on my own website. Does anyone know of a way to embed Google Project source code in another websit…

---

## [Strange problem loading/unloading a .swf (AS3)](https://forum.kirupa.com/t/strange-problem-loading-unloading-a-swf-as3/300487)

<div class="topic-metadata">

**Author:** [@Lonestarchitect](https://forum.kirupa.com/u/Lonestarchitect)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 10:39am UTC](https://forum.kirupa.com/t/strange-problem-loading-unloading-a-swf-as3/300487 "2009-11-22T10:39:29Z")

</div>

I noticed that I referenced the Kirupa forums often for finding solutions to flash-related problems. When I hit this last issue, this seemed to be the place with the best knowledge base. Here is my issue: I have a f…

---

## [Which Event is invoked on clicking the Close button of AIR Window](https://forum.kirupa.com/t/which-event-is-invoked-on-clicking-the-close-button-of-air-window/300485)

<div class="topic-metadata">

**Author:** [@Raabi](https://forum.kirupa.com/u/Raabi)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 7:51am UTC](https://forum.kirupa.com/t/which-event-is-invoked-on-clicking-the-close-button-of-air-window/300485 "2009-11-22T07:51:53Z")

</div>

Hello I am trying to capture the event; which is invoked when we close the AIR window by clicking its Close button (on the top-right corner). I have tried the following; but none of them seems invoked: newWin.stage.…

---

## [Button with font embedding problem](https://forum.kirupa.com/t/button-with-font-embedding-problem/300484)

<div class="topic-metadata">

**Author:** [@Undre](https://forum.kirupa.com/u/Undre)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 7:20am UTC](https://forum.kirupa.com/t/button-with-font-embedding-problem/300484 "2009-11-22T07:20:56Z")

</div>

var myButton = new Button; var libraryFont:Font = new myFont; var myFormat:TextFormat = new TextFormat(); myFormat.font = libraryFont.fontName; myFormat.size = 26; myButton.setStyle("embedFonts", true); myButton.s…

---

## [Making Stage follow Player](https://forum.kirupa.com/t/making-stage-follow-player/300481)

<div class="topic-metadata">

**Author:** [@Nick23](https://forum.kirupa.com/u/Nick23)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 4:49am UTC](https://forum.kirupa.com/t/making-stage-follow-player/300481 "2009-11-22T04:49:32Z")

</div>

Hello, I am trying to make the stage follow the player in AS3 (basically, so the 'view' follows the player and he remains in the center of the screen throughout). Here is what I tried: this.x = player.x-stage.width…

---

## [Programmatically added gaps between certain menu items](https://forum.kirupa.com/t/programmatically-added-gaps-between-certain-menu-items/300478)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 3:40am UTC](https://forum.kirupa.com/t/programmatically-added-gaps-between-certain-menu-items/300478 "2009-11-22T03:40:39Z")

</div>

How can I modify the following code to add 26px space between the 2nd and 3rd item in a vertical menu, and the same added space between the 5th and 6th items? var xCoord:int = 100; var yCoord:int = 10; function initM…

---

## [Simple event question (with code!)](https://forum.kirupa.com/t/simple-event-question-with-code/300477)

<div class="topic-metadata">

**Author:** [@JoeRocket23](https://forum.kirupa.com/u/JoeRocket23)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 3:34am UTC](https://forum.kirupa.com/t/simple-event-question-with-code/300477 "2009-11-22T03:34:43Z")

</div>

Hi Everyone! What is the correct event listener to detect a child added to the stage? I tried: function loadImage(url:String):void { imageLoader = new Loader(); imageLoader.load(new URLRequest(url)); imageLoader.c…

---

## [Actions on MovieClip instances](https://forum.kirupa.com/t/actions-on-movieclip-instances/300476)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 2:13am UTC](https://forum.kirupa.com/t/actions-on-movieclip-instances/300476 "2009-11-22T02:13:03Z")

</div>

I'm trying to convert an old AS 2.0 file to 3.0, but keep getting this error: WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored. …

---

## [Standalone vs Browser Player Performance](https://forum.kirupa.com/t/standalone-vs-browser-player-performance/300473)

<div class="topic-metadata">

**Author:** [@renton79](https://forum.kirupa.com/u/renton79)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 10:27pm UTC](https://forum.kirupa.com/t/standalone-vs-browser-player-performance/300473 "2009-11-21T22:27:08Z")

</div>

I have a problem with flash performance, I have some 3D scene with sphere not to complicated and a bitmap applied on it there also is a shading going on. Problem is that in flash CS4 player it runs very smooth but when I…

---

## [Type Coercion failed: cannot convert MyEvent@12345 to MyEvent?](https://forum.kirupa.com/t/type-coercion-failed-cannot-convert-myevent-12345-to-myevent/300472)

<div class="topic-metadata">

**Author:** [@zeldalink](https://forum.kirupa.com/u/zeldalink)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 9:54pm UTC](https://forum.kirupa.com/t/type-coercion-failed-cannot-convert-myevent-12345-to-myevent/300472 "2009-11-21T21:54:11Z")

</div>

\[FONT=Tahoma\] I'm getting an error in an AS3 class that I found on a site, which says that it cannot coerce MyEvent@12345 to MyEvent?? \[/FONT\] \[FONT=Tahoma\] What could be wrong? \[/FONT\] \[FONT=Tahoma\] TypeE…

---

## [Will OOP reduce performance](https://forum.kirupa.com/t/will-oop-reduce-performance/300471)

<div class="topic-metadata">

**Author:** [@kadaj](https://forum.kirupa.com/u/kadaj)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 8:33pm UTC](https://forum.kirupa.com/t/will-oop-reduce-performance/300471 "2009-11-21T20:33:59Z")

</div>

Will OOP reduce the performance of the application. I have to query 4 database with more than 1000 rows between each user inputs to give the output. The whole thing must be less than 5 seconds to the maximum extend and…

---

## [How do you add default items to authoring environment](https://forum.kirupa.com/t/how-do-you-add-default-items-to-authoring-environment/300467)

<div class="topic-metadata">

**Author:** [@flashCS4User](https://forum.kirupa.com/u/flashCS4User)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 3:55pm UTC](https://forum.kirupa.com/t/how-do-you-add-default-items-to-authoring-environment/300467 "2009-11-21T15:55:56Z")

</div>

I want to create a combo box with default items in it and then add it to the library within the authoring environment. It appears all the google searches out there only show how to add items to the combo box at runtime …

---

## [Upload photo function](https://forum.kirupa.com/t/upload-photo-function/300463)

<div class="topic-metadata">

**Author:** [@RJM1985](https://forum.kirupa.com/u/RJM1985)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 2:10pm UTC](https://forum.kirupa.com/t/upload-photo-function/300463 "2009-11-21T14:10:59Z")

</div>

Hey... Does anyone know how to make a picture upload function, kinda like \[COLOR=#003366\]http://yearbookyourself.com/\[/COLOR\], or less advanced.. Anyone know a good tutorial? \[smile\] Thanks

---

## [Button colour](https://forum.kirupa.com/t/button-colour/300460)

<div class="topic-metadata">

**Author:** [@VenusAndMars](https://forum.kirupa.com/u/VenusAndMars)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 12:48pm UTC](https://forum.kirupa.com/t/button-colour/300460 "2009-11-21T12:48:18Z")

</div>

Hi, I have buttons with black text. The buttons (not the text) change colour to red when you rollover them. I can't seem to work out how to get the colour to stay red when it's clicked. Do I make a duplicate symbol whi…

---

## [Php without MySQL load in Flash](https://forum.kirupa.com/t/php-without-mysql-load-in-flash/300459)

<div class="topic-metadata">

**Author:** [@ericovna](https://forum.kirupa.com/u/ericovna)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 12:33pm UTC](https://forum.kirupa.com/t/php-without-mysql-load-in-flash/300459 "2009-11-21T12:33:27Z")

</div>

Hello. I installed on my site php script "Cutenews". It works without any MySQL... It save all archives in text files. its PHP script looks like this: \<?PHP include("show\_news.php"); ?\> The file URL is http://pa…

---

## [Targeting image problem](https://forum.kirupa.com/t/targeting-image-problem/300452)

<div class="topic-metadata">

**Author:** [@FuglyBastard](https://forum.kirupa.com/u/FuglyBastard)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 7:30am UTC](https://forum.kirupa.com/t/targeting-image-problem/300452 "2009-11-21T07:30:57Z")

</div>

Talking to a friend, He gave me a script to target an image to tell it to play the rotation of pictures inside it. It was a button that had Eye.play(); In its code(My image is named Eye). He said it was As2.0, …

---

## [Error in creating flash8 movie.there was no enough memory space available](https://forum.kirupa.com/t/error-in-creating-flash8-movie-there-was-no-enough-memory-space-available/300449)

<div class="topic-metadata">

**Author:** [@Saras](https://forum.kirupa.com/u/Saras)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 5:16am UTC](https://forum.kirupa.com/t/error-in-creating-flash8-movie-there-was-no-enough-memory-space-available/300449 "2009-11-21T05:16:58Z")

</div>

My movie is very lengthy one.when i publishing i am getting error like this. please help me..

---

## [CS4 AS3 how can I load and unload swf w/ flv w/out stacking?](https://forum.kirupa.com/t/cs4-as3-how-can-i-load-and-unload-swf-w-flv-w-out-stacking/300448)

<div class="topic-metadata">

**Author:** [@kratos2010](https://forum.kirupa.com/u/kratos2010)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 4:59am UTC](https://forum.kirupa.com/t/cs4-as3-how-can-i-load-and-unload-swf-w-flv-w-out-stacking/300448 "2009-11-21T04:59:09Z")

</div>

I want to load and unload EXTERNAL SWF that contains FLV on mouse click. Loading and unloading the swf is NOT the issue. The problem is how do i get the external swf which contains an flv to stop playing and stacking up …

---

## [Double-You Tee Eff! (Question Mark) Is this a known bug?](https://forum.kirupa.com/t/double-you-tee-eff-question-mark-is-this-a-known-bug/300445)

<div class="topic-metadata">

**Author:** [@audiohominis](https://forum.kirupa.com/u/audiohominis)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 4:26am UTC](https://forum.kirupa.com/t/double-you-tee-eff-question-mark-is-this-a-known-bug/300445 "2009-11-21T04:26:26Z")

</div>

It's certainly new to me?:hair: trace(1\*.1);//0.1 trace(2\*.1);//0.2 trace(3\*.1);//0.30000000000000004 trace(4\*.1);//0.4 trace(5\*.1);//0.5 trace(6\*.1);//0.6000000000000001 trace(7\*.1);//0.4 trace(8\*.1);//0.5 trace(9\*.1…

---

## [Super Newbie...swfs loading s l o w](https://forum.kirupa.com/t/super-newbie-swfs-loading-s-l-o-w/300444)

<div class="topic-metadata">

**Author:** [@MentalWard](https://forum.kirupa.com/u/MentalWard)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 2:51am UTC](https://forum.kirupa.com/t/super-newbie-swfs-loading-s-l-o-w/300444 "2009-11-21T02:51:31Z")

</div>

Hi All, I'm a dinosaur designer from the days of X-acto knifes, spray glue and airbrushes - so bear with me here. Using CS3 and simple behaviors I'm creating a portfolio site. I'm using shell-based navigation so each c…

---

## [SNeed help for Search](https://forum.kirupa.com/t/sneed-help-for-search/300442)

<div class="topic-metadata">

**Author:** [@hirankb](https://forum.kirupa.com/u/hirankb)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 2:35am UTC](https://forum.kirupa.com/t/sneed-help-for-search/300442 "2009-11-21T02:35:47Z")

</div>

\[FONT=Arial\]Hi Friends,\[/FONT\] \[FONT=Arial\]I am doing a Multimedia CD Rom using flash. There are separate swf movies for separate pages. In this I want to add a search facility, in which when I type a word, and press…

---

## [Need help for search](https://forum.kirupa.com/t/need-help-for-search/300438)

<div class="topic-metadata">

**Author:** [@hirankb](https://forum.kirupa.com/u/hirankb)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 2:33am UTC](https://forum.kirupa.com/t/need-help-for-search/300438 "2009-11-21T02:33:59Z")

</div>

\[FONT=Arial\]Hi Friends,\[/FONT\] \[FONT=Arial\]I am doing a Multimedia CD Rom using flash. There are separate swf movies for separate pages. In this I want to add a search facility, in which when I type a word, and press…

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

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