# programming

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

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

**Page:** 535

---

## [Command Pattern Issues](https://forum.kirupa.com/t/command-pattern-issues/306588)

<div class="topic-metadata">

**Author:** [@oluc](https://forum.kirupa.com/u/oluc)\
**Replies:** 0\
**Last updated:** [March 18, 2010, 12:38am UTC](https://forum.kirupa.com/t/command-pattern-issues/306588 "2010-03-18T00:38:50Z")

</div>

Hello. I started learning about command pattern and so I tried taking the data I learned and applying it to what I have been doing. I put together an image gallery using command pattern but the images are not appearing…

---

## [Air 2.0 beta - rotationY kills listeners and masks](https://forum.kirupa.com/t/air-2-0-beta-rotationy-kills-listeners-and-masks/306584)

<div class="topic-metadata">

**Author:** [@keneC](https://forum.kirupa.com/u/keneC)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 11:28pm UTC](https://forum.kirupa.com/t/air-2-0-beta-rotationy-kills-listeners-and-masks/306584 "2010-03-17T23:28:42Z")

</div>

Has anyone developing apps in the Air 2.0 beta (AS3.0 in CS4) run into problems with the "rotationY" movieClip attribute? It seems that as soon as I change my movieClip's rotationY, it kills my clip's listeners and mas…

---

## [AS3 problem loading AS2 swfs](https://forum.kirupa.com/t/as3-problem-loading-as2-swfs/306583)

<div class="topic-metadata">

**Author:** [@edward\_338](https://forum.kirupa.com/u/edward_338)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 10:21pm UTC](https://forum.kirupa.com/t/as3-problem-loading-as2-swfs/306583 "2010-03-17T22:21:40Z")

</div>

I posted earlier, but I'm not sure my post was very clear. Here it is restated: I'm trying to build a portfolio using ActionScript 3 that imports SWFs created in ActionScript 2. The first time one of these SWFs loads…

---

## [Avoid nested function in order to access a local variable](https://forum.kirupa.com/t/avoid-nested-function-in-order-to-access-a-local-variable/306581)

<div class="topic-metadata">

**Author:** [@Dimitree](https://forum.kirupa.com/u/Dimitree)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 10:01pm UTC](https://forum.kirupa.com/t/avoid-nested-function-in-order-to-access-a-local-variable/306581 "2010-03-17T22:01:07Z")

</div>

I want to load an XML file and access one node value. I decided to store it in a variable(var addedNumber). The problem is I want to access this variable in a new function (loadURL)"outside" of the scope. Is there a c…

---

## [Calling main function from inside a function](https://forum.kirupa.com/t/calling-main-function-from-inside-a-function/306579)

<div class="topic-metadata">

**Author:** [@marwan\_aziz](https://forum.kirupa.com/u/marwan_aziz)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 8:59pm UTC](https://forum.kirupa.com/t/calling-main-function-from-inside-a-function/306579 "2010-03-17T20:59:02Z")

</div>

I have onEnterFrame function that calls a function on the root of the class public function PlayNext(){ \_mcList\[\_currentVid\].onEnterFrame = function() { //trace(this + ": " +"On enter frame"); …

---

## [onKeyDown problem](https://forum.kirupa.com/t/onkeydown-problem/306577)

<div class="topic-metadata">

**Author:** [@satiss](https://forum.kirupa.com/u/satiss)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 8:33pm UTC](https://forum.kirupa.com/t/onkeydown-problem/306577 "2010-03-17T20:33:21Z")

</div>

Hello everyone, I'm having issue with the onKeyDown and addListener. When I export my movie, it work perfectly. But when I embed the movie in a web page, I need to click on the Stage to be able to use the Keyboard. :…

---

## [Mouse on screen causing slowdown?](https://forum.kirupa.com/t/mouse-on-screen-causing-slowdown/306575)

<div class="topic-metadata">

**Author:** [@ubergoten](https://forum.kirupa.com/u/ubergoten)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 8:03pm UTC](https://forum.kirupa.com/t/mouse-on-screen-causing-slowdown/306575 "2010-03-17T20:03:19Z")

</div>

Hey everyone, I have a game that has around 400 movie clips in it and whenever I mouse over the stage the FPS drops to around 8-15. I tried setting Mouse.hide() and mouseEnabled = false but it doesn't seem to do anyth…

---

## [Saving PDF stream using FDPI/AS3](https://forum.kirupa.com/t/saving-pdf-stream-using-fdpi-as3/306573)

<div class="topic-metadata">

**Author:** [@Mackerel](https://forum.kirupa.com/u/Mackerel)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 7:53pm UTC](https://forum.kirupa.com/t/saving-pdf-stream-using-fdpi-as3/306573 "2010-03-17T19:53:44Z")

</div>

Hey all, I've been trying to figure this out for hours and wanted to see if the community could help. I'm generating a PDF using FPDF/FPDI/PHP in combination with a Flash-based PDF editor. I'm able to pass in POST valu…

---

## [textArea + xml file](https://forum.kirupa.com/t/textarea-xml-file/306566)

<div class="topic-metadata">

**Author:** [@kod3](https://forum.kirupa.com/u/kod3)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 5:42pm UTC](https://forum.kirupa.com/t/textarea-xml-file/306566 "2010-03-17T17:42:31Z")

</div>

can anyone help me understand how it works or link me to some tutorial how do it? i have already loaded a text from a simple notepad file without any problem.. i wanna do the same using an xml file thx in adv mates

---

## [Attach Movie function problem](https://forum.kirupa.com/t/attach-movie-function-problem/306564)

<div class="topic-metadata">

**Author:** [@marwan\_aziz](https://forum.kirupa.com/u/marwan_aziz)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 4:58pm UTC](https://forum.kirupa.com/t/attach-movie-function-problem/306564 "2010-03-17T16:58:53Z")

</div>

Hi I am very advanced when it comes to AS 3.0 but I have recently taken up a job to develop in AS2.0 and having a bit of a problem making it OOP. Okay here is the problem I have main.fla and TranslitePlaylist.as //main…

---

## [Loading Random Quotes, quote limit?](https://forum.kirupa.com/t/loading-random-quotes-quote-limit/306563)

<div class="topic-metadata">

**Author:** [@opiesnow](https://forum.kirupa.com/u/opiesnow)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 4:51pm UTC](https://forum.kirupa.com/t/loading-random-quotes-quote-limit/306563 "2010-03-17T16:51:01Z")

</div>

i used the tutorial Loading Random Quotes by Ryan Seddon aka Inept it was great and everything is working, thank you!! it seems like it repeats certain quotes often though. is there a limit to how many quotes you c…

---

## [Communication between 2 independent swf files?](https://forum.kirupa.com/t/communication-between-2-independent-swf-files/306560)

<div class="topic-metadata">

**Author:** [@fizzzzzzzzzzzy](https://forum.kirupa.com/u/fizzzzzzzzzzzy)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 3:18pm UTC](https://forum.kirupa.com/t/communication-between-2-independent-swf-files/306560 "2010-03-17T15:18:59Z")

</div>

Hey, so I want a website to have two independently embedded swf files, the reason being: I want one anchored to the center, and the other anchored to the left side. However, I still want information to be communicated be…

---

## [Move code to second frame?](https://forum.kirupa.com/t/move-code-to-second-frame/306559)

<div class="topic-metadata">

**Author:** [@ishmael](https://forum.kirupa.com/u/ishmael)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 2:23pm UTC](https://forum.kirupa.com/t/move-code-to-second-frame/306559 "2010-03-17T14:23:40Z")

</div>

EDIT: Disregard this, this was just the tip of the iceberg of my problem. Please close.

---

## [How can I ping a host using as3](https://forum.kirupa.com/t/how-can-i-ping-a-host-using-as3/306558)

<div class="topic-metadata">

**Author:** [@sci](https://forum.kirupa.com/u/sci)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 2:11pm UTC](https://forum.kirupa.com/t/how-can-i-ping-a-host-using-as3/306558 "2010-03-17T14:11:59Z")

</div>

Any ideas? Thanks

---

## [How to calculate total child in XMLdata?](https://forum.kirupa.com/t/how-to-calculate-total-child-in-xmldata/306556)

<div class="topic-metadata">

**Author:** [@palanivelrajan](https://forum.kirupa.com/u/palanivelrajan)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 12:45pm UTC](https://forum.kirupa.com/t/how-to-calculate-total-child-in-xmldata/306556 "2010-03-17T12:45:28Z")

</div>

please help me out to find total child in flash

---

## [AS3 & video](https://forum.kirupa.com/t/as3-video/306554)

<div class="topic-metadata">

**Author:** [@junior\_kimbroug](https://forum.kirupa.com/u/junior_kimbroug)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 12:16pm UTC](https://forum.kirupa.com/t/as3-video/306554 "2010-03-17T12:16:40Z")

</div>

Hi, I wonder if it is possible to live stream video or build a similiar video component like in youtube without using the Flash Media Server. I know that you can import video and use the progressive download option …

---

## [Why we need to insert line breaks in XML?](https://forum.kirupa.com/t/why-we-need-to-insert-line-breaks-in-xml/306552)

<div class="topic-metadata">

**Author:** [@mohiniraj](https://forum.kirupa.com/u/mohiniraj)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 11:03am UTC](https://forum.kirupa.com/t/why-we-need-to-insert-line-breaks-in-xml/306552 "2010-03-17T11:03:47Z")

</div>

Hi, I have one swf which calls xml having Unicode characters in text box. But it breaks characters from single word at the end of line when displayed. why it dosent recognise the word just like english text? is there a…

---

## [XML loading problem](https://forum.kirupa.com/t/xml-loading-problem/306550)

<div class="topic-metadata">

**Author:** [@sourcesoft](https://forum.kirupa.com/u/sourcesoft)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 9:59am UTC](https://forum.kirupa.com/t/xml-loading-problem/306550 "2010-03-17T09:59:28Z")

</div>

hello here's a simple problem for you. I have a XML file: \<q1\> \<q\>question\</q\> \<a\>a1\</q\> \<b\>a2\</q\> \<c\>a3\</q\> \<d\>a4\</q\> \</q1\> I tried to trace it like this but I'm facing an "undefined" output: var my\_xml =…

---

## [Redrawing components on parameter change](https://forum.kirupa.com/t/redrawing-components-on-parameter-change/306548)

<div class="topic-metadata">

**Author:** [@zoooom](https://forum.kirupa.com/u/zoooom)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 9:37am UTC](https://forum.kirupa.com/t/redrawing-components-on-parameter-change/306548 "2010-03-17T09:37:06Z")

</div>

Hi there, I have a component I have built in AS3 that takes a parameter which is likely to change with each instance of the component on stage. ie. the parameter will be different on frame2 to what it was on frame1. T…

---

## [Tween matrix3D](https://forum.kirupa.com/t/tween-matrix3d/306547)

<div class="topic-metadata">

**Author:** [@nook](https://forum.kirupa.com/u/nook)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 9:31am UTC](https://forum.kirupa.com/t/tween-matrix3d/306547 "2010-03-17T09:31:46Z")

</div>

I've never really used 3D but want to do some 3D animations for a project I'm working on using Flash 10 native 3D features. I've played with the properties in the IDE and understand how they work but tweening them (in…

---

## [How many database management systems available in flash?](https://forum.kirupa.com/t/how-many-database-management-systems-available-in-flash/306544)

<div class="topic-metadata">

**Author:** [@palanivelrajan](https://forum.kirupa.com/u/palanivelrajan)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 9:07am UTC](https://forum.kirupa.com/t/how-many-database-management-systems-available-in-flash/306544 "2010-03-17T09:07:56Z")

</div>

I right now making database for employees. May I know how many data base management systems are available in flash? please help me out.

---

## [Copy Single Frame from Embedded Video?](https://forum.kirupa.com/t/copy-single-frame-from-embedded-video/306538)

<div class="topic-metadata">

**Author:** [@Unregistered00](https://forum.kirupa.com/u/Unregistered00)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 5:56am UTC](https://forum.kirupa.com/t/copy-single-frame-from-embedded-video/306538 "2010-03-17T05:56:16Z")

</div>

Is there a way to copy a single frame from an flv embedded video? Every time I copy a single frame it always indicates "Copy Frames" insteead of "Copy Frame". When I paste the frame, all of the flv embedded video gets …

---

## [Accessing Getter and setter from timeline](https://forum.kirupa.com/t/accessing-getter-and-setter-from-timeline/306535)

<div class="topic-metadata">

**Author:** [@Chimeara](https://forum.kirupa.com/u/Chimeara)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 5:05am UTC](https://forum.kirupa.com/t/accessing-getter-and-setter-from-timeline/306535 "2010-03-17T05:05:44Z")

</div>

I have a .as file with class Main which contains: public function set Set\_AnimationFile(FileName:String):void { this.FileName=FileName; } public function get Get\_AnimationFile():String { return Fi…

---

## [Help with classes: 1046 type not found](https://forum.kirupa.com/t/help-with-classes-1046-type-not-found/306532)

<div class="topic-metadata">

**Author:** [@Chimeara](https://forum.kirupa.com/u/Chimeara)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 3:41am UTC](https://forum.kirupa.com/t/help-with-classes-1046-type-not-found/306532 "2010-03-17T03:41:07Z")

</div>

I have a pre loader for my animation that uses this code: this.addEventListener(Event.ENTER\_FRAME, loading); function loading(e:Event):void{ var total:Number = this.stage.loaderInfo.bytesTotal; var loaded:Number = t…

---

## [Liquid layout with minimum height (scrollbars)](https://forum.kirupa.com/t/liquid-layout-with-minimum-height-scrollbars/306529)

<div class="topic-metadata">

**Author:** [@jayrich86](https://forum.kirupa.com/u/jayrich86)\
**Replies:** 0\
**Last updated:** [March 17, 2010, 1:27am UTC](https://forum.kirupa.com/t/liquid-layout-with-minimum-height-scrollbars/306529 "2010-03-17T01:27:03Z")

</div>

Is this possible? I understand liquid layouts and I've built many liquid layout projects, but how do I set a minimum height to lock to, that will use scrollbars. Please help me! I know I can set a minimum height by pu…

---

## [Referring to a duplicated Movie Clip Help!](https://forum.kirupa.com/t/referring-to-a-duplicated-movie-clip-help/306526)

<div class="topic-metadata">

**Author:** [@Whitnemp](https://forum.kirupa.com/u/Whitnemp)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 11:58pm UTC](https://forum.kirupa.com/t/referring-to-a-duplicated-movie-clip-help/306526 "2010-03-16T23:58:04Z")

</div>

for (i=1; i\<10; i++) { nameMC.duplicateMovieClip("nameMC"+i, i, {\_y:+position}); var position = position +150 var myXML:XML = new XML(); myXML.ignoreWhite = true; myXML.load("http://www.url.com/portfolioupdates.php"); m…

---

## [Hyperlink in flashlight on an actionscript 3 site?](https://forum.kirupa.com/t/hyperlink-in-flashlight-on-an-actionscript-3-site/306525)

<div class="topic-metadata">

**Author:** [@Piccassoojack](https://forum.kirupa.com/u/Piccassoojack)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 11:49pm UTC](https://forum.kirupa.com/t/hyperlink-in-flashlight-on-an-actionscript-3-site/306525 "2010-03-16T23:49:58Z")

</div>

\[FONT=Comic Sans MS\]I have a website that is in actionscript 3 Flash 10 and want to just put one hyperlink in flashlight 3 so people visiting my website on a mobile phone can view the message and click on it to goto the …

---

## [Trouble with display object list](https://forum.kirupa.com/t/trouble-with-display-object-list/306521)

<div class="topic-metadata">

**Author:** [@skippers](https://forum.kirupa.com/u/skippers)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 11:15pm UTC](https://forum.kirupa.com/t/trouble-with-display-object-list/306521 "2010-03-16T23:15:14Z")

</div>

I'm having trouble understanding the display object list. I have a rain animation which I want to be slightly covered by a frame. This is the code so far in the main timeline. When I add the Frame in addChild it only cov…

---

## [How to use XML data to reference an instance name](https://forum.kirupa.com/t/how-to-use-xml-data-to-reference-an-instance-name/306520)

<div class="topic-metadata">

**Author:** [@lackmaster](https://forum.kirupa.com/u/lackmaster)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 11:09pm UTC](https://forum.kirupa.com/t/how-to-use-xml-data-to-reference-an-instance-name/306520 "2010-03-16T23:09:12Z")

</div>

I have 6 movieclips on the stage, each with a unique instance name. I just want to put them in order determined from an external xml file. I can get the name and order of each instance name evident from a trace, but I …

---

## [Array to XML](https://forum.kirupa.com/t/array-to-xml/306519)

<div class="topic-metadata">

**Author:** [@bigbstanley](https://forum.kirupa.com/u/bigbstanley)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 10:59pm UTC](https://forum.kirupa.com/t/array-to-xml/306519 "2010-03-16T22:59:07Z")

</div>

I already know a bit about parsing through XML, however this is a bit tricky for me. I'm working with a dynamic menu created from XML. I have it working nicely, and that everytime you click on something in the XML, it …

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

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