# programming

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

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

**Page:** 690

---

## [Loading Random External Flash Files](https://forum.kirupa.com/t/loading-random-external-flash-files/296628)

<div class="topic-metadata">

**Author:** [@41dreams](https://forum.kirupa.com/u/41dreams)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 1:39pm UTC](https://forum.kirupa.com/t/loading-random-external-flash-files/296628 "2009-09-17T13:39:40Z")

</div>

Hello Everyone, this is my first post i am wonder if someone could help me. I have 5 external flash files that i am trying to load randomly in from a seperate flash files (main.swf is trying to randomly load: Flash1.s…

---

## [\[AS2\]Actionsscript/Mysql Lag woes\[CS4\]](https://forum.kirupa.com/t/as2-actionsscript-mysql-lag-woes-cs4/296627)

<div class="topic-metadata">

**Author:** [@Signy](https://forum.kirupa.com/u/Signy)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 1:34pm UTC](https://forum.kirupa.com/t/as2-actionsscript-mysql-lag-woes-cs4/296627 "2009-09-17T13:34:20Z")

</div>

Hi all, Im currently making a small flash car game (think football manager with cars) and have run into a little lag problem when communicating with my mysql server through php. This is my current code. dynamic cl…

---

## [Execute AS3 in external SWF](https://forum.kirupa.com/t/execute-as3-in-external-swf/296626)

<div class="topic-metadata">

**Author:** [@beltman\_jr](https://forum.kirupa.com/u/beltman_jr)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 1:28pm UTC](https://forum.kirupa.com/t/execute-as3-in-external-swf/296626 "2009-09-17T13:28:46Z")

</div>

Hi all, I am loading an external SWF from the same domain (localhost at the moment) into my flash movie (Flash CS4 AS3). The movie plays ok, I can insert text in a dynamic text box of the external movie from the main m…

---

## [Load image to scene on button press](https://forum.kirupa.com/t/load-image-to-scene-on-button-press/296625)

<div class="topic-metadata">

**Author:** [@mihaispr](https://forum.kirupa.com/u/mihaispr)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 12:50pm UTC](https://forum.kirupa.com/t/load-image-to-scene-on-button-press/296625 "2009-09-17T12:50:53Z")

</div>

Hi! And thanks for reading my question! I want to load my picture poza.bmp on the stage when I press the button Load IMG. Could you help me please? Here's the fla and bmp stored in a folder:

---

## [Error #1120 help](https://forum.kirupa.com/t/error-1120-help/296623)

<div class="topic-metadata">

**Author:** [@tenspeedtodd](https://forum.kirupa.com/u/tenspeedtodd)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 12:13pm UTC](https://forum.kirupa.com/t/error-1120-help/296623 "2009-09-17T12:13:24Z")

</div>

Hey guys. I'm trying to set up a simple drag and drop but I get a 1120 error on the line of code with the addEventListener. stop(); function dragVinyl(e:MouseEvent):void { e.target.startDrag(); Mouse.hide(); …

---

## [TextField borders not uniform](https://forum.kirupa.com/t/textfield-borders-not-uniform/296621)

<div class="topic-metadata">

**Author:** [@noobie123](https://forum.kirupa.com/u/noobie123)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 11:08am UTC](https://forum.kirupa.com/t/textfield-borders-not-uniform/296621 "2009-09-17T11:08:03Z")

</div>

I have created an array of Input Textfields with their borders visible. All is fine when I play the swf directly in the Flash player. But when I try to view it in the browser, certain horizontal and verticallines in the …

---

## [Help passing a variable to global function in another mc](https://forum.kirupa.com/t/help-passing-a-variable-to-global-function-in-another-mc/296619)

<div class="topic-metadata">

**Author:** [@mattydor](https://forum.kirupa.com/u/mattydor)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 10:54am UTC](https://forum.kirupa.com/t/help-passing-a-variable-to-global-function-in-another-mc/296619 "2009-09-17T10:54:43Z")

</div>

After having recently just discovered the delights of actionscript, I am at a loss to work this out. I'll explain: I have a series of buttons which, when each one is clicked, need to grab their instance name (this.\_nam…

---

## [Passing an array element from one js func to another](https://forum.kirupa.com/t/passing-an-array-element-from-one-js-func-to-another/296618)

<div class="topic-metadata">

**Author:** [@mogant0](https://forum.kirupa.com/u/mogant0)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 10:48am UTC](https://forum.kirupa.com/t/passing-an-array-element-from-one-js-func-to-another/296618 "2009-09-17T10:48:01Z")

</div>

Hello hello please help. Requirement I am attempting to create some checkboxes dynamicaly based on selections via js. I have proven that the code works to create these elements using createElement etc. My problem I am tr…

---

## [Help to decipher error code.. Error #1009](https://forum.kirupa.com/t/help-to-decipher-error-code-error-1009/296617)

<div class="topic-metadata">

**Author:** [@megawinks](https://forum.kirupa.com/u/megawinks)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 10:47am UTC](https://forum.kirupa.com/t/help-to-decipher-error-code-error-1009/296617 "2009-09-17T10:47:19Z")

</div>

Hi there, I've got an error code: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Page4\_fla::MainTimeline/frame13()\[Page4\_fla.MainTimeline::frame13:25\] This appears eac…

---

## [Is SoundMixer right for the job?](https://forum.kirupa.com/t/is-soundmixer-right-for-the-job/296615)

<div class="topic-metadata">

**Author:** [@digs20](https://forum.kirupa.com/u/digs20)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 9:21am UTC](https://forum.kirupa.com/t/is-soundmixer-right-for-the-job/296615 "2009-09-17T09:21:57Z")

</div>

What I want to do is dynamically load from web an animation of mine that has music as it runs. Here it is. This is an example of my work and loads if user clicks on a button. When they click to another page on the site…

---

## [Affiliate links?](https://forum.kirupa.com/t/affiliate-links/296614)

<div class="topic-metadata">

**Author:** [@fuggedaboutit](https://forum.kirupa.com/u/fuggedaboutit)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 9:15am UTC](https://forum.kirupa.com/t/affiliate-links/296614 "2009-09-17T09:15:06Z")

</div>

I'm working on a flash website for a client which is basically a list of companies organised by category and region, with a cms backend. Any ideas how to make the companies' web links affiliate links?

---

## [Design mode doesn't look exactly the same as actual?](https://forum.kirupa.com/t/design-mode-doesnt-look-exactly-the-same-as-actual/296613)

<div class="topic-metadata">

**Author:** [@cpthk](https://forum.kirupa.com/u/cpthk)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 9:06am UTC](https://forum.kirupa.com/t/design-mode-doesnt-look-exactly-the-same-as-actual/296613 "2009-09-17T09:06:45Z")

</div>

Hi: I have been used flex for very long time. I realized there is a major issue that the design mode in flex builder doesn't look exactly the same as actual. I usually align many panels, datagrid...etc up and down. The…

---

## [Illegal function help..simplify xml import](https://forum.kirupa.com/t/illegal-function-help-simplify-xml-import/296612)

<div class="topic-metadata">

**Author:** [@goeiste](https://forum.kirupa.com/u/goeiste)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 8:43am UTC](https://forum.kirupa.com/t/illegal-function-help-simplify-xml-import/296612 "2009-09-17T08:43:01Z")

</div>

Hello, For an application I'm making I need some dedicated xml import. To simplify this import I want to have a function (because I need a repetitive process). The only thing is that I want to change parameters inside …

---

## [Subclass changing variable in superclass issues](https://forum.kirupa.com/t/subclass-changing-variable-in-superclass-issues/296607)

<div class="topic-metadata">

**Author:** [@Dizquard](https://forum.kirupa.com/u/Dizquard)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 8:17am UTC](https://forum.kirupa.com/t/subclass-changing-variable-in-superclass-issues/296607 "2009-09-17T08:17:30Z")

</div>

Hey all, Ive got a main class generating X number of boxes from a Boxes.as class. Each box has a CLICK event adding a subclass BoxesStand.as. In the BoxesStand class the user can click on a yellow/red/green button and th…

---

## [FLVPlayback little problem](https://forum.kirupa.com/t/flvplayback-little-problem/296603)

<div class="topic-metadata">

**Author:** [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 6:36am UTC](https://forum.kirupa.com/t/flvplayback-little-problem/296603 "2009-09-17T06:36:11Z")

</div>

Take a look (click on one of the right banners): http://www.videomakersrl.com/video-maker.html the lightbox should almost immediately play the videos, but instead (only) with ie7, the video take a REALLY long time to…

---

## [My code may be stopping timeline from advancing:HELP!](https://forum.kirupa.com/t/my-code-may-be-stopping-timeline-from-advancing-help/296597)

<div class="topic-metadata">

**Author:** [@digs20](https://forum.kirupa.com/u/digs20)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 4:13am UTC](https://forum.kirupa.com/t/my-code-may-be-stopping-timeline-from-advancing-help/296597 "2009-09-17T04:13:41Z")

</div>

Hi All, So I have a preloader based on great help provided in this forum. When everything is loaded it moves to the frame (3) with content (movieclip) on it and then it refuses to play the movieclip. I suspect somethin…

---

## [Changing Array Order](https://forum.kirupa.com/t/changing-array-order/296596)

<div class="topic-metadata">

**Author:** [@lfc611](https://forum.kirupa.com/u/lfc611)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 4:09am UTC](https://forum.kirupa.com/t/changing-array-order/296596 "2009-09-17T04:09:26Z")

</div>

i have an array \[0,1,2,3,4,5,6,7,8,9,10\] i want to reorder it so it looks like the following: \[0,10,1,9,2,8,3,7,4,6,5\] any help will be apreciated thanks

---

## [Need a tip -SQL query with googlemaps link](https://forum.kirupa.com/t/need-a-tip-sql-query-with-googlemaps-link/296589)

<div class="topic-metadata">

**Author:** [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 2:15am UTC](https://forum.kirupa.com/t/need-a-tip-sql-query-with-googlemaps-link/296589 "2009-09-17T02:15:53Z")

</div>

HI I have an mySQL query to insert a google map link into a database. The problem is that because the URL have one ' (I don't know how to say the symbol name in english, sorry) the mySQL in PHPmyAdmin is giving me an e…

---

## [How to alter the mousedrag speed on mouse drag & drop?](https://forum.kirupa.com/t/how-to-alter-the-mousedrag-speed-on-mouse-drag-drop/296588)

<div class="topic-metadata">

**Author:** [@megawinks](https://forum.kirupa.com/u/megawinks)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 1:44am UTC](https://forum.kirupa.com/t/how-to-alter-the-mousedrag-speed-on-mouse-drag-drop/296588 "2009-09-17T01:44:52Z")

</div>

Hi there, I'm animating this scene where a sliding On/Off switch responds to mousedrag. I have already constrained its movement to the Y-direction. But now I want to make this movieclip, called "MGAswitch", to slide a…

---

## [How to Determine when a component is loaded](https://forum.kirupa.com/t/how-to-determine-when-a-component-is-loaded/296585)

<div class="topic-metadata">

**Author:** [@zik80](https://forum.kirupa.com/u/zik80)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 1:03am UTC](https://forum.kirupa.com/t/how-to-determine-when-a-component-is-loaded/296585 "2009-09-17T01:03:22Z")

</div>

I am using CS3 and have 4 layers and 4 frames on the stage. I load all xml and code in frame 1. Frames 2, 3, and 4 have list and combobox components. I want to populate the list and combobox components with the xml dat…

---

## [Can a .SWF have a default position after loading to website?](https://forum.kirupa.com/t/can-a-swf-have-a-default-position-after-loading-to-website/296583)

<div class="topic-metadata">

**Author:** [@CallClass](https://forum.kirupa.com/u/CallClass)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 12:37am UTC](https://forum.kirupa.com/t/can-a-swf-have-a-default-position-after-loading-to-website/296583 "2009-09-17T00:37:38Z")

</div>

I've got this API loading on every page of the website. Can .SWF tell itself when it has loaded and thereby default to a loaded position? So that when a user moves to different web pages, the API defaults to its loaded p…

---

## [Papervision 3D](https://forum.kirupa.com/t/papervision-3d/296581)

<div class="topic-metadata">

**Author:** [@nubreed](https://forum.kirupa.com/u/nubreed)\
**Replies:** 0\
**Last updated:** [September 16, 2009, 11:18pm UTC](https://forum.kirupa.com/t/papervision-3d/296581 "2009-09-16T23:18:12Z")

</div>

Hi all, hows everyone here today? Anyway just wanted to ask has anyone here played with or used Papervision 3D Example sites: http://www.x-prime.com/fr# http://www.hatica.com/lab/3d/escena/ http://www.zaramedia…

---

## [AS3 to PHP to mySQL - problem with ' this little thing](https://forum.kirupa.com/t/as3-to-php-to-mysql-problem-with-this-little-thing/296580)

<div class="topic-metadata">

**Author:** [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Replies:** 0\
**Last updated:** [September 16, 2009, 11:10pm UTC](https://forum.kirupa.com/t/as3-to-php-to-mysql-problem-with-this-little-thing/296580 "2009-09-16T23:10:08Z")

</div>

Hi I have a textfield where I type whatever I want when I press a button it do the following: add the content of the textfield to a String, this string is a mySQL generated dinamically. send this string to a php …

---

## [ChangeWatcher vs BindingUtils](https://forum.kirupa.com/t/changewatcher-vs-bindingutils/296579)

<div class="topic-metadata">

**Author:** [@cpthk](https://forum.kirupa.com/u/cpthk)\
**Replies:** 0\
**Last updated:** [September 16, 2009, 11:03pm UTC](https://forum.kirupa.com/t/changewatcher-vs-bindingutils/296579 "2009-09-16T23:03:56Z")

</div>

In actionscript, there are two classes to do binding, ChangeWatcher and BindingUtils. What's the difference between them? Which one is better or? Thanks.

---

## [Flex and Flash](https://forum.kirupa.com/t/flex-and-flash/296577)

<div class="topic-metadata">

**Author:** [@g\_necionis](https://forum.kirupa.com/u/g_necionis)\
**Replies:** 0\
**Last updated:** [September 16, 2009, 9:32pm UTC](https://forum.kirupa.com/t/flex-and-flash/296577 "2009-09-16T21:32:01Z")

</div>

Hello Everybody, I'm trying to use this component http://as3htmlparser.sourceforge.net/ to parse HTML content in flash, but i can't figure out how to pass html string from flash to flex component then flex component is l…

---

## [onKeypress , on event handler](https://forum.kirupa.com/t/onkeypress-on-event-handler/296576)

<div class="topic-metadata">

**Author:** [@mihaispr](https://forum.kirupa.com/u/mihaispr)\
**Replies:** 0\
**Last updated:** [September 16, 2009, 9:21pm UTC](https://forum.kirupa.com/t/onkeypress-on-event-handler/296576 "2009-09-16T21:21:50Z")

</div>

I have a triangle placed on scene that I can control when I press up arrow,down ,left and right arrow. Here is the code: onClipEvent(enterFrame) { } on (keyPress "\<Left\>") { this.\_x -= 10; } on (keyPress "\<Right\>…

---

## [FLVPlayback Component: How to add Event Listener](https://forum.kirupa.com/t/flvplayback-component-how-to-add-event-listener/296575)

<div class="topic-metadata">

**Author:** [@am123](https://forum.kirupa.com/u/am123)\
**Replies:** 0\
**Last updated:** [September 16, 2009, 9:16pm UTC](https://forum.kirupa.com/t/flvplayback-component-how-to-add-event-listener/296575 "2009-09-16T21:16:53Z")

</div>

Hi Newbie to this forum here... searching high and low for help with this. I have found very little documentation on this. My dilemma... I have customized a default FLVPlayback skin not only in its look but have ad…

---

## [How to use dragOver, dragOut ,rollOver,rollOut in this example](https://forum.kirupa.com/t/how-to-use-dragover-dragout-rollover-rollout-in-this-example/296574)

<div class="topic-metadata">

**Author:** [@mihaispr](https://forum.kirupa.com/u/mihaispr)\
**Replies:** 0\
**Last updated:** [September 16, 2009, 9:02pm UTC](https://forum.kirupa.com/t/how-to-use-dragover-dragout-rollover-rollout-in-this-example/296574 "2009-09-16T21:02:05Z")

</div>

I have the following fla that you can download it. I want to make use also by on handler event for on(dragOver),on(dragOut),on(rollOver),on(rollOut). Can you continue my code please? I don't know how can I use thos…

---

## [LoadVariables from .txt where the .txt file is called as a variable](https://forum.kirupa.com/t/loadvariables-from-txt-where-the-txt-file-is-called-as-a-variable/296572)

<div class="topic-metadata">

**Author:** [@jonahholliday](https://forum.kirupa.com/u/jonahholliday)\
**Replies:** 0\
**Last updated:** [September 16, 2009, 8:38pm UTC](https://forum.kirupa.com/t/loadvariables-from-txt-where-the-txt-file-is-called-as-a-variable/296572 "2009-09-16T20:38:13Z")

</div>

I want to load different .txt files into my flash movie, based on the url. ex: http://mysite.com?txtfile=textfile1 flash would use: loadVariables("textfile1.txt"); Hope this explains it.. Please help.

---

## [Link and invisible button problem](https://forum.kirupa.com/t/link-and-invisible-button-problem/296567)

<div class="topic-metadata">

**Author:** [@keithiopia](https://forum.kirupa.com/u/keithiopia)\
**Replies:** 0\
**Last updated:** [September 16, 2009, 7:46pm UTC](https://forum.kirupa.com/t/link-and-invisible-button-problem/296567 "2009-09-16T19:46:32Z")

</div>

Keith

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

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