# programming

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

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

**Page:** 1459

---

## [Loading External .txt File](https://forum.kirupa.com/t/loading-external-txt-file/244938)

<div class="topic-metadata">

**Author:** [@wsp](https://forum.kirupa.com/u/wsp)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 7:57pm UTC](https://forum.kirupa.com/t/loading-external-txt-file/244938 "2007-11-23T19:57:11Z")

</div>

I have seen a tutorial on this, but it was very un-thorough and it didn't have it the way I was looking at. Is there any way to load individual variables from a .txt file, like so: \[level 1\] enemy1=5 enemy2=10 enemy3=1…

---

## [Flash with ASP.net](https://forum.kirupa.com/t/flash-with-asp-net/244937)

<div class="topic-metadata">

**Author:** [@kpeterson](https://forum.kirupa.com/u/kpeterson)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 7:34pm UTC](https://forum.kirupa.com/t/flash-with-asp-net/244937 "2007-11-23T19:34:57Z")

</div>

\[COLOR=blue\]\[COLOR=blue\]\[FONT='Arial','sans-serif'\]\[/font\]\[/COLOR\] \[COLOR=blue\]\[FONT='Arial','sans-serif'\]I'm an ASP.net developer. How hard to you think it would be to adapt this Flash template (\[FONT='Times New Roman'…

---

## [AS3 OOP Best Practices](https://forum.kirupa.com/t/as3-oop-best-practices/244936)

<div class="topic-metadata">

**Author:** [@Sekka](https://forum.kirupa.com/u/Sekka)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 7:33pm UTC](https://forum.kirupa.com/t/as3-oop-best-practices/244936 "2007-11-23T19:33:06Z")

</div>

Hey, I am looking for some opinions on best practices for coding using OOP. I have been away from Flash for a while, and I am getting back into it at the moment for a project at University. I am diving right in to AS…

---

## [Can someone help me clean-up my code please?](https://forum.kirupa.com/t/can-someone-help-me-clean-up-my-code-please/244935)

<div class="topic-metadata">

**Author:** [@LittleFenris](https://forum.kirupa.com/u/LittleFenris)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 6:39pm UTC](https://forum.kirupa.com/t/can-someone-help-me-clean-up-my-code-please/244935 "2007-11-23T18:39:40Z")

</div>

So I've got my site working, but I KNOW the code is messy and inefficient. I'm very new to programming and haven't learned "proper" coding practices. I figure there is some way of using a "for loop" to do this more ef…

---

## [Drag and drop with multiple movie clip](https://forum.kirupa.com/t/drag-and-drop-with-multiple-movie-clip/244932)

<div class="topic-metadata">

**Author:** [@eureka5720](https://forum.kirupa.com/u/eureka5720)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 5:53pm UTC](https://forum.kirupa.com/t/drag-and-drop-with-multiple-movie-clip/244932 "2007-11-23T17:53:34Z")

</div>

Hi There; Referring to the tutorial at http://www.hed.swin.edu.au/design/tutorials/flash/drag\_drop\_tut/index.php#five (under the title of drag multiple object), i would like to make it allow the circle\_mc able to drop …

---

## [Showing Numbered Pages To Display News Threads](https://forum.kirupa.com/t/showing-numbered-pages-to-display-news-threads/244927)

<div class="topic-metadata">

**Author:** [@dreamerp](https://forum.kirupa.com/u/dreamerp)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 5:14pm UTC](https://forum.kirupa.com/t/showing-numbered-pages-to-display-news-threads/244927 "2007-11-23T17:14:02Z")

</div>

Hello, If I want to display news data from a database but limit it to show 5 news threads per page, how would I go about listing numbered pages for the archived news threads. For example, the home page is showing 5 new…

---

## [ActionScript-javascript communication](https://forum.kirupa.com/t/actionscript-javascript-communication/244924)

<div class="topic-metadata">

**Author:** [@mfsiddiq](https://forum.kirupa.com/u/mfsiddiq)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 4:10pm UTC](https://forum.kirupa.com/t/actionscript-javascript-communication/244924 "2007-11-23T16:10:45Z")

</div>

HI I am facing some problem with my as-js communication.I am passing a String expression to a javascript function using ExternalInterface.call function upon mouse click.My string expression is as follows …

---

## [MP3 Player XML help](https://forum.kirupa.com/t/mp3-player-xml-help/244923)

<div class="topic-metadata">

**Author:** [@Woodpeckersam](https://forum.kirupa.com/u/Woodpeckersam)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 4:01pm UTC](https://forum.kirupa.com/t/mp3-player-xml-help/244923 "2007-11-23T16:01:19Z")

</div>

Hi all i have a little problems… I followed the MP3 player tutorial on this website (great site, video tutorials) http://www.gotoandlearn.com Everything runs smoothly, but I noticed that the tutorial maker did not inc…

---

## [Sliding slideshow with XML](https://forum.kirupa.com/t/sliding-slideshow-with-xml/244922)

<div class="topic-metadata">

**Author:** [@andyd](https://forum.kirupa.com/u/andyd)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 4:00pm UTC](https://forum.kirupa.com/t/sliding-slideshow-with-xml/244922 "2007-11-23T16:00:28Z")

</div>

Hi Bit of an ask but does anyone know of a good tutorial that shows you how to create a sliding left/right slideshow (when the mouse goes left/right), the slides get bigger in the middle of the slideshow and smaller on…

---

## [Hiding Referrer Url](https://forum.kirupa.com/t/hiding-referrer-url/244921)

<div class="topic-metadata">

**Author:** [@emmett\_m](https://forum.kirupa.com/u/emmett_m)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 3:35pm UTC](https://forum.kirupa.com/t/hiding-referrer-url/244921 "2007-11-23T15:35:58Z")

</div>

Hello All, I have been doing freelance work for a client over the last year, who has asked me NOT to post any of that work on my portfolio, since his clients will see my portfolio's address in their referrer logs (with…

---

## [Stage\["displayState"\] help](https://forum.kirupa.com/t/stage-displaystate-help/244920)

<div class="topic-metadata">

**Author:** [@paul\_ferrie](https://forum.kirupa.com/u/paul_ferrie)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 3:27pm UTC](https://forum.kirupa.com/t/stage-displaystate-help/244920 "2007-11-23T15:27:36Z")

</div>

Hi guys, I have been messing around with Stage\["displayState"\]. So far i am seeing good results with what i am working on but i have noticed one small niggly thing. When i jump to fullscreen Text input fields no long…

---

## [Submitting SWF from website](https://forum.kirupa.com/t/submitting-swf-from-website/244916)

<div class="topic-metadata">

**Author:** [@elifbb](https://forum.kirupa.com/u/elifbb)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 2:15pm UTC](https://forum.kirupa.com/t/submitting-swf-from-website/244916 "2007-11-23T14:15:20Z")

</div>

Hi All, I have been searching several forums and internet, as well as kirupa, and couldn't find the satisfactory answer \[smile\] I want to provide a form to my visitors on a website using flash, where they can draw on…

---

## [Illegal XML characters php](https://forum.kirupa.com/t/illegal-xml-characters-php/244915)

<div class="topic-metadata">

**Author:** [@agentmca](https://forum.kirupa.com/u/agentmca)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 2:09pm UTC](https://forum.kirupa.com/t/illegal-xml-characters-php/244915 "2007-11-23T14:09:26Z")

</div>

\[FONT=Verdana\]Hi Guys, I’m having trouble with illegal special characters when I export XML from PHP. I know it’s a case of replacing for example ‘\[/FONT\]\[FONT=Verdana\]\<’ with ‘\<’ but I’m having trouble placing it within…

---

## [Drag Mc on its \_x](https://forum.kirupa.com/t/drag-mc-on-its--x/244914)

<div class="topic-metadata">

**Author:** [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 2:03pm UTC](https://forum.kirupa.com/t/drag-mc-on-its--x/244914 "2007-11-23T14:03:09Z")

</div>

How do I drag a MC just on its \_x axis, keeping the \_y the same? Thanks

---

## [Event handling problem](https://forum.kirupa.com/t/event-handling-problem/244911)

<div class="topic-metadata">

**Author:** [@encantado](https://forum.kirupa.com/u/encantado)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 12:32pm UTC](https://forum.kirupa.com/t/event-handling-problem/244911 "2007-11-23T12:32:36Z")

</div>

Hey guys & girls, As an event handling noob i've come up to the following problem: The code below generates a menu but i fail to get any response out of the event handling. Everything works just fine except that one ev…

---

## [Rewind movieclip](https://forum.kirupa.com/t/rewind-movieclip/244910)

<div class="topic-metadata">

**Author:** [@Rundevo](https://forum.kirupa.com/u/Rundevo)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 12:15pm UTC](https://forum.kirupa.com/t/rewind-movieclip/244910 "2007-11-23T12:15:03Z")

</div>

Hello all!! I have a main\_menu.swf that holds, you guessed it, the main menu \[smile\] The main menu moves its y value on all the different menu buttons depending on the contents of the .swf that holds the contents tha…

---

## [mc\_tween2.as question](https://forum.kirupa.com/t/mc-tween2-as-question/244909)

<div class="topic-metadata">

**Author:** [@Crookmon](https://forum.kirupa.com/u/Crookmon)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 11:40am UTC](https://forum.kirupa.com/t/mc-tween2-as-question/244909 "2007-11-23T11:40:31Z")

</div>

Hey there, I've got this problem with AS code that works properly only with certain publish settings. I'm using mc\_tween2 on a Flash8 project and I've downloaded a mc\_tween2.as sample called Activated Menu from the mc…

---

## [Resize class](https://forum.kirupa.com/t/resize-class/244907)

<div class="topic-metadata">

**Author:** [@wanda](https://forum.kirupa.com/u/wanda)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 11:22am UTC](https://forum.kirupa.com/t/resize-class/244907 "2007-11-23T11:22:59Z")

</div>

Argh .. this is really geeting on my nerves! I am trying to make a resize class that centers my main movie, but i can't seem to get it to work when i put it in a class. This is my code so far. import mx.utils.Dele…

---

## [Help Flex Problem](https://forum.kirupa.com/t/help-flex-problem/244906)

<div class="topic-metadata">

**Author:** [@nvidia](https://forum.kirupa.com/u/nvidia)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 11:19am UTC](https://forum.kirupa.com/t/help-flex-problem/244906 "2007-11-23T11:19:52Z")

</div>

Hi i have just downloaded Flex Builder 2 and Flash 9 player for Internet Explorer. I added this piece of code in my ProgrammingBasics.as file: \[LEFT\] package { import flash.display.Sprite; public class ProgrammingBa…

---

## [Preloading images - Automated slideshow](https://forum.kirupa.com/t/preloading-images-automated-slideshow/244902)

<div class="topic-metadata">

**Author:** [@James001](https://forum.kirupa.com/u/James001)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 9:41am UTC](https://forum.kirupa.com/t/preloading-images-automated-slideshow/244902 "2007-11-23T09:41:30Z")

</div>

Hi, can anyone help me here. I've created a slideshow that runs off a setInterval. Basically I just want the next jpg in the array to load whilst the current slide is on the screen for the specified interval. ///I also…

---

## [Disabled right mouse click](https://forum.kirupa.com/t/disabled-right-mouse-click/244898)

<div class="topic-metadata">

**Author:** [@ajayaditya](https://forum.kirupa.com/u/ajayaditya)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 8:47am UTC](https://forum.kirupa.com/t/disabled-right-mouse-click/244898 "2007-11-23T08:47:45Z")

</div>

Stage.showMenu = false; Mouse.hide(); root.attachMovie("mouseMc", "\_mouseMc", getNextHighestDepth()); \_mouseMc.onEnterFrame = function() { this.\_x = \_xmouse; this.\_y = \_ymouse; }; the above code i used to attac…

---

## [Creating A Donation Button](https://forum.kirupa.com/t/creating-a-donation-button/244897)

<div class="topic-metadata">

**Author:** [@cranky\_crank](https://forum.kirupa.com/u/cranky_crank)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 8:36am UTC](https://forum.kirupa.com/t/creating-a-donation-button/244897 "2007-11-23T08:36:46Z")

</div>

Howdy. So i'm not that good at html, java, etc. I know some, but not the greatest. A friend of mine has a webpage he is building and came to me with a question I couldn't answer and I thought I would ask for him here. He…

---

## [Javascript degredation](https://forum.kirupa.com/t/javascript-degredation/244896)

<div class="topic-metadata">

**Author:** [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 8:05am UTC](https://forum.kirupa.com/t/javascript-degredation/244896 "2007-11-23T08:05:37Z")

</div>

Probably a thread on this already somewhere, but searched and couldn't find it. Just started getting into jQuery and the like - love it. Doing a site for a friend right now that's gonna involve a lot of javascript. I…

---

## [onEnterFrame=function() problem](https://forum.kirupa.com/t/onenterframe-function-problem/244893)

<div class="topic-metadata">

**Author:** [@leonthelion](https://forum.kirupa.com/u/leonthelion)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 6:09am UTC](https://forum.kirupa.com/t/onenterframe-function-problem/244893 "2007-11-23T06:09:16Z")

</div>

I have a serious problem with this code: onEnterFrame=function(){ \_root.talktimer-- if(\_root.talktimer\<=0 && Key.isDown(88)){ gotoAndStop(46)}} for some reason if im on a different frame other than 45 if I press x…

---

## [XML gallery/navigation category](https://forum.kirupa.com/t/xml-gallery-navigation-category/244891)

<div class="topic-metadata">

**Author:** [@ToubMor](https://forum.kirupa.com/u/ToubMor)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 5:26am UTC](https://forum.kirupa.com/t/xml-gallery-navigation-category/244891 "2007-11-23T05:26:45Z")

</div>

Hi there, ive been searching the forum for hours but cant exactly find what i need. Im building this navigation/gallery sort a thing and im using KIRUPA's gallery. I know how this thing works now, but i iwant to try so…

---

## [Kirupa Photo gallery... can run in Flash 5?](https://forum.kirupa.com/t/kirupa-photo-gallery-can-run-in-flash-5/244886)

<div class="topic-metadata">

**Author:** [@bartlock](https://forum.kirupa.com/u/bartlock)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 1:56am UTC](https://forum.kirupa.com/t/kirupa-photo-gallery-can-run-in-flash-5/244886 "2007-11-23T01:56:12Z")

</div>

Hi. Is there a way to make the Kirupa Photo gallery to run with Flash 5 plug in? http://www.kirupa.com/developer/mx2004/xml\_slideshow.htm

---

## [Count Up with Form Submission](https://forum.kirupa.com/t/count-up-with-form-submission/244881)

<div class="topic-metadata">

**Author:** [@tweaked\_eye](https://forum.kirupa.com/u/tweaked_eye)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 12:29am UTC](https://forum.kirupa.com/t/count-up-with-form-submission/244881 "2007-11-23T00:29:06Z")

</div>

Does anyone know of a component or script or tutorial how I can create a Flash Form that would allow someone to enter a date and have it spit out how many days since the date they provided? TIA! I am assuming there wou…

---

## [Dynamic Movie scope question](https://forum.kirupa.com/t/dynamic-movie-scope-question/244880)

<div class="topic-metadata">

**Author:** [@hc3d](https://forum.kirupa.com/u/hc3d)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 12:15am UTC](https://forum.kirupa.com/t/dynamic-movie-scope-question/244880 "2007-11-23T00:15:43Z")

</div>

\[FONT=Times New Roman\] Dynamic MovieClip scope question \[/FONT\] \[FONT=Times New Roman\] \[/FONT\] \[FONT=Times New Roman\] I reused the thumbnail tutorial code from this site and retooled it to work from PHP to MyS…

---

## [Zencart AJAX Menu bug](https://forum.kirupa.com/t/zencart-ajax-menu-bug/244879)

<div class="topic-metadata">

**Author:** [@HandyMan](https://forum.kirupa.com/u/HandyMan)\
**Replies:** 0\
**Last updated:** [November 22, 2007, 11:55pm UTC](https://forum.kirupa.com/t/zencart-ajax-menu-bug/244879 "2007-11-22T23:55:45Z")

</div>

Hi! I have been working on a webshop based on Zencart. I added an ajax menu to make the site faster, but there seems to be a bug. There is an error when clicking the products. Maybe some of you have experience from this …

---

## [Open Source Drawing Tool Classes for a Flash Drawing Pad?](https://forum.kirupa.com/t/open-source-drawing-tool-classes-for-a-flash-drawing-pad/244878)

<div class="topic-metadata">

**Author:** [@insultcomidog](https://forum.kirupa.com/u/insultcomidog)\
**Replies:** 0\
**Last updated:** [November 22, 2007, 11:55pm UTC](https://forum.kirupa.com/t/open-source-drawing-tool-classes-for-a-flash-drawing-pad/244878 "2007-11-22T23:55:00Z")

</div>

Hey Guys, I'm trying to create a simple Flash drawing pad that allows to save and edit their drawings. I found Sen's tutorial but it appears to be written in Flash 6 and AS1: http://www.senocular.com/index.php?id=0.1…

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

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