# programming

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

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

**Page:** 816

---

## [Making Validation Code XHTML Compatible](https://forum.kirupa.com/t/making-validation-code-xhtml-compatible/288451)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 9:07pm UTC](https://forum.kirupa.com/t/making-validation-code-xhtml-compatible/288451 "2009-05-15T21:07:01Z")

</div>

I have some older JS code that won't work with XHTML: /\* This script is working with \<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\> only \*/ // A utility function that returns true if a string contai…

---

## [ExternalInterface addCallback issue with IE](https://forum.kirupa.com/t/externalinterface-addcallback-issue-with-ie/288450)

<div class="topic-metadata">

**Author:** [@diparc](https://forum.kirupa.com/u/diparc)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 8:23pm UTC](https://forum.kirupa.com/t/externalinterface-addcallback-issue-with-ie/288450 "2009-05-15T20:23:37Z")

</div>

I am having an issue with IE when using ExternalInterface and addCallback method - i use extjs for portlets and the flex app is inside the portlet window. all communication with the flex app is fine till I move/maximiz…

---

## [How to create this tween / button?](https://forum.kirupa.com/t/how-to-create-this-tween-button/288444)

<div class="topic-metadata">

**Author:** [@Shuugo](https://forum.kirupa.com/u/Shuugo)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 6:15pm UTC](https://forum.kirupa.com/t/how-to-create-this-tween-button/288444 "2009-05-15T18:15:01Z")

</div>

Hi. I am a beginner at Flash and I'm starting to learn it now as I build my portfolio site on the software. I'm not expecting to be able to do anything ultra-awesome, I just want it to be clean and good looking, with sim…

---

## [Problem in loading swf file](https://forum.kirupa.com/t/problem-in-loading-swf-file/288441)

<div class="topic-metadata">

**Author:** [@Lokeshb](https://forum.kirupa.com/u/Lokeshb)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 5:52pm UTC](https://forum.kirupa.com/t/problem-in-loading-swf-file/288441 "2009-05-15T17:52:15Z")

</div>

Hi All, I am writing an application that will load .swf files at run time.The problem that I am facing is that in some machines, the program is loading .swf files successfully while in others it is not.I am not sure as…

---

## [Problem for first game](https://forum.kirupa.com/t/problem-for-first-game/288440)

<div class="topic-metadata">

**Author:** [@biosfera](https://forum.kirupa.com/u/biosfera)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 5:19pm UTC](https://forum.kirupa.com/t/problem-for-first-game/288440 "2009-05-15T17:19:46Z")

</div>

\[LEFT\]I need help my game: I move a ball with the keyboard when I want more than stage.stageWidth the stage moves to the right of 500 as I do? thanks.\[/LEFT\]

---

## [Rectangle Hit Test](https://forum.kirupa.com/t/rectangle-hit-test/288437)

<div class="topic-metadata">

**Author:** [@DashMasterful](https://forum.kirupa.com/u/DashMasterful)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 4:04pm UTC](https://forum.kirupa.com/t/rectangle-hit-test/288437 "2009-05-15T16:04:43Z")

</div>

I have a basic problem, I'm hit testing two rectangles. There is a static rectangle and one that moves, basically the moving rectangle can come in from any direction and hit the static one. I find that the moving box wil…

---

## [Defender Bug: Invincible Soldiers \>.\<](https://forum.kirupa.com/t/defender-bug-invincible-soldiers/288436)

<div class="topic-metadata">

**Author:** [@LLvB](https://forum.kirupa.com/u/LLvB)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 4:01pm UTC](https://forum.kirupa.com/t/defender-bug-invincible-soldiers/288436 "2009-05-15T16:01:51Z")

</div>

Hi, I'm making a defender type game and I've come across a bug that I cant figure out. I think the problem lies in how I am adding or removing the enemy soldiers. The problem is that some of the soldiers are invincible a…

---

## [Control Timeline from External Text File](https://forum.kirupa.com/t/control-timeline-from-external-text-file/288433)

<div class="topic-metadata">

**Author:** [@iiswansongii](https://forum.kirupa.com/u/iiswansongii)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 3:28pm UTC](https://forum.kirupa.com/t/control-timeline-from-external-text-file/288433 "2009-05-15T15:28:23Z")

</div>

In my externally loaded text file, I want to place a link that will control a specific movie clip in my flash timeline. Is there a way to do this? Let me know if you need more clarification as to what I'm trying to a…

---

## [Remove itself once the mc hits certain frame](https://forum.kirupa.com/t/remove-itself-once-the-mc-hits-certain-frame/288432)

<div class="topic-metadata">

**Author:** [@Mistermind](https://forum.kirupa.com/u/Mistermind)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 3:27pm UTC](https://forum.kirupa.com/t/remove-itself-once-the-mc-hits-certain-frame/288432 "2009-05-15T15:27:11Z")

</div>

Hey there, I’m initiating my migration process from AS2 to AS3 (which many of you know it’s like trying to learn Chinese lol). After reading A LOT of tutorials and, of course, pretty much everything that mister senocular…

---

## [Rotating Bitmap](https://forum.kirupa.com/t/rotating-bitmap/288430)

<div class="topic-metadata">

**Author:** [@dygfloyd](https://forum.kirupa.com/u/dygfloyd)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 3:21pm UTC](https://forum.kirupa.com/t/rotating-bitmap/288430 "2009-05-15T15:21:05Z")

</div>

Ok, I'm getting a weird error on something that should be way too easy. It's only a few lines of code so I'm hoping I'm just missing something stupid. Hopefully someone else can see the error. // I'm using the BulkLoa…

---

## [Stopping the mouse from moving over a movie clip](https://forum.kirupa.com/t/stopping-the-mouse-from-moving-over-a-movie-clip/288429)

<div class="topic-metadata">

**Author:** [@red66](https://forum.kirupa.com/u/red66)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 3:13pm UTC](https://forum.kirupa.com/t/stopping-the-mouse-from-moving-over-a-movie-clip/288429 "2009-05-15T15:13:26Z")

</div>

Hi there, Does anyone know how to prevent the mouse from moving over a movie clip, so that the movie clip in a sense has a boarder around it that stops the mouse from entering its area on the main stage. Cheers

---

## [Finding bounds of a component](https://forum.kirupa.com/t/finding-bounds-of-a-component/288428)

<div class="topic-metadata">

**Author:** [@AKirk](https://forum.kirupa.com/u/AKirk)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 3:13pm UTC](https://forum.kirupa.com/t/finding-bounds-of-a-component/288428 "2009-05-15T15:13:00Z")

</div>

When I programmatically create a new component and then call getBounds() on it, I find that the result in not accurate, for instance (this is in the constructor of a class that extends Sprite): mButton = new Butto…

---

## [Mask in movieclip](https://forum.kirupa.com/t/mask-in-movieclip/288427)

<div class="topic-metadata">

**Author:** [@ozkanb](https://forum.kirupa.com/u/ozkanb)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 2:44pm UTC](https://forum.kirupa.com/t/mask-in-movieclip/288427 "2009-05-15T14:44:20Z")

</div>

i have to make 4 movieclips in the stage and each movieclip must have a different mask. so i need to make the mask in the movieclips. now i tried some things but it doesn't work... any ideas how i can make a mask i…

---

## [How not to resize part of the stage?](https://forum.kirupa.com/t/how-not-to-resize-part-of-the-stage/288426)

<div class="topic-metadata">

**Author:** [@marcelomdsc](https://forum.kirupa.com/u/marcelomdsc)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 2:43pm UTC](https://forum.kirupa.com/t/how-not-to-resize-part-of-the-stage/288426 "2009-05-15T14:43:46Z")

</div>

Hello, I would like to know how to have a part of my website not resize with the browser window. You can see what I want to achieve on the website...www.serialcut.com They show their work as the page´s background which c…

---

## [RTS game in Flash](https://forum.kirupa.com/t/rts-game-in-flash/288425)

<div class="topic-metadata">

**Author:** [@DashMasterful](https://forum.kirupa.com/u/DashMasterful)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 2:40pm UTC](https://forum.kirupa.com/t/rts-game-in-flash/288425 "2009-05-15T14:40:02Z")

</div>

I'm making a mini RTS game, I have a group of 5 soldiers. To move all in a group, I double-click on which highlights all of them, I then click anywhere on the map to move all as a group. However, all 5 move to the exact …

---

## [Lightbox 2 error - please help :(](https://forum.kirupa.com/t/lightbox-2-error-please-help/288424)

<div class="topic-metadata">

**Author:** [@DeCal](https://forum.kirupa.com/u/DeCal)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 2:39pm UTC](https://forum.kirupa.com/t/lightbox-2-error-please-help/288424 "2009-05-15T14:39:47Z")

</div>

Hey guys, Just been playing about with Lightbox and added it to the page: http://www.dean.co.uk/baby It seems to work fine for me in IE 7 on my Windows Vista Ultimate machine, but wont load the images in Firefox at a…

---

## [Return equal nodes](https://forum.kirupa.com/t/return-equal-nodes/288421)

<div class="topic-metadata">

**Author:** [@raack08](https://forum.kirupa.com/u/raack08)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 2:16pm UTC](https://forum.kirupa.com/t/return-equal-nodes/288421 "2009-05-15T14:16:18Z")

</div>

Hi, I am new here on kirupa forum and this is my first post:} Well, starting with a problem, i have a xml file and i want to compare data. I want to return the equal nodes within a new XMLList or Array; \<checkNode na…

---

## [Cross Browser Help Needed!](https://forum.kirupa.com/t/cross-browser-help-needed/288417)

<div class="topic-metadata">

**Author:** [@Rocketrud](https://forum.kirupa.com/u/Rocketrud)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 1:22pm UTC](https://forum.kirupa.com/t/cross-browser-help-needed/288417 "2009-05-15T13:22:40Z")

</div>

The following code works fine in IE and Opera. In Firefox it does not show the top ads first and only the first 4 links at the top work. Could anybody shed light on why Firefox is not allowing this to operate correctly …

---

## [AS3 Need help making XMLList of every childnode](https://forum.kirupa.com/t/as3-need-help-making-xmllist-of-every-childnode/288415)

<div class="topic-metadata">

**Author:** [@jessicaD](https://forum.kirupa.com/u/jessicaD)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 1:15pm UTC](https://forum.kirupa.com/t/as3-need-help-making-xmllist-of-every-childnode/288415 "2009-05-15T13:15:08Z")

</div>

Hi people, I have a question about getting data out of a XML. I have made the following XML http://pastebin.com/m5057f168 and as you can see I have a structure like this: \<gallery\> \<subgallery\> \<image\>\</image\> \</subg…

---

## [Scaling causing rendering flaws?](https://forum.kirupa.com/t/scaling-causing-rendering-flaws/288414)

<div class="topic-metadata">

**Author:** [@tbirdkirupa](https://forum.kirupa.com/u/tbirdkirupa)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 1:08pm UTC](https://forum.kirupa.com/t/scaling-causing-rendering-flaws/288414 "2009-05-15T13:08:58Z")

</div>

If I draw a contiguous grid of solid black rectangles in a sprite, say 4 high and 5 wide, and then I tween the scalex and scaley of the containing sprite equally over time, at certain scale values the rectangles draw inc…

---

## [Help understanding for loops... please](https://forum.kirupa.com/t/help-understanding-for-loops-please/288412)

<div class="topic-metadata">

**Author:** [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 12:18pm UTC](https://forum.kirupa.com/t/help-understanding-for-loops-please/288412 "2009-05-15T12:18:27Z")

</div>

\[FONT=Calibri\]\[SIZE=3\]Hi,\[/SIZE\]\[/FONT\] \[FONT=Calibri\]\[SIZE=3\]I have been practicing actionscript 3.0 for at least one year now and still confused about the “for loop” statements.\[/SIZE\]\[/FONT\] \[FONT=Calibri\]\[SIZE=3\]\[/…

---

## [Detect if window is active](https://forum.kirupa.com/t/detect-if-window-is-active/288411)

<div class="topic-metadata">

**Author:** [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 12:07pm UTC](https://forum.kirupa.com/t/detect-if-window-is-active/288411 "2009-05-15T12:07:29Z")

</div>

Hi My site is a Portfolio of other flashwebsites. All have sound. Because it becomes confusing to have all sounds playing at the same time I am trying to do one thing. I need to know if there is a EventListener that …

---

## [Flex SWF to MOV](https://forum.kirupa.com/t/flex-swf-to-mov/288410)

<div class="topic-metadata">

**Author:** [@snozbunny](https://forum.kirupa.com/u/snozbunny)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 12:07pm UTC](https://forum.kirupa.com/t/flex-swf-to-mov/288410 "2009-05-15T12:07:14Z")

</div>

Hi peeps. I'm currently looking for a easy way to convert a simple animation I made in Flex to a MOV. It's just using 'tweener' and embed. Any suggestions would be super helpful. Thanks! :kir:

---

## [Score function](https://forum.kirupa.com/t/score-function/288409)

<div class="topic-metadata">

**Author:** [@Martendeman](https://forum.kirupa.com/u/Martendeman)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 11:44am UTC](https://forum.kirupa.com/t/score-function/288409 "2009-05-15T11:44:14Z")

</div>

Hello All, I made a little game like brick breaker. Now i get 20 points for evry brick i break, and there will be 100 points taken when it hits the bottom. so when i break 2 bricks i have 40 points, but if i lose a ball…

---

## [Checking an input string](https://forum.kirupa.com/t/checking-an-input-string/288408)

<div class="topic-metadata">

**Author:** [@alva](https://forum.kirupa.com/u/alva)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 11:42am UTC](https://forum.kirupa.com/t/checking-an-input-string/288408 "2009-05-15T11:42:56Z")

</div>

I do math applications for the web. Often I have to check if a user input is correct. For example: the right answer is 3x+5. Is the user input that. I do this by checking character by character. I don't think that it i…

---

## [TypeError: Error #2007: Parameter text must be non-null. AS3 and PHP](https://forum.kirupa.com/t/typeerror-error-2007-parameter-text-must-be-non-null-as3-and-php/288406)

<div class="topic-metadata">

**Author:** [@killsteve](https://forum.kirupa.com/u/killsteve)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 10:42am UTC](https://forum.kirupa.com/t/typeerror-error-2007-parameter-text-must-be-non-null-as3-and-php/288406 "2009-05-15T10:42:09Z")

</div>

Hello everyone, Im very new to flash and im trying to send a contact form. Ive modified a template that was working originally... using flash cs4, actionscript 3 and php This is the error I'm getting TypeError: Error …

---

## [ActionScript 3 Link](https://forum.kirupa.com/t/actionscript-3-link/288403)

<div class="topic-metadata">

**Author:** [@Marciano](https://forum.kirupa.com/u/Marciano)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 9:56am UTC](https://forum.kirupa.com/t/actionscript-3-link/288403 "2009-05-15T09:56:26Z")

</div>

Hey there, I have a question! import fl.transitions.Tween; import fl.transitions.easing.\*; import fl.transitions.TweenEvent; var contactlink:URLRequest = new URLRequest("file:///C:/Users/marciano/Pictures/Schoolw…

---

## [Recommended: Converters for Sony Products(XPERIA/Walkman/PS3 /PSP /Sony MP4)](https://forum.kirupa.com/t/recommended-converters-for-sony-products-xperia-walkman-ps3-psp-sony-mp4/288398)

<div class="topic-metadata">

**Author:** [@vivian9](https://forum.kirupa.com/u/vivian9)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 7:46am UTC](https://forum.kirupa.com/t/recommended-converters-for-sony-products-xperia-walkman-ps3-psp-sony-mp4/288398 "2009-05-15T07:46:25Z")

</div>

\[FONT=Times New Roman\] As one of the leading manufacturers of electronics, video, communications, video game consoles, and information technology products for the consumer and professional markets, Sony has provided so…

---

## [Keyboard.DELETE Problem in as3](https://forum.kirupa.com/t/keyboard-delete-problem-in-as3/288394)

<div class="topic-metadata">

**Author:** [@probphp](https://forum.kirupa.com/u/probphp)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 6:42am UTC](https://forum.kirupa.com/t/keyboard-delete-problem-in-as3/288394 "2009-05-15T06:42:21Z")

</div>

Hello all, stage.addEventListener(KeyboardEvent.KEY\_DOWN, KeyPressed); public function KeyPressed(e:KeyboardEvent):void { var keyPressed = e.keyCode; if(keyPressed == Keyboard.DELETE) { trace("delete key…

---

## [Is the Event.ENTER\_FRAME always executed before a frame is rendered](https://forum.kirupa.com/t/is-the-event-enter-frame-always-executed-before-a-frame-is-rendered/288387)

<div class="topic-metadata">

**Author:** [@zhangxiaorui](https://forum.kirupa.com/u/zhangxiaorui)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 3:49am UTC](https://forum.kirupa.com/t/is-the-event-enter-frame-always-executed-before-a-frame-is-rendered/288387 "2009-05-15T03:49:54Z")

</div>

Thought I did some tests proof this, I just want to make sure: No matter where the EnterFrame event is registered, the frame would not be rendered after the EnterFrame event handler done in each frame. For example, I…

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

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