# programming

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

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

**Page:** 176

---

## [Strange sound error](https://forum.kirupa.com/t/strange-sound-error/328097)

<div class="topic-metadata">

**Author:** [@drpelz](https://forum.kirupa.com/u/drpelz)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 10:53pm UTC](https://forum.kirupa.com/t/strange-sound-error/328097 "2012-04-18T22:53:45Z")

</div>

Hi, sometimes I get this strange error during gameplay: TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.efg.framework\_mod::SoundManager/playSound()\[/Users/xxx/Documents…

---

## [Axel?](https://forum.kirupa.com/t/axel/328096)

<div class="topic-metadata">

**Author:** [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 10:43pm UTC](https://forum.kirupa.com/t/axel/328096 "2012-04-18T22:43:28Z")

</div>

I just came across this, has anyone used it? http://axgl.org Its a Stage3D game framework like flixel, I haven't ever heard of it. It looks great though.

---

## [Gradient Art Tutorial](https://forum.kirupa.com/t/gradient-art-tutorial/328095)

<div class="topic-metadata">

**Author:** [@system](https://forum.kirupa.com/u/system)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 9:10pm UTC](https://forum.kirupa.com/t/gradient-art-tutorial/328095 "2012-04-18T21:10:38Z")

</div>

This tutorial is so bad, it's bad. My class had to use this tutorial to make this gradient art "wallpaper". No one in my class understood it. You need to give way more steps on how to do it. You give way too little step…

---

## [Free/Open Source SWF Encryption?](https://forum.kirupa.com/t/free-open-source-swf-encryption/328094)

<div class="topic-metadata">

**Author:** [@wMattD](https://forum.kirupa.com/u/wMattD)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 7:25pm UTC](https://forum.kirupa.com/t/free-open-source-swf-encryption/328094 "2012-04-18T19:25:16Z")

</div>

Not sure this is the right place to ask this, but... Are there any free or Open Source SWF Encryption programs out there? And if so, which are best? Google hasn't been able to help me with this. From what I hear, kindi…

---

## [How to avoid repeating the same function for various buttons?](https://forum.kirupa.com/t/how-to-avoid-repeating-the-same-function-for-various-buttons/328093)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 7:10pm UTC](https://forum.kirupa.com/t/how-to-avoid-repeating-the-same-function-for-various-buttons/328093 "2012-04-18T19:10:48Z")

</div>

Hi, I have the following code for the button over/out effect. It is nice but instead of writing the same code for function for each button (I have 15 buttons), how to shorted the code by modifying it? Button1\_mc.add…

---

## [AS3 Multiple Collision Problem](https://forum.kirupa.com/t/as3-multiple-collision-problem/328091)

<div class="topic-metadata">

**Author:** [@Nick\_Gonzalez](https://forum.kirupa.com/u/Nick_Gonzalez)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 6:00pm UTC](https://forum.kirupa.com/t/as3-multiple-collision-problem/328091 "2012-04-18T18:00:00Z")

</div>

I'm having trouble successfully colliding the player and the blocks that i have descending from the top of the screen. The movieclip (block) has multiple frames within it that are selected randomly every time it respawns…

---

## [Possible to load HTML,iFrame,Objects in Flash?](https://forum.kirupa.com/t/possible-to-load-html-iframe-objects-in-flash/328090)

<div class="topic-metadata">

**Author:** [@celestale](https://forum.kirupa.com/u/celestale)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 5:21pm UTC](https://forum.kirupa.com/t/possible-to-load-html-iframe-objects-in-flash/328090 "2012-04-18T17:21:42Z")

</div>

Hi community, May I know if it is possible to load HTML and display the contents in Flash? Welcome to Flickr! iFrame in Flash? \[COLOR=#333333\]\[FONT=monospace\]\<iframe src=http://www.flickr.com/slideShow/index.gne?g…

---

## [Render from Multiple Vertex Buffers?](https://forum.kirupa.com/t/render-from-multiple-vertex-buffers/328089)

<div class="topic-metadata">

**Author:** [@system](https://forum.kirupa.com/u/system)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 5:11pm UTC](https://forum.kirupa.com/t/render-from-multiple-vertex-buffers/328089 "2012-04-18T17:11:08Z")

</div>

Greetings, Is there a way to render multiple vertex buffers in AS3? Right now I have two objects which I want to render, but the only way I can think to do it is to concatenate the raw vertex data (of both objects) a…

---

## [Help with local storage](https://forum.kirupa.com/t/help-with-local-storage/328087)

<div class="topic-metadata">

**Author:** [@mysticrider](https://forum.kirupa.com/u/mysticrider)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 12:48pm UTC](https://forum.kirupa.com/t/help-with-local-storage/328087 "2012-04-18T12:48:18Z")

</div>

I am collecting data from four web pages onto a 5th page. Then I would like to add this information and come up with a total. I am using local storage variables. I can save the data, retrieve the data. But for some r…

---

## [Function as Data type i gotta question about it](https://forum.kirupa.com/t/function-as-data-type-i-gotta-question-about-it/328086)

<div class="topic-metadata">

**Author:** [@raphaelle](https://forum.kirupa.com/u/raphaelle)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 11:38am UTC](https://forum.kirupa.com/t/function-as-data-type-i-gotta-question-about-it/328086 "2012-04-18T11:38:52Z")

</div>

i gotta question about function, anyway im using flash as3 for about 6 months, and im still kinda confuse in this things like getters and setters, and idk what you call that but here's and example : private function m…

---

## [Text file to array](https://forum.kirupa.com/t/text-file-to-array/328085)

<div class="topic-metadata">

**Author:** [@LordNecro](https://forum.kirupa.com/u/LordNecro)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 10:23am UTC](https://forum.kirupa.com/t/text-file-to-array/328085 "2012-04-18T10:23:18Z")

</div>

Hey guys, I'm trying to use a variable in a loop to generate multiple divs, that use javascript to have hidden divs. for some reason when i use the variable in my echo it creates a line break after the variable. therefo…

---

## [How to load a Flash swc into Flash Builder to play a movieclip](https://forum.kirupa.com/t/how-to-load-a-flash-swc-into-flash-builder-to-play-a-movieclip/328084)

<div class="topic-metadata">

**Author:** [@minnew1](https://forum.kirupa.com/u/minnew1)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 9:51am UTC](https://forum.kirupa.com/t/how-to-load-a-flash-swc-into-flash-builder-to-play-a-movieclip/328084 "2012-04-18T09:51:08Z")

</div>

In Flash Pro I created a simple 30-frame animation of an MovieClip object. I then published the fla file as a swf, as well as a swc file. Within Flash Builder 4, I can load the swf file (e.g. using Loader, URLReques…

---

## [jQuery plugin code location practices](https://forum.kirupa.com/t/jquery-plugin-code-location-practices/328080)

<div class="topic-metadata">

**Author:** [@flashgroove](https://forum.kirupa.com/u/flashgroove)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 4:57am UTC](https://forum.kirupa.com/t/jquery-plugin-code-location-practices/328080 "2012-04-18T04:57:57Z")

</div>

\[LEFT\]\[COLOR=#333333\]\[FONT=Arial\]I am working on a jQuery plugin and I would like some opinions from more experienced people about good practices of integrating the HTML, CSS and JavaScript code. \[/FONT\]\[/COLOR\] \[COLOR=#…

---

## [Hittest/Collision Detection](https://forum.kirupa.com/t/hittest-collision-detection/328078)

<div class="topic-metadata">

**Author:** [@OlPeePee](https://forum.kirupa.com/u/OlPeePee)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 4:12am UTC](https://forum.kirupa.com/t/hittest-collision-detection/328078 "2012-04-18T04:12:02Z")

</div>

Hi there, I am just asking all your expert advice. I used to do flash but haven't for some time. I'm trying to create an animated 'LED style' display. I want to draw/tween/type shapes or text and have the 'LED dots' …

---

## [Deflection velocity](https://forum.kirupa.com/t/deflection-velocity/328076)

<div class="topic-metadata">

**Author:** [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)\
**Replies:** 0\
**Last updated:** [April 17, 2012, 10:34pm UTC](https://forum.kirupa.com/t/deflection-velocity/328076 "2012-04-17T22:34:35Z")

</div>

Hi, I am trying to make a little game its just a project to help me get my head around the maths, I receive an angle and I want to use that angle to move the character away from the object are there any good tutorials fo…

---

## [Need a little help. AS2 --\> AS3](https://forum.kirupa.com/t/need-a-little-help-as2-as3/328075)

<div class="topic-metadata">

**Author:** [@timmylogue](https://forum.kirupa.com/u/timmylogue)\
**Replies:** 0\
**Last updated:** [April 17, 2012, 9:48pm UTC](https://forum.kirupa.com/t/need-a-little-help-as2-as3/328075 "2012-04-17T21:48:33Z")

</div>

who is feeling generous? \[smile\] Can someone point me in the right direction. I want to convert this AS2 to AS3. Still learning AS3 and don't have that much time right now. http://pastie.org/3798906 Thanks Tim

---

## [Array playback issues AS2](https://forum.kirupa.com/t/array-playback-issues-as2/328072)

<div class="topic-metadata">

**Author:** [@MissD](https://forum.kirupa.com/u/MissD)\
**Replies:** 0\
**Last updated:** [April 17, 2012, 2:53pm UTC](https://forum.kirupa.com/t/array-playback-issues-as2/328072 "2012-04-17T14:53:17Z")

</div>

Hi, I've got an array of Strings each of which have been input by a series of coloured buttons with sounds attached. When a play button is pressed the strings that correspond to different coloured sounds should play one …

---

## [External Interface call doesn't work with function that is on external JS file](https://forum.kirupa.com/t/external-interface-call-doesnt-work-with-function-that-is-on-external-js-file/328070)

<div class="topic-metadata">

**Author:** [@Moshe\_Shein](https://forum.kirupa.com/u/Moshe_Shein)\
**Replies:** 0\
**Last updated:** [April 17, 2012, 8:34am UTC](https://forum.kirupa.com/t/external-interface-call-doesnt-work-with-function-that-is-on-external-js-file/328070 "2012-04-17T08:34:05Z")

</div>

Hello I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine. I added a link in the html page to an external JS file, when I move the JS function …

---

## [Playing high quality audio through flash?](https://forum.kirupa.com/t/playing-high-quality-audio-through-flash/328066)

<div class="topic-metadata">

**Author:** [@Profitemole](https://forum.kirupa.com/u/Profitemole)\
**Replies:** 0\
**Last updated:** [April 17, 2012, 2:02am UTC](https://forum.kirupa.com/t/playing-high-quality-audio-through-flash/328066 "2012-04-17T02:02:43Z")

</div>

Hi, I'm building a project and I need the audio to be of the highest quality when played back. I am using .wav files and I'm not too sure how to make them work. I've tried the: play\_btn.addEventListener(MouseEvent.CLIC…

---

## [Stuck on a problem with spinning wheel graphics](https://forum.kirupa.com/t/stuck-on-a-problem-with-spinning-wheel-graphics/328065)

<div class="topic-metadata">

**Author:** [@funky\_2345](https://forum.kirupa.com/u/funky_2345)\
**Replies:** 0\
**Last updated:** [April 17, 2012, 12:00am UTC](https://forum.kirupa.com/t/stuck-on-a-problem-with-spinning-wheel-graphics/328065 "2012-04-17T00:00:54Z")

</div>

Hello, I have a problem with this spinning wheel I'm working on. I have imported some png's to my library that I want to use in the wheel but they get very pixelated after the spin. Before it starts moving they look norm…

---

## [Flash CS3 - Actionscript 2 - Help Needed](https://forum.kirupa.com/t/flash-cs3-actionscript-2-help-needed/328063)

<div class="topic-metadata">

**Author:** [@Laterna12](https://forum.kirupa.com/u/Laterna12)\
**Replies:** 0\
**Last updated:** [April 16, 2012, 7:42pm UTC](https://forum.kirupa.com/t/flash-cs3-actionscript-2-help-needed/328063 "2012-04-16T19:42:07Z")

</div>

Hi all, I am currently working on a Flash project as a part of my degree and need a little bit of help with some coding. I have one scene wherein I have a series of 45 buttons. What I would like to happen is that wh…

---

## [Playing with correct volume](https://forum.kirupa.com/t/playing-with-correct-volume/328060)

<div class="topic-metadata">

**Author:** [@TheFakeMcCoy](https://forum.kirupa.com/u/TheFakeMcCoy)\
**Replies:** 0\
**Last updated:** [April 16, 2012, 2:38pm UTC](https://forum.kirupa.com/t/playing-with-correct-volume/328060 "2012-04-16T14:38:37Z")

</div>

I'm pretty new to AS3 (building my first site) so I hope this isn't too much of a newbie question. I've got two commands which each work on their own in my mp3 player channel = snd.play(pausePosition); starts th…

---

## [Sub Pixel shaky animation](https://forum.kirupa.com/t/sub-pixel-shaky-animation/328056)

<div class="topic-metadata">

**Author:** [@juneoliver](https://forum.kirupa.com/u/juneoliver)\
**Replies:** 0\
**Last updated:** [April 16, 2012, 5:08am UTC](https://forum.kirupa.com/t/sub-pixel-shaky-animation/328056 "2012-04-16T05:08:27Z")

</div>

Hi All Is there a way to force movieclips to whole pixels? When doing timeline animations I am constantly having to adjust my x and y coordinates to whole numbers manually. If they are not whole numbers they shake and …

---

## [Type-Not- Found Error for a type not in File!](https://forum.kirupa.com/t/type-not-found-error-for-a-type-not-in-file/328055)

<div class="topic-metadata">

**Author:** [@rmbrug](https://forum.kirupa.com/u/rmbrug)\
**Replies:** 0\
**Last updated:** [April 16, 2012, 3:28am UTC](https://forum.kirupa.com/t/type-not-found-error-for-a-type-not-in-file/328055 "2012-04-16T03:28:03Z")

</div>

I am currently getting Error 1046: Type was not found or was not a compile-time constant: HTMLLoader. The main problem I am having is that I removed all references to HTMLLoader earlier (because I know HTMLLoader only …

---

## [Tutorial: For Loops in JavaScript](https://forum.kirupa.com/t/tutorial-for-loops-in-javascript/328054)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [April 15, 2012, 10:26pm UTC](https://forum.kirupa.com/t/tutorial-for-loops-in-javascript/328054 "2012-04-15T22:26:23Z")

</div>

\[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COLOR=#333333\]Hi everyone,\[/COLOR\]\[/FONT\]\[/COLOR\]\[/FONT\]\[/COLOR\]\[/COLOR\] \[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COLOR=#333333\]\[FONT=Segoe…

---

## [Flash 8 - using a variable to target a movie clip](https://forum.kirupa.com/t/flash-8-using-a-variable-to-target-a-movie-clip/328052)

<div class="topic-metadata">

**Author:** [@Ghostfishe](https://forum.kirupa.com/u/Ghostfishe)\
**Replies:** 0\
**Last updated:** [April 15, 2012, 8:10pm UTC](https://forum.kirupa.com/t/flash-8-using-a-variable-to-target-a-movie-clip/328052 "2012-04-15T20:10:21Z")

</div>

I found this tutorial which seems to do exactly what I'm trying to do (the only one I've found to date), except his technique doesn't seem to work for me at all. It doesn't really seem to say anywhere which version of Ac…

---

## [How to load an external SWF File on specified movieclip instead of stage?](https://forum.kirupa.com/t/how-to-load-an-external-swf-file-on-specified-movieclip-instead-of-stage/328050)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [April 15, 2012, 5:27pm UTC](https://forum.kirupa.com/t/how-to-load-an-external-swf-file-on-specified-movieclip-instead-of-stage/328050 "2012-04-15T17:27:28Z")

</div>

I want to load my external SWF file using the following code in "Panel4\_mc" instead of on stage. How can I do it" function btnClick(event:MouseEvent):void { removeChild(loader); var newSWFRequest:URLRequest = new URL…

---

## [Flash program functions differently for different domains](https://forum.kirupa.com/t/flash-program-functions-differently-for-different-domains/328049)

<div class="topic-metadata">

**Author:** [@SparseMatrix](https://forum.kirupa.com/u/SparseMatrix)\
**Replies:** 0\
**Last updated:** [April 15, 2012, 5:12pm UTC](https://forum.kirupa.com/t/flash-program-functions-differently-for-different-domains/328049 "2012-04-15T17:12:50Z")

</div>

This is a really peculiar problem. I have a linux distribution server, SME Server, and I use it to direct several domain names to a website on the server. My Flash program is a data driven directory that uses PHP const…

---

## [Load External SWF into MovieClip on timeline?](https://forum.kirupa.com/t/load-external-swf-into-movieclip-on-timeline/328048)

<div class="topic-metadata">

**Author:** [@lazerbrains](https://forum.kirupa.com/u/lazerbrains)\
**Replies:** 0\
**Last updated:** [April 15, 2012, 3:48pm UTC](https://forum.kirupa.com/t/load-external-swf-into-movieclip-on-timeline/328048 "2012-04-15T15:48:53Z")

</div>

I have a flash Project, and I have external SWF's that are loading and unloading into my project. However I need the external SWF's to be under certain layers. What I would love to be able to do is load my external SWF's…

---

## [Is this possible? (rollover random sound sequence)](https://forum.kirupa.com/t/is-this-possible-rollover-random-sound-sequence/328047)

<div class="topic-metadata">

**Author:** [@kezwick](https://forum.kirupa.com/u/kezwick)\
**Replies:** 0\
**Last updated:** [April 15, 2012, 3:30pm UTC](https://forum.kirupa.com/t/is-this-possible-rollover-random-sound-sequence/328047 "2012-04-15T15:30:11Z")

</div>

Hi! I'm a beginner to Actionscript and was wondering if the following was possible for a project I'm working on; I would like a sequence of randomly-generated sounds from my library to play when the cursor rolls over the…

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

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