# programming

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

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

**Page:** 1156

---

## [Repeat movieclip action in AS](https://forum.kirupa.com/t/repeat-movieclip-action-in-as/265471)

<div class="topic-metadata">

**Author:** [@AgentOrange](https://forum.kirupa.com/u/AgentOrange)\
**Replies:** 9\
**Last updated:** [July 14, 2008, 12:45pm UTC](https://forum.kirupa.com/t/repeat-movieclip-action-in-as/265471 "2008-07-14T12:45:20Z")

</div>

Hi all. I'm using the code below to move an instance down a page but I'd like it to run on a loop (just downwards not up and down). What do I need to add to the code? Thanks in advance. onClipEvent(enterFrame) { …

---

## [Imporint External SWF](https://forum.kirupa.com/t/imporint-external-swf/265715)

<div class="topic-metadata">

**Author:** [@nickbunyun](https://forum.kirupa.com/u/nickbunyun)\
**Replies:** 1\
**Last updated:** [July 14, 2008, 11:27am UTC](https://forum.kirupa.com/t/imporint-external-swf/265715 "2008-07-14T11:27:11Z")

</div>

ok so i have this LINK1 (bp\_frame) LINK2 (ww\_frame) LINK3 LINK4 on link1 i have this on (release) { if (\_root.currMovie == undefined) { root.currMovie = "bpframe"; container.loadMovie("bp\_frame.s…

---

## [Line Break on textvar](https://forum.kirupa.com/t/line-break-on-textvar/265892)

<div class="topic-metadata">

**Author:** [@tfoso90](https://forum.kirupa.com/u/tfoso90)\
**Replies:** 0\
**Last updated:** [July 14, 2008, 11:21am UTC](https://forum.kirupa.com/t/line-break-on-textvar/265892 "2008-07-14T11:21:47Z")

</div>

I have got a text box with some text in and a scroll bar on the side, it all works fine untill i try and put a line break in it... here is the code: textvar = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr,…

---

## [Header Alignment Issue](https://forum.kirupa.com/t/header-alignment-issue/265885)

<div class="topic-metadata">

**Author:** [@Nuvis](https://forum.kirupa.com/u/Nuvis)\
**Replies:** 4\
**Last updated:** [July 14, 2008, 11:17am UTC](https://forum.kirupa.com/t/header-alignment-issue/265885 "2008-07-14T11:17:43Z")

</div>

Hey guys, I've been trying to figure this out for endless hours as it is now 4:21 am :beer:, and I'm about to give up. I've been working on a new site for the company I work for as their other one was quite ugly. Anywa…

---

## [Photogallery Thumbnails of different widths](https://forum.kirupa.com/t/photogallery-thumbnails-of-different-widths/263286)

<div class="topic-metadata">

**Author:** [@edsdesigns](https://forum.kirupa.com/u/edsdesigns)\
**Replies:** 2\
**Last updated:** [July 14, 2008, 11:00am UTC](https://forum.kirupa.com/t/photogallery-thumbnails-of-different-widths/263286 "2008-07-14T11:00:32Z")

</div>

Today I used the tutorial on building a photogallery using XML and then added the thumbnails but I have seemed to run into a slight problem I am hoping you can help out with. all my thumbnails are of the same height but…

---

## [How to center a rotation in AS3](https://forum.kirupa.com/t/how-to-center-a-rotation-in-as3/265852)

<div class="topic-metadata">

**Author:** [@kitsunegari](https://forum.kirupa.com/u/kitsunegari)\
**Replies:** 6\
**Last updated:** [July 14, 2008, 10:24am UTC](https://forum.kirupa.com/t/how-to-center-a-rotation-in-as3/265852 "2008-07-14T10:24:36Z")

</div>

Hi I have searched for hours for the solution on google and forums and I still can't figure out how to center a rotation on movieclip in AS3. As you can see in my code, I'm trying to adjust on the fly the x and y propert…

---

## [Print section of MC](https://forum.kirupa.com/t/print-section-of-mc/265877)

<div class="topic-metadata">

**Author:** [@Keith30](https://forum.kirupa.com/u/Keith30)\
**Replies:** 1\
**Last updated:** [July 14, 2008, 9:09am UTC](https://forum.kirupa.com/t/print-section-of-mc/265877 "2008-07-14T09:09:34Z")

</div>

Is there a way to print just a section of a MC? I have a print button with print a MC in the same swf. Can I add x,y or height and width coordinates to sent to the printer action? CODE on PRINT BUTTON on (release…

---

## [Mouseover Text - Popup Problem](https://forum.kirupa.com/t/mouseover-text-popup-problem/265879)

<div class="topic-metadata">

**Author:** [@lacohido](https://forum.kirupa.com/u/lacohido)\
**Replies:** 1\
**Last updated:** [July 14, 2008, 7:42am UTC](https://forum.kirupa.com/t/mouseover-text-popup-problem/265879 "2008-07-14T07:42:07Z")

</div>

Hey Everyone- For some reason I'm can't figure this out and I'm sure it's simple. I must be rusty... Anyway, I've been working with a javascript that makes text popup (in a seperate DIV) when you rollover a link. Thi…

---

## [Same switch statement for two different buttons](https://forum.kirupa.com/t/same-switch-statement-for-two-different-buttons/265876)

<div class="topic-metadata">

**Author:** [@wolcotter](https://forum.kirupa.com/u/wolcotter)\
**Replies:** 3\
**Last updated:** [July 14, 2008, 7:25am UTC](https://forum.kirupa.com/t/same-switch-statement-for-two-different-buttons/265876 "2008-07-14T07:25:44Z")

</div>

Is there an efficient way to assign the following switch statement to two different buttons (movie clips)? btn.onRelease = function() { switch (button\_var) { case 1 : button\_var = 2; ball.slideT…

---

## [Question about loading pictures](https://forum.kirupa.com/t/question-about-loading-pictures/265822)

<div class="topic-metadata">

**Author:** [@kevin416](https://forum.kirupa.com/u/kevin416)\
**Replies:** 4\
**Last updated:** [July 14, 2008, 4:11am UTC](https://forum.kirupa.com/t/question-about-loading-pictures/265822 "2008-07-14T04:11:55Z")

</div>

I was trying to load a .bmp file using the Loader class but kept getting errors saying that the image was of an unknown type. I tryed saving the picture as a .png and the loader worked immediately. Is there something tha…

---

## [NetConnection failing on second try](https://forum.kirupa.com/t/netconnection-failing-on-second-try/265871)

<div class="topic-metadata">

**Author:** [@uberalles](https://forum.kirupa.com/u/uberalles)\
**Replies:** 0\
**Last updated:** [July 14, 2008, 1:20am UTC](https://forum.kirupa.com/t/netconnection-failing-on-second-try/265871 "2008-07-14T01:20:41Z")

</div>

I have a small audio stream between two clients in a chatroom app (using Red5 for the streaming). Now when I connect to Red5 on the first try everything works just fine. If I close the app and try again I get the followi…

---

## [Hardcore Particles](https://forum.kirupa.com/t/hardcore-particles/265118)

<div class="topic-metadata">

**Author:** [@Krabex](https://forum.kirupa.com/u/Krabex)\
**Replies:** 24\
**Last updated:** [July 14, 2008, 12:38am UTC](https://forum.kirupa.com/t/hardcore-particles/265118 "2008-07-14T00:38:47Z")

</div>

Hey, a recent post on the forums got me thinking about particles and bitmapData. Now ive never attempted anything like this before so what i am going to show you may blind you with my hideous ideas + code, but basicly i…

---

## [PhpMyAdmin MySQL question](https://forum.kirupa.com/t/phpmyadmin-mysql-question/265851)

<div class="topic-metadata">

**Author:** [@briand5](https://forum.kirupa.com/u/briand5)\
**Replies:** 5\
**Last updated:** [July 14, 2008, 12:13am UTC](https://forum.kirupa.com/t/phpmyadmin-mysql-question/265851 "2008-07-14T00:13:17Z")

</div>

Hi, I am just starting to learn about databases and I just went through the Flash, PHP, and MySQL Integration tutorial (http://www.kirupa.com/developer/actionscript/flashphpxml\_integration.htm) and I am on the last step…

---

## [Need to load a Youtube clip in a video instance](https://forum.kirupa.com/t/need-to-load-a-youtube-clip-in-a-video-instance/265804)

<div class="topic-metadata">

**Author:** [@ckc](https://forum.kirupa.com/u/ckc)\
**Replies:** 5\
**Last updated:** [July 13, 2008, 11:57pm UTC](https://forum.kirupa.com/t/need-to-load-a-youtube-clip-in-a-video-instance/265804 "2008-07-13T23:57:20Z")

</div>

Hi guys, I know it might be silly but i'm getting stuck here. I need to load a youtube clip into a "embed\_video" instance. I have a input text box where i want people to type there youtube url and then press a play butt…

---

## [AS3 Video Player Component Not Stopping](https://forum.kirupa.com/t/as3-video-player-component-not-stopping/265859)

<div class="topic-metadata">

**Author:** [@chriswilson](https://forum.kirupa.com/u/chriswilson)\
**Replies:** 1\
**Last updated:** [July 13, 2008, 11:33pm UTC](https://forum.kirupa.com/t/as3-video-player-component-not-stopping/265859 "2008-07-13T23:33:50Z")

</div>

I'm making a website for a client and I'm using the Video Playback Component to display a video of theirs. When I test the site the video player shows the movie fine, but when you click to go back to the homepage the vid…

---

## [Help closing a movieclip](https://forum.kirupa.com/t/help-closing-a-movieclip/265866)

<div class="topic-metadata">

**Author:** [@mvadesigns](https://forum.kirupa.com/u/mvadesigns)\
**Replies:** 2\
**Last updated:** [July 13, 2008, 11:17pm UTC](https://forum.kirupa.com/t/help-closing-a-movieclip/265866 "2008-07-13T23:17:02Z")

</div>

I know that lightbox effects were created if Flash wasn't present and I'm not attempting to learn how to use lighbox ... but I'm trying to create that same feeling of a movie clip when it opens for my online portfolio. …

---

## [Stop Intro looping](https://forum.kirupa.com/t/stop-intro-looping/265820)

<div class="topic-metadata">

**Author:** [@digitalmemento](https://forum.kirupa.com/u/digitalmemento)\
**Replies:** 6\
**Last updated:** [July 13, 2008, 11:13pm UTC](https://forum.kirupa.com/t/stop-intro-looping/265820 "2008-07-13T23:13:47Z")

</div>

Im currently in the process of putting together my first Flash site which has got an intro and the last frame of this intro forms the background for the site. After a button is clicked the very short clip plays agian and…

---

## [Workspace preview and player preview different](https://forum.kirupa.com/t/workspace-preview-and-player-preview-different/265862)

<div class="topic-metadata">

**Author:** [@trakwrecka](https://forum.kirupa.com/u/trakwrecka)\
**Replies:** 1\
**Last updated:** [July 13, 2008, 10:23pm UTC](https://forum.kirupa.com/t/workspace-preview-and-player-preview-different/265862 "2008-07-13T22:23:07Z")

</div>

Hello, I was working on a flash header for my up and coming website and all seemed well till i previewed by pressing ctrl+enter. I was working on most of the project previewing over and over again in the workspace, while…

---

## [Objects don't disappear off stage](https://forum.kirupa.com/t/objects-dont-disappear-off-stage/265800)

<div class="topic-metadata">

**Author:** [@metallion](https://forum.kirupa.com/u/metallion)\
**Replies:** 9\
**Last updated:** [July 13, 2008, 10:01pm UTC](https://forum.kirupa.com/t/objects-dont-disappear-off-stage/265800 "2008-07-13T22:01:55Z")

</div>

For some reason, objects that I place into the work area still appear in my swfs. Aren't those objects supposed to disappear? Is there something special I'm supposed to do? Thanks.

---

## [Precaching images for rollovers (cross-browser)](https://forum.kirupa.com/t/precaching-images-for-rollovers-cross-browser/265667)

<div class="topic-metadata">

**Author:** [@digitalmatt](https://forum.kirupa.com/u/digitalmatt)\
**Replies:** 7\
**Last updated:** [July 13, 2008, 9:05pm UTC](https://forum.kirupa.com/t/precaching-images-for-rollovers-cross-browser/265667 "2008-07-13T21:05:04Z")

</div>

Just curious about everyone's techniques for precaching css image rollovers. I know modern browsers will parse through the css and cache background images automatically. But if I want image rollovers to work without t…

---

## [Time based animation](https://forum.kirupa.com/t/time-based-animation/265861)

<div class="topic-metadata">

**Author:** [@gvk](https://forum.kirupa.com/u/gvk)\
**Replies:** 0\
**Last updated:** [July 13, 2008, 8:52pm UTC](https://forum.kirupa.com/t/time-based-animation/265861 "2008-07-13T20:52:30Z")

</div>

I have some problems with my time based animation. I was trying to make animation with bouncing ball which is devided into two smaller balls everytime it touches the edge of the board. However only first ball is animated…

---

## [MultipleWork image load problem](https://forum.kirupa.com/t/multiplework-image-load-problem/265789)

<div class="topic-metadata">

**Author:** [@spectator](https://forum.kirupa.com/u/spectator)\
**Replies:** 3\
**Last updated:** [July 13, 2008, 8:19pm UTC](https://forum.kirupa.com/t/multiplework-image-load-problem/265789 "2008-07-13T20:19:41Z")

</div>

Hi all \[smile\] I have created a file which has one mc named mycontent and into it there are a TextField and another mc. I have also a xml file from which I get my information. My XML structure is simple I have info tag …

---

## [Arranging movie clips](https://forum.kirupa.com/t/arranging-movie-clips/265830)

<div class="topic-metadata">

**Author:** [@ameet](https://forum.kirupa.com/u/ameet)\
**Replies:** 1\
**Last updated:** [July 13, 2008, 7:39pm UTC](https://forum.kirupa.com/t/arranging-movie-clips/265830 "2008-07-13T19:39:14Z")

</div>

I have created four menus and have placed in cascading style (ie. overlaping one after another, showing partially the below one), Now I want each menu come above (front)when I click it, (ie, when I click the second, thir…

---

## [Sort of an overlay effect - question](https://forum.kirupa.com/t/sort-of-an-overlay-effect-question/265856)

<div class="topic-metadata">

**Author:** [@tamak](https://forum.kirupa.com/u/tamak)\
**Replies:** 0\
**Last updated:** [July 13, 2008, 7:26pm UTC](https://forum.kirupa.com/t/sort-of-an-overlay-effect-question/265856 "2008-07-13T19:26:59Z")

</div>

Im building a relatively simple flash application that has a base flash movie for the user interface, then using \_root.createEmptyMovieClip.... and \_root.container.loadMovie... to load a new swf on TOP of the base m…

---

## [Trouble with positioning dynamic text for a menu](https://forum.kirupa.com/t/trouble-with-positioning-dynamic-text-for-a-menu/265086)

<div class="topic-metadata">

**Author:** [@pixel\_streamer](https://forum.kirupa.com/u/pixel_streamer)\
**Replies:** 7\
**Last updated:** [July 13, 2008, 6:45pm UTC](https://forum.kirupa.com/t/trouble-with-positioning-dynamic-text-for-a-menu/265086 "2008-07-13T18:45:44Z")

</div>

I've got some simple code that I'm struggling with. Can someone point out what I've done incorrectly? I can't position the text in the center of gradient\_mc, and the trace reports that the gradient\_mc is NOT 200 wide, …

---

## [Text fields weird formatting inside buttons?](https://forum.kirupa.com/t/text-fields-weird-formatting-inside-buttons/265824)

<div class="topic-metadata">

**Author:** [@mass](https://forum.kirupa.com/u/mass)\
**Replies:** 1\
**Last updated:** [July 13, 2008, 6:01pm UTC](https://forum.kirupa.com/t/text-fields-weird-formatting-inside-buttons/265824 "2008-07-13T18:01:17Z")

</div>

Hi folks I'm getting strange text formatting inside buttons~ same font/size/formatting looks stretched inside some buttons and not in others. I can delete the text field and recreate it and it's still formatting strang…

---

## [Problem with MYSQL code. Works locally but not on server](https://forum.kirupa.com/t/problem-with-mysql-code-works-locally-but-not-on-server/265816)

<div class="topic-metadata">

**Author:** [@jarmanje](https://forum.kirupa.com/u/jarmanje)\
**Replies:** 3\
**Last updated:** [July 13, 2008, 5:26pm UTC](https://forum.kirupa.com/t/problem-with-mysql-code-works-locally-but-not-on-server/265816 "2008-07-13T17:26:42Z")

</div>

Hello, I have a mysql join with some criteria which works perfect locally. i test the mysql in phpmyadmin and it generates the output perfectly, I paste the EXACT same mysql into a clone database on my server and i …

---

## [Problem with mail function](https://forum.kirupa.com/t/problem-with-mail-function/265301)

<div class="topic-metadata">

**Author:** [@utsav](https://forum.kirupa.com/u/utsav)\
**Replies:** 7\
**Last updated:** [July 13, 2008, 5:07pm UTC](https://forum.kirupa.com/t/problem-with-mail-function/265301 "2008-07-13T17:07:13Z")

</div>

I need to send html email to the emails i collect from Textboxes. my code is a follows. I am having following problems. \[LIST=1\] \[\*\]The email is not sent in HTML format. \[\*\]The "\[COLOR=darkred\]from\[/COLOR\]" address o…

---

## [Tweening color of mc (with TextField attached to it) problem](https://forum.kirupa.com/t/tweening-color-of-mc-with-textfield-attached-to-it-problem/265844)

<div class="topic-metadata">

**Author:** [@psych](https://forum.kirupa.com/u/psych)\
**Replies:** 2\
**Last updated:** [July 13, 2008, 3:50pm UTC](https://forum.kirupa.com/t/tweening-color-of-mc-with-textfield-attached-to-it-problem/265844 "2008-07-13T15:50:33Z")

</div>

Hi, I have a situation where i have a MovieClip with TextField attached to it using addChild(), something like: mcName.addChild(textField); stage.addChild(mcName); What i am trying to accomplish is tween backgorund…

---

## [Images Unmasked On Mouseover](https://forum.kirupa.com/t/images-unmasked-on-mouseover/265795)

<div class="topic-metadata">

**Author:** [@willythekid](https://forum.kirupa.com/u/willythekid)\
**Replies:** 3\
**Last updated:** [July 13, 2008, 2:57pm UTC](https://forum.kirupa.com/t/images-unmasked-on-mouseover/265795 "2008-07-13T14:57:29Z")

</div>

Hello, I'm creating a web site that is composed by 9 images, side by side. The site is 968 px wide and 200 px high. Each of the 9 images is 484 px wide and 200 px high originally, but they are masked so that they first…

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

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