# programming

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

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

**Page:** 148

---

## [Load External Movie & Pause on Frame - AS2 Problem](https://forum.kirupa.com/t/load-external-movie-pause-on-frame-as2-problem/329653)

<div class="topic-metadata">

**Author:** [@theCayce](https://forum.kirupa.com/u/theCayce)\
**Replies:** 0\
**Last updated:** [September 27, 2012, 10:35am UTC](https://forum.kirupa.com/t/load-external-movie-pause-on-frame-as2-problem/329653 "2012-09-27T10:35:56Z")

</div>

Hello, Forum; I'm stumped. I have a display with 10 frames. Each frame loads an external SWF. I need that external SWF to play for ten seconds in each frame before moving on to the next one. The script I'm trying to…

---

## [Why is this piece of code giving an error in AS2.0](https://forum.kirupa.com/t/why-is-this-piece-of-code-giving-an-error-in-as2-0/329650)

<div class="topic-metadata">

**Author:** [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Replies:** 0\
**Last updated:** [September 27, 2012, 6:37am UTC](https://forum.kirupa.com/t/why-is-this-piece-of-code-giving-an-error-in-as2-0/329650 "2012-09-27T06:37:43Z")

</div>

Hi all, I picked up the following code from net and i think its and AS3 code which I am trying to run in AS2 (flash 8.0). I did create the button with remove\_bt instance as follows. The code is as follows:- \[COLOR=#…

---

## [getNextHighestDepth confusion Flash 8 Pro AS2](https://forum.kirupa.com/t/getnexthighestdepth-confusion-flash-8-pro-as2/329649)

<div class="topic-metadata">

**Author:** [@Crux](https://forum.kirupa.com/u/Crux)\
**Replies:** 0\
**Last updated:** [September 27, 2012, 5:54am UTC](https://forum.kirupa.com/t/getnexthighestdepth-confusion-flash-8-pro-as2/329649 "2012-09-27T05:54:17Z")

</div>

I'm considering a way to make tabs. I'm thinking tabs will be 100 pixels wide so I thought it would be something of the sort var nextDepth:Number = getNextHighestDepth(); btnMinimize.onRelease = function(){ createEm…

---

## [getNextHighestDepth confusion Flash 8 AS2](https://forum.kirupa.com/t/getnexthighestdepth-confusion-flash-8-as2/329648)

<div class="topic-metadata">

**Author:** [@Crux](https://forum.kirupa.com/u/Crux)\
**Replies:** 0\
**Last updated:** [September 27, 2012, 4:46am UTC](https://forum.kirupa.com/t/getnexthighestdepth-confusion-flash-8-as2/329648 "2012-09-27T04:46:13Z")

</div>

\[FONT=arial\]I'm considering a way to make tabs. I'm thinking tabs will be 100 pixels wide so I thought it would be something of the sort \` var nextDepth:Number = getNextHighestDepth(); btnMinimize.onRelease = function(…

---

## [Mouse up event not detected by movieclip](https://forum.kirupa.com/t/mouse-up-event-not-detected-by-movieclip/329647)

<div class="topic-metadata">

**Author:** [@hunsnowboarder](https://forum.kirupa.com/u/hunsnowboarder)\
**Replies:** 0\
**Last updated:** [September 26, 2012, 10:53pm UTC](https://forum.kirupa.com/t/mouse-up-event-not-detected-by-movieclip/329647 "2012-09-26T22:53:01Z")

</div>

Hi there Everyone! I have a very frustrating problem, and I just can't find the solution. \[frowning\] However I am sure that I am missing something. So, I have a very basic beat up "game". Everything works fine, only …

---

## [Flash Banner with 2 combo box selections](https://forum.kirupa.com/t/flash-banner-with-2-combo-box-selections/329646)

<div class="topic-metadata">

**Author:** [@donlinville](https://forum.kirupa.com/u/donlinville)\
**Replies:** 0\
**Last updated:** [September 26, 2012, 9:49pm UTC](https://forum.kirupa.com/t/flash-banner-with-2-combo-box-selections/329646 "2012-09-26T21:49:22Z")

</div>

Hello, I'm creating a flash banner ad that will have two combo boxes and a zip code text box. All of which will populate section of the url, once the user has clicked the "submit button" the url looks like this: http:/…

---

## [Navigation with action script 3.0 classes](https://forum.kirupa.com/t/navigation-with-action-script-3-0-classes/329644)

<div class="topic-metadata">

**Author:** [@mumeric](https://forum.kirupa.com/u/mumeric)\
**Replies:** 0\
**Last updated:** [September 26, 2012, 5:04pm UTC](https://forum.kirupa.com/t/navigation-with-action-script-3-0-classes/329644 "2012-09-26T17:04:08Z")

</div>

They were something wrong with my last post here goes another attempt. I wonder if there is any guide out there on navigation actionscript 3.0 class. I do not want a code that is in the timeline. I do not find a good gui…

---

## [Tutorial: Style Beautiful Tables Using Only CSS](https://forum.kirupa.com/t/tutorial-style-beautiful-tables-using-only-css/329641)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [September 26, 2012, 1:57am UTC](https://forum.kirupa.com/t/tutorial-style-beautiful-tables-using-only-css/329641 "2012-09-26T01:57:34Z")

</div>

\[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[FONT=Segoe UI\]\[COLOR=#333333\]\[COLOR=#333333\]Hi everyone,\[/COLOR\]\[/COLOR\]\[/FONT\]\[/FONT\]\[/COLOR\]\[/COLOR\] \[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COLOR=#333333\]\[FONT=Segoe…

---

## [jQuery: How to reference field input NAMErather than ID](https://forum.kirupa.com/t/jquery-how-to-reference-field-input-namerather-than-id/329640)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [September 25, 2012, 10:40pm UTC](https://forum.kirupa.com/t/jquery-how-to-reference-field-input-namerather-than-id/329640 "2012-09-25T22:40:41Z")

</div>

The jQuery Validate plugin can compare two fields using the ID like this: confirm\_email: { required: true, email: true, equalTo: "#email" }, But I need to…

---

## [Custom Cursor Issue (AS2 Flash 8 pro)](https://forum.kirupa.com/t/custom-cursor-issue-as2-flash-8-pro/329639)

<div class="topic-metadata">

**Author:** [@Crux](https://forum.kirupa.com/u/Crux)\
**Replies:** 0\
**Last updated:** [September 25, 2012, 8:51pm UTC](https://forum.kirupa.com/t/custom-cursor-issue-as2-flash-8-pro/329639 "2012-09-25T20:51:32Z")

</div>

ActionScript 2 Flash 8 Pro Stage = 1600 x 900 ClipEvent MC = 1595 X 898 @0%alpha, aligned to stage vertical/horizontal I have menu items at tippy top and bitty bottom of my stage. If mouse is moved outside the player t…

---

## [Help with creating elements dynamically and adding listeners](https://forum.kirupa.com/t/help-with-creating-elements-dynamically-and-adding-listeners/329638)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [September 25, 2012, 8:37pm UTC](https://forum.kirupa.com/t/help-with-creating-elements-dynamically-and-adding-listeners/329638 "2012-09-25T20:37:22Z")

</div>

Hello, Using JS and jQuery how can I add a number of \<li\> elements to a \<ul\> tag? I want to replace all of these list items. Does jQuery have something similar to a for loop? I also have to add listeners to each one of t…

---

## [Shooting, Health, Points](https://forum.kirupa.com/t/shooting-health-points/329636)

<div class="topic-metadata">

**Author:** [@Eric\_Vivens](https://forum.kirupa.com/u/Eric_Vivens)\
**Replies:** 0\
**Last updated:** [September 25, 2012, 7:22pm UTC](https://forum.kirupa.com/t/shooting-health-points/329636 "2012-09-25T19:22:26Z")

</div>

I have a game im trying to make and i had the health working before, but now its not and i am trying to figure how to do points and shooting. Attached is what i have so far if your interested have a look and get back t…

---

## [Map Pan and Zoom, Open Source, Almost finished. Please Help](https://forum.kirupa.com/t/map-pan-and-zoom-open-source-almost-finished-please-help/329634)

<div class="topic-metadata">

**Author:** [@MNatalia](https://forum.kirupa.com/u/MNatalia)\
**Replies:** 0\
**Last updated:** [September 25, 2012, 12:44pm UTC](https://forum.kirupa.com/t/map-pan-and-zoom-open-source-almost-finished-please-help/329634 "2012-09-25T12:44:47Z")

</div>

Hey, I´m trying to achieve like a google map app. It has to zoom with mouse wheel and pan with mouse. now, everything works great. the problem is, that the pivot should change dynamicaly where the mouse cursor is, and I …

---

## [Embedding Bold and Italic fonts in a dynamic textfield, Impossible?](https://forum.kirupa.com/t/embedding-bold-and-italic-fonts-in-a-dynamic-textfield-impossible/329633)

<div class="topic-metadata">

**Author:** [@friendlygiraffe](https://forum.kirupa.com/u/friendlygiraffe)\
**Replies:** 0\
**Last updated:** [September 25, 2012, 9:58am UTC](https://forum.kirupa.com/t/embedding-bold-and-italic-fonts-in-a-dynamic-textfield-impossible/329633 "2012-09-25T09:58:09Z")

</div>

Hi. I've been trying to find a solution to this since Flash got rid of it's 'Faux bold' option in CS3. Using a basic Arial font. I have embedded, the Regular, Bold and Italic versions of the Arial font in my lIbrary. …

---

## [Function works in Flash9 and Chrome but not in Flash10 or above](https://forum.kirupa.com/t/function-works-in-flash9-and-chrome-but-not-in-flash10-or-above/329630)

<div class="topic-metadata">

**Author:** [@Zachary\_Hogna](https://forum.kirupa.com/u/Zachary_Hogna)\
**Replies:** 0\
**Last updated:** [September 25, 2012, 12:50am UTC](https://forum.kirupa.com/t/function-works-in-flash9-and-chrome-but-not-in-flash10-or-above/329630 "2012-09-25T00:50:36Z")

</div>

Hi guys, So I have a class in my sidescroller that scrolls the background whilst keeping the character in the center of the screen. If I run the swf in Chrome or test it in Flash Pro CS6 (with my project settings set…

---

## [How to get accurate drop position in AS3](https://forum.kirupa.com/t/how-to-get-accurate-drop-position-in-as3/329624)

<div class="topic-metadata">

**Author:** [@arjun1](https://forum.kirupa.com/u/arjun1)\
**Replies:** 0\
**Last updated:** [September 24, 2012, 8:17am UTC](https://forum.kirupa.com/t/how-to-get-accurate-drop-position-in-as3/329624 "2012-09-24T08:17:44Z")

</div>

\[COLOR=#333333\]\[FONT=Segoe UI\]\<mx:Script\>\[/FONT\]\[/COLOR\] \[COLOR=#333333\]\[FONT=Segoe UI\]\<!\[CDATA\[\[/FONT\]\[/COLOR\] \[COLOR=#333333\]\[FONT=Segoe UI\]import mx.containers.Canvas;\[/FONT\]\[/COLOR\] \[COLOR=#333333\]\[FONT=Segoe UI\]im…

---

## [Can anybody convert this here actionscriptz?](https://forum.kirupa.com/t/can-anybody-convert-this-here-actionscriptz/329623)

<div class="topic-metadata">

**Author:** [@vapourrub](https://forum.kirupa.com/u/vapourrub)\
**Replies:** 0\
**Last updated:** [September 23, 2012, 11:39pm UTC](https://forum.kirupa.com/t/can-anybody-convert-this-here-actionscriptz/329623 "2012-09-23T23:39:48Z")

</div>

\[COLOR=#333333\]This here code works great and dandy for the ole AS2 but wont play ball on AS3 whatsoever. Is there a straightforward conversion for AS3 or must I embark on an entirely new scroll?\[/COLOR\] \[CENTER\]\[COLOR…

---

## [regExp to find spaces?](https://forum.kirupa.com/t/regexp-to-find-spaces/329621)

<div class="topic-metadata">

**Author:** [@GeekTweak\_0](https://forum.kirupa.com/u/GeekTweak_0)\
**Replies:** 0\
**Last updated:** [September 23, 2012, 8:30pm UTC](https://forum.kirupa.com/t/regexp-to-find-spaces/329621 "2012-09-23T20:30:52Z")

</div>

I just learned about regExp, and am having trouble understanding the concept. any links to good tutorials would be awesome. but primarily i want to know how to do it to replace a " " (space) with something, but everyw…

---

## [Auto Execution of actionscript code on different frames](https://forum.kirupa.com/t/auto-execution-of-actionscript-code-on-different-frames/329620)

<div class="topic-metadata">

**Author:** [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Replies:** 0\
**Last updated:** [September 23, 2012, 3:32pm UTC](https://forum.kirupa.com/t/auto-execution-of-actionscript-code-on-different-frames/329620 "2012-09-23T15:32:43Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]Hi guys !\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]I have a very simple question, I have a small flash file which has on the 1st 10 frames, tweened a simple Welcome Message. On the 11th …

---

## [Need delay after detecting the sound](https://forum.kirupa.com/t/need-delay-after-detecting-the-sound/329618)

<div class="topic-metadata">

**Author:** [@Zubair\_Affan](https://forum.kirupa.com/u/Zubair_Affan)\
**Replies:** 0\
**Last updated:** [September 23, 2012, 9:42am UTC](https://forum.kirupa.com/t/need-delay-after-detecting-the-sound/329618 "2012-09-23T09:42:24Z")

</div>

I need to place a delay as soon as the "this.gotoAndStop(currentFrame + 30);" is executed. the purpose of this script is to move the timeline after mic read the sound in time interval of 5 sec.. for example, current fra…

---

## [Working of Drag and drop using mouse events in as3/flex](https://forum.kirupa.com/t/working-of-drag-and-drop-using-mouse-events-in-as3-flex/329615)

<div class="topic-metadata">

**Author:** [@arjun1](https://forum.kirupa.com/u/arjun1)\
**Replies:** 0\
**Last updated:** [September 22, 2012, 4:38pm UTC](https://forum.kirupa.com/t/working-of-drag-and-drop-using-mouse-events-in-as3-flex/329615 "2012-09-22T16:38:56Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]After going through many tutorials i came up with the below drag and drop mxml program(using script tag), but the placement is not accurate. Looking for alternate method for placing dropping ca…

---

## [Actionscript 3: finding the name of a sound currently playing](https://forum.kirupa.com/t/actionscript-3-finding-the-name-of-a-sound-currently-playing/329613)

<div class="topic-metadata">

**Author:** [@pfasu](https://forum.kirupa.com/u/pfasu)\
**Replies:** 0\
**Last updated:** [September 22, 2012, 12:10am UTC](https://forum.kirupa.com/t/actionscript-3-finding-the-name-of-a-sound-currently-playing/329613 "2012-09-22T00:10:33Z")

</div>

Hello All, I'm brand new to Actionscript 3 and am using the clearly explained code from this site to preload and play a sound: var soundClip:Sound; function init() { soundClip = new Sound(); soundClip.load(new URLR…

---

## [Geometry / trigonometry question related to video game character behavior](https://forum.kirupa.com/t/geometry-trigonometry-question-related-to-video-game-character-behavior/329611)

<div class="topic-metadata">

**Author:** [@Wollog](https://forum.kirupa.com/u/Wollog)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 9:43pm UTC](https://forum.kirupa.com/t/geometry-trigonometry-question-related-to-video-game-character-behavior/329611 "2012-09-21T21:43:12Z")

</div>

Hello guys, I'm a little rusty on geometry and trigonometry stuff and could use a little help! It's rather super urgent, too \[stuck\_out\_tongue\] So I have an AI controlled character who moves in quick jumps towards it…

---

## [Need Flash Movie Of Arrow Flying Across Europe](https://forum.kirupa.com/t/need-flash-movie-of-arrow-flying-across-europe/329609)

<div class="topic-metadata">

**Author:** [@Peter\_Gibbons](https://forum.kirupa.com/u/Peter_Gibbons)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 8:02pm UTC](https://forum.kirupa.com/t/need-flash-movie-of-arrow-flying-across-europe/329609 "2012-09-21T20:02:29Z")

</div>

Hi- Forgive me if Im in the wrong place, I am not a programmer \[smile\] I'm trying to make a film about the spread of communism in eastern Europe under the old USSR. I was wondering if anyone here could tell me where on…

---

## [Error: Notice: Undefined variable: res.php on lines 362, 408, 412](https://forum.kirupa.com/t/error-notice-undefined-variable-res-php-on-lines-362-408-412/329606)

<div class="topic-metadata">

**Author:** [@Scotty13](https://forum.kirupa.com/u/Scotty13)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 2:44pm UTC](https://forum.kirupa.com/t/error-notice-undefined-variable-res-php-on-lines-362-408-412/329606 "2012-09-21T14:44:22Z")

</div>

Error: Notice: Undefined variable: res.php on lines 362, 408, 412 (Marked bold red below) Notice: Undefined variable: passengerUserName in /home/\*\*\*\*\*\*\*\*\*\*\*\*/res.php on line 362 Notice: Undefined variable: passengerF…

---

## [(as2) frame game](https://forum.kirupa.com/t/as2-frame-game/329605)

<div class="topic-metadata">

**Author:** [@bcteam](https://forum.kirupa.com/u/bcteam)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 12:40pm UTC](https://forum.kirupa.com/t/as2-frame-game/329605 "2012-09-21T12:40:59Z")

</div>

Hi there! Is there any solution for this? Scene 1 FRAME 1 (\_root) \> CITY (Has 4 frames) When I in Frame1 (\_root), I have to reach a button named (BUT) of CITY's third frame. CITY.\_level2.BUT.onPress = function ()…

---

## [Only one instance of custom class functions properly at runtime](https://forum.kirupa.com/t/only-one-instance-of-custom-class-functions-properly-at-runtime/329604)

<div class="topic-metadata">

**Author:** [@Zachary\_Hogna](https://forum.kirupa.com/u/Zachary_Hogna)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 9:23am UTC](https://forum.kirupa.com/t/only-one-instance-of-custom-class-functions-properly-at-runtime/329604 "2012-09-21T09:23:37Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]Hi!\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]So I have a function in my side-scroller game that is designed to scroll the background while the character remains in the center of the stag…

---

## [AS3 - banner - masking effect - can someone help?](https://forum.kirupa.com/t/as3-banner-masking-effect-can-someone-help/329602)

<div class="topic-metadata">

**Author:** [@molly\_ferns](https://forum.kirupa.com/u/molly_ferns)\
**Replies:** 0\
**Last updated:** [September 20, 2012, 6:04pm UTC](https://forum.kirupa.com/t/as3-banner-masking-effect-can-someone-help/329602 "2012-09-20T18:04:38Z")

</div>

Hi All, I really need to do a banner like http://osc4.template-help.com/wt\_31190/header\_v8.swf I tried decompiling the swf but it gives garbage AS3. Can someone please help me out? Basically I need the masking effect m…

---

## [Stop timeline progress arbitrarily](https://forum.kirupa.com/t/stop-timeline-progress-arbitrarily/329601)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [September 20, 2012, 4:39pm UTC](https://forum.kirupa.com/t/stop-timeline-progress-arbitrarily/329601 "2012-09-20T16:39:12Z")

</div>

I've searched for this and all I can find is how to use the stop() command, which isn't what I need. I'm working entirely on the timeline, which has 20 seconds or so of content. Is there a function I can attach to a bu…

---

## [Need help evenly spacing a number of objects](https://forum.kirupa.com/t/need-help-evenly-spacing-a-number-of-objects/329600)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [September 20, 2012, 1:33pm UTC](https://forum.kirupa.com/t/need-help-evenly-spacing-a-number-of-objects/329600 "2012-09-20T13:33:36Z")

</div>

Hello, I am trying to make a 'page selector' which would allow a user to jump ahead in a series of html pages. In other words, the user can click 'next' to go to the next page in the series or use this selector to jump…

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

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