# programming

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

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

**Page:** 1137

---

## [Displaying a rotating Galaxy](https://forum.kirupa.com/t/displaying-a-rotating-galaxy/267028)

<div class="topic-metadata">

**Author:** [@Impact1986](https://forum.kirupa.com/u/Impact1986)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 7:20pm UTC](https://forum.kirupa.com/t/displaying-a-rotating-galaxy/267028 "2008-07-27T19:20:03Z")

</div>

I try to make a website where you can navigate by travelling through a galaxy, but to make things a bit more complicated i try to put a 3d view of it. After long search i came to the conclusion to use papervision3d. I…

---

## [AS2: Adjust text box height (createTextField)](https://forum.kirupa.com/t/as2-adjust-text-box-height-createtextfield/266990)

<div class="topic-metadata">

**Author:** [@Holmesc](https://forum.kirupa.com/u/Holmesc)\
**Replies:** 2\
**Last updated:** [July 27, 2008, 7:02pm UTC](https://forum.kirupa.com/t/as2-adjust-text-box-height-createtextfield/266990 "2008-07-27T19:02:15Z")

</div>

I'm trying to dynamically create a static text field on the stage, but I want it to automatically shrink to the smallest height possible, much like a static text box dragged created using the Text Tool. I don't know how…

---

## [Drawing application with playback](https://forum.kirupa.com/t/drawing-application-with-playback/266892)

<div class="topic-metadata">

**Author:** [@glenngould](https://forum.kirupa.com/u/glenngould)\
**Replies:** 1\
**Last updated:** [July 27, 2008, 6:46pm UTC](https://forum.kirupa.com/t/drawing-application-with-playback/266892 "2008-07-27T18:46:35Z")

</div>

Hi guys, I was on this site http://sketchfu.com where you can draw an image and then post it and you will be able to replay a movie of how the image was drawn. I have seen tutorials for creating flash drawing application…

---

## [beginFill method using specified colors!](https://forum.kirupa.com/t/beginfill-method-using-specified-colors/267016)

<div class="topic-metadata">

**Author:** [@Mesilane](https://forum.kirupa.com/u/Mesilane)\
**Replies:** 5\
**Last updated:** [July 27, 2008, 6:45pm UTC](https://forum.kirupa.com/t/beginfill-method-using-specified-colors/267016 "2008-07-27T18:45:08Z")

</div>

Hei! When i use: beginFill(Math.random()\*0xffffff, 100) i get color picked randomly. But mostly they appear to be quite.. ugly, if to be straighforward. How can i use random specified colors? Let's say I set the …

---

## [Tween classes!](https://forum.kirupa.com/t/tween-classes/267027)

<div class="topic-metadata">

**Author:** [@Mesilane](https://forum.kirupa.com/u/Mesilane)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 6:42pm UTC](https://forum.kirupa.com/t/tween-classes/267027 "2008-07-27T18:42:54Z")

</div>

I'm creating an animation using actionscript (mx.transitions.Tween).. What i want to create is animation (animation box is created via beginFill, lineTo and moveTo.. you know) when I roll over an instance.. i'm doing i…

---

## [Apply blend mode to image loaded from URL?](https://forum.kirupa.com/t/apply-blend-mode-to-image-loaded-from-url/267026)

<div class="topic-metadata">

**Author:** [@peartart](https://forum.kirupa.com/u/peartart)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 6:40pm UTC](https://forum.kirupa.com/t/apply-blend-mode-to-image-loaded-from-url/267026 "2008-07-27T18:40:35Z")

</div>

Right now I have a section of my code that looks like this. this.createEmptyMovieClip("two",this.getNextHighestDepth()); two.loadMovie(someURL); var blend:Array = \["multiply", "screen", "overlay", "hardlight"\]; var ra…

---

## [Fixed Background Image x2](https://forum.kirupa.com/t/fixed-background-image-x2/266872)

<div class="topic-metadata">

**Author:** [@Adam1](https://forum.kirupa.com/u/Adam1)\
**Replies:** 1\
**Last updated:** [July 27, 2008, 6:02pm UTC](https://forum.kirupa.com/t/fixed-background-image-x2/266872 "2008-07-27T18:02:31Z")

</div>

First of all, I'm VERY new to CSS. I'm trying to make my first CSS layout, and I'm having an issue. My first issue was trying to make two different background images - one that stays to the left and one that stays to t…

---

## [Slideshow Problem](https://forum.kirupa.com/t/slideshow-problem/266079)

<div class="topic-metadata">

**Author:** [@aub5987](https://forum.kirupa.com/u/aub5987)\
**Replies:** 1\
**Last updated:** [July 27, 2008, 5:04pm UTC](https://forum.kirupa.com/t/slideshow-problem/266079 "2008-07-27T17:04:21Z")

</div>

I've just recently started learning actionscript with most of knowledge coming from this site and others like it. My website loads external swfs by clicking a button. In these swfs is dynamic text and a slideshow. It l…

---

## [Package confusion](https://forum.kirupa.com/t/package-confusion/267021)

<div class="topic-metadata">

**Author:** [@DangersuN](https://forum.kirupa.com/u/DangersuN)\
**Replies:** 5\
**Last updated:** [July 27, 2008, 4:55pm UTC](https://forum.kirupa.com/t/package-confusion/267021 "2008-07-27T16:55:26Z")

</div>

I have a 2 classes located in the same folder fe: com.furyan.dd.Main com.furyan.dd.Link Main I am using as the document class for a flash project. In Main I am creating an instance of the Link class. The package stru…

---

## [Control playspeed by mouse position](https://forum.kirupa.com/t/control-playspeed-by-mouse-position/267022)

<div class="topic-metadata">

**Author:** [@TDN169](https://forum.kirupa.com/u/TDN169)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 4:34pm UTC](https://forum.kirupa.com/t/control-playspeed-by-mouse-position/267022 "2008-07-27T16:34:21Z")

</div>

Can anyone suggest some code which will use the mouse's x-co-ordinate to determine playspeed- let's say you have the mouse in the middle- for sake of argument, I have a movie 200px wide- at x=100- here speed=0. at x=0, s…

---

## [\[help\]as3 xml error](https://forum.kirupa.com/t/help-as3-xml-error/267019)

<div class="topic-metadata">

**Author:** [@fleasy](https://forum.kirupa.com/u/fleasy)\
**Replies:** 1\
**Last updated:** [July 27, 2008, 4:19pm UTC](https://forum.kirupa.com/t/help-as3-xml-error/267019 "2008-07-27T16:19:03Z")

</div>

So I’m playing around with xml and as3. Now I got this: var fileList:XMLList = bookInput.Songs.file1; And now I want that if you push a button, file1 changes in file2. So I got this: var j:uint=1; But when I change…

---

## [What are these scripts doing?](https://forum.kirupa.com/t/what-are-these-scripts-doing/266965)

<div class="topic-metadata">

**Author:** [@adsmithy](https://forum.kirupa.com/u/adsmithy)\
**Replies:** 2\
**Last updated:** [July 27, 2008, 3:55pm UTC](https://forum.kirupa.com/t/what-are-these-scripts-doing/266965 "2008-07-27T15:55:57Z")

</div>

Hi, I have 2 PHP files that I am trying to understand. They are part of a Flash game that I have. The Flash game allows you to submit a high score, and also builds a high score table using data stored in a database. T…

---

## [Header Help](https://forum.kirupa.com/t/header-help/266999)

<div class="topic-metadata">

**Author:** [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Replies:** 1\
**Last updated:** [July 27, 2008, 3:26pm UTC](https://forum.kirupa.com/t/header-help/266999 "2008-07-27T15:26:28Z")

</div>

Hey, I'm just starting to learn C++ and I'm using a Dummies Guide book. It says that I need to make a header file and use #include "header.h" for the linking. So I created a new source file called header.h, but when I …

---

## [IE Issue With Myspace Divs](https://forum.kirupa.com/t/ie-issue-with-myspace-divs/267017)

<div class="topic-metadata">

**Author:** [@mikenificent](https://forum.kirupa.com/u/mikenificent)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 3:20pm UTC](https://forum.kirupa.com/t/ie-issue-with-myspace-divs/267017 "2008-07-27T15:20:52Z")

</div>

Hello to the great people here at Kirupa. Im having issues with a Myspace design I designed for somebody. It looks perfect in Firefox and in Safari. But acts up in IE, I believe I know what I need to do to solve this pro…

---

## [Creating vertical Dynamic Text Field with AS!](https://forum.kirupa.com/t/creating-vertical-dynamic-text-field-with-as/267013)

<div class="topic-metadata">

**Author:** [@Mesilane](https://forum.kirupa.com/u/Mesilane)\
**Replies:** 2\
**Last updated:** [July 27, 2008, 2:53pm UTC](https://forum.kirupa.com/t/creating-vertical-dynamic-text-field-with-as/267013 "2008-07-27T14:53:34Z")

</div>

Hey! I have a problem: I just can't make a vertical aligned Dynamic Text Field. When i use \_rotation, dynamic text will dissappear. Any suggestions to get vertically aligned dynamic text field?

---

## [How is the "preview post" done in forum pages?](https://forum.kirupa.com/t/how-is-the-preview-post-done-in-forum-pages/267008)

<div class="topic-metadata">

**Author:** [@iamhere](https://forum.kirupa.com/u/iamhere)\
**Replies:** 5\
**Last updated:** [July 27, 2008, 2:45pm UTC](https://forum.kirupa.com/t/how-is-the-preview-post-done-in-forum-pages/267008 "2008-07-27T14:45:23Z")

</div>

I've often seen sites which, when you post, have a "preview post" button, and then you can click "Submit" or something else - i'm curious how this is done. Where is the data that's been posted held in between these pages…

---

## [Objects in Array...doesn't get more newbie than this!](https://forum.kirupa.com/t/objects-in-array-doesnt-get-more-newbie-than-this/267014)

<div class="topic-metadata">

**Author:** [@Kenwio](https://forum.kirupa.com/u/Kenwio)\
**Replies:** 2\
**Last updated:** [July 27, 2008, 2:43pm UTC](https://forum.kirupa.com/t/objects-in-array-doesnt-get-more-newbie-than-this/267014 "2008-07-27T14:43:09Z")

</div>

Hi! I have: //dataGrid is a DataGrid declared earlier var cols:Array = dataGrid.columns; trace(cols); If I test/debug this I get: \[object DataGridColumn\],\[object DataGridColumn\],\[Obje… But I want to access the ‘d…

---

## [ApplicationDomain class question](https://forum.kirupa.com/t/applicationdomain-class-question/266974)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 1\
**Last updated:** [July 27, 2008, 2:15pm UTC](https://forum.kirupa.com/t/applicationdomain-class-question/266974 "2008-07-27T14:15:57Z")

</div>

Im looking for a way to divide all my application code (classes) into separate swf files. Im looking for a good design pattern to use, to manage the application. I came accross the ApplicationDomain class while looking i…

---

## [Background image doesn't show up in Safari!](https://forum.kirupa.com/t/background-image-doesnt-show-up-in-safari/265231)

<div class="topic-metadata">

**Author:** [@Mesilane](https://forum.kirupa.com/u/Mesilane)\
**Replies:** 4\
**Last updated:** [July 27, 2008, 2:06pm UTC](https://forum.kirupa.com/t/background-image-doesnt-show-up-in-safari/265231 "2008-07-27T14:06:42Z")

</div>

Hey! I have a problem. I have made a band webapage, but when I use Safari, the background doesn't show up. Instead of background image, i see just a white background. Background image shows up in all the others browser…

---

## [Non action script languages in flash](https://forum.kirupa.com/t/non-action-script-languages-in-flash/267009)

<div class="topic-metadata">

**Author:** [@iamhere](https://forum.kirupa.com/u/iamhere)\
**Replies:** 1\
**Last updated:** [July 27, 2008, 12:54pm UTC](https://forum.kirupa.com/t/non-action-script-languages-in-flash/267009 "2008-07-27T12:54:25Z")

</div>

is it possible to put non action script languages into a swf file? i.e. to get flash to take languages other than actionscript? how?

---

## [Problem inserting record pls help](https://forum.kirupa.com/t/problem-inserting-record-pls-help/266992)

<div class="topic-metadata">

**Author:** [@atplerry](https://forum.kirupa.com/u/atplerry)\
**Replies:** 1\
**Last updated:** [July 27, 2008, 12:52pm UTC](https://forum.kirupa.com/t/problem-inserting-record-pls-help/266992 "2008-07-27T12:52:08Z")

</div>

Pls i dont relly want to understand what is really wrong with the code below! I want to insert record into the database i have written one and it is working well for two record but for these is not working. And more so i…

---

## [Flex Button question](https://forum.kirupa.com/t/flex-button-question/266971)

<div class="topic-metadata">

**Author:** [@Dom\_1](https://forum.kirupa.com/u/Dom_1)\
**Replies:** 1\
**Last updated:** [July 27, 2008, 12:11pm UTC](https://forum.kirupa.com/t/flex-button-question/266971 "2008-07-27T12:11:18Z")

</div>

Very basic question for the flex people. How do you get rid of that very annoying blue rect round a button when you roll over it ? I've tried about every style property in the Flex doc.

---

## [External Interface problem](https://forum.kirupa.com/t/external-interface-problem/267006)

<div class="topic-metadata">

**Author:** [@xenophobia](https://forum.kirupa.com/u/xenophobia)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 9:18am UTC](https://forum.kirupa.com/t/external-interface-problem/267006 "2008-07-27T09:18:03Z")

</div>

In flash I had this code: import flash.external.ExternalInterface; function abc(){ txtNotice.text = "abc"; } ExternalInterface.addCallback("abc",null,abc); In javascript: var x = document.getElementById('m…

---

## [Problem: load external text file (with empty line as seperator) into an array](https://forum.kirupa.com/t/problem-load-external-text-file-with-empty-line-as-seperator-into-an-array/267003)

<div class="topic-metadata">

**Author:** [@alex298](https://forum.kirupa.com/u/alex298)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 5:49am UTC](https://forum.kirupa.com/t/problem-load-external-text-file-with-empty-line-as-seperator-into-an-array/267003 "2008-07-27T05:49:07Z")

</div>

Hello, I have problem to load an external text file (small database) and store in an array. The format and content of the text file (tips.txt) is as below. The empty line is acted as a seperator of the data. Explana…

---

## [Trapping TextField.htmlText parsing errors?](https://forum.kirupa.com/t/trapping-textfield-htmltext-parsing-errors/267000)

<div class="topic-metadata">

**Author:** [@asl](https://forum.kirupa.com/u/asl)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 3:30am UTC](https://forum.kirupa.com/t/trapping-textfield-htmltext-parsing-errors/267000 "2008-07-27T03:30:13Z")

</div>

When the .htmlText property of TextField contains IMG tags that 404, the following error is generated: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found. Paste this code into a new FLA to replicat…

---

## [Flex - works locally, throws errors online](https://forum.kirupa.com/t/flex-works-locally-throws-errors-online/266998)

<div class="topic-metadata">

**Author:** [@pips](https://forum.kirupa.com/u/pips)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 3:29am UTC](https://forum.kirupa.com/t/flex-works-locally-throws-errors-online/266998 "2008-07-27T03:29:01Z")

</div>

Hi! I made an app in Flex and it works great locally but when I upload it to my server I get errors :/ YOu can view it at http://divita.eu/test/virtual\_mountain/ Error: Unable to load ''. at mx.controls::SWFLoader/…

---

## [Can you send FlashVars in the editor?](https://forum.kirupa.com/t/can-you-send-flashvars-in-the-editor/266988)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 11:32pm UTC](https://forum.kirupa.com/t/can-you-send-flashvars-in-the-editor/266988 "2008-07-26T23:32:07Z")

</div>

I always just do... //var id:String = LoaderInfo(this.root.loaderInfo).parameters.id; var id = '78'; And switch the commenting depending if it's local or not.

---

## [Security.allowDomain doesn't work?](https://forum.kirupa.com/t/security-allowdomain-doesnt-work/266986)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 8:58pm UTC](https://forum.kirupa.com/t/security-allowdomain-doesnt-work/266986 "2008-07-26T20:58:40Z")

</div>

I have the line: Security.allowDomain("\*.expressionstributes.com"); But when I got to my movie, I get: Security sandbox violation: LoaderInfo.content: http://cp.expressionstributes.com/control/PreviewTheme.swf cannot…

---

## [Scripting 3D in Flash](https://forum.kirupa.com/t/scripting-3d-in-flash/266982)

<div class="topic-metadata">

**Author:** [@spike50](https://forum.kirupa.com/u/spike50)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 7:55pm UTC](https://forum.kirupa.com/t/scripting-3d-in-flash/266982 "2008-07-26T19:55:57Z")

</div>

Hi, I am pretty new to AS3 and this forum. I ran across a great Kirupa tutorial by Senocular called Scripting 3D in Flash. Example 8 (http://www.kirupa.com/developer/actionscript/more\_panning.htm) is exactly what I nee…

---

## [How to add EventListener to a variable?](https://forum.kirupa.com/t/how-to-add-eventlistener-to-a-variable/266980)

<div class="topic-metadata">

**Author:** [@spectator](https://forum.kirupa.com/u/spectator)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 7:04pm UTC](https://forum.kirupa.com/t/how-to-add-eventlistener-to-a-variable/266980 "2008-07-26T19:04:24Z")

</div>

How can I add event listener to a variable?

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

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