# programming

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

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

**Page:** 831

---

## [Adding random number to file name upload](https://forum.kirupa.com/t/adding-random-number-to-file-name-upload/287520)

<div class="topic-metadata">

**Author:** [@monkeyrock](https://forum.kirupa.com/u/monkeyrock)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 9:30pm UTC](https://forum.kirupa.com/t/adding-random-number-to-file-name-upload/287520 "2009-05-02T21:30:07Z")

</div>

Hello, I have a script to upload images to my server. I want to generate a random number to add to the users file name incase they upload an existing name and write over it. I have created a var called file nameAddOn a…

---

## [AS3 getting variable from PHP (limit of only one echo variable?)](https://forum.kirupa.com/t/as3-getting-variable-from-php-limit-of-only-one-echo-variable/287518)

<div class="topic-metadata">

**Author:** [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 8:18pm UTC](https://forum.kirupa.com/t/as3-getting-variable-from-php-limit-of-only-one-echo-variable/287518 "2009-05-02T20:18:55Z")

</div>

Hi all, thanks for taking the time, much appreciated. I want to be able to retrieve several variables from my MySQL database. Currently my flash sends a request to .php file which then echos all of the variables as …

---

## [Problem with amfphp](https://forum.kirupa.com/t/problem-with-amfphp/287517)

<div class="topic-metadata">

**Author:** [@zeux](https://forum.kirupa.com/u/zeux)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 8:09pm UTC](https://forum.kirupa.com/t/problem-with-amfphp/287517 "2009-05-02T20:09:11Z")

</div>

Hi Im using amfphp to get some info from php, but im with problems. I have two frames in timeline, in the first frame i have a movieclip that will load a gallery of projects from amfphp and its working ok. Then when …

---

## [GetUrl :(](https://forum.kirupa.com/t/geturl/287516)

<div class="topic-metadata">

**Author:** [@Dustdvl](https://forum.kirupa.com/u/Dustdvl)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 7:38pm UTC](https://forum.kirupa.com/t/geturl/287516 "2009-05-02T19:38:06Z")

</div>

Im making a kinda of scroll wheel with pictures on it that i want them to be clicked on to go to a html page on the website. i got them clickable there buttons and when i click them they wont get the URL here is the Act…

---

## [Timeline control w/slider](https://forum.kirupa.com/t/timeline-control-w-slider/287515)

<div class="topic-metadata">

**Author:** [@vmartinez](https://forum.kirupa.com/u/vmartinez)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 7:38pm UTC](https://forum.kirupa.com/t/timeline-control-w-slider/287515 "2009-05-02T19:38:05Z")

</div>

I've created a demo http://www.bodhi12.com/frontrunner/demo.html and I want be able to control the movie with a slider. I've simply laid everything out on the main timeline. The component I'm using to create the pixel ef…

---

## [Loading swf's errors](https://forum.kirupa.com/t/loading-swfs-errors/287514)

<div class="topic-metadata">

**Author:** [@waverider303](https://forum.kirupa.com/u/waverider303)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 6:11pm UTC](https://forum.kirupa.com/t/loading-swfs-errors/287514 "2009-05-02T18:11:05Z")

</div>

Im making a main page that will load different content into one loader. I have the loading URLRequest calling a variable for the link and then on a certain button click it will change the swf to be loading. The problem i…

---

## [Targetting main scene labels within button thats inside movie clip](https://forum.kirupa.com/t/targetting-main-scene-labels-within-button-thats-inside-movie-clip/287513)

<div class="topic-metadata">

**Author:** [@enzo80](https://forum.kirupa.com/u/enzo80)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 5:44pm UTC](https://forum.kirupa.com/t/targetting-main-scene-labels-within-button-thats-inside-movie-clip/287513 "2009-05-02T17:44:15Z")

</div>

i have movie clip named serviceMenu which is instance of menuAll in Scene 1 scene 1 have 8 labels: serv1 - serv2 - serv3 - serv4 - serv5 - serv6 - serv7 - serv8 inside serviceMenu i have 8 buttons when i doublecl…

---

## [Pls Help - Can't Embed Special Font:(](https://forum.kirupa.com/t/pls-help-cant-embed-special-font/287506)

<div class="topic-metadata">

**Author:** [@pinklamp](https://forum.kirupa.com/u/pinklamp)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 12:56pm UTC](https://forum.kirupa.com/t/pls-help-cant-embed-special-font/287506 "2009-05-02T12:56:44Z")

</div>

Thank you in advance for the help. My problem is I wanted to use a special font (frenchscript mt) for captions I made in the dynamic text field. (My captions change depending on the image chosen and it has links too). I'…

---

## [Duplicate movieclip and firing weapon](https://forum.kirupa.com/t/duplicate-movieclip-and-firing-weapon/287505)

<div class="topic-metadata">

**Author:** [@Beany](https://forum.kirupa.com/u/Beany)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 12:42pm UTC](https://forum.kirupa.com/t/duplicate-movieclip-and-firing-weapon/287505 "2009-05-02T12:42:10Z")

</div>

I'm making this: http://www.error1.com/game/fighting-AI4.html And as you can see when you fire (CTRL key) it fires the laser once the key is released and you can only fire once, if you press fire again once the laser i…

---

## [Replace \\ with \\\\ in string](https://forum.kirupa.com/t/replace-with-in-string/287504)

<div class="topic-metadata">

**Author:** [@spectator](https://forum.kirupa.com/u/spectator)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 12:33pm UTC](https://forum.kirupa.com/t/replace-with-in-string/287504 "2009-05-02T12:33:35Z")

</div>

Hi all :). I am trying to replace \\ with \\, but I am having problems with the ". I know that I should do this with string.replace. but i don't know what the regex for \\ is. var myPattern:RegExp = /"\\"/g; var str…

---

## [Dada mail in flash AS3](https://forum.kirupa.com/t/dada-mail-in-flash-as3/287502)

<div class="topic-metadata">

**Author:** [@jpg221](https://forum.kirupa.com/u/jpg221)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 11:18am UTC](https://forum.kirupa.com/t/dada-mail-in-flash-as3/287502 "2009-05-02T11:18:09Z")

</div>

Hello, This is my first post although I 've been following this forum for ages... I want to use my dada mail list in a flash movie. Until now, I had dada mail in HTML format in my index.html file which cointains my .sw…

---

## [Changing the BitmapData.rectangle](https://forum.kirupa.com/t/changing-the-bitmapdata-rectangle/287499)

<div class="topic-metadata">

**Author:** [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 7:49am UTC](https://forum.kirupa.com/t/changing-the-bitmapdata-rectangle/287499 "2009-05-02T07:49:25Z")

</div>

Hi, I'm trying to take a 'snapshot' of a movieclip that i've got on the stage with "BitmapData" and then starting a "draw()" command on it. I'm able to get it drawing.. however.. it only takes the things from (0,0).(…

---

## [Mouse interaction - Need your advices on achieving this](https://forum.kirupa.com/t/mouse-interaction-need-your-advices-on-achieving-this/287498)

<div class="topic-metadata">

**Author:** [@humbucker](https://forum.kirupa.com/u/humbucker)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 6:16am UTC](https://forum.kirupa.com/t/mouse-interaction-need-your-advices-on-achieving-this/287498 "2009-05-02T06:16:11Z")

</div>

Hello, I random came up to this website component http://flashden.net/item/dynamic-background/36409 and I have to say I got no idea on how to code this in actionscript, how should I code this random movieclip pasting o…

---

## [Create dynamic images with 4 lines of symmetry](https://forum.kirupa.com/t/create-dynamic-images-with-4-lines-of-symmetry/287497)

<div class="topic-metadata">

**Author:** [@8bitninja](https://forum.kirupa.com/u/8bitninja)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 5:03am UTC](https://forum.kirupa.com/t/create-dynamic-images-with-4-lines-of-symmetry/287497 "2009-05-02T05:03:19Z")

</div>

I can easily make a dynamic image with one or two lines of symmetry. My normal approach is to take a square image and mirror it once too make one line of symmetry like this: \[image\] and then to make two lines of sy…

---

## [Quick Actionscript/XML question](https://forum.kirupa.com/t/quick-actionscript-xml-question/287496)

<div class="topic-metadata">

**Author:** [@xbryanthomasx](https://forum.kirupa.com/u/xbryanthomasx)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 4:54am UTC](https://forum.kirupa.com/t/quick-actionscript-xml-question/287496 "2009-05-02T04:54:40Z")

</div>

Hi, I have a quick question about using an XML file to contain the path to something I want to load in Flash. Right now, I have: this.loadMovie("Images/1.jpg"); I'd like for the word "Images/" to be read from the XM…

---

## [Dynamic buttons and their content](https://forum.kirupa.com/t/dynamic-buttons-and-their-content/287490)

<div class="topic-metadata">

**Author:** [@Freddythunder](https://forum.kirupa.com/u/Freddythunder)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 11:34pm UTC](https://forum.kirupa.com/t/dynamic-buttons-and-their-content/287490 "2009-05-01T23:34:53Z")

</div>

Hi, I have a solution for this already, but it involves a million if/else statements so I was wondering if there's a way around this. Here we go. I'm making an RSS reader that displays posts in Craigslist. All the …

---

## [Change XML using slider](https://forum.kirupa.com/t/change-xml-using-slider/287489)

<div class="topic-metadata">

**Author:** [@bborntrager](https://forum.kirupa.com/u/bborntrager)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 11:05pm UTC](https://forum.kirupa.com/t/change-xml-using-slider/287489 "2009-05-01T23:05:46Z")

</div>

What my application is supposed to do: depending on where the slider is, different information is displayed. If i change the sb.thumb.x (the slider thumb) on the stage before i test the movie it displays the right infor…

---

## [Two separate LocalConnections?](https://forum.kirupa.com/t/two-separate-localconnections/287485)

<div class="topic-metadata">

**Author:** [@juniorspecial](https://forum.kirupa.com/u/juniorspecial)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 9:08pm UTC](https://forum.kirupa.com/t/two-separate-localconnections/287485 "2009-05-01T21:08:28Z")

</div>

//I've got this working var sending\_lc:LocalConnection = new LocalConnection(); this.mcLeftBox.onRollOver = function() { sending\_lc.send("lc\_name","methodToExecute"); }; //but when I do this, this part does…

---

## [Image still while background scrolls](https://forum.kirupa.com/t/image-still-while-background-scrolls/287482)

<div class="topic-metadata">

**Author:** [@ExchangeSh9](https://forum.kirupa.com/u/ExchangeSh9)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 7:57pm UTC](https://forum.kirupa.com/t/image-still-while-background-scrolls/287482 "2009-05-01T19:57:06Z")

</div>

Hello people basically I am at university and having trouble with one of my assignments, I am new to actionscripting unfortunatley :(. The first problem I am having is that we are using packages to code the work and I ha…

---

## [Fractional Angled offset](https://forum.kirupa.com/t/fractional-angled-offset/287480)

<div class="topic-metadata">

**Author:** [@substance](https://forum.kirupa.com/u/substance)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 7:18pm UTC](https://forum.kirupa.com/t/fractional-angled-offset/287480 "2009-05-01T19:18:01Z")

</div>

So i'm used to dealing with projection pretty often where the formula is: x += Math.cos(angle) \* offsetX; But I'm working on a project in Box2D where units are in meters (aka a lot smaller) and it seems if the offset…

---

## [How to load a movie just one time and no more?](https://forum.kirupa.com/t/how-to-load-a-movie-just-one-time-and-no-more/287478)

<div class="topic-metadata">

**Author:** [@w3iland](https://forum.kirupa.com/u/w3iland)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 7:15pm UTC](https://forum.kirupa.com/t/how-to-load-a-movie-just-one-time-and-no-more/287478 "2009-05-01T19:15:07Z")

</div>

Hi, first of all, sorry for my poor english... I've got a serious(?) problem, I tried almost everything but I'm at dead end. I've created a full flash site. It's just a simple, corporate site. Four menu items: -intro…

---

## [Thumbnail gallery tutorial actionscript help](https://forum.kirupa.com/t/thumbnail-gallery-tutorial-actionscript-help/287476)

<div class="topic-metadata">

**Author:** [@chronomarx](https://forum.kirupa.com/u/chronomarx)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 6:50pm UTC](https://forum.kirupa.com/t/thumbnail-gallery-tutorial-actionscript-help/287476 "2009-05-01T18:50:43Z")

</div>

Hey I ws doing the photo gallery with thumbnail tutorial and got it to work perfectly but when I tried to apply it to my website, I end up getting over a hundred errors. The only difference between the tutorial and my we…

---

## [Tween Child Display Object Index getting screwed up](https://forum.kirupa.com/t/tween-child-display-object-index-getting-screwed-up/287469)

<div class="topic-metadata">

**Author:** [@gamesville](https://forum.kirupa.com/u/gamesville)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 4:33pm UTC](https://forum.kirupa.com/t/tween-child-display-object-index-getting-screwed-up/287469 "2009-05-01T16:33:58Z")

</div>

Hi, I have a set of buttons which trigger menu panels to tween up from below the screen. I want these menu panels to be displayed behind the buttons (which are displayed on the button edge of the screen). So I add the …

---

## [Flash form doesn't work but html equivalent does :\<](https://forum.kirupa.com/t/flash-form-doesnt-work-but-html-equivalent-does/287468)

<div class="topic-metadata">

**Author:** [@jonnyw](https://forum.kirupa.com/u/jonnyw)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 4:31pm UTC](https://forum.kirupa.com/t/flash-form-doesnt-work-but-html-equivalent-does/287468 "2009-05-01T16:31:33Z")

</div>

are there any Flash ppl in the house? I rebuild the form as a flash form http://tvpresenter.tv/testing/presenterview.swf ...and it's spitting out this into the address bar when I run it: http://tvpresenter.tv/te…

---

## [Saving to Text File](https://forum.kirupa.com/t/saving-to-text-file/287466)

<div class="topic-metadata">

**Author:** [@Osteel](https://forum.kirupa.com/u/Osteel)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 3:43pm UTC](https://forum.kirupa.com/t/saving-to-text-file/287466 "2009-05-01T15:43:28Z")

</div>

Okay okay, I know this is an old topic that frustrates many people. I was able to, at one point a few years ago, save and load to and from a text file. However, doing any tutorials found online currently (I've tried at l…

---

## [How to limit loading on defined domain address ?!](https://forum.kirupa.com/t/how-to-limit-loading-on-defined-domain-address/287459)

<div class="topic-metadata">

**Author:** [@sun2](https://forum.kirupa.com/u/sun2)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 12:31pm UTC](https://forum.kirupa.com/t/how-to-limit-loading-on-defined-domain-address/287459 "2009-05-01T12:31:22Z")

</div>

\*\* How do you limit access to swf files from a certain domain? I Don't want another ones embed my Flash game ... Can you help me ?\*\*

---

## [1 item remaining in loading bar ie6](https://forum.kirupa.com/t/1-item-remaining-in-loading-bar-ie6/287456)

<div class="topic-metadata">

**Author:** [@irishcash33](https://forum.kirupa.com/u/irishcash33)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 11:38am UTC](https://forum.kirupa.com/t/1-item-remaining-in-loading-bar-ie6/287456 "2009-05-01T11:38:40Z")

</div>

PAGE Hi, Only in ie6... The page loads fine and looks the same in FF,IE7,IE6. But In IE6, the status bar never fully loads, and it says "(1 item remaining) Opening Page..." Whyyyy? Is it in my coding? I never have run ac…

---

## [Background stretch problem in IE7](https://forum.kirupa.com/t/background-stretch-problem-in-ie7/287455)

<div class="topic-metadata">

**Author:** [@revelations1318](https://forum.kirupa.com/u/revelations1318)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 10:54am UTC](https://forum.kirupa.com/t/background-stretch-problem-in-ie7/287455 "2009-05-01T10:54:33Z")

</div>

I'm playing with a layout for a client (www.chirho.co.uk/k666new) but I'm getting annoying issues with IE7. All I've done so far is a container div with a repeating png background and a header div with a background png. …

---

## [\[Flash8,AS2\] loadMovie/unloadMovie problem](https://forum.kirupa.com/t/flash8-as2-loadmovie-unloadmovie-problem/287453)

<div class="topic-metadata">

**Author:** [@proeliumfessus](https://forum.kirupa.com/u/proeliumfessus)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 10:29am UTC](https://forum.kirupa.com/t/flash8-as2-loadmovie-unloadmovie-problem/287453 "2009-05-01T10:29:40Z")

</div>

mmmmkay- been searchin all night to find out why my code wont work- now I gotta take it to the forums i guess lol... The desired affect is simple: I have a single button... with each click I want it to load text into…

---

## [Stopping Movieclip when clicking on Combobox](https://forum.kirupa.com/t/stopping-movieclip-when-clicking-on-combobox/287450)

<div class="topic-metadata">

**Author:** [@hagop](https://forum.kirupa.com/u/hagop)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 8:51am UTC](https://forum.kirupa.com/t/stopping-movieclip-when-clicking-on-combobox/287450 "2009-05-01T08:51:53Z")

</div>

Hi there I need some help on an issue that has puzzled me for some time. I am usinga Flash CS4 file using Actionscript 2.0 I have a movieclip and a button and a combobox next to it. When I click on the button \*\*btn \*\*I…

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

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