# programming

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

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

**Page:** 304

---

## [Isn't it possible to simply unload a movie and load a new one with the SAME button?](https://forum.kirupa.com/t/isnt-it-possible-to-simply-unload-a-movie-and-load-a-new-one-with-the-same-button/320703)

<div class="topic-metadata">

**Author:** [@O\_Tamandua](https://forum.kirupa.com/u/O_Tamandua)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 10:10pm UTC](https://forum.kirupa.com/t/isnt-it-possible-to-simply-unload-a-movie-and-load-a-new-one-with-the-same-button/320703 "2011-03-30T22:10:29Z")

</div>

Hello, all. I’ve gone fully gray trying to learn how to do something in AS3 that was routine in AS2: unloading (if something’s already there) something from a movie clip then LOADING something in the same clip, all with…

---

## [Flash and publishing in OAS RealMedia 247](https://forum.kirupa.com/t/flash-and-publishing-in-oas-realmedia-247/320702)

<div class="topic-metadata">

**Author:** [@ChadW](https://forum.kirupa.com/u/ChadW)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 9:39pm UTC](https://forum.kirupa.com/t/flash-and-publishing-in-oas-realmedia-247/320702 "2011-03-30T21:39:28Z")

</div>

I have video streaming into a Flash banner file via a url. It previews in Flash fine with the video functioning. When I upload and make a link in Dreamweaver the video is missing. Also when I publish in OAS RealMedia 247…

---

## [Trace an Array from an element](https://forum.kirupa.com/t/trace-an-array-from-an-element/320700)

<div class="topic-metadata">

**Author:** [@nephi\_05](https://forum.kirupa.com/u/nephi_05)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 8:37pm UTC](https://forum.kirupa.com/t/trace-an-array-from-an-element/320700 "2011-03-30T20:37:46Z")

</div>

I'm making a test. There are multiple questions on the screen at once. What I'm going to do is have each answer choice for a question in an array for each question and each answer choice will have a mouse click event lis…

---

## [Need help getting timer to create a pause](https://forum.kirupa.com/t/need-help-getting-timer-to-create-a-pause/320699)

<div class="topic-metadata">

**Author:** [@Mosk](https://forum.kirupa.com/u/Mosk)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 8:30pm UTC](https://forum.kirupa.com/t/need-help-getting-timer-to-create-a-pause/320699 "2011-03-30T20:30:49Z")

</div>

I know you can trigger a function by adding through a timer like this i ActionScript3: myTimer.addEventListener(TimerEvent.TIMER\_COMPLETE, timerDone); But what I'm trying to do is just have a timer create a delay i…

---

## [Liquid animation](https://forum.kirupa.com/t/liquid-animation/320697)

<div class="topic-metadata">

**Author:** [@Luigi\_Vercotti](https://forum.kirupa.com/u/Luigi_Vercotti)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 6:58pm UTC](https://forum.kirupa.com/t/liquid-animation/320697 "2011-03-30T18:58:00Z")

</div>

Hello Do you guy know any tutorial about liquid drop or splash... animation? something similar to this ....link I want to make some simple splash animation but I don't have an idea how to do it. Any advices are welcome \[…

---

## [Pausing a movieclip and jumping to a framelabel in the parent swf](https://forum.kirupa.com/t/pausing-a-movieclip-and-jumping-to-a-framelabel-in-the-parent-swf/320696)

<div class="topic-metadata">

**Author:** [@handemmet](https://forum.kirupa.com/u/handemmet)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 4:46pm UTC](https://forum.kirupa.com/t/pausing-a-movieclip-and-jumping-to-a-framelabel-in-the-parent-swf/320696 "2011-03-30T16:46:55Z")

</div>

\[FONT=Calibri\]Hi\[/FONT\] \[FONT=Calibri\] \[/FONT\] \[FONT=Calibri\]I need a little help with the code below. This is the predicament I’m in.\[/FONT\] \[FONT=Calibri\] \[/FONT\] \[FONT=Calibri\]I have 3 files:\[/FONT…

---

## [Text drop down menu](https://forum.kirupa.com/t/text-drop-down-menu/320693)

<div class="topic-metadata">

**Author:** [@bhm123](https://forum.kirupa.com/u/bhm123)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 3:36pm UTC](https://forum.kirupa.com/t/text-drop-down-menu/320693 "2011-03-30T15:36:43Z")

</div>

Hello, I am trying to make a drop down menu for my website navigation. Right now my navigation is just text and I want to have drop down on only a few links. I only want to have text no shapes as buttons just text. Is …

---

## [HELP! Slider values](https://forum.kirupa.com/t/help-slider-values/320692)

<div class="topic-metadata">

**Author:** [@mt24](https://forum.kirupa.com/u/mt24)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 3:35pm UTC](https://forum.kirupa.com/t/help-slider-values/320692 "2011-03-30T15:35:06Z")

</div>

Hello, Thanks for all the help from all members of this forum. I have gotten my sliders to work. Everything seems to function. Except for one thing that we just noticed. We have several sliders. The RESET button…

---

## [FREE Email Form - PHP](https://forum.kirupa.com/t/free-email-form-php/320691)

<div class="topic-metadata">

**Author:** [@BUroKHUli](https://forum.kirupa.com/u/BUroKHUli)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 2:25pm UTC](https://forum.kirupa.com/t/free-email-form-php/320691 "2011-03-30T14:25:56Z")

</div>

Hi guys, I've only been practicing PHP for a week now but I was searching for email forms that I can use for my personal website and found this one. The thing I like about this code is it's VALIDATION. But I think some…

---

## [onPress inside OnLoadInit doesn't work](https://forum.kirupa.com/t/onpress-inside-onloadinit-doesnt-work/320690)

<div class="topic-metadata">

**Author:** [@Sanla327](https://forum.kirupa.com/u/Sanla327)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 2:14pm UTC](https://forum.kirupa.com/t/onpress-inside-onloadinit-doesnt-work/320690 "2011-03-30T14:14:58Z")

</div>

Hi, I try to use onPress function inside an onLoadInit function but nothing will be traced. I can see my hand cursor over my icons though. I also tried with onLoadComplete, but no change... Here is my code //Crea…

---

## [IE javascript allowTransparency iframe issue](https://forum.kirupa.com/t/ie-javascript-allowtransparency-iframe-issue/320689)

<div class="topic-metadata">

**Author:** [@kaykills](https://forum.kirupa.com/u/kaykills)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 2:00pm UTC](https://forum.kirupa.com/t/ie-javascript-allowtransparency-iframe-issue/320689 "2011-03-30T14:00:01Z")

</div>

Hi, I suppose this issue is a combination of javascript and css. I know it's been well documented all over the place about the need to allowTransparency on the iframe before IE will recognize a background:transparent…

---

## [Problem with channel.stop](https://forum.kirupa.com/t/problem-with-channel-stop/320688)

<div class="topic-metadata">

**Author:** [@thanulee](https://forum.kirupa.com/u/thanulee)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 1:55pm UTC](https://forum.kirupa.com/t/problem-with-channel-stop/320688 "2011-03-30T13:55:11Z")

</div>

Hi, when i do channel.stop sound doesnt stop instead fades down and keeps playing at lower volume. What goes possibly wrong? Here is the code: \*\*var sonido:Sound; var canal:SoundChannel; var peticion:URLRequest …

---

## [Need your help: TypeError: Error #1009:](https://forum.kirupa.com/t/need-your-help-typeerror-error-1009/320687)

<div class="topic-metadata">

**Author:** [@kmarnob](https://forum.kirupa.com/u/kmarnob)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 1:37pm UTC](https://forum.kirupa.com/t/need-your-help-typeerror-error-1009/320687 "2011-03-30T13:37:21Z")

</div>

Hi, When i am trying to load a flash movie (XML photo gallery), I am getting this error "TypeError: Error #1009: Cannot access a property or method of a null object reference. at Sample$iinit()" Could you help me solv…

---

## [XML Load issue](https://forum.kirupa.com/t/xml-load-issue/320685)

<div class="topic-metadata">

**Author:** [@basscake](https://forum.kirupa.com/u/basscake)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 10:48am UTC](https://forum.kirupa.com/t/xml-load-issue/320685 "2011-03-30T10:48:04Z")

</div>

Hi, My first post so let's hope it doesn't make me look too stupid! I'm building a flash project that requires multiple objects to load their own data as xml. So for example i have two classes, one called 'view' and on…

---

## [Attached mc doesn't work](https://forum.kirupa.com/t/attached-mc-doesnt-work/320682)

<div class="topic-metadata">

**Author:** [@12abhi12](https://forum.kirupa.com/u/12abhi12)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 7:55am UTC](https://forum.kirupa.com/t/attached-mc-doesnt-work/320682 "2011-03-30T07:55:46Z")

</div>

I attached an mc to the main timeline using the code root.attachMovie(loader,loader,depth + 5,{x:(Stage.width / 2), \_y:(Stage.height / 2)}); where loader is a variable which contains the name of the movie. The mc is suc…

---

## [Random numbers with non repeated values](https://forum.kirupa.com/t/random-numbers-with-non-repeated-values/320681)

<div class="topic-metadata">

**Author:** [@ksach](https://forum.kirupa.com/u/ksach)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 6:54am UTC](https://forum.kirupa.com/t/random-numbers-with-non-repeated-values/320681 "2011-03-30T06:54:51Z")

</div>

Hi I want to generate random numbers with non repeated values. how i can do? I used random function as following : \[COLOR=#008000\] \[COLOR=#008000\]Random rnd = new Random();\[/COLOR\] \[/COLOR\] \[COLOR=#008000\] \[CO…

---

## [How can I load .swf movie in .as3?](https://forum.kirupa.com/t/how-can-i-load-swf-movie-in-as3/320678)

<div class="topic-metadata">

**Author:** [@kmarnob](https://forum.kirupa.com/u/kmarnob)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 3:40am UTC](https://forum.kirupa.com/t/how-can-i-load-swf-movie-in-as3/320678 "2011-03-30T03:40:25Z")

</div>

Hi, I have a flash movie. It's basically a homepage of a web site. I need to load a .swf(photo gallery) file in a porticular area. Could you help me please?\[/

---

## [Accurate piano player](https://forum.kirupa.com/t/accurate-piano-player/320677)

<div class="topic-metadata">

**Author:** [@blackcoma](https://forum.kirupa.com/u/blackcoma)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 3:36am UTC](https://forum.kirupa.com/t/accurate-piano-player/320677 "2011-03-30T03:36:35Z")

</div>

Hi, I've created a piano in Flash which loads an XML file which is based on a MIDI file. I have MP3 files which represent the sounds of each key. And according to the timing in the XML, the player plays the MP3 files. …

---

## [How can load a .sw file?](https://forum.kirupa.com/t/how-can-load-a-sw-file/320673)

<div class="topic-metadata">

**Author:** [@kmarnob](https://forum.kirupa.com/u/kmarnob)\
**Replies:** 0\
**Last updated:** [March 30, 2011, 1:53am UTC](https://forum.kirupa.com/t/how-can-load-a-sw-file/320673 "2011-03-30T01:53:42Z")

</div>

Hi, I have a flash movie. It's basically a homepage of a web site. I need to load a .swf(photo gallery) file in a porticular area. Could you help me please?

---

## [TypeError: Error #1006: charAt is not a function.(PLEASE HELP)](https://forum.kirupa.com/t/typeerror-error-1006-charat-is-not-a-function-please-help/320671)

<div class="topic-metadata">

**Author:** [@XMAN93](https://forum.kirupa.com/u/XMAN93)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 11:23pm UTC](https://forum.kirupa.com/t/typeerror-error-1006-charat-is-not-a-function-please-help/320671 "2011-03-29T23:23:35Z")

</div>

Ok I'm making a hang man app in AS3 and when I try to run or debug it I get this error. TypeError: Error #1006: charAt is not a function. at Hangman\_fla::MainTimeline/loadingText()\[Hangman\_fla.MainTimeline::frame1:93\] …

---

## [Need help on mouse over](https://forum.kirupa.com/t/need-help-on-mouse-over/320668)

<div class="topic-metadata">

**Author:** [@jmgek](https://forum.kirupa.com/u/jmgek)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 9:51pm UTC](https://forum.kirupa.com/t/need-help-on-mouse-over/320668 "2011-03-29T21:51:11Z")

</div>

I have been looking everywhere I cannot find anything on it just because I think either I am searching the wrong words or its so obscure I cannot find it. But Anyways I need help. I took a ton of pictures to make a 360 …

---

## [$(document).ready(function() doesn't work after link](https://forum.kirupa.com/t/document-ready-function-doesnt-work-after-link/320664)

<div class="topic-metadata">

**Author:** [@breravin](https://forum.kirupa.com/u/breravin)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 5:38pm UTC](https://forum.kirupa.com/t/document-ready-function-doesnt-work-after-link/320664 "2011-03-29T17:38:44Z")

</div>

Hi Guys, I'm at my wit's ends trying to figure this out. I'm just too new at this. I've noticed that any scripts I run after $(document).ready(function() do not work after certain links. On my site, if you use t…

---

## [Funny looking TextField.htmlText using css](https://forum.kirupa.com/t/funny-looking-textfield-htmltext-using-css/320663)

<div class="topic-metadata">

**Author:** [@zanemx](https://forum.kirupa.com/u/zanemx)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 5:22pm UTC](https://forum.kirupa.com/t/funny-looking-textfield-htmltext-using-css/320663 "2011-03-29T17:22:55Z")

</div>

Hey guys I'm having an issue with some htmltext in as3. It's rendering with some odd characters. It just started happening out of the blue and I'm stumped. This also happens when I'm not using a style sheet so the style …

---

## [Right Click ContextMenu trouble](https://forum.kirupa.com/t/right-click-contextmenu-trouble/320661)

<div class="topic-metadata">

**Author:** [@RichGags](https://forum.kirupa.com/u/RichGags)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 4:53pm UTC](https://forum.kirupa.com/t/right-click-contextmenu-trouble/320661 "2011-03-29T16:53:42Z")

</div>

I would like to add a custom right click menu to my site in a class. I have created a rightClick.as with .. package { import flash.display.Sprite; import flash.ui.ContextMenu; import flash.ui.ContextMenuI…

---

## [Please Help! AS3 Syntax](https://forum.kirupa.com/t/please-help-as3-syntax/320660)

<div class="topic-metadata">

**Author:** [@Azeez\_Abubakr](https://forum.kirupa.com/u/Azeez_Abubakr)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 4:40pm UTC](https://forum.kirupa.com/t/please-help-as3-syntax/320660 "2011-03-29T16:40:13Z")

</div>

Hi This is regarding the "Sliding Menu" (http://www.kirupa.com/developer/flash8/slidingMenu.htm) tutorial on this site... its in AS2. I tried translating it to AS3 as much as possible but this thing called 'maskMovie' …

---

## [Getting a variable from ASP to AS3](https://forum.kirupa.com/t/getting-a-variable-from-asp-to-as3/320659)

<div class="topic-metadata">

**Author:** [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 4:29pm UTC](https://forum.kirupa.com/t/getting-a-variable-from-asp-to-as3/320659 "2011-03-29T16:29:47Z")

</div>

I can't use PHP for a few reasons, so I'm trying to get a variable FROM an ASP page... I have had success at giving a variable TO an ASP page but I can't get the reverse to work. Here's my ASP code: \<html\> \<body\> \<…

---

## [Animating a slot machine](https://forum.kirupa.com/t/animating-a-slot-machine/320656)

<div class="topic-metadata">

**Author:** [@gangstareef](https://forum.kirupa.com/u/gangstareef)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 2:48pm UTC](https://forum.kirupa.com/t/animating-a-slot-machine/320656 "2011-03-29T14:48:08Z")

</div>

I need to make a 10 sec animation of a slot machine. Pretty basic... fade the whole thing in with all three wheels already spinning, then stop and stop them one at a time... No need or it to be like one of those intera…

---

## [Help with AS3 script shooting bullet](https://forum.kirupa.com/t/help-with-as3-script-shooting-bullet/320653)

<div class="topic-metadata">

**Author:** [@conquistadores](https://forum.kirupa.com/u/conquistadores)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 1:14pm UTC](https://forum.kirupa.com/t/help-with-as3-script-shooting-bullet/320653 "2011-03-29T13:14:46Z")

</div>

Hey I hope anyone can help me with my problem here. Been stuck for a week now. I am trying to create a bullet platform shooting game like mario. But for some reason the bullet doesn't wants to be removed from the scene…

---

## [SELECT on load, remember selection](https://forum.kirupa.com/t/select-on-load-remember-selection/320651)

<div class="topic-metadata">

**Author:** [@Onoref](https://forum.kirupa.com/u/Onoref)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 12:44pm UTC](https://forum.kirupa.com/t/select-on-load-remember-selection/320651 "2011-03-29T12:44:38Z")

</div>

dev peeps, I'm making a website in which there's a page with 2 dropdown lists (SELECTs). The first one selects a group, the second one then appears and allows you to select a specific task for that group. I am now wo…

---

## [Target a movieclip inside an external SWF](https://forum.kirupa.com/t/target-a-movieclip-inside-an-external-swf/320650)

<div class="topic-metadata">

**Author:** [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 12:37pm UTC](https://forum.kirupa.com/t/target-a-movieclip-inside-an-external-swf/320650 "2011-03-29T12:37:01Z")

</div>

Hi, I've a main movie with a container movieclip to load an external swf file. That's working fine but I want to control the movieclips of externally loaded movie. I tried the below method but not work out. script…

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

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