# programming

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

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

**Page:** 965

---

## [Dot around path](https://forum.kirupa.com/t/dot-around-path/278888)

<div class="topic-metadata">

**Author:** [@TonyDeWittePony](https://forum.kirupa.com/u/TonyDeWittePony)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 1:13am UTC](https://forum.kirupa.com/t/dot-around-path/278888 "2009-01-07T01:13:05Z")

</div>

Hello! I was wondering about how you would let a dot go around a certain path with actionscript. All tutorials I see are around a circle, but what if a corner shows up? How do you handle that? You can compare this to a…

---

## [Pre-loader Giving Me Seizures](https://forum.kirupa.com/t/pre-loader-giving-me-seizures/278886)

<div class="topic-metadata">

**Author:** [@alliecat8979](https://forum.kirupa.com/u/alliecat8979)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 12:39am UTC](https://forum.kirupa.com/t/pre-loader-giving-me-seizures/278886 "2009-01-07T00:39:35Z")

</div>

hey! i'm trying to add this very basic preloader to my flash site i used this tutorial: http://www.gotoandlearn.com/play?id=18 my site is in AS 2.0 i put the preloader on the main time line which only contains my m…

---

## [How To Ask A Variable Its Previous Value?](https://forum.kirupa.com/t/how-to-ask-a-variable-its-previous-value/278885)

<div class="topic-metadata">

**Author:** [@ariel\_mirahy](https://forum.kirupa.com/u/ariel_mirahy)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 12:29am UTC](https://forum.kirupa.com/t/how-to-ask-a-variable-its-previous-value/278885 "2009-01-07T00:29:50Z")

</div>

Hello Kirupians, I'm trying to get a variable's previous data value, for example: var delay = 8 this.myButtonChange\_btn.onPress = function () { delay = 5; } this.myButtonTrace\_btn.onPress = function () { trace ("d…

---

## [Weird paragraph spacing in IE](https://forum.kirupa.com/t/weird-paragraph-spacing-in-ie/278884)

<div class="topic-metadata">

**Author:** [@irishcash33](https://forum.kirupa.com/u/irishcash33)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 12:08am UTC](https://forum.kirupa.com/t/weird-paragraph-spacing-in-ie/278884 "2009-01-07T00:08:01Z")

</div>

Hi, On this page in FF and safari, it looks fine. But in IE, some of the paragraphs are way over to the right and only showing a few words per line. I have looked over the code, re type the info, and nothing is fixing it…

---

## [Please help. AS2, resizable image viewer. PLEASE](https://forum.kirupa.com/t/please-help-as2-resizable-image-viewer-please/278880)

<div class="topic-metadata">

**Author:** [@lovelust](https://forum.kirupa.com/u/lovelust)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 11:17pm UTC](https://forum.kirupa.com/t/please-help-as2-resizable-image-viewer-please/278880 "2009-01-06T23:17:55Z")

</div>

I'm currently building an as2/tweenlite image viewer for my portfolio site. The image viewer resizes dynamically to the shape of the image loaded. My problem is that i can't get swf's to work. When a 300x250 swf is loade…

---

## [Help Please, a function required. URGENT](https://forum.kirupa.com/t/help-please-a-function-required-urgent/278879)

<div class="topic-metadata">

**Author:** [@a4aLien](https://forum.kirupa.com/u/a4aLien)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 10:51pm UTC](https://forum.kirupa.com/t/help-please-a-function-required-urgent/278879 "2009-01-06T22:51:39Z")

</div>

Hello Gurus, I'm a beginner at actionscript, and I've a project going on which I have to deliver shortly.. However, I need a insert a function to complete the movie.. Kindly help me out with it.. I had to create a Dyna…

---

## [Problems with Tweens](https://forum.kirupa.com/t/problems-with-tweens/278877)

<div class="topic-metadata">

**Author:** [@Ricky55](https://forum.kirupa.com/u/Ricky55)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 10:37pm UTC](https://forum.kirupa.com/t/problems-with-tweens/278877 "2009-01-06T22:37:25Z")

</div>

Hi Quite new to Action Script 3. I have some code that loads in some external .jpgs they're only small so I'm not using a preloader. What I finding though is that the file views fine in Flash but not always in the b…

---

## [Outputting XML data via PHP to HTML](https://forum.kirupa.com/t/outputting-xml-data-via-php-to-html/278876)

<div class="topic-metadata">

**Author:** [@thalamus](https://forum.kirupa.com/u/thalamus)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 10:33pm UTC](https://forum.kirupa.com/t/outputting-xml-data-via-php-to-html/278876 "2009-01-06T22:33:45Z")

</div>

Hello: I'm trying to grab data from an XML file and display it in the body of my HTML using XML parser in PHP. (trying to display ANY of the XML data right now) so if I have an blank HTML paragraph: echo('\<p\>'); …

---

## [How can a component detect it's own index change?](https://forum.kirupa.com/t/how-can-a-component-detect-its-own-index-change/278874)

<div class="topic-metadata">

**Author:** [@xbrotherx](https://forum.kirupa.com/u/xbrotherx)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 10:29pm UTC](https://forum.kirupa.com/t/how-can-a-component-detect-its-own-index-change/278874 "2009-01-06T22:29:56Z")

</div>

If I have a component (A) based on a Canvas container, and it's index changes due to another component (B) being added to the same parent container as component "A", how can I have component "A" listen for it's own chang…

---

## [Multiple-ball pong game AI help](https://forum.kirupa.com/t/multiple-ball-pong-game-ai-help/278873)

<div class="topic-metadata">

**Author:** [@MaxGhost](https://forum.kirupa.com/u/MaxGhost)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 10:04pm UTC](https://forum.kirupa.com/t/multiple-ball-pong-game-ai-help/278873 "2009-01-06T22:04:05Z")

</div>

I had this really cool idea of making a pong game with multiple balls (depending on the difficulty level), but then I thought, how the hell am I going to figure out how to code an AI which is smart enough to go after man…

---

## [Calculating intercept time?](https://forum.kirupa.com/t/calculating-intercept-time/278872)

<div class="topic-metadata">

**Author:** [@justkevin](https://forum.kirupa.com/u/justkevin)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 10:02pm UTC](https://forum.kirupa.com/t/calculating-intercept-time/278872 "2009-01-06T22:02:13Z")

</div>

I use the following algorithm to calculate the angle to intercept between two objects (not my own algorithm, but I found it works well): var tx:int = targetPos.x; var ty:int = targetPos.y; var dx:int = tx - this.\_x; v…

---

## [Help With CSS Div Height](https://forum.kirupa.com/t/help-with-css-div-height/278871)

<div class="topic-metadata">

**Author:** [@Joax23](https://forum.kirupa.com/u/Joax23)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 9:40pm UTC](https://forum.kirupa.com/t/help-with-css-div-height/278871 "2009-01-06T21:40:46Z")

</div>

I was wondering if anybody could help me out. I have a container div with a 2px high bg image. Inside this container div I have a few more divs. The problem is, the bg image from the container is not expanding. If I …

---

## [B/W image to color tween, how?](https://forum.kirupa.com/t/b-w-image-to-color-tween-how/278870)

<div class="topic-metadata">

**Author:** [@ParanoidAndroid](https://forum.kirupa.com/u/ParanoidAndroid)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 9:26pm UTC](https://forum.kirupa.com/t/b-w-image-to-color-tween-how/278870 "2009-01-06T21:26:22Z")

</div>

my problem is simple: i want an image to start in black and white, and slowly change to the original color image. How can i do this? I found a way to make the image in b/w using the ColorMatrixFilter class in AS3, the co…

---

## [\_global variables question](https://forum.kirupa.com/t/-global-variables-question/278869)

<div class="topic-metadata">

**Author:** [@MaxGhost](https://forum.kirupa.com/u/MaxGhost)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 9:22pm UTC](https://forum.kirupa.com/t/-global-variables-question/278869 "2009-01-06T21:22:30Z")

</div>

I'm making a simple pong game, with 3 difficulty modes... easy medium and hard. I'm making a variable with global.textmode = "EASY"; and so on... My problem is that when I hit the back button on the mode selection frame …

---

## [Fullscreen form problem](https://forum.kirupa.com/t/fullscreen-form-problem/278862)

<div class="topic-metadata">

**Author:** [@the\_lar](https://forum.kirupa.com/u/the_lar)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 8:04pm UTC](https://forum.kirupa.com/t/fullscreen-form-problem/278862 "2009-01-06T20:04:01Z")

</div>

Hi all, I'm building a new site with Flash and have a specific problem with the fullscreen mode. The contact form stops working, it is impossible to bring any of the fields into focus and thus enter any information. Al…

---

## [UI Component custom](https://forum.kirupa.com/t/ui-component-custom/278860)

<div class="topic-metadata">

**Author:** [@ventoline](https://forum.kirupa.com/u/ventoline)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 7:56pm UTC](https://forum.kirupa.com/t/ui-component-custom/278860 "2009-01-06T19:56:30Z")

</div>

Hi, I was wondering if it was possible to dynamically set the width and height of a List() component, like an Auto-resize or so.. I hardly find any documentation. :hugegrin:

---

## [Please help, my scale MouseOver Tweens need stronger Actionscript](https://forum.kirupa.com/t/please-help-my-scale-mouseover-tweens-need-stronger-actionscript/278859)

<div class="topic-metadata">

**Author:** [@pajhonka](https://forum.kirupa.com/u/pajhonka)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 7:56pm UTC](https://forum.kirupa.com/t/please-help-my-scale-mouseover-tweens-need-stronger-actionscript/278859 "2009-01-06T19:56:05Z")

</div>

Hi, I'm tweening the scale of a few MovieClips and he behavior of my objects is far from desirable. When you get close to the edge pixels of the movieclips, the mouseEvents get confused and jump back and forth. Take a l…

---

## [addChild from separate as file](https://forum.kirupa.com/t/addchild-from-separate-as-file/278858)

<div class="topic-metadata">

**Author:** [@bobcooper](https://forum.kirupa.com/u/bobcooper)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 7:23pm UTC](https://forum.kirupa.com/t/addchild-from-separate-as-file/278858 "2009-01-06T19:23:43Z")

</div>

Hi There, I'm trying to build an attachmovie class so I can add a child movieclip from the library and define the x and y coords using only one line of as in the fla Here is my fla code: var newMovie:AttachClip = n…

---

## [Data import truncation problem](https://forum.kirupa.com/t/data-import-truncation-problem/278856)

<div class="topic-metadata">

**Author:** [@markpenfold](https://forum.kirupa.com/u/markpenfold)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 7:01pm UTC](https://forum.kirupa.com/t/data-import-truncation-problem/278856 "2009-01-06T19:01:47Z")

</div>

Hello everyone, I have a strange problem. Basically, I've got a flat text file which contains data that looks like this (plus another 200 lines similar): \[1,1,3,8,4,6,1,19,11,10,0,0,38,2,4,0\], \[1,1,3,8,4,6,1,19,11,…

---

## [roll\_over & roll\_out problems](https://forum.kirupa.com/t/roll-over-roll-out-problems/278854)

<div class="topic-metadata">

**Author:** [@memonkey](https://forum.kirupa.com/u/memonkey)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 6:31pm UTC](https://forum.kirupa.com/t/roll-over-roll-out-problems/278854 "2009-01-06T18:31:06Z")

</div>

Hello, I'm a newbie to the max. First off, I'm thankful that there are forums like this to help me out, it's very challenging but since I'm just beginning, I need all the help I can get. stop(); btnGroup.addEventLis…

---

## [Problem accessing .stage from an external class](https://forum.kirupa.com/t/problem-accessing-stage-from-an-external-class/278850)

<div class="topic-metadata">

**Author:** [@beepboppbopp](https://forum.kirupa.com/u/beepboppbopp)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 5:34pm UTC](https://forum.kirupa.com/t/problem-accessing-stage-from-an-external-class/278850 "2009-01-06T17:34:18Z")

</div>

Hello! I've done a very simple fullscreen test application which worked while everything was in the document class. Now I want to try having the fullscreenswitch-code in an external class but I get an "1120: Access of…

---

## [DispatchEvent between classes](https://forum.kirupa.com/t/dispatchevent-between-classes/278848)

<div class="topic-metadata">

**Author:** [@dbdvd7](https://forum.kirupa.com/u/dbdvd7)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 5:18pm UTC](https://forum.kirupa.com/t/dispatchevent-between-classes/278848 "2009-01-06T17:18:27Z")

</div>

I am switching from Flash to Flex and encountering some problems. I have a few classes defining my site structure: location index main concept etc.. The document class is Main.as it calls location, index, etc. Locati…

---

## [RollOver search box will not stay visible](https://forum.kirupa.com/t/rollover-search-box-will-not-stay-visible/278844)

<div class="topic-metadata">

**Author:** [@brostd](https://forum.kirupa.com/u/brostd)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 4:27pm UTC](https://forum.kirupa.com/t/rollover-search-box-will-not-stay-visible/278844 "2009-01-06T16:27:19Z")

</div>

On my video player I have a search box that I want to come up after a user either rolls over a certain part of the player or at the end of the video. The problem I am having is that when I set up the rollover and rollout…

---

## [\[FMX04\] Pass Dataset Variable](https://forum.kirupa.com/t/fmx04-pass-dataset-variable/278838)

<div class="topic-metadata">

**Author:** [@asterix2x](https://forum.kirupa.com/u/asterix2x)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 4:05pm UTC](https://forum.kirupa.com/t/fmx04-pass-dataset-variable/278838 "2009-01-06T16:05:13Z")

</div>

I am trying to pass a dataset variable to display a specific category. Inside the filterFunc I have the following code which does not seem to work: // Search by category global.filter = "username"; var category:String …

---

## [Enemy AI in AS3.0](https://forum.kirupa.com/t/enemy-ai-in-as3-0/278836)

<div class="topic-metadata">

**Author:** [@xanderdavis](https://forum.kirupa.com/u/xanderdavis)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 2:37pm UTC](https://forum.kirupa.com/t/enemy-ai-in-as3-0/278836 "2009-01-06T14:37:53Z")

</div>

I'm looking for tutorials for enemy AI in ActionScript 3.0 Does anyone know of any or could provide a quick one?

---

## [Error 1119: Access of possibly undefined property](https://forum.kirupa.com/t/error-1119-access-of-possibly-undefined-property/278831)

<div class="topic-metadata">

**Author:** [@IanCremona](https://forum.kirupa.com/u/IanCremona)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 1:01pm UTC](https://forum.kirupa.com/t/error-1119-access-of-possibly-undefined-property/278831 "2009-01-06T13:01:36Z")

</div>

I am trying to tween an object in a parent MC ActionScript Code: \[LEFT\]Tweener.\[COLOR=#000080\]addTween\[/COLOR\]\[COLOR=#000000\](\[/COLOR\]parent.\[COLOR=#000080\]newsHolder\[/COLOR\], \[COLOR=#000000\]{\[/COLOR\]x:-\[COLOR=#000080\]…

---

## [cs3 to cs4 migrant issue. Subclass library symbol](https://forum.kirupa.com/t/cs3-to-cs4-migrant-issue-subclass-library-symbol/278830)

<div class="topic-metadata">

**Author:** [@philipip](https://forum.kirupa.com/u/philipip)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 12:48pm UTC](https://forum.kirupa.com/t/cs3-to-cs4-migrant-issue-subclass-library-symbol/278830 "2009-01-06T12:48:45Z")

</div>

Hi, I'll get a awkward error when linking a library movieclip to a class. In flash cs3 it worked fine but in cs4 I get this error message: 5000: The class 'Work' must subclass 'flash.display.MovieClip' since it is li…

---

## [Creating layers through actionscript 3 code](https://forum.kirupa.com/t/creating-layers-through-actionscript-3-code/278829)

<div class="topic-metadata">

**Author:** [@OML](https://forum.kirupa.com/u/OML)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 12:43pm UTC](https://forum.kirupa.com/t/creating-layers-through-actionscript-3-code/278829 "2009-01-06T12:43:03Z")

</div>

Hello, I want to take a simple empty project, and create three layers through action script code. Is that possible? Since I am creating an application where I add and remove objects quite frequently, I would like t…

---

## [keyboardEventListener problem](https://forum.kirupa.com/t/keyboardeventlistener-problem/278825)

<div class="topic-metadata">

**Author:** [@grebs](https://forum.kirupa.com/u/grebs)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 12:12pm UTC](https://forum.kirupa.com/t/keyboardeventlistener-problem/278825 "2009-01-06T12:12:41Z")

</div>

i have built a space game. i am using numbers for the menu screen. when the user presses 1 i want 10 instances of a movieclip called blackhole to be added to the stage and when the user presses 2 i want 5 instances of th…

---

## [Sending XML data to server script](https://forum.kirupa.com/t/sending-xml-data-to-server-script/278823)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 11:24am UTC](https://forum.kirupa.com/t/sending-xml-data-to-server-script/278823 "2009-01-06T11:24:29Z")

</div>

I want to send large XML data to an ASP file on the server. What would be the best way to send this XML object? Do I include the entire XML as a string, in a post variable?? And then parse it in the ASP file? Or what? …

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

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