# programming

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

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

**Page:** 423

---

## [Elastic Racetrack and more questions](https://forum.kirupa.com/t/elastic-racetrack-and-more-questions/313621)

<div class="topic-metadata">

**Author:** [@Aviar](https://forum.kirupa.com/u/Aviar)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 10:44pm UTC](https://forum.kirupa.com/t/elastic-racetrack-and-more-questions/313621 "2010-09-04T22:44:28Z")

</div>

I have read the Elastic Racetrack article but do not grasp the concept. The problem is that I do not understand how it may server as an argument for using ticks as an internal timing mechanism. Can anyone provide a brief…

---

## [HELP: how to highlight the active object while deselecting others](https://forum.kirupa.com/t/help-how-to-highlight-the-active-object-while-deselecting-others/313619)

<div class="topic-metadata">

**Author:** [@elliria](https://forum.kirupa.com/u/elliria)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 7:01pm UTC](https://forum.kirupa.com/t/help-how-to-highlight-the-active-object-while-deselecting-others/313619 "2010-09-04T19:01:30Z")

</div>

i have an array made of movieclip squares named "quiqua" that are positioned in a grid with coordinates (grouped into another array named "coo"). Both the arrays have a numeric variable named saturaz. when i click on t…

---

## [\[cs4\] array loop to change variables?](https://forum.kirupa.com/t/cs4-array-loop-to-change-variables/313617)

<div class="topic-metadata">

**Author:** [@sg123](https://forum.kirupa.com/u/sg123)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 4:35pm UTC](https://forum.kirupa.com/t/cs4-array-loop-to-change-variables/313617 "2010-09-04T16:35:11Z")

</div>

The plan is to set up variables to react to a flashvars value like this: \<param name="flashvars" value="mainVars=1" /\> var videoArray:Array; var videoTitle:String; var videoFile:String; videoArray=\[0,1\]; function …

---

## [Dynamic variable edited through a function?](https://forum.kirupa.com/t/dynamic-variable-edited-through-a-function/313616)

<div class="topic-metadata">

**Author:** [@Skribble](https://forum.kirupa.com/u/Skribble)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 2:49pm UTC](https://forum.kirupa.com/t/dynamic-variable-edited-through-a-function/313616 "2010-09-04T14:49:57Z")

</div>

Solution - You can refer to variables through other variables by wrapping them in \_root\[ & \]. So for my example I can use \_root\[keyToSet\] = newKey to set a variable from inside my function. Hullooooo again. I've hit…

---

## [Updating MovieClips position with an array](https://forum.kirupa.com/t/updating-movieclips-position-with-an-array/313615)

<div class="topic-metadata">

**Author:** [@UnknownMystery](https://forum.kirupa.com/u/UnknownMystery)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 12:59pm UTC](https://forum.kirupa.com/t/updating-movieclips-position-with-an-array/313615 "2010-09-04T12:59:21Z")

</div>

I did this to dynamcy create a instance of a MovieClip whenever my downKey boolean variable was true var Lasers:Array = \[\]; if (downKey == true) { var Laser:MovieClip = new laser(); Laser.name = "Laser" + 1; a…

---

## [Very Basic TileBased Collision Detection](https://forum.kirupa.com/t/very-basic-tilebased-collision-detection/313612)

<div class="topic-metadata">

**Author:** [@moselekm](https://forum.kirupa.com/u/moselekm)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 10:11am UTC](https://forum.kirupa.com/t/very-basic-tilebased-collision-detection/313612 "2010-09-04T10:11:31Z")

</div>

So I've never dealt with collision detection since I mostly have just made simple web-designs, apps, and things that just don't make use of physics or anything like that. But today I decided to fiddle with it a little …

---

## [How to rotating 3D model according to mouse movement](https://forum.kirupa.com/t/how-to-rotating-3d-model-according-to-mouse-movement/313611)

<div class="topic-metadata">

**Author:** [@snmbala](https://forum.kirupa.com/u/snmbala)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 9:52am UTC](https://forum.kirupa.com/t/how-to-rotating-3d-model-according-to-mouse-movement/313611 "2010-09-04T09:52:28Z")

</div>

Hi All, I'm new to actionscript 3. Currently i stuck with a project in which a 3d model has to rotate according to mouse movement (at least 180'). if i click at any point of the model a popup should come which should s…

---

## [How to Send PUT HTTP Request n flex 4](https://forum.kirupa.com/t/how-to-send-put-http-request-n-flex-4/313610)

<div class="topic-metadata">

**Author:** [@mitulgolakiya](https://forum.kirupa.com/u/mitulgolakiya)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 9:11am UTC](https://forum.kirupa.com/t/how-to-send-put-http-request-n-flex-4/313610 "2010-09-04T09:11:01Z")

</div>

Hi, I am creating one desktop application in which I want to update one XML on the web via sending the data in the form of XML via sending a PUT request. I am sending PUT request but when I have seen request in Network…

---

## [Creating an instance of a MovieClip without a custom class](https://forum.kirupa.com/t/creating-an-instance-of-a-movieclip-without-a-custom-class/313609)

<div class="topic-metadata">

**Author:** [@UnknownMystery](https://forum.kirupa.com/u/UnknownMystery)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 8:08am UTC](https://forum.kirupa.com/t/creating-an-instance-of-a-movieclip-without-a-custom-class/313609 "2010-09-04T08:08:38Z")

</div>

I would like to make a new instance of a MovieClip within my library from code written in my keyframe. I relise that you can do this by making a class and using the code var instancename:movieclipname = new moviecli…

---

## [OOP:Adding Movie clip from library](https://forum.kirupa.com/t/oop-adding-movie-clip-from-library/313608)

<div class="topic-metadata">

**Author:** [@Luigi\_Vercotti](https://forum.kirupa.com/u/Luigi_Vercotti)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 6:44am UTC](https://forum.kirupa.com/t/oop-adding-movie-clip-from-library/313608 "2010-09-04T06:44:39Z")

</div>

Hello guys I've got an instance in the library linkaged to Classes.Lights.as At the Lights.as I have got light.graphics.beginFill(lightColor); light.graphics.drawCircle(0, 0, lightSize / 2); light.graphics.endFill();…

---

## ["Bad Code" Written - some education needed with the graphics module](https://forum.kirupa.com/t/bad-code-written-some-education-needed-with-the-graphics-module/313607)

<div class="topic-metadata">

**Author:** [@Brent\_Summers](https://forum.kirupa.com/u/Brent_Summers)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 4:47am UTC](https://forum.kirupa.com/t/bad-code-written-some-education-needed-with-the-graphics-module/313607 "2010-09-04T04:47:54Z")

</div>

So I just got done experimenting with some drawing code and have NO idea WHY its doing what its doing. Basically its only drawing ONE circle and not even at the coordinates specified, BUT its sending the little ball to i…

---

## [Collision Imposition](https://forum.kirupa.com/t/collision-imposition/313606)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 4:06am UTC](https://forum.kirupa.com/t/collision-imposition/313606 "2010-09-04T04:06:11Z")

</div>

My collisions are working but my response to collisions are working on...wait for it.....three sides of the box!!??!!! i've got a ship flying around and banging into a box on three sides it bounces on the fourth it st…

---

## [Decent free or pay-to-use webhost?](https://forum.kirupa.com/t/decent-free-or-pay-to-use-webhost/313605)

<div class="topic-metadata">

**Author:** [@Vita\_Ishtari](https://forum.kirupa.com/u/Vita_Ishtari)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 3:57am UTC](https://forum.kirupa.com/t/decent-free-or-pay-to-use-webhost/313605 "2010-09-04T03:57:22Z")

</div>

I've honestly gotten a good interest in client/server programming. I'm still new, of course, but I'm learning MySQL/PHP/Java. The problem is, any website I've used for hosting either doesn't allow Java files, or has to…

---

## [Can you recommend some 3d creating tool to me?](https://forum.kirupa.com/t/can-you-recommend-some-3d-creating-tool-to-me/313601)

<div class="topic-metadata">

**Author:** [@Meggie](https://forum.kirupa.com/u/Meggie)\
**Replies:** 0\
**Last updated:** [September 4, 2010, 2:04am UTC](https://forum.kirupa.com/t/can-you-recommend-some-3d-creating-tool-to-me/313601 "2010-09-04T02:04:27Z")

</div>

I have just tried Yuzhe Cool Motion, it is easy to use but it can only create 2d flash, Can you guys recommend some tools to create 3d flash? P.S. I need a easy one.:snooze:

---

## ['VideoPlayer.play()' throws 'VideoError: 1008' if used without 'FLVPlayback'](https://forum.kirupa.com/t/videoplayer-play-throws-videoerror-1008-if-used-without-flvplayback/313597)

<div class="topic-metadata">

**Author:** [@audiohominis](https://forum.kirupa.com/u/audiohominis)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 11:19pm UTC](https://forum.kirupa.com/t/videoplayer-play-throws-videoerror-1008-if-used-without-flvplayback/313597 "2010-09-03T23:19:12Z")

</div>

\[FONT=Verdana\]Greetings. For some reason calling \[FONT="Courier New"\]play()\[/FONT\] on a \[FONT="Courier New"\]VideoPlayer\[/FONT\], \[COLOR="Red"\]unless\[/COLOR\] first an \[FONT="Courier New"\]FLVPlayback\[/FONT\] is declared and …

---

## [dateField (component) set default date](https://forum.kirupa.com/t/datefield-component-set-default-date/313596)

<div class="topic-metadata">

**Author:** [@chespy](https://forum.kirupa.com/u/chespy)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 9:22pm UTC](https://forum.kirupa.com/t/datefield-component-set-default-date/313596 "2010-09-03T21:22:44Z")

</div>

hi! how can I set a default date (day month year) to a dateField component? I want to load date from a xml file, and show it on the component, and ofcourse, let the user change it... Thanks!!

---

## [No WWW no links](https://forum.kirupa.com/t/no-www-no-links/313594)

<div class="topic-metadata">

**Author:** [@fantasticphil](https://forum.kirupa.com/u/fantasticphil)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 7:37pm UTC](https://forum.kirupa.com/t/no-www-no-links/313594 "2010-09-03T19:37:29Z")

</div>

Hello, Im having an odd issue. I have a swf that I use for a nav bar and load that into another swf with AS3. The navbar swf is a pretty basic set up with links to my other pages. Here's one of the functions trigg…

---

## [Really basic organization question](https://forum.kirupa.com/t/really-basic-organization-question/313593)

<div class="topic-metadata">

**Author:** [@moselekm](https://forum.kirupa.com/u/moselekm)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 7:12pm UTC](https://forum.kirupa.com/t/really-basic-organization-question/313593 "2010-09-03T19:12:23Z")

</div>

Okay, this, I would imagine is the very basic question of getting started with Flash AS3. When you make a simple game that maybe has a few different 'screens' like start, help, and high score, and a few levels, and you…

---

## [Scrollbars and Contact page not working when uploaded](https://forum.kirupa.com/t/scrollbars-and-contact-page-not-working-when-uploaded/313592)

<div class="topic-metadata">

**Author:** [@Atomsk](https://forum.kirupa.com/u/Atomsk)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 6:55pm UTC](https://forum.kirupa.com/t/scrollbars-and-contact-page-not-working-when-uploaded/313592 "2010-09-03T18:55:29Z")

</div>

Hello everyone, I am still pretty new to action script (especially AS3), but I have doing my best to create a flash-based website. I recently uploaded it to my server to test it, only to discover some odd errors. I hav…

---

## [Tween XScale to an area](https://forum.kirupa.com/t/tween-xscale-to-an-area/313590)

<div class="topic-metadata">

**Author:** [@rgarimella](https://forum.kirupa.com/u/rgarimella)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 2:51pm UTC](https://forum.kirupa.com/t/tween-xscale-to-an-area/313590 "2010-09-03T14:51:56Z")

</div>

Hi Folks, I wanted to apply a zoom/scale functionality to a Movie Clip The size of the Movie Clip is 934 W x 340 H I have 16 buttons placed on top of the Movie Clip in a 4 x 4 grid. Button size = 234 x 85 Based o…

---

## [Unload & save movie](https://forum.kirupa.com/t/unload-save-movie/313586)

<div class="topic-metadata">

**Author:** [@ohya](https://forum.kirupa.com/u/ohya)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 12:11pm UTC](https://forum.kirupa.com/t/unload-save-movie/313586 "2010-09-03T12:11:38Z")

</div>

I use container.loadMovie ("man.swf"); to load an external movie into frame 2. I create a button in frame 2 which on press goes to frame 1. I press again a button in frame 1 which goes to frame 2 again. The swf is loaded…

---

## [Saving XML Using PHP and Moodle](https://forum.kirupa.com/t/saving-xml-using-php-and-moodle/313585)

<div class="topic-metadata">

**Author:** [@Monstamash](https://forum.kirupa.com/u/Monstamash)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 11:39am UTC](https://forum.kirupa.com/t/saving-xml-using-php-and-moodle/313585 "2010-09-03T11:39:34Z")

</div>

Hi All I was following the brilliant tutorials on here (http://www.kirupa.com/web/xml/examples/simpleeditor.htm) to create some Assesment tools for Moodle where users can modify the questions and answers. However I a…

---

## [Flash 8 - Horizontal scroll easing](https://forum.kirupa.com/t/flash-8-horizontal-scroll-easing/313584)

<div class="topic-metadata">

**Author:** [@molly\_ferns](https://forum.kirupa.com/u/molly_ferns)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 11:14am UTC](https://forum.kirupa.com/t/flash-8-horizontal-scroll-easing/313584 "2010-09-03T11:14:45Z")

</div>

Hello Everyone, I have been trying to read earlier threads, tried out every possible thing but I cannot get the text to ease. I have a custom scroll done from the tutorial but mine is horizontal as it was needed this w…

---

## [Best enviroment for AS3.0 OOP?](https://forum.kirupa.com/t/best-enviroment-for-as3-0-oop/313583)

<div class="topic-metadata">

**Author:** [@Esseti](https://forum.kirupa.com/u/Esseti)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 10:41am UTC](https://forum.kirupa.com/t/best-enviroment-for-as3-0-oop/313583 "2010-09-03T10:41:08Z")

</div>

What is the best environment for coding AS3.0 for a designer/programmer ? Until now I've been writing AS3.0 code structurally in a frame in the Flash CS4/5 IDE, but I'm switching to full OOP and I need a new setup. I've …

---

## [What's wrong with the blending?](https://forum.kirupa.com/t/whats-wrong-with-the-blending/313581)

<div class="topic-metadata">

**Author:** [@sebas](https://forum.kirupa.com/u/sebas)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 10:03am UTC](https://forum.kirupa.com/t/whats-wrong-with-the-blending/313581 "2010-09-03T10:03:43Z")

</div>

Hi (new to the forum), we know that blending is slow in flash, ok, but there is something too strange though. I made three tests to profile the blend and I found out something quite weird; being sure that the movie…

---

## [Infinite number of Children wasting memory](https://forum.kirupa.com/t/infinite-number-of-children-wasting-memory/313575)

<div class="topic-metadata">

**Author:** [@Akidora](https://forum.kirupa.com/u/Akidora)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 2:56am UTC](https://forum.kirupa.com/t/infinite-number-of-children-wasting-memory/313575 "2010-09-03T02:56:29Z")

</div>

Hi, nice to meet you. I'm fairly new to AS3 and would need a little guidance. At the moment, I came across this problem where I have to work with many swf files. The problem is I'm using addChild() & loader to navig…

---

## [YearbookYourself style Interaction help!](https://forum.kirupa.com/t/yearbookyourself-style-interaction-help/313571)

<div class="topic-metadata">

**Author:** [@zeroflash](https://forum.kirupa.com/u/zeroflash)\
**Replies:** 0\
**Last updated:** [September 2, 2010, 11:16pm UTC](https://forum.kirupa.com/t/yearbookyourself-style-interaction-help/313571 "2010-09-02T23:16:21Z")

</div>

Hi, need a bit of help. Im building a website for a childrens book im making, where people can buy it custom tailored to their children, with their names and pictures appearing in the book. Im trying to make a ''sa…

---

## [Saving datagrid to csv](https://forum.kirupa.com/t/saving-datagrid-to-csv/313570)

<div class="topic-metadata">

**Author:** [@neatgadgets](https://forum.kirupa.com/u/neatgadgets)\
**Replies:** 0\
**Last updated:** [September 2, 2010, 11:07pm UTC](https://forum.kirupa.com/t/saving-datagrid-to-csv/313570 "2010-09-02T23:07:12Z")

</div>

I have been searching for ages and hven't found anything that really works. I just want to b able to select a file location, a file name and save the contents of a datagrid to a csv file.

---

## [Interfaces, anyone got protips?](https://forum.kirupa.com/t/interfaces-anyone-got-protips/313563)

<div class="topic-metadata">

**Author:** [@moselekm](https://forum.kirupa.com/u/moselekm)\
**Replies:** 0\
**Last updated:** [September 2, 2010, 7:09pm UTC](https://forum.kirupa.com/t/interfaces-anyone-got-protips/313563 "2010-09-02T19:09:04Z")

</div>

The more I read the more I am astonished at how little I know about as3. Last night I discovered: Interfaces. It was a quick little segment in my new book and as much as it glorified it, it gave it about one page to e…

---

## [\[CS3\] Pulling a dynamic image from html](https://forum.kirupa.com/t/cs3-pulling-a-dynamic-image-from-html/313562)

<div class="topic-metadata">

**Author:** [@Thrillhou](https://forum.kirupa.com/u/Thrillhou)\
**Replies:** 0\
**Last updated:** [September 2, 2010, 6:30pm UTC](https://forum.kirupa.com/t/cs3-pulling-a-dynamic-image-from-html/313562 "2010-09-02T18:30:39Z")

</div>

I'm attempting to make a swf that has a header set by a JavaScript popup that is an image. How would I dynamically load an image from a FlashVar into a movieclip? I'll post the solution if I figure it out. Thanks.

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

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