# programming

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

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

**Page:** 1071

---

## [How to create different Background in Flash?](https://forum.kirupa.com/t/how-to-create-different-background-in-flash/271405)

<div class="topic-metadata">

**Author:** [@crazy69bug](https://forum.kirupa.com/u/crazy69bug)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 8:10pm UTC](https://forum.kirupa.com/t/how-to-create-different-background-in-flash/271405 "2008-09-22T20:10:59Z")

</div>

Hello everyone... Need some help Im creating this website in Flash and I want to create different backgrounds for each page. I want the background only to be resizable to the browser and the content would always be i…

---

## [OR in an if function!?](https://forum.kirupa.com/t/or-in-an-if-function/271400)

<div class="topic-metadata">

**Author:** [@odiecreversed](https://forum.kirupa.com/u/odiecreversed)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 7:08pm UTC](https://forum.kirupa.com/t/or-in-an-if-function/271400 "2008-09-22T19:08:55Z")

</div>

What do you put in an if function for 'or' (|)? I thought it'd be kinda the same as you write an and if function, like '&&'. if ((mouseY\>mc1.x) | (Math.random()\>0.5){ trace("Whoohoo!") } Any ideas? C:-)

---

## [Relative Div Bug in IE? help!](https://forum.kirupa.com/t/relative-div-bug-in-ie-help/271397)

<div class="topic-metadata">

**Author:** [@capseaslug](https://forum.kirupa.com/u/capseaslug)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 6:51pm UTC](https://forum.kirupa.com/t/relative-div-bug-in-ie-help/271397 "2008-09-22T18:51:29Z")

</div>

I am trying to create an image that stays in one place no matter how large the window is. This seems to work great in FF but when i open it in IE the image is not where i positioned it! Has anyone ever seen this? Thanks. …

---

## [How To: "Always take me here" Cookie](https://forum.kirupa.com/t/how-to-always-take-me-here-cookie/271392)

<div class="topic-metadata">

**Author:** [@sosADAMsos](https://forum.kirupa.com/u/sosADAMsos)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 6:18pm UTC](https://forum.kirupa.com/t/how-to-always-take-me-here-cookie/271392 "2008-09-22T18:18:49Z")

</div>

I want to add something to my site similar to http://pge.com I want to have a link on my index.php page to home.php, and I want the option to be there to automatically go to "home.php" and skip index.php. I assume th…

---

## [\[F8\] Dynamic text field naming and assignments?](https://forum.kirupa.com/t/f8-dynamic-text-field-naming-and-assignments/271390)

<div class="topic-metadata">

**Author:** [@dterry](https://forum.kirupa.com/u/dterry)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 6:07pm UTC](https://forum.kirupa.com/t/f8-dynamic-text-field-naming-and-assignments/271390 "2008-09-22T18:07:44Z")

</div>

Hi, Probably a lack of knowledge on my part (no, definitely...), but how do I go about loading dynamic text fields from an array, using dynamic variable naming? for(j=0; j\<count; j++){ this\["contacts\_mc.nameText"+j…

---

## [Load image with XML](https://forum.kirupa.com/t/load-image-with-xml/271389)

<div class="topic-metadata">

**Author:** [@piroshki](https://forum.kirupa.com/u/piroshki)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 5:29pm UTC](https://forum.kirupa.com/t/load-image-with-xml/271389 "2008-09-22T17:29:39Z")

</div>

Hi there! I have a page with different products and by clicking a button I am opening a new window with more details on each product. In the new window I pass a string variable which then opens the specific xml file for …

---

## [Accessing exported symbol in loaded SWF](https://forum.kirupa.com/t/accessing-exported-symbol-in-loaded-swf/271383)

<div class="topic-metadata">

**Author:** [@RichSad](https://forum.kirupa.com/u/RichSad)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 3:26pm UTC](https://forum.kirupa.com/t/accessing-exported-symbol-in-loaded-swf/271383 "2008-09-22T15:26:49Z")

</div>

Hi. I am using the Loader class to load a SWF file. The SWF file contains nothing on its stage but exports 20 symbols (they have their linkage set to unique class names). I need to add only one or two of these exported i…

---

## [Loaded SWF Caching Question](https://forum.kirupa.com/t/loaded-swf-caching-question/271381)

<div class="topic-metadata">

**Author:** [@Yeldarb](https://forum.kirupa.com/u/Yeldarb)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 3:02pm UTC](https://forum.kirupa.com/t/loaded-swf-caching-question/271381 "2008-09-22T15:02:18Z")

</div>

Are swfs that you load dynamically cached? For example, if my structure is loader.swf ---- loads child1.swf -------- loads child11.swf ---- loads child2.swf -------- loads child21.swf ---- loads child3.swf If the u…

---

## [VAR vs. CONST](https://forum.kirupa.com/t/var-vs-const/271378)

<div class="topic-metadata">

**Author:** [@ad\_sign](https://forum.kirupa.com/u/ad_sign)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 1:56pm UTC](https://forum.kirupa.com/t/var-vs-const/271378 "2008-09-22T13:56:14Z")

</div>

Ok, here goes the first prompt: consts are expired at the end of functions? And the second one: what's the real advantage of using it instead of vars?

---

## [Acceder a Boton en frame 3](https://forum.kirupa.com/t/acceder-a-boton-en-frame-3/271377)

<div class="topic-metadata">

**Author:** [@oxk4r](https://forum.kirupa.com/u/oxk4r)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 1:39pm UTC](https://forum.kirupa.com/t/acceder-a-boton-en-frame-3/271377 "2008-09-22T13:39:43Z")

</div>

Tengo un .fla con digamos 3 frames. Estoy tratando de acceder a un boton (que esta creado y añadido desde la interfaz de Flash; no en tiempo de ejecucion) situado en el segundo frame, que se llama btnAvance01, desde la D…

---

## [Weird problem with LineTo](https://forum.kirupa.com/t/weird-problem-with-lineto/271375)

<div class="topic-metadata">

**Author:** [@odiecreversed](https://forum.kirupa.com/u/odiecreversed)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 1:08pm UTC](https://forum.kirupa.com/t/weird-problem-with-lineto/271375 "2008-09-22T13:08:01Z")

</div>

I have a problem with referring to something... I create a an array, a timer and movieclip variable... then... containerMC.graphics.lineStyle (0.1, 0x000000); for(var s=0 ;s\<2;s++){ addChild(containerMC) d…

---

## [Strange operation of actionscript](https://forum.kirupa.com/t/strange-operation-of-actionscript/271374)

<div class="topic-metadata">

**Author:** [@rodg](https://forum.kirupa.com/u/rodg)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 12:44pm UTC](https://forum.kirupa.com/t/strange-operation-of-actionscript/271374 "2008-09-22T12:44:09Z")

</div>

I am building a program for my little boy that requires him to answer simple mathematical problems. The first frame requires him to answer addition problems, the second frame requires him to answer questions on subtrac…

---

## [Mouse scroll zoom tip](https://forum.kirupa.com/t/mouse-scroll-zoom-tip/271373)

<div class="topic-metadata">

**Author:** [@Guzak](https://forum.kirupa.com/u/Guzak)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 12:42pm UTC](https://forum.kirupa.com/t/mouse-scroll-zoom-tip/271373 "2008-09-22T12:42:43Z")

</div>

Hey, this took me a LONG time to sort out so i thought i'd post it online so others find it eaier. This allows you to zoom on a mc with the mouse scroll while keeping the mc centered by the cursor. addEventListener(Mo…

---

## [Create a history timeline](https://forum.kirupa.com/t/create-a-history-timeline/271371)

<div class="topic-metadata">

**Author:** [@mx\_guest2004](https://forum.kirupa.com/u/mx_guest2004)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 11:36am UTC](https://forum.kirupa.com/t/create-a-history-timeline/271371 "2008-09-22T11:36:01Z")

</div>

Hi, Does anyone know about a good tutorial on creating history timelines in Flash?

---

## [Layer blend mode color problem](https://forum.kirupa.com/t/layer-blend-mode-color-problem/271367)

<div class="topic-metadata">

**Author:** [@neoclearyst](https://forum.kirupa.com/u/neoclearyst)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 9:23am UTC](https://forum.kirupa.com/t/layer-blend-mode-color-problem/271367 "2008-09-22T09:23:04Z")

</div>

Is there anyone knows how to make a layer blending mode color? I know there is some internal method in actionscript 3.0 for blending mode like screen, hardlight, invert, etc. But for color I think it's must be done manua…

---

## [\[AS3\]Need help with depth sorting in tile based game!](https://forum.kirupa.com/t/as3-need-help-with-depth-sorting-in-tile-based-game/271366)

<div class="topic-metadata">

**Author:** [@bluemagica](https://forum.kirupa.com/u/bluemagica)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 9:15am UTC](https://forum.kirupa.com/t/as3-need-help-with-depth-sorting-in-tile-based-game/271366 "2008-09-22T09:15:36Z")

</div>

i have a few questions, which i need solutions to, and these i didnt find in tonypa's tutorials! Oh and these are for as3! 1)How do i create a large map in parts, so that it dosent lag? 2)How do i sort depth of multipl…

---

## [Class instance returns null value](https://forum.kirupa.com/t/class-instance-returns-null-value/271364)

<div class="topic-metadata">

**Author:** [@chrisg1979](https://forum.kirupa.com/u/chrisg1979)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 8:23am UTC](https://forum.kirupa.com/t/class-instance-returns-null-value/271364 "2008-09-22T08:23:55Z")

</div>

Hello all, I'm currently stumped by this. I've created a class to load xml data from a txt file, then assign that xml to a variable named siteStructureXml. When I trace the value of siteStructureXml from within the cla…

---

## [Something is wrong with my preloader](https://forum.kirupa.com/t/something-is-wrong-with-my-preloader/271361)

<div class="topic-metadata">

**Author:** [@k3nn4](https://forum.kirupa.com/u/k3nn4)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 7:41am UTC](https://forum.kirupa.com/t/something-is-wrong-with-my-preloader/271361 "2008-09-22T07:41:52Z")

</div>

Guys, I've created a preloader for my flash and everything seem like working fine but the only problem with my preloader is.. it will only show from 8 or 9% \[frowning\] It's not showing at the start for example 0.0% It …

---

## [Something like Windows Desktop in AS3?](https://forum.kirupa.com/t/something-like-windows-desktop-in-as3/271353)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 6:57am UTC](https://forum.kirupa.com/t/something-like-windows-desktop-in-as3/271353 "2008-09-22T06:57:18Z")

</div>

I am looking for something that behaves like windows desktop, preferably with "snap to grid" on. I am making an image uploader, and ideally would like users to be able to highlight several files, mass delete and reorder …

---

## [Duel Screen pallette have to move them EVERY time i open flash](https://forum.kirupa.com/t/duel-screen-pallette-have-to-move-them-every-time-i-open-flash/271352)

<div class="topic-metadata">

**Author:** [@jibble](https://forum.kirupa.com/u/jibble)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 4:56am UTC](https://forum.kirupa.com/t/duel-screen-pallette-have-to-move-them-every-time-i-open-flash/271352 "2008-09-22T04:56:58Z")

</div>

Does anyone know why flash does that? I've saved my workspace and everything, but every single time i open Flash i have to re-arrange my toolbars and it's REALLY annoying. There a fix out there?

---

## [Manipulating MC on Main stage from external file](https://forum.kirupa.com/t/manipulating-mc-on-main-stage-from-external-file/271351)

<div class="topic-metadata">

**Author:** [@bpat1434](https://forum.kirupa.com/u/bpat1434)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 4:28am UTC](https://forum.kirupa.com/t/manipulating-mc-on-main-stage-from-external-file/271351 "2008-09-22T04:28:49Z")

</div>

I'm working on a small project where I have an external AS class which is passed the stage via the constructor. I then want to start/stop a movieclip on the main stage from that external class. Right now I'm getting an…

---

## [dropTarget on overlap layers of movie clip](https://forum.kirupa.com/t/droptarget-on-overlap-layers-of-movie-clip/271348)

<div class="topic-metadata">

**Author:** [@fishb0n3](https://forum.kirupa.com/u/fishb0n3)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 4:09am UTC](https://forum.kirupa.com/t/droptarget-on-overlap-layers-of-movie-clip/271348 "2008-09-22T04:09:13Z")

</div>

I created a movie clip, a\_mc where there are many other layers of movie clips in it with its own instance name for some other purpose. Then, I created another b\_mc where I insert the dropTarget script in it. What i want…

---

## [Help needed with \_visible](https://forum.kirupa.com/t/help-needed-with--visible/271346)

<div class="topic-metadata">

**Author:** [@Julian500](https://forum.kirupa.com/u/Julian500)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 2:58am UTC](https://forum.kirupa.com/t/help-needed-with--visible/271346 "2008-09-22T02:58:23Z")

</div>

I'm trying to make a photo site, pretty standard main page with subpages as galleries. I figured I would have the subpage SWF files load once the main page is loaded, set them to visible=false, and then once the user cl…

---

## [clickTag / swfobject problems](https://forum.kirupa.com/t/clicktag-swfobject-problems/271341)

<div class="topic-metadata">

**Author:** [@jonny\_buoy](https://forum.kirupa.com/u/jonny_buoy)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 1:03am UTC](https://forum.kirupa.com/t/clicktag-swfobject-problems/271341 "2008-09-22T01:03:47Z")

</div>

hello.. i am bit of a flash novice.. so go easy on me.. i am trying to get a 'clickTag' variable to work within a flash banner ad which i didn't make.. i have been assured that within the flash file the variable is bein…

---

## [Testing if a SWF is loaded into another?](https://forum.kirupa.com/t/testing-if-a-swf-is-loaded-into-another/271340)

<div class="topic-metadata">

**Author:** [@Groady](https://forum.kirupa.com/u/Groady)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 12:10am UTC](https://forum.kirupa.com/t/testing-if-a-swf-is-loaded-into-another/271340 "2008-09-22T00:10:02Z")

</div>

Just wondering if anyone know's how to get a SWF to test itself to see if it's been loaded into another SWF. Is this possible?

---

## [Making a Timer Countdown](https://forum.kirupa.com/t/making-a-timer-countdown/271338)

<div class="topic-metadata">

**Author:** [@Gassy](https://forum.kirupa.com/u/Gassy)\
**Replies:** 0\
**Last updated:** [September 21, 2008, 10:51pm UTC](https://forum.kirupa.com/t/making-a-timer-countdown/271338 "2008-09-21T22:51:44Z")

</div>

Following is a script that I'm using for a count-up timer, I would like to convert it to a count-down timer (from 12 minutes). Any suggestions? //initial variables var countdown:Number=720000; var miltonscore:Number=0…

---

## [Centered XML Image Gallery](https://forum.kirupa.com/t/centered-xml-image-gallery/271336)

<div class="topic-metadata">

**Author:** [@chriswilson](https://forum.kirupa.com/u/chriswilson)\
**Replies:** 0\
**Last updated:** [September 21, 2008, 9:12pm UTC](https://forum.kirupa.com/t/centered-xml-image-gallery/271336 "2008-09-21T21:12:16Z")

</div>

I can't seem to figure out how to make the images of this XML Gallery load in the top middle of the movie clip. Right now they load in the top left corner. Does anyone know how to make it so images load in the top midd…

---

## [Send data via PHP: Works when I test movie, not when I publish](https://forum.kirupa.com/t/send-data-via-php-works-when-i-test-movie-not-when-i-publish/271335)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [September 21, 2008, 8:40pm UTC](https://forum.kirupa.com/t/send-data-via-php-works-when-i-test-movie-not-when-i-publish/271335 "2008-09-21T20:40:23Z")

</div>

This may have been covered already, if so my apologies -- I'm not sure what to search on. I have a FLA file designed to create a text file and send the values of some variables to that file via a PHP file. It works gre…

---

## [(Help!)Check of I if to update or insert a table problem!](https://forum.kirupa.com/t/help-check-of-i-if-to-update-or-insert-a-table-problem/271331)

<div class="topic-metadata">

**Author:** [@jhjsaat](https://forum.kirupa.com/u/jhjsaat)\
**Replies:** 0\
**Last updated:** [September 21, 2008, 7:42pm UTC](https://forum.kirupa.com/t/help-check-of-i-if-to-update-or-insert-a-table-problem/271331 "2008-09-21T19:42:06Z")

</div>

I am trying to find out a way to check of I need to update or insert a new entry in the database table but I am trying for days now and not get it to work in any way. PLEASE HELP! :puzzle: Here is the code I got so far…

---

## [Need help with Top-down view shooter AI](https://forum.kirupa.com/t/need-help-with-top-down-view-shooter-ai/271327)

<div class="topic-metadata">

**Author:** [@Dancso](https://forum.kirupa.com/u/Dancso)\
**Replies:** 0\
**Last updated:** [September 21, 2008, 5:55pm UTC](https://forum.kirupa.com/t/need-help-with-top-down-view-shooter-ai/271327 "2008-09-21T17:55:17Z")

</div>

Hi, I'm working on a game (with Flash 8) that is top-down view, you control a guy with the mouse and your arrow keys, mouse to aim and the keys to move of course. I need some help with writing the enemy AI though, be…

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

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