# flash

**URL:** https://forum.kirupa.com/c/programming/flash/38.md?page=272

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

**Page:** 273

---

## [Documenting Code](https://forum.kirupa.com/t/documenting-code/314278)

<div class="topic-metadata">

**Author:** [@slideth3](https://forum.kirupa.com/u/slideth3)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 3:45pm UTC](https://forum.kirupa.com/t/documenting-code/314278 "2010-09-23T15:45:20Z")

</div>

I am currently in the process of writing a ray tracing library (ASTrace) for actionscript (see link). \[image\] \[image\] I have a question about documenting code. I know there is software out there for automatically …

---

## [Built-in Vector overrides APEs](https://forum.kirupa.com/t/built-in-vector-overrides-apes/314276)

<div class="topic-metadata">

**Author:** [@danielsvane](https://forum.kirupa.com/u/danielsvane)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 1:20pm UTC](https://forum.kirupa.com/t/built-in-vector-overrides-apes/314276 "2010-09-23T13:20:55Z")

</div>

Hey Kirupians I'm trying to use one of the many physics engines for AS3, but no matter which one I use, they have a Vector class. Somehow my Flash CS5 doesn't want this class, and tells me that I use an incorrect numbe…

---

## [Assinging text in a for loop](https://forum.kirupa.com/t/assinging-text-in-a-for-loop/314275)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 12:14pm UTC](https://forum.kirupa.com/t/assinging-text-in-a-for-loop/314275 "2010-09-23T12:14:19Z")

</div>

In the for loop below I use the "i" var to work with 5 movieclips. The problem is that I also want to use the same "i" var to assign text to a textfield but I can't figure out how to do it. (\[COLOR=#ff0000\]tf.text = Stri…

---

## [Rotating both side and links to anaother page](https://forum.kirupa.com/t/rotating-both-side-and-links-to-anaother-page/314273)

<div class="topic-metadata">

**Author:** [@babuind](https://forum.kirupa.com/u/babuind)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 11:39am UTC](https://forum.kirupa.com/t/rotating-both-side-and-links-to-anaother-page/314273 "2010-09-23T11:39:03Z")

</div>

Dear Friends I designed rotating menu in 3d and rendered as jpeg. After that I imported to flash as series of jpeg into the frame. now I need to rotate that menu as per mouse movement to clockwise and anticlock and …

---

## [Call function inside MC from stage](https://forum.kirupa.com/t/call-function-inside-mc-from-stage/314269)

<div class="topic-metadata">

**Author:** [@ms\_buggy](https://forum.kirupa.com/u/ms_buggy)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 9:37am UTC](https://forum.kirupa.com/t/call-function-inside-mc-from-stage/314269 "2010-09-23T09:37:26Z")

</div>

I have a function inside my movieClip, how do I call it from stage? btnPlay.addEventListener(MouseEvent.CLICK, movieClip.function); How should the path to the movieclip/function be written? Sorry for the very simple …

---

## [\[as3\] Share Objects only working locally](https://forum.kirupa.com/t/as3-share-objects-only-working-locally/314267)

<div class="topic-metadata">

**Author:** [@amietbeach](https://forum.kirupa.com/u/amietbeach)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 9:15am UTC](https://forum.kirupa.com/t/as3-share-objects-only-working-locally/314267 "2010-09-23T09:15:31Z")

</div>

Howdy! I'm having problems with Shared Objects. They seem to work on my machine but when I put them on a server they're not working anymore. Basically I have a page with a video player and I only want the video to pl…

---

## [To scroll or start over](https://forum.kirupa.com/t/to-scroll-or-start-over/314263)

<div class="topic-metadata">

**Author:** [@nealb4zod](https://forum.kirupa.com/u/nealb4zod)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 4:43am UTC](https://forum.kirupa.com/t/to-scroll-or-start-over/314263 "2010-09-23T04:43:36Z")

</div>

I am a Flash noob and I fear I have made a grave error. I took a crash course in Flash and went straight to work designing my page in Photoshop and booting everything over to assemble in Flash. I created a nice little la…

---

## [Typing Game Problem](https://forum.kirupa.com/t/typing-game-problem/314261)

<div class="topic-metadata">

**Author:** [@MR\_TACO](https://forum.kirupa.com/u/MR_TACO)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 2:39am UTC](https://forum.kirupa.com/t/typing-game-problem/314261 "2010-09-23T02:39:08Z")

</div>

Whats the code if after you type something, it leads to a frame or says ''I dont understand ''whatever you wrote''. PLZ THIS IS URGENT :(, I NEED IT FOR SCHOOL. I use Flash 8, AS2.

---

## [Flex form layout - add first child vertically aligned with label](https://forum.kirupa.com/t/flex-form-layout-add-first-child-vertically-aligned-with-label/314260)

<div class="topic-metadata">

**Author:** [@karthikus](https://forum.kirupa.com/u/karthikus)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 2:26am UTC](https://forum.kirupa.com/t/flex-form-layout-add-first-child-vertically-aligned-with-label/314260 "2010-09-23T02:26:08Z")

</div>

Hi all.. In flex form layout \<mx:Form id="form"\> \<mx:FormItem label="horizontal:"\> \<mx:Text text="test"/\> \</mx:FormItem\> \</mx:Form\> the output will be horizontal 'test' But my cons…

---

## [Basic Flash/PHP Mailer Question](https://forum.kirupa.com/t/basic-flash-php-mailer-question/314259)

<div class="topic-metadata">

**Author:** [@ilan2912](https://forum.kirupa.com/u/ilan2912)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 1:29am UTC](https://forum.kirupa.com/t/basic-flash-php-mailer-question/314259 "2010-09-23T01:29:01Z")

</div>

Hi, I'm creating my first Flash website using AS3, and it's really basic. I would like to put in a contact form, which I have made. I've converted the 3 fields (name\_field, email\_field and message\_field) to a symbol (m…

---

## [Slideshow of SWF files](https://forum.kirupa.com/t/slideshow-of-swf-files/314258)

<div class="topic-metadata">

**Author:** [@AmieCutieToes](https://forum.kirupa.com/u/AmieCutieToes)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 12:25am UTC](https://forum.kirupa.com/t/slideshow-of-swf-files/314258 "2010-09-23T00:25:07Z")

</div>

So I'm not AS2 pro, but I made a slideshow that loads about 15 different SWFs as each slide. Each SWF has a preloader and a "container" blank movie clip at the end which loads the next SWF. On the last SWF I have it r…

---

## [Trouble with loader class](https://forum.kirupa.com/t/trouble-with-loader-class/314256)

<div class="topic-metadata">

**Author:** [@Frosteh](https://forum.kirupa.com/u/Frosteh)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 10:53pm UTC](https://forum.kirupa.com/t/trouble-with-loader-class/314256 "2010-09-22T22:53:07Z")

</div>

I've got a website that I'm building and I'm having a bit of trouble with the loader. Basically I've got 3 .swf files that make up the website. 1) Preloader. 2) Site 1. 3) Site 2. The website is rather large, with each s…

---

## [Tell movie clip to play](https://forum.kirupa.com/t/tell-movie-clip-to-play/314253)

<div class="topic-metadata">

**Author:** [@KateH](https://forum.kirupa.com/u/KateH)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 9:31pm UTC](https://forum.kirupa.com/t/tell-movie-clip-to-play/314253 "2010-09-22T21:31:42Z")

</div>

I have a movie clip on my stage. I want a button to tell the movie to play The instance of the movie clip is called holder\_mc. What is the action script to tell the holder\_mc to play. Thanks, Kate

---

## [Noob accessing different Classes with a variable question](https://forum.kirupa.com/t/noob-accessing-different-classes-with-a-variable-question/314251)

<div class="topic-metadata">

**Author:** [@Gilgemesh](https://forum.kirupa.com/u/Gilgemesh)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 8:13pm UTC](https://forum.kirupa.com/t/noob-accessing-different-classes-with-a-variable-question/314251 "2010-09-22T20:13:48Z")

</div>

I am trying to write some code that will pull a different instance of a library item into a placeholder on the stage depending on what button is pressed. Here is the code I have right now, but it seems like there should…

---

## [Need help with my scrollable textfield class](https://forum.kirupa.com/t/need-help-with-my-scrollable-textfield-class/314249)

<div class="topic-metadata">

**Author:** [@rayarman](https://forum.kirupa.com/u/rayarman)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 7:50pm UTC](https://forum.kirupa.com/t/need-help-with-my-scrollable-textfield-class/314249 "2010-09-22T19:50:37Z")

</div>

Hi, I'm still new to flash and actionscript so would appreciate any help. I've made a class called scrollertext which creates a textfield to my dimensions, which is then scrollable by clicking on the text and draggin…

---

## [Animated Scrolling of Text in Text Area Component](https://forum.kirupa.com/t/animated-scrolling-of-text-in-text-area-component/314247)

<div class="topic-metadata">

**Author:** [@tcambron](https://forum.kirupa.com/u/tcambron)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 7:07pm UTC](https://forum.kirupa.com/t/animated-scrolling-of-text-in-text-area-component/314247 "2010-09-22T19:07:18Z")

</div>

Greetings, Can anyone tell me how to animate the scrolling of text down through a populated scrollPane. There is an initial text area populated with several lines of text, not all visible. Onload the ScrollPane shoul…

---

## [Problems with XML](https://forum.kirupa.com/t/problems-with-xml/314242)

<div class="topic-metadata">

**Author:** [@infestedd](https://forum.kirupa.com/u/infestedd)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 5:59pm UTC](https://forum.kirupa.com/t/problems-with-xml/314242 "2010-09-22T17:59:00Z")

</div>

Hi! First of all, nice to meet you guys, im glad i found a cool forum like this and i wish i can help u someday Well i started making flash websites this week, so u can figure im a total newbie. since my work depends o…

---

## [Package Files to Open in Internet Browser](https://forum.kirupa.com/t/package-files-to-open-in-internet-browser/314240)

<div class="topic-metadata">

**Author:** [@foolontheplanet](https://forum.kirupa.com/u/foolontheplanet)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 5:06pm UTC](https://forum.kirupa.com/t/package-files-to-open-in-internet-browser/314240 "2010-09-22T17:06:09Z")

</div>

Hey everyone. I'm getting close to finishing the application I'm working on, and the person I'm working for is going to be distributing it via DVD. My question is, can someone either help me, or point me somewhere tha…

---

## [Pinball Wizard](https://forum.kirupa.com/t/pinball-wizard/314239)

<div class="topic-metadata">

**Author:** [@paulscanlon\_99](https://forum.kirupa.com/u/paulscanlon_99)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 3:47pm UTC](https://forum.kirupa.com/t/pinball-wizard/314239 "2010-09-22T15:47:23Z")

</div>

Hey, i'm doing my best to make the step from AS2 to AS3 and thought a game would be the most bearable way to do it, at the very least i get to play games while i develop... but then i got stuck. the problem i think is …

---

## [Converting mouse control to arrow keys](https://forum.kirupa.com/t/converting-mouse-control-to-arrow-keys/314234)

<div class="topic-metadata">

**Author:** [@kimmy\_dora](https://forum.kirupa.com/u/kimmy_dora)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 1:07pm UTC](https://forum.kirupa.com/t/converting-mouse-control-to-arrow-keys/314234 "2010-09-22T13:07:40Z")

</div>

hi all, can somebody help me with my codes in my flash game . Because here in my game the main character is controlled through mouse and i want it to be controlled in left and right arrow keys. Here are the codes: on t…

---

## [How to Embed fonts in Flash CS5](https://forum.kirupa.com/t/how-to-embed-fonts-in-flash-cs5/314233)

<div class="topic-metadata">

**Author:** [@ilmyar](https://forum.kirupa.com/u/ilmyar)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 12:20pm UTC](https://forum.kirupa.com/t/how-to-embed-fonts-in-flash-cs5/314233 "2010-09-22T12:20:26Z")

</div>

\[FONT="Trebuchet MS"\] \[COLOR="Blue"\]I am new to Flash and I am using Flash CS5, please provide some guidance regarding fonts embedding in flash CS 5.\[/COLOR\] \[/FONT\]

---

## [How do I drag the flash background?](https://forum.kirupa.com/t/how-do-i-drag-the-flash-background/314232)

<div class="topic-metadata">

**Author:** [@devamind](https://forum.kirupa.com/u/devamind)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 12:18pm UTC](https://forum.kirupa.com/t/how-do-i-drag-the-flash-background/314232 "2010-09-22T12:18:37Z")

</div>

I want to click and drag the background like this: http://www.newgrounds.com/portal/view/289031 How do i do it? Do I just paste a specific action script? Please help! Thanks! P.S. Something like google map: http://ma…

---

## [\[Flash CS4\] Scroll navigation portfolio issue](https://forum.kirupa.com/t/flash-cs4-scroll-navigation-portfolio-issue/314231)

<div class="topic-metadata">

**Author:** [@LvD](https://forum.kirupa.com/u/LvD)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 11:41am UTC](https://forum.kirupa.com/t/flash-cs4-scroll-navigation-portfolio-issue/314231 "2010-09-22T11:41:03Z")

</div>

Hey guys, I am having an issue with my portfolio navigation. I got 6 vertical thumbnails with a scrollbar. If you click on one of those i want the project to be enlarged in the window beside of it. The scroll has a …

---

## [Function parameter as unknown type](https://forum.kirupa.com/t/function-parameter-as-unknown-type/314228)

<div class="topic-metadata">

**Author:** [@kissa](https://forum.kirupa.com/u/kissa)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 10:33am UTC](https://forum.kirupa.com/t/function-parameter-as-unknown-type/314228 "2010-09-22T10:33:39Z")

</div>

I'm trying to convert some C# code I have and one problem I can't find a solution for is to have a function take parameters of unknown types. C# code: public T Maximum\<T\>(T v1, T v2) { return v1 \> v2 != null ? v1…

---

## [New and need help - drag and drop with dynamic text](https://forum.kirupa.com/t/new-and-need-help-drag-and-drop-with-dynamic-text/314219)

<div class="topic-metadata">

**Author:** [@evilkittay](https://forum.kirupa.com/u/evilkittay)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 1:30am UTC](https://forum.kirupa.com/t/new-and-need-help-drag-and-drop-with-dynamic-text/314219 "2010-09-22T01:30:34Z")

</div>

So I'm doing this project and as an animator I'm not familiar with the whole action script side of flash Okay so far I've managed to create the whole Drag and Drop feature and it works well, the thing is I want to mak…

---

## [Loading instance into movie clip? Brain Fart](https://forum.kirupa.com/t/loading-instance-into-movie-clip-brain-fart/314215)

<div class="topic-metadata">

**Author:** [@KateH](https://forum.kirupa.com/u/KateH)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 9:29pm UTC](https://forum.kirupa.com/t/loading-instance-into-movie-clip-brain-fart/314215 "2010-09-21T21:29:23Z")

</div>

Hello, I want to load an instance into a empty movie clip on my scene1. On scene1 I have an empty movie clip empty\_mc. In my library I have a jpeg I converted into a symbol. I through the symbol onto stage1 and gave it…

---

## [XML tag variable name](https://forum.kirupa.com/t/xml-tag-variable-name/314214)

<div class="topic-metadata">

**Author:** [@Wilky](https://forum.kirupa.com/u/Wilky)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 9:23pm UTC](https://forum.kirupa.com/t/xml-tag-variable-name/314214 "2010-09-21T21:23:04Z")

</div>

Hi there, this may be a noob question. I have this part of XML: \<news\> \<image src="..."\> \</news\> \<about\> \<image src="..."\> \</about\> and I have this function which passes the name of the section I would like to use ("…

---

## [Which way is faster?](https://forum.kirupa.com/t/which-way-is-faster/314213)

<div class="topic-metadata">

**Author:** [@Nick23](https://forum.kirupa.com/u/Nick23)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 8:50pm UTC](https://forum.kirupa.com/t/which-way-is-faster/314213 "2010-09-21T20:50:56Z")

</div>

I am making a flash game and I am trying to make it as efficient as possible. I need to set a timer and then do something after the timer runs out. So, that being said I am wondering which method would be faster (or mor…

---

## [Round a number to values in an array](https://forum.kirupa.com/t/round-a-number-to-values-in-an-array/314209)

<div class="topic-metadata">

**Author:** [@xbox\_hacker](https://forum.kirupa.com/u/xbox_hacker)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 7:30pm UTC](https://forum.kirupa.com/t/round-a-number-to-values-in-an-array/314209 "2010-09-21T19:30:31Z")

</div>

lets say i do some simple AS3 math and get a Number of 199. How can i use a Array with values of "preferred" numbers, compare the 199 to the array and round up or down to the closest value in the array? var myNumber:N…

---

## [Always show 3 Decimal Places](https://forum.kirupa.com/t/always-show-3-decimal-places/314207)

<div class="topic-metadata">

**Author:** [@blasko229](https://forum.kirupa.com/u/blasko229)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 6:42pm UTC](https://forum.kirupa.com/t/always-show-3-decimal-places/314207 "2010-09-21T18:42:54Z")

</div>

For example I could have 6 or 6.5 or 6.75 or 6.125 but I need to convert all to show zeros at the end if they are less than three decimal places. So it should output respectively, 6.000 6.500 6.750 or leave alone at 6…

[Previous page](https://forum.kirupa.com/c/programming/flash/38.md?page=271)

[Next page](https://forum.kirupa.com/c/programming/flash/38.md?page=273)
