# flash

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

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

**Page:** 891

---

## [XML for breakfast?](https://forum.kirupa.com/t/xml-for-breakfast/267029)

<div class="topic-metadata">

**Author:** [@odiecreversed](https://forum.kirupa.com/u/odiecreversed)\
**Replies:** 0\
**Last updated:** [July 27, 2008, 8:43pm UTC](https://forum.kirupa.com/t/xml-for-breakfast/267029 "2008-07-27T20:43:42Z")

</div>

With the XML below I'm trying to go through whichever "Item" I want and access it's "itemImage's". I'm trying to do it like this at the moment which is.. well... not the right syntax. trace(rootGlobal.xml.Item.mainI…

---

## [Using an exported asset in a loaded swf](https://forum.kirupa.com/t/using-an-exported-asset-in-a-loaded-swf/266995)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 3\
**Last updated:** [July 27, 2008, 8:28pm UTC](https://forum.kirupa.com/t/using-an-exported-asset-in-a-loaded-swf/266995 "2008-07-27T20:28:07Z")

</div>

Assume this scenario: SWF A loads SWF B. In SWF B is a library movieclip which has its linkage set for "export for actionscript". After it's loaded into SWF B, is there a way from SWF A to create a new class of this libr…

---

## [Interfaces in a different path (package)](https://forum.kirupa.com/t/interfaces-in-a-different-path-package/266997)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 2\
**Last updated:** [July 27, 2008, 7:58pm UTC](https://forum.kirupa.com/t/interfaces-in-a-different-path-package/266997 "2008-07-27T19:58:30Z")

</div>

In my class, how can I implement an interface that is lieing in a different path (not in the same package) ? I tried to import but it failed. From the flash documentation it said that interfaces should not lie inside a p…

---

## [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…

---

## [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…

---

## [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?

---

## [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…

---

## [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?

---

## [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?

---

## [3DMLW technology as an strong alternative to Flash 10](https://forum.kirupa.com/t/3dmlw-technology-as-an-strong-alternative-to-flash-10/266978)

<div class="topic-metadata">

**Author:** [@Core2Quad](https://forum.kirupa.com/u/Core2Quad)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 6:56pm UTC](https://forum.kirupa.com/t/3dmlw-technology-as-an-strong-alternative-to-flash-10/266978 "2008-07-26T18:56:23Z")

</div>

Hi Expertz, i found a new platform which can be replaced with Flash 10 Platform for Designing cool stunning applications...Can anybody let me know if they have tested it?? I saw that its open-source and free to use, so i…

---

## [onLoadComplete Tween](https://forum.kirupa.com/t/onloadcomplete-tween/266976)

<div class="topic-metadata">

**Author:** [@jpodz](https://forum.kirupa.com/u/jpodz)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 5:39pm UTC](https://forum.kirupa.com/t/onloadcomplete-tween/266976 "2008-07-26T17:39:54Z")

</div>

Hey everyone. Has anyone run into this problem before? I can't seem to figure out why the below code won't tween. There's obviously more code, but this should be the problem. Anyone have any ideas? .... listener.onLoa…

---

## [Traversing XML and storing into an Object](https://forum.kirupa.com/t/traversing-xml-and-storing-into-an-object/266975)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 4:52pm UTC](https://forum.kirupa.com/t/traversing-xml-and-storing-into-an-object/266975 "2008-07-26T16:52:11Z")

</div>

say I have an XML like this (store in variable: XMLDATA): \<params\> \<Tom\>23 years old\</Tom\> \<Bill\>24 years old\</Bill\> \</params\> how can I make a for loop to automate the process of assigning all values to an object …

---

## [Flash iTunes coverflow](https://forum.kirupa.com/t/flash-itunes-coverflow/266969)

<div class="topic-metadata">

**Author:** [@airabove](https://forum.kirupa.com/u/airabove)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 2:46pm UTC](https://forum.kirupa.com/t/flash-itunes-coverflow/266969 "2008-07-26T14:46:16Z")

</div>

Hi everyone! I'm working on a project, a photo/photoalbum viewer in coverflow style. Weber design labs have already done a lot of the work needed (excellent!) so i'm starting out with their .fla. There will be some h…

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

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