# programming

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

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

**Page:** 258

---

## [Play Movie Only when Visible in Window?](https://forum.kirupa.com/t/play-movie-only-when-visible-in-window/323441)

<div class="topic-metadata">

**Author:** [@woodman650](https://forum.kirupa.com/u/woodman650)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 11:57pm UTC](https://forum.kirupa.com/t/play-movie-only-when-visible-in-window/323441 "2011-06-30T23:57:24Z")

</div>

Hi there, It's been a while... I'm looking at putting together a page with a series of small flash videos but ideally they would only play when in the visible browser space (paused below or above fold)... this is to cr…

---

## [Why my Regular Expression Replace function is not working on server?](https://forum.kirupa.com/t/why-my-regular-expression-replace-function-is-not-working-on-server/323440)

<div class="topic-metadata">

**Author:** [@gkp\_gaurav1](https://forum.kirupa.com/u/gkp_gaurav1)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 9:33pm UTC](https://forum.kirupa.com/t/why-my-regular-expression-replace-function-is-not-working-on-server/323440 "2011-06-30T21:33:27Z")

</div>

Hey, Below is a piece of code of my data entry page: \<html\> \<body\> \<script type="text/javascript"\> function replaceRegHtm(){ var patt1=new RegExp("’", "gi"); var formTxt = document.dbform.d\_text.value; alert(formT…

---

## [Enemy AI HitTesting with the environnement! (Follow player script)](https://forum.kirupa.com/t/enemy-ai-hittesting-with-the-environnement-follow-player-script/323439)

<div class="topic-metadata">

**Author:** [@calyston00](https://forum.kirupa.com/u/calyston00)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 7:42pm UTC](https://forum.kirupa.com/t/enemy-ai-hittesting-with-the-environnement-follow-player-script/323439 "2011-06-30T19:42:39Z")

</div>

Hi again guys! I really don't how to come around this problem for this one! I got a enemy (ghost) that is tracking the player, on this one thing my script to follow the player is working well. But i've inserted a fun…

---

## [Tile-Based Puzzle Game Problem - Need help!](https://forum.kirupa.com/t/tile-based-puzzle-game-problem-need-help/323438)

<div class="topic-metadata">

**Author:** [@Dezerith](https://forum.kirupa.com/u/Dezerith)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 7:31pm UTC](https://forum.kirupa.com/t/tile-based-puzzle-game-problem-need-help/323438 "2011-06-30T19:31:33Z")

</div>

I'm currently making a kind of port of an old game called Chip's Challenge in flash. It's a tile-based puzzle game. I've made my array and got the map working, however now that I've got to adding a playable character, …

---

## [AS 3 clock problem](https://forum.kirupa.com/t/as-3-clock-problem/323437)

<div class="topic-metadata">

**Author:** [@nnnswordfish](https://forum.kirupa.com/u/nnnswordfish)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 6:45pm UTC](https://forum.kirupa.com/t/as-3-clock-problem/323437 "2011-06-30T18:45:35Z")

</div>

Hy guys.. i try to make digital clock in as 3 ... but no luck it not working... i uploaded all source files here an please can u cheek please were is error? and why it doesn't working? thanks import flash.utils.Tim…

---

## [How to reduce 5 seconds from the Timer](https://forum.kirupa.com/t/how-to-reduce-5-seconds-from-the-timer/323434)

<div class="topic-metadata">

**Author:** [@Nuwa](https://forum.kirupa.com/u/Nuwa)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 1:35pm UTC](https://forum.kirupa.com/t/how-to-reduce-5-seconds-from-the-timer/323434 "2011-06-30T13:35:30Z")

</div>

Im trying to reduce 5 seconds from the timer when the user clicks on the stage. This is the first time im using the Timer class and im not sure how to do this. This is the code i have so far, var theTimer:Timer = new…

---

## [getChildByName question](https://forum.kirupa.com/t/getchildbyname-question/323433)

<div class="topic-metadata">

**Author:** [@harm\_less](https://forum.kirupa.com/u/harm_less)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 1:04pm UTC](https://forum.kirupa.com/t/getchildbyname-question/323433 "2011-06-30T13:04:03Z")

</div>

Hello, When you add a child (movieclip) to the stage on runtime do you have to get it by getChildByName or getChildAt or is there some other way? Because when you create a movieclip structure in the Flash IDE you can j…

---

## [Youtube Api Draw](https://forum.kirupa.com/t/youtube-api-draw/323432)

<div class="topic-metadata">

**Author:** [@fikontrollet](https://forum.kirupa.com/u/fikontrollet)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 12:07pm UTC](https://forum.kirupa.com/t/youtube-api-draw/323432 "2011-06-30T12:07:29Z")

</div>

Hi! I'm making something that requires me to draw() the youtubeplayer Giving me this pretty error: SecurityError: Error #2121: Security sandbox violation: BitmapData.draw: http://\*\*\*\*\*\*\*\*\*.com/zzz/Main.swf cannot acces…

---

## [Photoshop script (jsx and/or js)](https://forum.kirupa.com/t/photoshop-script-jsx-and-or-js/323430)

<div class="topic-metadata">

**Author:** [@VeddyCent](https://forum.kirupa.com/u/VeddyCent)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 8:55am UTC](https://forum.kirupa.com/t/photoshop-script-jsx-and-or-js/323430 "2011-06-30T08:55:47Z")

</div>

Hi all, I'm working with Photoshop script and I'm rather puzzled at an error. I used the script listener plugin that comes with Photoshop. It's basically a macro recorder that generates code from user actions. Anyw…

---

## [Double click with two states](https://forum.kirupa.com/t/double-click-with-two-states/323427)

<div class="topic-metadata">

**Author:** [@mashinc](https://forum.kirupa.com/u/mashinc)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 6:09am UTC](https://forum.kirupa.com/t/double-click-with-two-states/323427 "2011-06-30T06:09:07Z")

</div>

Hi all!!! Please see the attached file, i want to have double click event which will zoom in the clip first time and second time double click will zoom out the clip, also on the start when the movie moves on mouse move…

---

## [ASHelp](https://forum.kirupa.com/t/ashelp/323426)

<div class="topic-metadata">

**Author:** [@joachym](https://forum.kirupa.com/u/joachym)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 5:43am UTC](https://forum.kirupa.com/t/ashelp/323426 "2011-06-30T05:43:52Z")

</div>

Hi, I am fighting against this: I have a script inside a movieclip. There are a few children, too. Each child contains other movieclip whose instance name is "masker" and a button. The script reads: ... ... //when I cl…

---

## [The number of items inside an array](https://forum.kirupa.com/t/the-number-of-items-inside-an-array/323425)

<div class="topic-metadata">

**Author:** [@yani](https://forum.kirupa.com/u/yani)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 5:25am UTC](https://forum.kirupa.com/t/the-number-of-items-inside-an-array/323425 "2011-06-30T05:25:52Z")

</div>

Hi everyone, I have an Array where in position 0, there are two items "name1" and "name2", then in position 1, there is only 1 item "name3", and position 2 there is only 1 item "name4". now when I trace like this: …

---

## [These irons are indeed ace](https://forum.kirupa.com/t/these-irons-are-indeed-ace/323424)

<div class="topic-metadata">

**Author:** [@Clarence123](https://forum.kirupa.com/u/Clarence123)\
**Replies:** 0\
**Last updated:** [June 30, 2011, 4:10am UTC](https://forum.kirupa.com/t/these-irons-are-indeed-ace/323424 "2011-06-30T04:10:13Z")

</div>

There was once a people recommend two sets of golf irons to me , one is CB Iron, the other is 2010 AP2 Iron, recently, I want to change my golf irons, so I have a try both of them and found these two irons are both very …

---

## [CombBox aid](https://forum.kirupa.com/t/combbox-aid/323418)

<div class="topic-metadata">

**Author:** [@Evil2k8](https://forum.kirupa.com/u/Evil2k8)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 8:40pm UTC](https://forum.kirupa.com/t/combbox-aid/323418 "2011-06-29T20:40:21Z")

</div>

As seen here: http://devil2k10.webs.com/starupgradedowngrade.htm As the star level changes to 1, the combo box doesn't change its array. My code: stop(); var gemtxt:Array; var gemtxtIndex:int; var gemdata:Array; v…

---

## [New to AS3](https://forum.kirupa.com/t/new-to-as3/323417)

<div class="topic-metadata">

**Author:** [@A\_Froelich](https://forum.kirupa.com/u/A_Froelich)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 8:27pm UTC](https://forum.kirupa.com/t/new-to-as3/323417 "2011-06-29T20:27:56Z")

</div>

Hey I'm doing something for my work, i know its actually quite easy for a vet but I'm just a beginner here. The point of the script is to have an interactive map for a building that when you click on the location it high…

---

## [Flash CS4, AS3 - addChild after a MovieClip has played problem](https://forum.kirupa.com/t/flash-cs4-as3-addchild-after-a-movieclip-has-played-problem/323415)

<div class="topic-metadata">

**Author:** [@Waffulz](https://forum.kirupa.com/u/Waffulz)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 6:58pm UTC](https://forum.kirupa.com/t/flash-cs4-as3-addchild-after-a-movieclip-has-played-problem/323415 "2011-06-29T18:58:37Z")

</div>

In my .fla file, in frame 1 on the main timeline, I have a Button symbol in the display list. When that button is clicked, a function removes it from the display list, then adds a MovieClip (created in the library & expo…

---

## [Flash 8 - An efficient way to change text color using a button?](https://forum.kirupa.com/t/flash-8-an-efficient-way-to-change-text-color-using-a-button/323413)

<div class="topic-metadata">

**Author:** [@8Cyrus8](https://forum.kirupa.com/u/8Cyrus8)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 5:38pm UTC](https://forum.kirupa.com/t/flash-8-an-efficient-way-to-change-text-color-using-a-button/323413 "2011-06-29T17:38:20Z")

</div>

Hi I am currently working on a website project that is mostly intended for Dyslexia disability users. I'm love flash but I can never get around the advance coding, therefore I have struggled to make any effective contr…

---

## [Wordpress Theme, Changing Avatar Size](https://forum.kirupa.com/t/wordpress-theme-changing-avatar-size/323412)

<div class="topic-metadata">

**Author:** [@j33k](https://forum.kirupa.com/u/j33k)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 4:02pm UTC](https://forum.kirupa.com/t/wordpress-theme-changing-avatar-size/323412 "2011-06-29T16:02:52Z")

</div>

My goal is to keep my current comment formatting and increase the size of the posters avatar. Currently my theme uses this line to display the comment and poster info, including avatar size: \<?php wp\_list\_comments('…

---

## [Importing video onto flash so it plays frame by frame?](https://forum.kirupa.com/t/importing-video-onto-flash-so-it-plays-frame-by-frame/323411)

<div class="topic-metadata">

**Author:** [@nkaps7](https://forum.kirupa.com/u/nkaps7)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 3:57pm UTC](https://forum.kirupa.com/t/importing-video-onto-flash-so-it-plays-frame-by-frame/323411 "2011-06-29T15:57:09Z")

</div>

hi there,just wondering how can i import a video in to adobe flash cs4, so it plays in the timeline frame by frame (is this possibe?) i dont mean putting it on one frame so it will play, but so i can edit objects over th…

---

## [Converting a string to a movieclip](https://forum.kirupa.com/t/converting-a-string-to-a-movieclip/323404)

<div class="topic-metadata">

**Author:** [@Nuwa](https://forum.kirupa.com/u/Nuwa)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 2:47pm UTC](https://forum.kirupa.com/t/converting-a-string-to-a-movieclip/323404 "2011-06-29T14:47:04Z")

</div>

Is it possible to convert a string to a movieclip instance name. If so can someone tell me how?? I tried, var theName:String; MovieClip(theName); but it says, "Type Coercion failed: cannot convert "mv3" to flash.dis…

---

## [Scripts for a flash newspaper](https://forum.kirupa.com/t/scripts-for-a-flash-newspaper/323403)

<div class="topic-metadata">

**Author:** [@negikun12](https://forum.kirupa.com/u/negikun12)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 1:19pm UTC](https://forum.kirupa.com/t/scripts-for-a-flash-newspaper/323403 "2011-06-29T13:19:08Z")

</div>

PLEASE HELP!! Hey everyone.. iv been looking for help for a few weeks but cant seem to find the awnsers I am trying to create a newspaper that consists of four pages. Each page i have created and are sitting in the …

---

## [Class Defenition from string without instantiation](https://forum.kirupa.com/t/class-defenition-from-string-without-instantiation/323401)

<div class="topic-metadata">

**Author:** [@fikontrollet](https://forum.kirupa.com/u/fikontrollet)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 1:05pm UTC](https://forum.kirupa.com/t/class-defenition-from-string-without-instantiation/323401 "2011-06-29T13:05:35Z")

</div>

Simple question, how can i get any classname from a string without instantiation ? //Basically, this is how i do it : var uselessInstantinationArray = \[Example\]; ApplicationManager.instance.open(getDefinitionByName("…

---

## [Cannot load swf using ExternalInterface.addCallback](https://forum.kirupa.com/t/cannot-load-swf-using-externalinterface-addcallback/323400)

<div class="topic-metadata">

**Author:** [@Forrest\_Gimp](https://forum.kirupa.com/u/Forrest_Gimp)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 12:04pm UTC](https://forum.kirupa.com/t/cannot-load-swf-using-externalinterface-addcallback/323400 "2011-06-29T12:04:36Z")

</div>

Hi I try to create a switcher-swf. Its purpose is to detect parameters like screensize and then decide whether to load lowres.swf or highres.swf. Both lowres.swf and highres.swf work when tested independently. The pr…

---

## [Loadin XML data into a movie clip](https://forum.kirupa.com/t/loadin-xml-data-into-a-movie-clip/323399)

<div class="topic-metadata">

**Author:** [@tianihad](https://forum.kirupa.com/u/tianihad)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 12:00pm UTC](https://forum.kirupa.com/t/loadin-xml-data-into-a-movie-clip/323399 "2011-06-29T12:00:16Z")

</div>

Hi all, im creating a pop-up info box with a scrollerbar, the info within the scrollerbar must be editable using XML (the info is also accompanied by an image which im also having trouble loading into the info box). T…

---

## [IDE tips](https://forum.kirupa.com/t/ide-tips/323398)

<div class="topic-metadata">

**Author:** [@harm\_less](https://forum.kirupa.com/u/harm_less)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 10:47am UTC](https://forum.kirupa.com/t/ide-tips/323398 "2011-06-29T10:47:37Z")

</div>

Hello Flashers, I'm wondering something. Can Flash goto or open a specific class after clicking on a function or class. Because Flash knows with the script assist which functions and variables are available from the cu…

---

## [\[CS5/FlashDevelop\]Help with multiuser architecture?](https://forum.kirupa.com/t/cs5-flashdevelop-help-with-multiuser-architecture/323396)

<div class="topic-metadata">

**Author:** [@Flametail](https://forum.kirupa.com/u/Flametail)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 5:47am UTC](https://forum.kirupa.com/t/cs5-flashdevelop-help-with-multiuser-architecture/323396 "2011-06-29T05:47:16Z")

</div>

HI! I am trying to make a facebook game, a realtime 2D SideScrolling Sandbox MMO. Currently, I want to use flash for the client(duh) but use a java server to keep all clients in sync, and php for MySQL database work. S…

---

## [Why I can't make the best of my K15 Driver](https://forum.kirupa.com/t/why-i-cant-make-the-best-of-my-k15-driver/323395)

<div class="topic-metadata">

**Author:** [@Clarence123](https://forum.kirupa.com/u/Clarence123)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 3:35am UTC](https://forum.kirupa.com/t/why-i-cant-make-the-best-of-my-k15-driver/323395 "2011-06-29T03:35:06Z")

</div>

All my golf friends told me the Ping K15 driver is a perfect golf club , it can help my golf and it is able to provide me a long, sraight and fast ball, all of these sound alluring, so I decided to buy a K15 Driver.onlin…

---

## [Html 5, Fallback to flash when \<video\> doesnt work](https://forum.kirupa.com/t/html-5-fallback-to-flash-when-video-doesnt-work/323394)

<div class="topic-metadata">

**Author:** [@somdow](https://forum.kirupa.com/u/somdow)\
**Replies:** 0\
**Last updated:** [June 29, 2011, 3:24am UTC](https://forum.kirupa.com/t/html-5-fallback-to-flash-when-video-doesnt-work/323394 "2011-06-29T03:24:15Z")

</div>

Hello everyone. SO....html5 lol. so in general, im wanting to know if anyone has gotten the fallback to flash to work for them. AS we all know by now, all browsers support different video formats for html5. formats…

---

## [Menu detects keystrokes in "Test", but not Live?](https://forum.kirupa.com/t/menu-detects-keystrokes-in-test-but-not-live/323392)

<div class="topic-metadata">

**Author:** [@Mugsy323](https://forum.kirupa.com/u/Mugsy323)\
**Replies:** 0\
**Last updated:** [June 28, 2011, 8:59pm UTC](https://forum.kirupa.com/t/menu-detects-keystrokes-in-test-but-not-live/323392 "2011-06-28T20:59:58Z")

</div>

I'm sure there is a simple fix, but this is my first attempt to create a Flash Menu that supports both Mouse and keyboard input. I've created a simple Flash based menu (ONE frame, 7 layers) with a Keylistener on the fi…

---

## [Filling instances with XML Data - XML Loading](https://forum.kirupa.com/t/filling-instances-with-xml-data-xml-loading/323391)

<div class="topic-metadata">

**Author:** [@MuffinMule](https://forum.kirupa.com/u/MuffinMule)\
**Replies:** 0\
**Last updated:** [June 28, 2011, 8:28pm UTC](https://forum.kirupa.com/t/filling-instances-with-xml-data-xml-loading/323391 "2011-06-28T20:28:55Z")

</div>

Hello. I've gone through tis excellent set of tutorials: http://www.kirupa.com/developer/flashcs3/using\_xml\_as3\_pg1.htm and wanted to say thanks for sharing that it's really helping me out. Now to my problem. I …

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

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