# programming

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

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

**Page:** 529

---

## [Flash Video Overlay Ad Help!](https://forum.kirupa.com/t/flash-video-overlay-ad-help/306955)

<div class="topic-metadata">

**Author:** [@changernyc](https://forum.kirupa.com/u/changernyc)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 5:31am UTC](https://forum.kirupa.com/t/flash-video-overlay-ad-help/306955 "2010-03-25T05:31:52Z")

</div>

I am trying to figure out how to create a video overlay for MTV. On the ad spec site, they provide specs and templates for the video overlay that shows up on the lower third of video and expands to a full all. You can se…

---

## [Stylesheet vs Textformat](https://forum.kirupa.com/t/stylesheet-vs-textformat/306953)

<div class="topic-metadata">

**Author:** [@vxd](https://forum.kirupa.com/u/vxd)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 4:31am UTC](https://forum.kirupa.com/t/stylesheet-vs-textformat/306953 "2010-03-25T04:31:22Z")

</div>

I'm tackling a new project. I'm not sure if I should format all the text using Stylesheets or Textformat.

---

## [Horizontal align prob](https://forum.kirupa.com/t/horizontal-align-prob/306952)

<div class="topic-metadata">

**Author:** [@marklandry](https://forum.kirupa.com/u/marklandry)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 4:21am UTC](https://forum.kirupa.com/t/horizontal-align-prob/306952 "2010-03-25T04:21:07Z")

</div>

Hi, I'm publishing in Flash CS4 and aligning the movie to "middle" but all is aligning "left." Everything's set to align "middle" in the code but I can't get it to work. At my wits end and would love some help!!! He…

---

## [Dynamically-XML-Loaded Text with Buttons Not Loading](https://forum.kirupa.com/t/dynamically-xml-loaded-text-with-buttons-not-loading/306951)

<div class="topic-metadata">

**Author:** [@Mesono](https://forum.kirupa.com/u/Mesono)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 3:38am UTC](https://forum.kirupa.com/t/dynamically-xml-loaded-text-with-buttons-not-loading/306951 "2010-03-25T03:38:40Z")

</div>

Hi everyone, it's me again. This question relates to the gallery that I'm working on; basically, I am now trying to add text comments which change according to which button you press to the images. I know how to make thi…

---

## [Inheriting Classes](https://forum.kirupa.com/t/inheriting-classes/306949)

<div class="topic-metadata">

**Author:** [@kleelof](https://forum.kirupa.com/u/kleelof)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 1:37am UTC](https://forum.kirupa.com/t/inheriting-classes/306949 "2010-03-25T01:37:47Z")

</div>

Hello, I made a document class for a project that is similar to this: package{ public class test1{ // stage assets : these are all objects that were put on the stage in CS4 public var object1:MovieClip; public …

---

## [AS3 Centering and Resizing a background in existing code](https://forum.kirupa.com/t/as3-centering-and-resizing-a-background-in-existing-code/306948)

<div class="topic-metadata">

**Author:** [@mtjones](https://forum.kirupa.com/u/mtjones)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 1:23am UTC](https://forum.kirupa.com/t/as3-centering-and-resizing-a-background-in-existing-code/306948 "2010-03-25T01:23:03Z")

</div>

I have a code for a page I am using and I would like to add a background and have it resize with the screen like the rest of the page. I have created a movie button named "pic" with the image in it but I don't know how t…

---

## [Help....Please?:(](https://forum.kirupa.com/t/help-please/306947)

<div class="topic-metadata">

**Author:** [@AkiraBlack](https://forum.kirupa.com/u/AkiraBlack)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 1:09am UTC](https://forum.kirupa.com/t/help-please/306947 "2010-03-25T01:09:52Z")

</div>

Hi people, i was wondering if anybody could help me make a game and validate it

---

## [Getting a bunch of 1009 errors](https://forum.kirupa.com/t/getting-a-bunch-of-1009-errors/306943)

<div class="topic-metadata">

**Author:** [@Hausnfranz](https://forum.kirupa.com/u/Hausnfranz)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 10:47pm UTC](https://forum.kirupa.com/t/getting-a-bunch-of-1009-errors/306943 "2010-03-24T22:47:40Z")

</div>

I know this is a bit of code, but some of these errors are really hard to understand exactly what they are telling me : This error happens when I go from one frame to the next, where there is code in both places. TypeE…

---

## [Best way to test movie?](https://forum.kirupa.com/t/best-way-to-test-movie/306940)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 9:54pm UTC](https://forum.kirupa.com/t/best-way-to-test-movie/306940 "2010-03-24T21:54:54Z")

</div>

Hi, Just wanted to know if any of you know the best way to test your project? We all know pressing (control + enter "Test Movie") will let you test the movie, but what if you have tons of art, music, and other stuff in…

---

## [Question regarding the "Creating a Preloader and Progress Bar" tutorial](https://forum.kirupa.com/t/question-regarding-the-creating-a-preloader-and-progress-bar-tutorial/306937)

<div class="topic-metadata">

**Author:** [@neys](https://forum.kirupa.com/u/neys)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 9:19pm UTC](https://forum.kirupa.com/t/question-regarding-the-creating-a-preloader-and-progress-bar-tutorial/306937 "2010-03-24T21:19:18Z")

</div>

I've done the tutorial in the topic-title and it's great and easy to understand. I do have one question though: Right now, the image I load using the tutorial loads really fast (it's only 240kb) which basically means t…

---

## [Ignore Mask Content on Resizing and Centering](https://forum.kirupa.com/t/ignore-mask-content-on-resizing-and-centering/306936)

<div class="topic-metadata">

**Author:** [@stickaforkinit](https://forum.kirupa.com/u/stickaforkinit)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 9:13pm UTC](https://forum.kirupa.com/t/ignore-mask-content-on-resizing-and-centering/306936 "2010-03-24T21:13:39Z")

</div>

So, I have a main flash container move that loads in multiple swf files. I created a movieclip container in the main flash container that resizes and positions according to the stage height and width as follows: swf\_…

---

## [Function code help](https://forum.kirupa.com/t/function-code-help/306934)

<div class="topic-metadata">

**Author:** [@mikalh78](https://forum.kirupa.com/u/mikalh78)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 8:13pm UTC](https://forum.kirupa.com/t/function-code-help/306934 "2010-03-24T20:13:03Z")

</div>

Could anyone help me out here? The first question displays the proper event but the 2nd and 3rd buttons, when press, do not display anything. Any help would be wonderful. Thank you. stop(); var optionsArray:Array = n…

---

## [Controlling multiple videos playback](https://forum.kirupa.com/t/controlling-multiple-videos-playback/306932)

<div class="topic-metadata">

**Author:** [@brown22](https://forum.kirupa.com/u/brown22)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 6:26pm UTC](https://forum.kirupa.com/t/controlling-multiple-videos-playback/306932 "2010-03-24T18:26:34Z")

</div>

Hi everybody, I'm currently working on a project which includes 7 small 30 second videos inside a mask with no skins. The vids are inside a graphic symbol along with some other animation going on at the same time. T…

---

## [\[Flash CS4 AS2\] Tried to alter code of FLash/xml gallery - where did I go wrong?](https://forum.kirupa.com/t/flash-cs4-as2-tried-to-alter-code-of-flash-xml-gallery-where-did-i-go-wrong/306927)

<div class="topic-metadata">

**Author:** [@timmay2606](https://forum.kirupa.com/u/timmay2606)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 5:40pm UTC](https://forum.kirupa.com/t/flash-cs4-as2-tried-to-alter-code-of-flash-xml-gallery-where-did-i-go-wrong/306927 "2010-03-24T17:40:35Z")

</div>

Hi Folks, I followed Kirupa’s excellent tutorial on integrating XML into a Flash gallery (kirupa.com - XML and Flash Photogallery, Page 1). All went well on the tutorial, and I understood the concepts (or so I thought!)…

---

## [Can Anyone Tell Me What I Did Wrong?](https://forum.kirupa.com/t/can-anyone-tell-me-what-i-did-wrong/306926)

<div class="topic-metadata">

**Author:** [@Ximenao](https://forum.kirupa.com/u/Ximenao)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 5:40pm UTC](https://forum.kirupa.com/t/can-anyone-tell-me-what-i-did-wrong/306926 "2010-03-24T17:40:09Z")

</div>

I'm please asking for help with this mysql\_query error I keep getting. I've coded an online examination where if a person enters text resembling the statements stored in the database, points will be added. Following is t…

---

## [Movie clip to disappear](https://forum.kirupa.com/t/movie-clip-to-disappear/306924)

<div class="topic-metadata">

**Author:** [@skippers](https://forum.kirupa.com/u/skippers)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 3:52pm UTC](https://forum.kirupa.com/t/movie-clip-to-disappear/306924 "2010-03-24T15:52:10Z")

</div>

How do I make a movie clip disappear once the cursor hovers over it?:cons:

---

## [removeEventListener from a nested function](https://forum.kirupa.com/t/removeeventlistener-from-a-nested-function/306922)

<div class="topic-metadata">

**Author:** [@Esseti](https://forum.kirupa.com/u/Esseti)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 3:33pm UTC](https://forum.kirupa.com/t/removeeventlistener-from-a-nested-function/306922 "2010-03-24T15:33:00Z")

</div>

Example: var btn:Sprite = new Sprite(); btn.graphics.beginFill(0x000); btn.graphics.drawRect(-50, -50, 50, 50); btn.graphics.endFill(); btn.x = stage.stageWidth/2; btn.y = stage.stageHeight/2; stage.addChild(btn); f…

---

## [Preloader Adjustment](https://forum.kirupa.com/t/preloader-adjustment/306920)

<div class="topic-metadata">

**Author:** [@kitster79](https://forum.kirupa.com/u/kitster79)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 3:19pm UTC](https://forum.kirupa.com/t/preloader-adjustment/306920 "2010-03-24T15:19:34Z")

</div>

Hello, \[FONT=Calibri, Verdana, Helvetica, Arial\]I just launched my new website (I am a graphic designer) and I used a pre-existing flash pre-loader on my home page that was created for me from another project. The l…

---

## [Help with my first CustomEvent/dispatchEvent](https://forum.kirupa.com/t/help-with-my-first-customevent-dispatchevent/306919)

<div class="topic-metadata">

**Author:** [@halcyon42](https://forum.kirupa.com/u/halcyon42)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 2:55pm UTC](https://forum.kirupa.com/t/help-with-my-first-customevent-dispatchevent/306919 "2010-03-24T14:55:16Z")

</div>

Hey all I'm working on a ROLL\_OVER event class and I'm stuck on an Error. Not sure what it is that I'm missing. Error: TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::MouseEvent@2f6d661 to …

---

## [AddChildAt, performance?](https://forum.kirupa.com/t/addchildat-performance/306918)

<div class="topic-metadata">

**Author:** [@Maqrkk](https://forum.kirupa.com/u/Maqrkk)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 2:42pm UTC](https://forum.kirupa.com/t/addchildat-performance/306918 "2010-03-24T14:42:52Z")

</div>

Hello everyone, I was wondering if addChildAt is slower than addChild, and if so, how bad it is. I want to add objects at runtime, constantly, but they must be behind the player, so I'd use addChildAt to index 0, I fig…

---

## [Clipbucket - Youtube Clone Video script, Clipshare & PHPmotion Alternative + 8 Themes](https://forum.kirupa.com/t/clipbucket-youtube-clone-video-script-clipshare-phpmotion-alternative-8-themes/306915)

<div class="topic-metadata">

**Author:** [@masalanews](https://forum.kirupa.com/u/masalanews)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 2:12pm UTC](https://forum.kirupa.com/t/clipbucket-youtube-clone-video-script-clipshare-phpmotion-alternative-8-themes/306915 "2010-03-24T14:12:07Z")

</div>

It must be your desire to have your own highly profitable video sharing website like: Youtube, Dailymotion or Metacafe if yes then you are at the accurate place \[wink\] Yes with Clipbucket, now you are only restricted …

---

## [Physics like Sonic the Hedgehog or Fancy Pants](https://forum.kirupa.com/t/physics-like-sonic-the-hedgehog-or-fancy-pants/306914)

<div class="topic-metadata">

**Author:** [@johnsonw](https://forum.kirupa.com/u/johnsonw)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 1:37pm UTC](https://forum.kirupa.com/t/physics-like-sonic-the-hedgehog-or-fancy-pants/306914 "2010-03-24T13:37:27Z")

</div>

Hey guys, So I'm working on a 2D game that has an uneven terrain similar to sonic the hedgehog or fancy pants. I've been looking at different ways to implement the collision detection and collision reaction of the char…

---

## [\[FlashLite 2.1 ActionScript\] How to load movie clips into random positions?](https://forum.kirupa.com/t/flashlite-2-1-actionscript-how-to-load-movie-clips-into-random-positions/306913)

<div class="topic-metadata">

**Author:** [@B\_Ball](https://forum.kirupa.com/u/B_Ball)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 1:32pm UTC](https://forum.kirupa.com/t/flashlite-2-1-actionscript-how-to-load-movie-clips-into-random-positions/306913 "2010-03-24T13:32:38Z")

</div>

Hello, I have three movie clips on my stage. Their names in my library are a1\_mc, a1\_mc2, and a1\_mc3. Each of those movie clips on my stage has a different instance name. All of these are connected with an actionscript…

---

## [DiV Layout help](https://forum.kirupa.com/t/div-layout-help/306912)

<div class="topic-metadata">

**Author:** [@blimpman](https://forum.kirupa.com/u/blimpman)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 1:31pm UTC](https://forum.kirupa.com/t/div-layout-help/306912 "2010-03-24T13:31:13Z")

</div>

I'd like to create the following div layout, HEADER = To always be positioned at the top of the page BODY = To resize depending on the position of the footer FOOTER = To always sit at the bottom of the page So far I'…

---

## [Testing Game - SWF is so big, takes a long time](https://forum.kirupa.com/t/testing-game-swf-is-so-big-takes-a-long-time/306910)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 12:41pm UTC](https://forum.kirupa.com/t/testing-game-swf-is-so-big-takes-a-long-time/306910 "2010-03-24T12:41:04Z")

</div>

When I am trying to test my game, the time keeps getting longer and longer to compile the SWF and actually test my game because of all the art/mcs, etc. that I have in my library. Does anyone have a solid testing metho…

---

## [Extend class/function external swf](https://forum.kirupa.com/t/extend-class-function-external-swf/306907)

<div class="topic-metadata">

**Author:** [@anon45720911](https://forum.kirupa.com/u/anon45720911)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 11:22am UTC](https://forum.kirupa.com/t/extend-class-function-external-swf/306907 "2010-03-24T11:22:16Z")

</div>

I'm trying to load an external swf into another swf and acces some variables and functions. This actually works quite well, however I'm dealing with some variables from the external loaded swf that are read-only. I'm w…

---

## [Loading multiple images in a row](https://forum.kirupa.com/t/loading-multiple-images-in-a-row/306906)

<div class="topic-metadata">

**Author:** [@black\_pearl](https://forum.kirupa.com/u/black_pearl)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 10:58am UTC](https://forum.kirupa.com/t/loading-multiple-images-in-a-row/306906 "2010-03-24T10:58:09Z")

</div>

Hi, I want to load multiple pictures using ActionScript. I can do it in AS2 easily. But AS3 is driving me nuts. I am loading all the images, but I am seeing only the last one. I don't know how to fix this. var pic…

---

## [Loading mp3 makes animation very slow](https://forum.kirupa.com/t/loading-mp3-makes-animation-very-slow/306905)

<div class="topic-metadata">

**Author:** [@generator85](https://forum.kirupa.com/u/generator85)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 10:41am UTC](https://forum.kirupa.com/t/loading-mp3-makes-animation-very-slow/306905 "2010-03-24T10:41:37Z")

</div>

I've got a flash animation with a play button that loads an external mp3. But when the mp3 starts playing I experience a major framedrop (to about 10 - 15 fps). Can this be fixed?

---

## [Timer really inaccurate](https://forum.kirupa.com/t/timer-really-inaccurate/306903)

<div class="topic-metadata">

**Author:** [@GrayFox](https://forum.kirupa.com/u/GrayFox)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 9:42am UTC](https://forum.kirupa.com/t/timer-really-inaccurate/306903 "2010-03-24T09:42:42Z")

</div>

Hi all, I am building a pretty heavy application that allows me to load one or more external swf(s). To remove the swf(s) from the main stage I have built a button. The purpose of this button is that the user has to ho…

---

## [Help unload/remove previous swf file](https://forum.kirupa.com/t/help-unload-remove-previous-swf-file/306901)

<div class="topic-metadata">

**Author:** [@sansrival](https://forum.kirupa.com/u/sansrival)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 9:01am UTC](https://forum.kirupa.com/t/help-unload-remove-previous-swf-file/306901 "2010-03-24T09:01:39Z")

</div>

I'm confused about how to remove the previous load swf file.like i have this image.swf that loaded first then that image is a button so when i click that button it will load another swf file, my problem is that, the imag…

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

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