# programming

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

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

**Page:** 687

---

## [\[Flash8\] \[AS2\] MovieClip.removeMovieClip doesn't return?!](https://forum.kirupa.com/t/flash8-as2-movieclip-removemovieclip-doesnt-return/296801)

<div class="topic-metadata">

**Author:** [@johnathan](https://forum.kirupa.com/u/johnathan)\
**Replies:** 0\
**Last updated:** [September 21, 2009, 1:49am UTC](https://forum.kirupa.com/t/flash8-as2-movieclip-removemovieclip-doesnt-return/296801 "2009-09-21T01:49:27Z")

</div>

MovieClip.removeMovieClip doesn't return?! I am maintaining a legacy AS2 project in which a bug is identified recently. After extensive tracing, I found the the offending statement in a class (let's name it ClassA): …

---

## [\[Flash8\] Calling functions from an externally loaded .swf](https://forum.kirupa.com/t/flash8-calling-functions-from-an-externally-loaded-swf/296800)

<div class="topic-metadata">

**Author:** [@prunetracy](https://forum.kirupa.com/u/prunetracy)\
**Replies:** 0\
**Last updated:** [September 21, 2009, 1:34am UTC](https://forum.kirupa.com/t/flash8-calling-functions-from-an-externally-loaded-swf/296800 "2009-09-21T01:34:43Z")

</div>

Howdy guys, i've been spending the last few hours looking around for a more coherent answer as to how i should be executing functions from a .swf loader basically, each time i hit a letter key on my keyboard, i want a …

---

## [MC Buttons](https://forum.kirupa.com/t/mc-buttons/296798)

<div class="topic-metadata">

**Author:** [@jxmckenzie](https://forum.kirupa.com/u/jxmckenzie)\
**Replies:** 0\
**Last updated:** [September 21, 2009, 1:20am UTC](https://forum.kirupa.com/t/mc-buttons/296798 "2009-09-21T01:20:25Z")

</div>

I'm trying to create a button that bolds on rollover and REMAINS BOLD when clicked. I thought this is what the button symbols were designed to do, however it's not working for me... so instead I made a MC button with 2 f…

---

## [To load and unload SWF](https://forum.kirupa.com/t/to-load-and-unload-swf/296795)

<div class="topic-metadata">

**Author:** [@jkl30](https://forum.kirupa.com/u/jkl30)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 11:17pm UTC](https://forum.kirupa.com/t/to-load-and-unload-swf/296795 "2009-09-20T23:17:35Z")

</div>

Hello, I am studying AS3 by myself, please bear with me if my explanation is not that clear. It's all about loading and unloading external swf's. My code is working perfectly though I just have some questions about l…

---

## [Loading an external .txt into a variable (AS3)](https://forum.kirupa.com/t/loading-an-external-txt-into-a-variable-as3/296794)

<div class="topic-metadata">

**Author:** [@negow](https://forum.kirupa.com/u/negow)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 10:48pm UTC](https://forum.kirupa.com/t/loading-an-external-txt-into-a-variable-as3/296794 "2009-09-20T22:48:12Z")

</div>

Hi, I'm sure it's very simple, and simplicity is all I'm asking for. I'm creating part of my code to only be executed if a textfile on my server says it's okay. textfile.txt = "Okay=1 or 0" I can get it to display in…

---

## [Flash Movie Wont Play On Web Without Music Folder](https://forum.kirupa.com/t/flash-movie-wont-play-on-web-without-music-folder/296793)

<div class="topic-metadata">

**Author:** [@pi3rc3](https://forum.kirupa.com/u/pi3rc3)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 9:23pm UTC](https://forum.kirupa.com/t/flash-movie-wont-play-on-web-without-music-folder/296793 "2009-09-20T21:23:18Z")

</div>

i have a flash movie that is coded in flex and when i upload it to the web it requires that i also upload my /music folder or it wont work. is this normal? because i have about 3mbs of music and my swf's size is only …

---

## [Problem With DIV Backgrounds In Firefox](https://forum.kirupa.com/t/problem-with-div-backgrounds-in-firefox/296789)

<div class="topic-metadata">

**Author:** [@cocoapuff](https://forum.kirupa.com/u/cocoapuff)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 5:44pm UTC](https://forum.kirupa.com/t/problem-with-div-backgrounds-in-firefox/296789 "2009-09-20T17:44:49Z")

</div>

View this site in IE6 then view it in Firefox: http://yoyoyo89.50webs.com/test2.html In IE6 the page displays perfectly, but in Firefox the white background of the outer white backgrounded DIV cuts off at a certain po…

---

## [Caurina Tweener - how do I loop it? (AS2)](https://forum.kirupa.com/t/caurina-tweener-how-do-i-loop-it-as2/296788)

<div class="topic-metadata">

**Author:** [@Silverfisken](https://forum.kirupa.com/u/Silverfisken)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 5:14pm UTC](https://forum.kirupa.com/t/caurina-tweener-how-do-i-loop-it-as2/296788 "2009-09-20T17:14:10Z")

</div>

Hi, I recently found this thing, Caurina Tweener. And want to substitute Flash own manual Motion tween with this. But I having problem with this: 1. How do I loop / make Caurina Tweener continous? (AS2) If I take some…

---

## [rollOver problem](https://forum.kirupa.com/t/rollover-problem/296787)

<div class="topic-metadata">

**Author:** [@regbolD](https://forum.kirupa.com/u/regbolD)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 4:55pm UTC](https://forum.kirupa.com/t/rollover-problem/296787 "2009-09-20T16:55:48Z")

</div>

I have a movieClip which has a rollover effect , when you roll over it, it expands to 1.5 of its size. when you roll out of it, it shrink back to regular size. at first it looked like this: function overMenuItem(e:M…

---

## [Movieclips to the highest level?](https://forum.kirupa.com/t/movieclips-to-the-highest-level/296785)

<div class="topic-metadata">

**Author:** [@vedtam](https://forum.kirupa.com/u/vedtam)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 2:25pm UTC](https://forum.kirupa.com/t/movieclips-to-the-highest-level/296785 "2009-09-20T14:25:10Z")

</div>

Hi, I have 3 different movieclips loaded to the stage. Placed on different layers when I press the button which is associated with the right movieclip I get working only the one that sits above all. The rest is being p…

---

## [Trace mouse movement to bezier curves](https://forum.kirupa.com/t/trace-mouse-movement-to-bezier-curves/296784)

<div class="topic-metadata">

**Author:** [@mthicke](https://forum.kirupa.com/u/mthicke)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 2:24pm UTC](https://forum.kirupa.com/t/trace-mouse-movement-to-bezier-curves/296784 "2009-09-20T14:24:37Z")

</div>

hi, I am looking to trace mouse movement and convert to curves then have a spritefollow the traced path - similar to the iphone app Flight Control. Any ideas on how to do this? thanks

---

## [Trajectories](https://forum.kirupa.com/t/trajectories/296783)

<div class="topic-metadata">

**Author:** [@AlexWD](https://forum.kirupa.com/u/AlexWD)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 2:20pm UTC](https://forum.kirupa.com/t/trajectories/296783 "2009-09-20T14:20:42Z")

</div>

Does anyone know where I can find some examples for calculating trajectories? I've done a lot of searching and I can't seem to find anything. Basically I'm trying to create a simple example where a missile is shot at …

---

## [Given a month, year - how to calculate day #s](https://forum.kirupa.com/t/given-a-month-year-how-to-calculate-day-s/296781)

<div class="topic-metadata">

**Author:** [@nburlington](https://forum.kirupa.com/u/nburlington)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 1:23pm UTC](https://forum.kirupa.com/t/given-a-month-year-how-to-calculate-day-s/296781 "2009-09-20T13:23:19Z")

</div>

If I'm given a month and a year, how can I calculate what day of the week that month started on? My end goal is to write a method that takes a month and a year and returns an array of dates for each Sunday in that mon…

---

## [Eval on edited string from database](https://forum.kirupa.com/t/eval-on-edited-string-from-database/296780)

<div class="topic-metadata">

**Author:** [@bardic](https://forum.kirupa.com/u/bardic)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 12:37pm UTC](https://forum.kirupa.com/t/eval-on-edited-string-from-database/296780 "2009-09-20T12:37:26Z")

</div>

Hey all, I've been working on this little script to replace values in a stored equation (database) with actual numbers and then running the equation. But all I keep getting is just the script echoing out the string inste…

---

## [Help needed in CSS](https://forum.kirupa.com/t/help-needed-in-css/296778)

<div class="topic-metadata">

**Author:** [@ashadweb](https://forum.kirupa.com/u/ashadweb)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 11:37am UTC](https://forum.kirupa.com/t/help-needed-in-css/296778 "2009-09-20T11:37:28Z")

</div>

I have done a site. Office Space Chicago. and facing a problem in Google Chrome the top banner is quite strange in Google Chrome. help me to fix please. thanks

---

## [Help on PHP,SQL special char encoding](https://forum.kirupa.com/t/help-on-php-sql-special-char-encoding/296776)

<div class="topic-metadata">

**Author:** [@epoy08](https://forum.kirupa.com/u/epoy08)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 10:20am UTC](https://forum.kirupa.com/t/help-on-php-sql-special-char-encoding/296776 "2009-09-20T10:20:18Z")

</div>

I have a problem on displaying "ñ" when I used javascript(ajax) to send to my callback url I used escape(str) then the php callback file will save it to mySQL, the field data type is in VARCHAR, when I look into the …

---

## [Can't Load XML in Scrollpane](https://forum.kirupa.com/t/cant-load-xml-in-scrollpane/296774)

<div class="topic-metadata">

**Author:** [@ph4zon](https://forum.kirupa.com/u/ph4zon)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 8:16am UTC](https://forum.kirupa.com/t/cant-load-xml-in-scrollpane/296774 "2009-09-20T08:16:12Z")

</div>

Hey everyone, I'm using AS2 in Flash CS4. I have a web site that needs to show either Japanese or English text, depending on which option the user selects. My code works well, but when I try to load the text boxes into a…

---

## [XML simple access question](https://forum.kirupa.com/t/xml-simple-access-question/296771)

<div class="topic-metadata">

**Author:** [@cpthk](https://forum.kirupa.com/u/cpthk)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 4:40am UTC](https://forum.kirupa.com/t/xml-simple-access-question/296771 "2009-09-20T04:40:58Z")

</div>

public class XmlExample extends Sprite { public function XmlExample() { var emp:XML = \<employees\> \<employee ssn="123-123-1234"\> \<na…

---

## [What unit is XML Motion measured in?](https://forum.kirupa.com/t/what-unit-is-xml-motion-measured-in/296768)

<div class="topic-metadata">

**Author:** [@rrh](https://forum.kirupa.com/u/rrh)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 3:52am UTC](https://forum.kirupa.com/t/what-unit-is-xml-motion-measured-in/296768 "2009-09-20T03:52:03Z")

</div>

So I output a motion to an XML file using the Export Motion XML command. Then I applied it to a new graphic, and it came out wrong. After 323 frames of motion, the graphic is now at the wrong position, about 15 pixels to…

---

## [Boncing image with reflection](https://forum.kirupa.com/t/boncing-image-with-reflection/296767)

<div class="topic-metadata">

**Author:** [@vascoraf](https://forum.kirupa.com/u/vascoraf)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 12:51am UTC](https://forum.kirupa.com/t/boncing-image-with-reflection/296767 "2009-09-20T00:51:41Z")

</div>

Hi there. I have an image and I want it to have a reflection and to apply an effect onMouseOver so that image bounces (like a rubber ball) until it stops. I found this example (http://msdevstudio.com/blog/2008/07/10/as…

---

## [Design mode: Changing displayed frame of MovieClip from Frame 1](https://forum.kirupa.com/t/design-mode-changing-displayed-frame-of-movieclip-from-frame-1/296766)

<div class="topic-metadata">

**Author:** [@jontyc](https://forum.kirupa.com/u/jontyc)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 12:16am UTC](https://forum.kirupa.com/t/design-mode-changing-displayed-frame-of-movieclip-from-frame-1/296766 "2009-09-20T00:16:26Z")

</div>

During design and not inside MovieClips, they are shown at Frame 1. Sometimes I'd wish a MovieClip to be shown at say Frame 10, so another unrelated MovieClip can see where things in the first clip mentioned now are posi…

---

## [Calling a movieclip](https://forum.kirupa.com/t/calling-a-movieclip/296764)

<div class="topic-metadata">

**Author:** [@dmind](https://forum.kirupa.com/u/dmind)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 11:59pm UTC](https://forum.kirupa.com/t/calling-a-movieclip/296764 "2009-09-19T23:59:44Z")

</div>

Hello guys, I just want to ask if is it possible to call a movieclip using the String Class together with it's instance name to use gotoAndPlay() method. I know how to use the instance name and the method but then …

---

## [Sell InGame Upgrades](https://forum.kirupa.com/t/sell-ingame-upgrades/296762)

<div class="topic-metadata">

**Author:** [@pi3rc3](https://forum.kirupa.com/u/pi3rc3)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 10:44pm UTC](https://forum.kirupa.com/t/sell-ingame-upgrades/296762 "2009-09-19T22:44:05Z")

</div>

im looking to sell ingame upgrades through mochi but wanted to weight out my options, are there any other services that accomplish this? would it be that hard to implement my own system in so i wouldnt haft to share 40% …

---

## [Please help me with resize a swf to fit a new web banner size!](https://forum.kirupa.com/t/please-help-me-with-resize-a-swf-to-fit-a-new-web-banner-size/296761)

<div class="topic-metadata">

**Author:** [@dikidolkar](https://forum.kirupa.com/u/dikidolkar)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 10:19pm UTC](https://forum.kirupa.com/t/please-help-me-with-resize-a-swf-to-fit-a-new-web-banner-size/296761 "2009-09-19T22:19:40Z")

</div>

I have different web banners that sometimes only needs to have a different width and height (pixels) to fit elsewhere on my wehsite. I'm tired of doing the Flash web banner from scratch always... I have 2 questions: 1…

---

## [Argument error 2109 when buttons are clicked](https://forum.kirupa.com/t/argument-error-2109-when-buttons-are-clicked/296756)

<div class="topic-metadata">

**Author:** [@akongm](https://forum.kirupa.com/u/akongm)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 6:05pm UTC](https://forum.kirupa.com/t/argument-error-2109-when-buttons-are-clicked/296756 "2009-09-19T18:05:58Z")

</div>

Hello, I'm still a newbie when it comes as3. I am working on a website and I have my buttons within a MC and they are revealed when you rollover the MC. All buttons are independent buttons from my library and they …

---

## [Four 3D engine benchmarks](https://forum.kirupa.com/t/four-3d-engine-benchmarks/296754)

<div class="topic-metadata">

**Author:** [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 4:32pm UTC](https://forum.kirupa.com/t/four-3d-engine-benchmarks/296754 "2009-09-19T16:32:10Z")

</div>

I recently benchmarked the four most popular 3D engines (Papervision3D, Away3D, Sandy, and Alternativa3D). The latest versions of each. Default settings, no mip mapping or any advanced features turned on. My main reaso…

---

## [Zoom effect with tween](https://forum.kirupa.com/t/zoom-effect-with-tween/296752)

<div class="topic-metadata">

**Author:** [@carevic](https://forum.kirupa.com/u/carevic)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 3:33pm UTC](https://forum.kirupa.com/t/zoom-effect-with-tween/296752 "2009-09-19T15:33:41Z")

</div>

Hello, I am using Tween class to achieve zoom effect, when image zooms from scale 0 to scale 100. Also I've added two more tweens for \_x and \_y positions so effect looks like image zooms from its center. So basically…

---

## [Loading and Unloading a FLV component](https://forum.kirupa.com/t/loading-and-unloading-a-flv-component/296750)

<div class="topic-metadata">

**Author:** [@skubeedoo](https://forum.kirupa.com/u/skubeedoo)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 2:41pm UTC](https://forum.kirupa.com/t/loading-and-unloading-a-flv-component/296750 "2009-09-19T14:41:41Z")

</div>

I need to load a FLV component to the stage and when it’s done playing (the movie), I need it to unload.

---

## [Resize browser window on load to a 16:9 ratio](https://forum.kirupa.com/t/resize-browser-window-on-load-to-a-16-9-ratio/296749)

<div class="topic-metadata">

**Author:** [@hroth](https://forum.kirupa.com/u/hroth)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 2:33pm UTC](https://forum.kirupa.com/t/resize-browser-window-on-load-to-a-16-9-ratio/296749 "2009-09-19T14:33:40Z")

</div>

Hi there, I have a full background window video website I'm developing. The video is in a 16:9 ratio and depending on the ratio that the user has their browser window set at, depends on how much of the video background…

---

## [Help me understand: why does parent.correct(); not work?](https://forum.kirupa.com/t/help-me-understand-why-does-parent-correct-not-work/296748)

<div class="topic-metadata">

**Author:** [@luwin](https://forum.kirupa.com/u/luwin)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 1:35pm UTC](https://forum.kirupa.com/t/help-me-understand-why-does-parent-correct-not-work/296748 "2009-09-19T13:35:52Z")

</div>

Ok, here is the "problem". in actions in my .fla file I create a new object of a class (addChild) which is in an seperate .as file. Now, in my .as file I want to call a function in the .fla file. This should be the…

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

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