# programming

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

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

**Page:** 970

---

## [How to add 2 different movie clip based on same class?](https://forum.kirupa.com/t/how-to-add-2-different-movie-clip-based-on-same-class/278544)

<div class="topic-metadata">

**Author:** [@ayumilove](https://forum.kirupa.com/u/ayumilove)\
**Replies:** 0\
**Last updated:** [January 1, 2009, 12:47pm UTC](https://forum.kirupa.com/t/how-to-add-2-different-movie-clip-based-on-same-class/278544 "2009-01-01T12:47:01Z")

</div>

title Previously in Actionscript 2, I could use the linkage identifier and attachMovieClip to place 2 different movie clips on stage which uses the same class. The movie clips are different as in their pictures and …

---

## [SWF in Firefox not showing?](https://forum.kirupa.com/t/swf-in-firefox-not-showing/278539)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 0\
**Last updated:** [January 1, 2009, 9:16am UTC](https://forum.kirupa.com/t/swf-in-firefox-not-showing/278539 "2009-01-01T09:16:25Z")

</div>

Hi All, Strange when Im previewing my local flash under firefox (using dreamweaver CS4) firefox gives a blank page. Did anyone else face this problem, or knows a fix for it? Is this something just local, and suppose…

---

## [Collision Help - Please?](https://forum.kirupa.com/t/collision-help-please/278538)

<div class="topic-metadata">

**Author:** [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Replies:** 0\
**Last updated:** [January 1, 2009, 7:46am UTC](https://forum.kirupa.com/t/collision-help-please/278538 "2009-01-01T07:46:09Z")

</div>

Okay so I'm attempting to make a code that executes something when the cursor collides with a Movieclip called player. I'm having quite some trouble with the syntax, however. No matter how I try to fix the code, there'…

---

## [.swf gallery not loading](https://forum.kirupa.com/t/swf-gallery-not-loading/278537)

<div class="topic-metadata">

**Author:** [@suspire](https://forum.kirupa.com/u/suspire)\
**Replies:** 0\
**Last updated:** [January 1, 2009, 6:19am UTC](https://forum.kirupa.com/t/swf-gallery-not-loading/278537 "2009-01-01T06:19:42Z")

</div>

Here is my working gallery online http://dangerpress.com/store2/flash/galeria\_xml5.swf Here it is not working in a .php file http://dangerpress.com/store2/DNGR0014a.php I assume its some for of .js issue although I'm…

---

## [\[AS3\] How to import and use my custom class?](https://forum.kirupa.com/t/as3-how-to-import-and-use-my-custom-class/278536)

<div class="topic-metadata">

**Author:** [@ayumilove](https://forum.kirupa.com/u/ayumilove)\
**Replies:** 0\
**Last updated:** [January 1, 2009, 4:04am UTC](https://forum.kirupa.com/t/as3-how-to-import-and-use-my-custom-class/278536 "2009-01-01T04:04:13Z")

</div>

Here is an example. Assuming that I have 2 classes: Main.as and Calculator.as I want to import my Calculator.as into my Main.as so I could use its functions. //Calculator.as package { public class Calculator { publi…

---

## [Help... Multiple Audio out of sync](https://forum.kirupa.com/t/help-multiple-audio-out-of-sync/278528)

<div class="topic-metadata">

**Author:** [@andrewst](https://forum.kirupa.com/u/andrewst)\
**Replies:** 0\
**Last updated:** [January 1, 2009, 12:08am UTC](https://forum.kirupa.com/t/help-multiple-audio-out-of-sync/278528 "2009-01-01T00:08:10Z")

</div>

I've created an audio mixer that plays back 9 MP3 at the same time. This WAS working perfectly for me, but a few days ago I got a computer virus and since reinstalling everything, it's not sync-ing up like it used to. …

---

## [Having a problem with onEnterFrame in mx](https://forum.kirupa.com/t/having-a-problem-with-onenterframe-in-mx/278524)

<div class="topic-metadata">

**Author:** [@Thew\_Technology](https://forum.kirupa.com/u/Thew_Technology)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 7:40pm UTC](https://forum.kirupa.com/t/having-a-problem-with-onenterframe-in-mx/278524 "2008-12-31T19:40:58Z")

</div>

I am running a test using onEnterFrame in flash mx but its not working for the life of me... Heres the code: onEnterFrame=function(){ size\_txt.text=test\_mc.\_xscale; } I am trying to get the text box to always reg…

---

## [Adding child to another movieclip](https://forum.kirupa.com/t/adding-child-to-another-movieclip/278523)

<div class="topic-metadata">

**Author:** [@allex36](https://forum.kirupa.com/u/allex36)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 7:12pm UTC](https://forum.kirupa.com/t/adding-child-to-another-movieclip/278523 "2008-12-31T19:12:50Z")

</div>

Hello. I have been looking on google alot for this. Looks like a simple problem but wow i can't find any thread on it. Here i have my Stage containing 2 Movieclip "vidclip" and "buttonclip" "vidclip" is only an empty…

---

## [Optimization test: -= faster than += ...?](https://forum.kirupa.com/t/optimization-test-faster-than/278521)

<div class="topic-metadata">

**Author:** [@Pattt](https://forum.kirupa.com/u/Pattt)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 7:08pm UTC](https://forum.kirupa.com/t/optimization-test-faster-than/278521 "2008-12-31T19:08:29Z")

</div>

Uh double post, sorry!

---

## [Loading and using variables dynamically, need help](https://forum.kirupa.com/t/loading-and-using-variables-dynamically-need-help/278519)

<div class="topic-metadata">

**Author:** [@ag3nt42](https://forum.kirupa.com/u/ag3nt42)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 6:45pm UTC](https://forum.kirupa.com/t/loading-and-using-variables-dynamically-need-help/278519 "2008-12-31T18:45:43Z")

</div>

Hi everyone, I'm working on a project that requires me to load variables into my movie dynamically. I've gotten to the point where I get the variables loaded into flash. But then I cannot use them dynamically once in…

---

## [3D Display Object Scaling issue](https://forum.kirupa.com/t/3d-display-object-scaling-issue/278515)

<div class="topic-metadata">

**Author:** [@Shabaz](https://forum.kirupa.com/u/Shabaz)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 4:45pm UTC](https://forum.kirupa.com/t/3d-display-object-scaling-issue/278515 "2008-12-31T16:45:04Z")

</div>

I have a 3D display object that I need to scale, this 3D object has clickable Sprites in it. When I adjust the scaleX and scaleY of the object the MouseEvent.Click no longer functions. In fact the mouse acts like there…

---

## [In desperate need of help with infinite scroll](https://forum.kirupa.com/t/in-desperate-need-of-help-with-infinite-scroll/278513)

<div class="topic-metadata">

**Author:** [@melia05](https://forum.kirupa.com/u/melia05)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 4:26pm UTC](https://forum.kirupa.com/t/in-desperate-need-of-help-with-infinite-scroll/278513 "2008-12-31T16:26:59Z")

</div>

I have been trying to figure this problem out for a while and can't seem to get it to work the way I want, I think I am on the right track, just missing something! Could someone help me take the thumbnail scroller from…

---

## [I'm going to cry!](https://forum.kirupa.com/t/im-going-to-cry/278510)

<div class="topic-metadata">

**Author:** [@lordy18](https://forum.kirupa.com/u/lordy18)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 3:26pm UTC](https://forum.kirupa.com/t/im-going-to-cry/278510 "2008-12-31T15:26:08Z")

</div>

Well, Over the past few days, I've been trying to figure out how to make a flash website that will have elements move in accordance to when the window is resized. I had got as far as getting it to work in flash when…

---

## [Removing MovieClip will remove addEventListener?](https://forum.kirupa.com/t/removing-movieclip-will-remove-addeventlistener/278508)

<div class="topic-metadata">

**Author:** [@ayumilove](https://forum.kirupa.com/u/ayumilove)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 1:45pm UTC](https://forum.kirupa.com/t/removing-movieclip-will-remove-addeventlistener/278508 "2008-12-31T13:45:55Z")

</div>

hi guys, just wandering whether if I removed a movie clip that has button with addEventListner attach to it, would it remove all addEventListeners? or I would need to manually use removeEventListener before using remove…

---

## [Reading image with PHP](https://forum.kirupa.com/t/reading-image-with-php/278503)

<div class="topic-metadata">

**Author:** [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 9:03am UTC](https://forum.kirupa.com/t/reading-image-with-php/278503 "2008-12-31T09:03:59Z")

</div>

Wondering if there would be a significant downside (concerning load time) to present all images (mostly CSS background images) with PHP and fread() or something like that. Will be used mainly for caching and perhaps se…

---

## [How do you get rid of an swf after loading it?](https://forum.kirupa.com/t/how-do-you-get-rid-of-an-swf-after-loading-it/278500)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 7:06am UTC](https://forum.kirupa.com/t/how-do-you-get-rid-of-an-swf-after-loading-it/278500 "2008-12-31T07:06:20Z")

</div>

I have an swf that I load to the stage. When a button is hit, I want to get rid of it and free up everything so it can be loaded again. I have three objects, the URLRequest, a Loader, and a MovieClip. I use the onLoad …

---

## [Basic action tween](https://forum.kirupa.com/t/basic-action-tween/278495)

<div class="topic-metadata">

**Author:** [@stillbeating](https://forum.kirupa.com/u/stillbeating)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 4:08am UTC](https://forum.kirupa.com/t/basic-action-tween/278495 "2008-12-31T04:08:06Z")

</div>

hi there. i need to learn how to do a basic action tween in actionscript 2. I can only find tutorials on AS3 ones or AS2 ones with easing, i dont want easing. i want it so when someone clicks somewhere on the stage t…

---

## [Horizonal Scroll Issues](https://forum.kirupa.com/t/horizonal-scroll-issues/278494)

<div class="topic-metadata">

**Author:** [@thebloodpoolkid](https://forum.kirupa.com/u/thebloodpoolkid)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 3:50am UTC](https://forum.kirupa.com/t/horizonal-scroll-issues/278494 "2008-12-31T03:50:50Z")

</div>

I have a client who insist I force a horizontal scroll bar on their website, so I did. The problem I am having is, when viewing the website in a lower screen resolution the viewer must manually scroll to the right to cen…

---

## [Random transition help](https://forum.kirupa.com/t/random-transition-help/278493)

<div class="topic-metadata">

**Author:** [@picasso](https://forum.kirupa.com/u/picasso)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 3:42am UTC](https://forum.kirupa.com/t/random-transition-help/278493 "2008-12-31T03:42:34Z")

</div>

i trying to create random transition, i able to randomly select the transiton type but it just cant transit. when i play the move it will only transit the first time but the 2nd and the rest will only show me the transit…

---

## [Creating links to scrolling logos](https://forum.kirupa.com/t/creating-links-to-scrolling-logos/278492)

<div class="topic-metadata">

**Author:** [@Nishka](https://forum.kirupa.com/u/Nishka)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 3:35am UTC](https://forum.kirupa.com/t/creating-links-to-scrolling-logos/278492 "2008-12-31T03:35:55Z")

</div>

I'm trying to create a scrolling logo ad, that will link to each logos site. I can do it when the motion tween isn't there, but can't seem to figure out how to get it to work with scrolling logos. I've tried adding AS wh…

---

## [Score Counting Help](https://forum.kirupa.com/t/score-counting-help/278488)

<div class="topic-metadata">

**Author:** [@robofreak111](https://forum.kirupa.com/u/robofreak111)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 1:56am UTC](https://forum.kirupa.com/t/score-counting-help/278488 "2008-12-31T01:56:50Z")

</div>

Currently, I am making a game called PSPrison Break. It is a Flash Game for the PSP system, and is about you shooting down prisoners that are tring to escape. I have read the "Game: Keeping Score" tutorial, but that tuto…

---

## [ReferenceError: Error #1074: Illegal write to read-only property Array](https://forum.kirupa.com/t/referenceerror-error-1074-illegal-write-to-read-only-property-array/278485)

<div class="topic-metadata">

**Author:** [@ger11s](https://forum.kirupa.com/u/ger11s)\
**Replies:** 0\
**Last updated:** [December 30, 2008, 11:16pm UTC](https://forum.kirupa.com/t/referenceerror-error-1074-illegal-write-to-read-only-property-array/278485 "2008-12-30T23:16:37Z")

</div>

I'm really sorry if this ends up a no brainer. I'm new to both AS3 and OOP and have spent the last 4 hours getting nowhere. the code is being used as a document class in an fla (nothing else in the fla yet). the boil…

---

## [String Comparison How To while using Flash, PHP and MySQL](https://forum.kirupa.com/t/string-comparison-how-to-while-using-flash-php-and-mysql/278482)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [December 30, 2008, 10:24pm UTC](https://forum.kirupa.com/t/string-comparison-how-to-while-using-flash-php-and-mysql/278482 "2008-12-30T22:24:40Z")

</div>

I have an artist gallery (done with Actionscript 2.0) that needs an addition. Right now, users can click a "PURCHASE" button for a drawing and then proceed to a form page that is a request for purchase. I would like the …

---

## [Hate to ask](https://forum.kirupa.com/t/hate-to-ask/278477)

<div class="topic-metadata">

**Author:** [@mizzy](https://forum.kirupa.com/u/mizzy)\
**Replies:** 0\
**Last updated:** [December 30, 2008, 9:15pm UTC](https://forum.kirupa.com/t/hate-to-ask/278477 "2008-12-30T21:15:28Z")

</div>

I'm not very strong on coding. Graphics guy here. I've got a question about a project I'm working on in Flash CS3, action script 2. I've got a linked FLV file that I want to jump to another spot on the timeline once…

---

## [Need collision angle help](https://forum.kirupa.com/t/need-collision-angle-help/278476)

<div class="topic-metadata">

**Author:** [@imcabee](https://forum.kirupa.com/u/imcabee)\
**Replies:** 0\
**Last updated:** [December 30, 2008, 8:42pm UTC](https://forum.kirupa.com/t/need-collision-angle-help/278476 "2008-12-30T20:42:14Z")

</div>

Hello, I have a Flash animation with 5 buttons moving and colliding into eachother. When they collide they bounce away from eachother but not in a way that is accurate to the collision. Any advice on what might be goin…

---

## [Loading saved data inside movieclip](https://forum.kirupa.com/t/loading-saved-data-inside-movieclip/278474)

<div class="topic-metadata">

**Author:** [@Matoking](https://forum.kirupa.com/u/Matoking)\
**Replies:** 0\
**Last updated:** [December 30, 2008, 8:08pm UTC](https://forum.kirupa.com/t/loading-saved-data-inside-movieclip/278474 "2008-12-30T20:08:46Z")

</div>

I can save just fine outside the movieclip, but I need to load these things INSIDE movieclip. My code so far : Actionscript of "load game" button, makes new saved file if undefined. on (release) { if (idlequest.c…

---

## [Scaling textures using papervision](https://forum.kirupa.com/t/scaling-textures-using-papervision/278473)

<div class="topic-metadata">

**Author:** [@rondog](https://forum.kirupa.com/u/rondog)\
**Replies:** 0\
**Last updated:** [December 30, 2008, 8:01pm UTC](https://forum.kirupa.com/t/scaling-textures-using-papervision/278473 "2008-12-30T20:01:58Z")

</div>

I made a cube that is 200x200. Say I give the cube a texture that is 500x500, rather than scaling the texture to fit in a 200x200 area, is their an option for it to just clip? like have it start from the top of the textu…

---

## [addEventListener to var when value change](https://forum.kirupa.com/t/addeventlistener-to-var-when-value-change/278471)

<div class="topic-metadata">

**Author:** [@ThaJock](https://forum.kirupa.com/u/ThaJock)\
**Replies:** 0\
**Last updated:** [December 30, 2008, 7:36pm UTC](https://forum.kirupa.com/t/addeventlistener-to-var-when-value-change/278471 "2008-12-30T19:36:52Z")

</div>

Is there any way to add an eventListener to a variable that listenes for if it change value?

---

## [In dire need of help!](https://forum.kirupa.com/t/in-dire-need-of-help/278470)

<div class="topic-metadata">

**Author:** [@lordy18](https://forum.kirupa.com/u/lordy18)\
**Replies:** 0\
**Last updated:** [December 30, 2008, 7:05pm UTC](https://forum.kirupa.com/t/in-dire-need-of-help/278470 "2008-12-30T19:05:35Z")

</div>

I have attached two pictures to try and help add some coherence to my explanation. Basically I am making a website. The main navigation loads in external swf's through a container movie. -For this I have used this t…

---

## [Drag in Bounderies](https://forum.kirupa.com/t/drag-in-bounderies/278464)

<div class="topic-metadata">

**Author:** [@alexandre](https://forum.kirupa.com/u/alexandre)\
**Replies:** 0\
**Last updated:** [December 30, 2008, 5:20pm UTC](https://forum.kirupa.com/t/drag-in-bounderies/278464 "2008-12-30T17:20:50Z")

</div>

Hello ppl! i would to know how to drag a mC withins the bounderies of another one. Could anyone help me?

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

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