# programming

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

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

**Page:** 1010

---

## [AS2 RT Battle System](https://forum.kirupa.com/t/as2-rt-battle-system/275823)

<div class="topic-metadata">

**Author:** [@Jephz](https://forum.kirupa.com/u/Jephz)\
**Replies:** 0\
**Last updated:** [November 19, 2008, 2:03am UTC](https://forum.kirupa.com/t/as2-rt-battle-system/275823 "2008-11-19T02:03:52Z")

</div>

Hey dudes, I'm currently developing a rpg similiar to "Hero RPG" (you can play it on Armour Games) and I need some help with the battle system. Basically, I have a "enemyTiger" MC and the code for attacking, powers, e…

---

## [Linking code to simple button/textbox within mc](https://forum.kirupa.com/t/linking-code-to-simple-button-textbox-within-mc/275818)

<div class="topic-metadata">

**Author:** [@Hausnfranz](https://forum.kirupa.com/u/Hausnfranz)\
**Replies:** 0\
**Last updated:** [November 19, 2008, 12:22am UTC](https://forum.kirupa.com/t/linking-code-to-simple-button-textbox-within-mc/275818 "2008-11-19T00:22:21Z")

</div>

Hey all, Attached is a file with a simple flash button within an mc. I am having trouble linking the code on the root timeline to a textbox within an mc that changes depending on what is happening to the button. Any…

---

## [Problem with manipulating DOM w/ JS, .onclick event](https://forum.kirupa.com/t/problem-with-manipulating-dom-w-js-onclick-event/275813)

<div class="topic-metadata">

**Author:** [@creativeFuzion](https://forum.kirupa.com/u/creativeFuzion)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 10:39pm UTC](https://forum.kirupa.com/t/problem-with-manipulating-dom-w-js-onclick-event/275813 "2008-11-18T22:39:27Z")

</div>

I have a .php page, with a contact form that can be toggled to show and hide using some simple jQuery. I have a div that users can click to hide/show the contact form, which is held inside another div. I can get the form…

---

## [UILoader not displaying](https://forum.kirupa.com/t/uiloader-not-displaying/275808)

<div class="topic-metadata">

**Author:** [@ceyesuma](https://forum.kirupa.com/u/ceyesuma)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 10:26pm UTC](https://forum.kirupa.com/t/uiloader-not-displaying/275808 "2008-11-18T22:26:22Z")

</div>

I am having a problem with dispalying the UILoader on the mcContainer I have on my main timeline; I wrote a class (below) that loads fine meaning: sourceValue=theXML.key\[key\].swfFile; this code when traced out…

---

## [Very simple conversion AS2 -\> AS3](https://forum.kirupa.com/t/very-simple-conversion-as2-as3/275806)

<div class="topic-metadata">

**Author:** [@mleep](https://forum.kirupa.com/u/mleep)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 10:21pm UTC](https://forum.kirupa.com/t/very-simple-conversion-as2-as3/275806 "2008-11-18T22:21:04Z")

</div>

New to AS3 and I've tried a few methods but they aren't worth posting. Here is the AS2 code, all it is is a roll-over and roll-off event/effect. var gf:GlowFilter = new GlowFilter(0xFFFFFF, 100, 0, 0, 3, 3, false, fal…

---

## [Help with XML Gallery](https://forum.kirupa.com/t/help-with-xml-gallery/275804)

<div class="topic-metadata">

**Author:** [@Poncho5k](https://forum.kirupa.com/u/Poncho5k)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 9:55pm UTC](https://forum.kirupa.com/t/help-with-xml-gallery/275804 "2008-11-18T21:55:21Z")

</div>

Hi everyone. Just having a problem with this as2 photogallery. var content1 = ""; var content2 = ""; function sendContent() { var sendContent:LoadVars = new LoadVars(); sendContent.onLoad = function(success:Bo…

---

## [Disappearing uiscrollbar](https://forum.kirupa.com/t/disappearing-uiscrollbar/275803)

<div class="topic-metadata">

**Author:** [@rtmills](https://forum.kirupa.com/u/rtmills)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 9:31pm UTC](https://forum.kirupa.com/t/disappearing-uiscrollbar/275803 "2008-11-18T21:31:17Z")

</div>

I have a strange issue. I found this method for applying an external css to a dynamic text box in as3: import fl.controls.UIScrollBar; var my\_txt:TextField = new TextField(); my\_txt.x = 370; my\_txt.y = 280; my\_txt.word…

---

## [Swf Address Question](https://forum.kirupa.com/t/swf-address-question/275802)

<div class="topic-metadata">

**Author:** [@convrgr](https://forum.kirupa.com/u/convrgr)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 8:26pm UTC](https://forum.kirupa.com/t/swf-address-question/275802 "2008-11-18T20:26:44Z")

</div>

(as2/cs3) So I’m attempting to implement swf address into my site and it’s all still very confusing to me but I figured out how to at least have the address bar url change every time you click a certain section of the si…

---

## [Problem in Flash Player 10](https://forum.kirupa.com/t/problem-in-flash-player-10/275800)

<div class="topic-metadata">

**Author:** [@delfeld](https://forum.kirupa.com/u/delfeld)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 8:09pm UTC](https://forum.kirupa.com/t/problem-in-flash-player-10/275800 "2008-11-18T20:09:23Z")

</div>

Hello, I have not been able to find a solution to my problem with Flash 10 Player. I switched to the new SWFObject from googlecode, stripped things down to a bare minimum, and still nothing works. The problem …

---

## [Help with shared objects](https://forum.kirupa.com/t/help-with-shared-objects/275794)

<div class="topic-metadata">

**Author:** [@Tie\_my\_rope](https://forum.kirupa.com/u/Tie_my_rope)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 6:38pm UTC](https://forum.kirupa.com/t/help-with-shared-objects/275794 "2008-11-18T18:38:17Z")

</div>

Hi forum, I'm trying to use a shared object to store a value. So far i have managed to store the value once a user has clicked on an image, and i can retrieve it. However i need to detect if its already there or not …

---

## [How do you reference/code OOP for as3?](https://forum.kirupa.com/t/how-do-you-reference-code-oop-for-as3/275792)

<div class="topic-metadata">

**Author:** [@Star258](https://forum.kirupa.com/u/Star258)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 6:04pm UTC](https://forum.kirupa.com/t/how-do-you-reference-code-oop-for-as3/275792 "2008-11-18T18:04:45Z")

</div>

I had this file working flawlessly when it was it was a single .flv file, but I need to code part of the code with oop and be able to reference it with my original .flv file. I am hopelessly stuck and quite new to flash …

---

## [AS2-Help with Random Placement of Array Items](https://forum.kirupa.com/t/as2-help-with-random-placement-of-array-items/275786)

<div class="topic-metadata">

**Author:** [@stanmc](https://forum.kirupa.com/u/stanmc)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 5:18pm UTC](https://forum.kirupa.com/t/as2-help-with-random-placement-of-array-items/275786 "2008-11-18T17:18:46Z")

</div>

HI - My monkeying hasn't worked here but I imagine it's a simple fix, just didn't hit on it yet. I have an array with 8 items, and I want them to be randomly placed on the stage with each load, or when a "shuffle" butt…

---

## [Change flash size externally](https://forum.kirupa.com/t/change-flash-size-externally/275785)

<div class="topic-metadata">

**Author:** [@ThePuzzleMaster](https://forum.kirupa.com/u/ThePuzzleMaster)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 5:15pm UTC](https://forum.kirupa.com/t/change-flash-size-externally/275785 "2008-11-18T17:15:28Z")

</div>

I would like to have a slideshow that I can adjust the flash size externally (loaded from an xml file). Is this possible? Assume I make my movie 100X100 in the flash settings. Is there a way to change that based on dime…

---

## [Trouble loading swf's in AS3.0](https://forum.kirupa.com/t/trouble-loading-swfs-in-as3-0/275784)

<div class="topic-metadata">

**Author:** [@Nadezjda](https://forum.kirupa.com/u/Nadezjda)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 5:12pm UTC](https://forum.kirupa.com/t/trouble-loading-swfs-in-as3-0/275784 "2008-11-18T17:12:54Z")

</div>

Hi people! The last time I used Actionscript, the current standard was 2.0, and I realize things have changed. I encounter my problem when trying to load a swf into a movieclip-container on the "main page". \*\*homeBTN…

---

## [removeChild problems](https://forum.kirupa.com/t/removechild-problems/275783)

<div class="topic-metadata">

**Author:** [@highway81](https://forum.kirupa.com/u/highway81)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 5:12pm UTC](https://forum.kirupa.com/t/removechild-problems/275783 "2008-11-18T17:12:06Z")

</div>

Hi, I am pretty new to AS3 and am trying to build a game based on Pong. I am having trouble however. When a 'goal' is scored, i am given the following error: ArgumentError: Error #2025: The supplied DisplayObject mus…

---

## [Audio cuepoints in CS4?](https://forum.kirupa.com/t/audio-cuepoints-in-cs4/275782)

<div class="topic-metadata">

**Author:** [@jeffrey\_at\_tep](https://forum.kirupa.com/u/jeffrey_at_tep)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 5:08pm UTC](https://forum.kirupa.com/t/audio-cuepoints-in-cs4/275782 "2008-11-18T17:08:00Z")

</div>

Hi, I am trying to put audio in my flash piece, it's some kind of narration. It's sort of a voice over (about 2 mins) that suppose to accompany some minor animations (about 3 or 4 animations). Thus I want to be able to…

---

## [How to reverse a tween using TweenLite?](https://forum.kirupa.com/t/how-to-reverse-a-tween-using-tweenlite/275779)

<div class="topic-metadata">

**Author:** [@icebot07](https://forum.kirupa.com/u/icebot07)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 5:00pm UTC](https://forum.kirupa.com/t/how-to-reverse-a-tween-using-tweenlite/275779 "2008-11-18T17:00:39Z")

</div>

Hey, i've been trying to reverse a tween using tweenlite (i'm pretty new to code) but i'm not sure how to structure the code. does it go: tweento.TweenLite.to(mc, 1, {x:100, y:200}); then this line: myTween.addEv…

---

## [AS3 preloader problem on Mac](https://forum.kirupa.com/t/as3-preloader-problem-on-mac/275778)

<div class="topic-metadata">

**Author:** [@rson](https://forum.kirupa.com/u/rson)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 5:00pm UTC](https://forum.kirupa.com/t/as3-preloader-problem-on-mac/275778 "2008-11-18T17:00:03Z")

</div>

I created an AS3 preloader that loads an external swf in to itself. Code here: import caurina.transitions.Tweener; var l:Loader = new Loader(); l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, preLoop, fal…

---

## [Help: Image Panning](https://forum.kirupa.com/t/help-image-panning/275774)

<div class="topic-metadata">

**Author:** [@ixjaneix](https://forum.kirupa.com/u/ixjaneix)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 4:29pm UTC](https://forum.kirupa.com/t/help-image-panning/275774 "2008-11-18T16:29:16Z")

</div>

I followed everything stated in the tutorial. The tutorial have the left and right panning. Now, I also want to have the up and down panning at the same time. I did it already but panning turned out not smooth. My code i…

---

## [Shape bug](https://forum.kirupa.com/t/shape-bug/275773)

<div class="topic-metadata">

**Author:** [@Standardnoise](https://forum.kirupa.com/u/Standardnoise)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 4:23pm UTC](https://forum.kirupa.com/t/shape-bug/275773 "2008-11-18T16:23:53Z")

</div>

Hello, I don't even know how to explain this... Ok, i'm developing a site, which has some flvs, dynamic masks, etc. Everything was working fine... Upon creation of a new class/symbol, everytime i draw a simple shap…

---

## [Drawing lines to the foreground](https://forum.kirupa.com/t/drawing-lines-to-the-foreground/275772)

<div class="topic-metadata">

**Author:** [@oddballs24](https://forum.kirupa.com/u/oddballs24)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 4:20pm UTC](https://forum.kirupa.com/t/drawing-lines-to-the-foreground/275772 "2008-11-18T16:20:20Z")

</div>

I have a script which creates a sprite to draw lines, but I cant see the lines if I have a background image, because it is always in front of them. How do I move them to the foreground? Thanks!

---

## [Help with one of your tutorials](https://forum.kirupa.com/t/help-with-one-of-your-tutorials/275770)

<div class="topic-metadata">

**Author:** [@asnewb](https://forum.kirupa.com/u/asnewb)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 3:53pm UTC](https://forum.kirupa.com/t/help-with-one-of-your-tutorials/275770 "2008-11-18T15:53:02Z")

</div>

My current version of flash is MX2004 Hi i was working through one of your tutorials as i am trying to enhance my knowledge of flash I was wondering if in the following tutorial could you use the tellTarget to link to a …

---

## [Strange MYSQL Problem](https://forum.kirupa.com/t/strange-mysql-problem/275769)

<div class="topic-metadata">

**Author:** [@skidpanda2](https://forum.kirupa.com/u/skidpanda2)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 3:51pm UTC](https://forum.kirupa.com/t/strange-mysql-problem/275769 "2008-11-18T15:51:15Z")

</div>

Hi, I have a log in form but for some reason some usernames work and some dont. I've never encountered something like this before so I thought I would throw it out there to see if any fellow kirupians can help. Basi…

---

## [Can someone tell me whats wrong with this class?](https://forum.kirupa.com/t/can-someone-tell-me-whats-wrong-with-this-class/275768)

<div class="topic-metadata">

**Author:** [@obmon](https://forum.kirupa.com/u/obmon)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 3:50pm UTC](https://forum.kirupa.com/t/can-someone-tell-me-whats-wrong-with-this-class/275768 "2008-11-18T15:50:16Z")

</div>

Can anyone tell me why the delegation in the following class is not working? i just don't get it. i really hate scope. /\*\* This code defines a custom class that all the stage elements and buttons \*/ // Import B…

---

## [XML content in HTML?](https://forum.kirupa.com/t/xml-content-in-html/275761)

<div class="topic-metadata">

**Author:** [@rynobot](https://forum.kirupa.com/u/rynobot)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 2:09pm UTC](https://forum.kirupa.com/t/xml-content-in-html/275761 "2008-11-18T14:09:55Z")

</div>

Is it possible to load an XML document into a HTML page? I need to Allow updates to content of a html site to be as simple as changing a text file. Similar to using XML with flash. Does anyone know of a method to ach…

---

## [\[MX6.0\] write frameposition](https://forum.kirupa.com/t/mx6-0-write-frameposition/275760)

<div class="topic-metadata">

**Author:** [@MattiasA](https://forum.kirupa.com/u/MattiasA)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 1:26pm UTC](https://forum.kirupa.com/t/mx6-0-write-frameposition/275760 "2008-11-18T13:26:59Z")

</div>

Hi I am handling a lot of levels and mc. When mcA is in its endpostitions I want the current frame in mcB to be written as a new frameposition that later can be called upon. Any tips? A would very much appreciate any com…

---

## [Targeting main timeline from attachMovie (help)](https://forum.kirupa.com/t/targeting-main-timeline-from-attachmovie-help/275757)

<div class="topic-metadata">

**Author:** [@Drawsoup](https://forum.kirupa.com/u/Drawsoup)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 12:58pm UTC](https://forum.kirupa.com/t/targeting-main-timeline-from-attachmovie-help/275757 "2008-11-18T12:58:46Z")

</div>

'ello 'ello! I'm working on this project, where i attach movies to an empty movieclip. In these attached movies, i have a button that needs to target a function on the main timeline. Example: on the main timeline, i ha…

---

## [Dynamic Text Visible within a Transparent MovieClip ? (AS2.0)](https://forum.kirupa.com/t/dynamic-text-visible-within-a-transparent-movieclip-as2-0/275754)

<div class="topic-metadata">

**Author:** [@deluxmilkman](https://forum.kirupa.com/u/deluxmilkman)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 12:28pm UTC](https://forum.kirupa.com/t/dynamic-text-visible-within-a-transparent-movieclip-as2-0/275754 "2008-11-18T12:28:18Z")

</div>

:}i have a dynamic text field within my mc. when I change the alpha value of my mc to 0 with script, my text stays visible. is there any way i can fix this? thanks

---

## [Snow effect - not processor heavy?](https://forum.kirupa.com/t/snow-effect-not-processor-heavy/275752)

<div class="topic-metadata">

**Author:** [@vcm11](https://forum.kirupa.com/u/vcm11)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 11:51am UTC](https://forum.kirupa.com/t/snow-effect-not-processor-heavy/275752 "2008-11-18T11:51:06Z")

</div>

Hi all, Has anyone found a script in AS2 for a nice snow effect that it doesn't make the computer go crazy with so much processor calculations? I tried almost every script around and makes my website completely crash m…

---

## [\[Flash8 AS2\] Key movement problem inside class](https://forum.kirupa.com/t/flash8-as2-key-movement-problem-inside-class/275751)

<div class="topic-metadata">

**Author:** [@SpyrL](https://forum.kirupa.com/u/SpyrL)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 11:40am UTC](https://forum.kirupa.com/t/flash8-as2-key-movement-problem-inside-class/275751 "2008-11-18T11:40:19Z")

</div>

Ok so im having a problem with moving a MovieClip with the keys. The movement keys are the standard 'a, s, d, w' keys. The problem is that only 1 key is being detected as held down, even if Im holding down 2 keys. The …

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

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