# programming

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

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

**Page:** 1449

---

## [Camera affects actionscript](https://forum.kirupa.com/t/camera-affects-actionscript/245686)

<div class="topic-metadata">

**Author:** [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 3:02am UTC](https://forum.kirupa.com/t/camera-affects-actionscript/245686 "2007-12-03T03:02:38Z")

</div>

hi all! The problem is this.. Once you click the RED Circle you can move it around.. and i've got this camera script which always keeps you and the Gray circle on the screen.. When you press "S".. it should attach …

---

## [.swf news ticker works on local machine but not on server](https://forum.kirupa.com/t/swf-news-ticker-works-on-local-machine-but-not-on-server/245670)

<div class="topic-metadata">

**Author:** [@haroldandkumar](https://forum.kirupa.com/u/haroldandkumar)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 10:58pm UTC](https://forum.kirupa.com/t/swf-news-ticker-works-on-local-machine-but-not-on-server/245670 "2007-12-02T22:58:18Z")

</div>

Hello all! I have a news ticker that I modelled after the kirupa tutorial that was given: http://www.kirupa.com/developer/mx2004/newsticker.htm When I run it on my local machine it works just fine the way I expect it…

---

## [Loading an AS2 SWF file from an AS3 SWF file, and getting some parameters in AS2 file](https://forum.kirupa.com/t/loading-an-as2-swf-file-from-an-as3-swf-file-and-getting-some-parameters-in-as2-file/245668)

<div class="topic-metadata">

**Author:** [@Zomis](https://forum.kirupa.com/u/Zomis)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 8:38pm UTC](https://forum.kirupa.com/t/loading-an-as2-swf-file-from-an-as3-swf-file-and-getting-some-parameters-in-as2-file/245668 "2007-12-02T20:38:03Z")

</div>

This is my ActionScript 3.0 code: var ldr: Loader = new Loader(); var upldata = "testabc=test1"; var v: URLVariables = new URLVariables(upldata); var r:URLRequest = new URLRequest(); r.url = "as2.swf"; r.method = URLR…

---

## [Enemy positions/movement](https://forum.kirupa.com/t/enemy-positions-movement/245665)

<div class="topic-metadata">

**Author:** [@Mr\_beef](https://forum.kirupa.com/u/Mr_beef)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 7:30pm UTC](https://forum.kirupa.com/t/enemy-positions-movement/245665 "2007-12-02T19:30:12Z")

</div>

The other thread was dead and so I thought I'ld make an example and clearly state what I want to happen: •When distance between the player and the enemy(s) is below the number 6000 the function should be active. This c…

---

## [TypeError #1010 and undefined array indexes](https://forum.kirupa.com/t/typeerror-1010-and-undefined-array-indexes/245662)

<div class="topic-metadata">

**Author:** [@Domox](https://forum.kirupa.com/u/Domox)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 6:15pm UTC](https://forum.kirupa.com/t/typeerror-1010-and-undefined-array-indexes/245662 "2007-12-02T18:15:52Z")

</div>

I am working on converting a class from AS2 to AS3. Basically pos is created with MovieClips at different indexs (hardly ever starting at \[0\]\[0\] because these indexs are made based on the clips location on a screen grid)…

---

## [Help with switch cases](https://forum.kirupa.com/t/help-with-switch-cases/245660)

<div class="topic-metadata">

**Author:** [@ASneakyGiraffe](https://forum.kirupa.com/u/ASneakyGiraffe)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 5:41pm UTC](https://forum.kirupa.com/t/help-with-switch-cases/245660 "2007-12-02T17:41:10Z")

</div>

alright, so im making a text adventure, and im trying to do it all on one frame with a single huge switch case. Buuuutt, i have a problem. i have an inputbox (userInput), a button (sendBtn), and an dynamic output fie…

---

## [Error: Is not a function](https://forum.kirupa.com/t/error-is-not-a-function/245659)

<div class="topic-metadata">

**Author:** [@corvenus](https://forum.kirupa.com/u/corvenus)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 5:28pm UTC](https://forum.kirupa.com/t/error-is-not-a-function/245659 "2007-12-02T17:28:04Z")

</div>

Hi everyone, I get the following output error: TypeError: Error #1006: init is not a function. at website\_fla::MainTimeline/website\_fla::frame1() when i run the following code: public class LanguageManager…

---

## [Error Opening URL](https://forum.kirupa.com/t/error-opening-url/245658)

<div class="topic-metadata">

**Author:** [@haja12\_aams](https://forum.kirupa.com/u/haja12_aams)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 5:12pm UTC](https://forum.kirupa.com/t/error-opening-url/245658 "2007-12-02T17:12:56Z")

</div>

Hi all, Im using XML connector to retrieve the values from php, so far its works well but yesterday if i run the program i got the error "Error opening URL". i saved this file to c:\\inetpup\\wwwroot i got the "Error …

---

## [Vars and Arrays](https://forum.kirupa.com/t/vars-and-arrays/245654)

<div class="topic-metadata">

**Author:** [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 4:01pm UTC](https://forum.kirupa.com/t/vars-and-arrays/245654 "2007-12-02T16:01:30Z")

</div>

hello, I am trying to understand the following code: var desc:Array = new Array(); btn\_mc.onRelease = function(){ var link:String = "this.html"; desc.push(link); trace(desc); } Simple enough, var de…

---

## [No. of enemies killed by the player](https://forum.kirupa.com/t/no-of-enemies-killed-by-the-player/245653)

<div class="topic-metadata">

**Author:** [@fw2803](https://forum.kirupa.com/u/fw2803)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 3:54pm UTC](https://forum.kirupa.com/t/no-of-enemies-killed-by-the-player/245653 "2007-12-02T15:54:31Z")

</div>

Hi there I encounter an interesting problem... In my game, sometimes, the player may receive some supports. These supports, well, they kill for the player. However, in the codes, whenever I remove the enemy movieclip…

---

## [A HTML page inside of flash?](https://forum.kirupa.com/t/a-html-page-inside-of-flash/245649)

<div class="topic-metadata">

**Author:** [@qncogi](https://forum.kirupa.com/u/qncogi)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 2:18pm UTC](https://forum.kirupa.com/t/a-html-page-inside-of-flash/245649 "2007-12-02T14:18:15Z")

</div>

I have a flash appication with a menu in it. I would like to use one button of the menu for calling a html page (geturl?) inside the flash. (With a close button on it to return the flah application.) Is it possible? …

---

## [Flash CS3 doesn't export](https://forum.kirupa.com/t/flash-cs3-doesnt-export/245645)

<div class="topic-metadata">

**Author:** [@Chelu](https://forum.kirupa.com/u/Chelu)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 11:07am UTC](https://forum.kirupa.com/t/flash-cs3-doesnt-export/245645 "2007-12-02T11:07:39Z")

</div>

Hello people, I'm new to the forums. I have a problem with Flash CS3. I made a website completly in Flash and everything worked fine. After a while I had to modify the site and now it doesn't export the .swf file. CTRL…

---

## [Relate Object?](https://forum.kirupa.com/t/relate-object/245641)

<div class="topic-metadata">

**Author:** [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 7:50am UTC](https://forum.kirupa.com/t/relate-object/245641 "2007-12-02T07:50:32Z")

</div>

hi all! How can i make this object.. relative to it's parent movieclip? coords = new Object(); coords.x = DS.\_x; coords.y = DS.\_y; localToGlobal(coords); let's say.. it's in a movieclip called "A".. how would i m…

---

## [Load a swf file using loadmovieNum() but retain sound](https://forum.kirupa.com/t/load-a-swf-file-using-loadmovienum-but-retain-sound/245640)

<div class="topic-metadata">

**Author:** [@Order](https://forum.kirupa.com/u/Order)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 7:35am UTC](https://forum.kirupa.com/t/load-a-swf-file-using-loadmovienum-but-retain-sound/245640 "2007-12-02T07:35:16Z")

</div>

I am new to Flash and have run into a problem. I need to load an swf file on release of a button but the sound from the original swf should play uninterrupted. ie. the movie should change but the sound shouldnt change or…

---

## [Offshore Outsourcing Software In India](https://forum.kirupa.com/t/offshore-outsourcing-software-in-india/245639)

<div class="topic-metadata">

**Author:** [@hanusoft](https://forum.kirupa.com/u/hanusoft)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 7:23am UTC](https://forum.kirupa.com/t/offshore-outsourcing-software-in-india/245639 "2007-12-02T07:23:15Z")

</div>

\[COLOR=black\]The foremost priority for any Outsourcing company is to set an offshore center which has the best of technology and talented manpower to execute software development. In this context, \[/COLOR\]\[COLOR=black\]In…

---

## [PHP form data passed from page to page](https://forum.kirupa.com/t/php-form-data-passed-from-page-to-page/245638)

<div class="topic-metadata">

**Author:** [@fogpuddle](https://forum.kirupa.com/u/fogpuddle)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 7:12am UTC](https://forum.kirupa.com/t/php-form-data-passed-from-page-to-page/245638 "2007-12-02T07:12:26Z")

</div>

Hello there, I'm building a PHP form and am curious what the best methods are for passing form information from one form page to another form page. For example, say I have a form page for the user's contact informatio…

---

## [Pausing and resuming a looping sound](https://forum.kirupa.com/t/pausing-and-resuming-a-looping-sound/245632)

<div class="topic-metadata">

**Author:** [@anon4341189](https://forum.kirupa.com/u/anon4341189)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 5:19am UTC](https://forum.kirupa.com/t/pausing-and-resuming-a-looping-sound/245632 "2007-12-02T05:19:12Z")

</div>

Hello all, I am currently working on a class to control sound. Having tried various work arounds for the looping, it seems that I will only get a loop with out a break if i pass a looping parameter to the sound channel…

---

## [Directional problem](https://forum.kirupa.com/t/directional-problem/245631)

<div class="topic-metadata">

**Author:** [@RogueProgram](https://forum.kirupa.com/u/RogueProgram)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 5:15am UTC](https://forum.kirupa.com/t/directional-problem/245631 "2007-12-02T05:15:53Z")

</div>

hi im making a game in flash and when the guy walks he rotates to face that direction, except everytime he rotates to face that direction he moves completely out of line

---

## [\[JS\] Form Number](https://forum.kirupa.com/t/js-form-number/245627)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 4:43am UTC](https://forum.kirupa.com/t/js-form-number/245627 "2007-12-02T04:43:21Z")

</div>

I have many forms on my HTML page. I have only one javascript function to handle the submitted data. Is there any way for my function to detect which of the forms was submitted? document.forms\[???\];

---

## [Rotate Dynamic TXT with embed font not working](https://forum.kirupa.com/t/rotate-dynamic-txt-with-embed-font-not-working/245621)

<div class="topic-metadata">

**Author:** [@mr\_n00](https://forum.kirupa.com/u/mr_n00)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 11:07pm UTC](https://forum.kirupa.com/t/rotate-dynamic-txt-with-embed-font-not-working/245621 "2007-12-01T23:07:48Z")

</div>

Hi, folks, i am trying to rotate some dynamic text and nothing was being displayed. I did some research before posting, and i found out that u have to embed the font before rotating.... I did that and still nothing. A…

---

## [Can't access xml file from swf](https://forum.kirupa.com/t/cant-access-xml-file-from-swf/245618)

<div class="topic-metadata">

**Author:** [@clem\_c\_rock](https://forum.kirupa.com/u/clem_c_rock)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 10:33pm UTC](https://forum.kirupa.com/t/cant-access-xml-file-from-swf/245618 "2007-12-01T22:33:12Z")

</div>

I have a curious problem. I have an swf file that is trying to read an xml file from this server: demo.feedxi.com The full Url looks like this: http://demo.feedxi.com/Warm.xml?source=true&s=Test Search&w=google&w=ya…

---

## [Accessing unknown \_level0 variables from FlashVars](https://forum.kirupa.com/t/accessing-unknown--level0-variables-from-flashvars/245617)

<div class="topic-metadata">

**Author:** [@DavidPesta](https://forum.kirupa.com/u/DavidPesta)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 10:11pm UTC](https://forum.kirupa.com/t/accessing-unknown--level0-variables-from-flashvars/245617 "2007-12-01T22:11:37Z")

</div>

I have run into a rare situation where I need to access \_level0 variables that have been passed to the flash file with FlashVars without knowing the names of these variables. The HTML source (and FlashVars) are dynamic…

---

## [Flex 2 Help not accessible](https://forum.kirupa.com/t/flex-2-help-not-accessible/245610)

<div class="topic-metadata">

**Author:** [@asscripter](https://forum.kirupa.com/u/asscripter)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 7:51pm UTC](https://forum.kirupa.com/t/flex-2-help-not-accessible/245610 "2007-12-01T19:51:47Z")

</div>

Hi, I hav installed Flex Builder 2 on my machine. Strangly i'm not able to launch its internal help files (F1). It gives me error "Help cannot be displayed. The embedded application serever could not run help web appli…

---

## [How to Center loadMovie Registration Point](https://forum.kirupa.com/t/how-to-center-loadmovie-registration-point/245609)

<div class="topic-metadata">

**Author:** [@if\_else](https://forum.kirupa.com/u/if_else)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 7:41pm UTC](https://forum.kirupa.com/t/how-to-center-loadmovie-registration-point/245609 "2007-12-01T19:41:13Z")

</div>

Hello Flash Tech's, I really having trouble figuring this one out. I'm trying to use Zoom transition for my photo Gallery which I'm using loadMovie "jpg" from Xml file. \*\*Now the problem is here. \*\* The Registration P…

---

## [Variables not working when strict data typing](https://forum.kirupa.com/t/variables-not-working-when-strict-data-typing/245607)

<div class="topic-metadata">

**Author:** [@clubzero](https://forum.kirupa.com/u/clubzero)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 7:30pm UTC](https://forum.kirupa.com/t/variables-not-working-when-strict-data-typing/245607 "2007-12-01T19:30:13Z")

</div>

Have the following code that does't work when angle and speed uses strict data typing. Hope someone can help me understand .... init(); function init():Void{ angle = -40; // does't work if ''var angle:Number = -40;''…

---

## [Help with movement](https://forum.kirupa.com/t/help-with-movement/245606)

<div class="topic-metadata">

**Author:** [@Amiroo](https://forum.kirupa.com/u/Amiroo)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 6:30pm UTC](https://forum.kirupa.com/t/help-with-movement/245606 "2007-12-01T18:30:15Z")

</div>

Hello! I'm a new guy here at kirupa forum and i must say it's really nice! \[smile\] Started actionscript 2 days ago and i need a little help with this code. Obviously i dont get any movement :/ anybody knows why? v…

---

## [Need help with pop up window using externalinterface. so close to finishing!](https://forum.kirupa.com/t/need-help-with-pop-up-window-using-externalinterface-so-close-to-finishing/245604)

<div class="topic-metadata">

**Author:** [@freeeky](https://forum.kirupa.com/u/freeeky)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 6:23pm UTC](https://forum.kirupa.com/t/need-help-with-pop-up-window-using-externalinterface-so-close-to-finishing/245604 "2007-12-01T18:23:49Z")

</div>

ight. i think i have actually made some progress! I managed to get one button within the movieclip 'myClip' to work and open a pop up. Now how do i add the functionality to the other buttons within same movieclip? I…

---

## [Hot objects without buttons?](https://forum.kirupa.com/t/hot-objects-without-buttons/245598)

<div class="topic-metadata">

**Author:** [@Divardo](https://forum.kirupa.com/u/Divardo)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 3:29pm UTC](https://forum.kirupa.com/t/hot-objects-without-buttons/245598 "2007-12-01T15:29:07Z")

</div>

I am setting up a simple quiz but wondered how its possible, with the quiz template, to do it so that with the hot objects e-learning interaction you don't have the control and reset button, yet when you select the corre…

---

## [Attaching a Clickable MC from the Library](https://forum.kirupa.com/t/attaching-a-clickable-mc-from-the-library/245594)

<div class="topic-metadata">

**Author:** [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 12:53pm UTC](https://forum.kirupa.com/t/attaching-a-clickable-mc-from-the-library/245594 "2007-12-01T12:53:53Z")

</div>

Hi there, When I click my 'hit\_mc', 'hitarea\_mc' gets placed on the stage from the library. When I click 'hitarea\_mc', I want it to disappear. So Ive done the following, but the newly attached hitarea\_mc refuses to …

---

## [AI turret rotation](https://forum.kirupa.com/t/ai-turret-rotation/245591)

<div class="topic-metadata">

**Author:** [@fw2803](https://forum.kirupa.com/u/fw2803)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 11:27am UTC](https://forum.kirupa.com/t/ai-turret-rotation/245591 "2007-12-01T11:27:03Z")

</div>

Hi there I encounter a problem when working with an AI problem. dx = this.\_x - \_root.stnk.co.x dy = this.\_y - \_root.stnk.co.y degrees = Math.round(Math.atan2(dy,dx)\*180/Math.PI)+180 distance = Math.sqrt((dx\*dx)+(dy\*dy…

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

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