# programming

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

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

**Page:** 387

---

## [Adding bounds to custom drag with ease script](https://forum.kirupa.com/t/adding-bounds-to-custom-drag-with-ease-script/315748)

<div class="topic-metadata">

**Author:** [@J\_Mo](https://forum.kirupa.com/u/J_Mo)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 10:49am UTC](https://forum.kirupa.com/t/adding-bounds-to-custom-drag-with-ease-script/315748 "2010-11-03T10:49:57Z")

</div>

Hi y'all! I have adapted some script that enables some easing on drag of an mc, My issue is how do I add bounds the the drag. I have added two variables (leftX and rightX) but I don't know what to do from here...pathet…

---

## [Need help with Flash Dock Menu](https://forum.kirupa.com/t/need-help-with-flash-dock-menu/315746)

<div class="topic-metadata">

**Author:** [@spindrift](https://forum.kirupa.com/u/spindrift)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 9:16am UTC](https://forum.kirupa.com/t/need-help-with-flash-dock-menu/315746 "2010-11-03T09:16:50Z")

</div>

Hi guys, I'm trying to build a dock menu componant for my website in CS3. I've seen loads of them out there but they all seem to only stop scrolling when the mouse is moved in to the center of the movie - I want to bui…

---

## [Need help on loading script :)](https://forum.kirupa.com/t/need-help-on-loading-script/315745)

<div class="topic-metadata">

**Author:** [@moogen](https://forum.kirupa.com/u/moogen)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 9:13am UTC](https://forum.kirupa.com/t/need-help-on-loading-script/315745 "2010-11-03T09:13:09Z")

</div>

stop(); \_level0.isCalled = false; //\_root.total\_pics = 5; \_root.ctr = 1; \_level0.loadImages = function() { if(ctr &gt; \_level0.totalPics){ \_root.gotoAndStop(3); } else { dummy\_loader\_mc.\_alpha = 0; //clip = "../../u…

---

## [FLV keeps playing after stop called](https://forum.kirupa.com/t/flv-keeps-playing-after-stop-called/315742)

<div class="topic-metadata">

**Author:** [@whiteart](https://forum.kirupa.com/u/whiteart)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 7:40am UTC](https://forum.kirupa.com/t/flv-keeps-playing-after-stop-called/315742 "2010-11-03T07:40:52Z")

</div>

I have four FLV's (chapters) on individual frames. When you click on a chapter button, you skip to the selected movie, and it stops the currently playing movie. currentVideo.stop(); This works most of the time. When…

---

## [C parameter doubt](https://forum.kirupa.com/t/c-parameter-doubt/315741)

<div class="topic-metadata">

**Author:** [@kadaj](https://forum.kirupa.com/u/kadaj)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 7:35am UTC](https://forum.kirupa.com/t/c-parameter-doubt/315741 "2010-11-03T07:35:46Z")

</div>

square(void\* noName, int arg) { // code... } void\* is a null pointer isn't it? Why give the argument a null pointer? With the about code calling square(5) is valid. So what other reason is there to give it 2 a…

---

## [PHP form and writing to XML](https://forum.kirupa.com/t/php-form-and-writing-to-xml/315740)

<div class="topic-metadata">

**Author:** [@Kappa](https://forum.kirupa.com/u/Kappa)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 6:28am UTC](https://forum.kirupa.com/t/php-form-and-writing-to-xml/315740 "2010-11-03T06:28:07Z")

</div>

Currently working on a website for a children's hospital charity, pro bono work so I have no budget to work with and am unable to outsource a proper developer to help me. Now I'm in a bit of a stuck spot, I've already wo…

---

## [getChildAt (strict/normal) problem](https://forum.kirupa.com/t/getchildat-strict-normal-problem/315739)

<div class="topic-metadata">

**Author:** [@vfistri1](https://forum.kirupa.com/u/vfistri1)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 6:25am UTC](https://forum.kirupa.com/t/getchildat-strict-normal-problem/315739 "2010-11-03T06:25:20Z")

</div>

for example i have a public class Title with publicfunction destroy(); in it than in my main class i create 1 sprite and some Titles than i sprite.addChild(title) for every title i have created which works ok. i have tri…

---

## [How to close a browser window with HTML code?](https://forum.kirupa.com/t/how-to-close-a-browser-window-with-html-code/315738)

<div class="topic-metadata">

**Author:** [@sophielucky](https://forum.kirupa.com/u/sophielucky)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 5:51am UTC](https://forum.kirupa.com/t/how-to-close-a-browser-window-with-html-code/315738 "2010-11-03T05:51:50Z")

</div>

Use the below code example. &lt;input type="button" value="Close this window" onclick="self.close()"&gt;

---

## [Help with If statement](https://forum.kirupa.com/t/help-with-if-statement/315737)

<div class="topic-metadata">

**Author:** [@matto333](https://forum.kirupa.com/u/matto333)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 5:51am UTC](https://forum.kirupa.com/t/help-with-if-statement/315737 "2010-11-03T05:51:27Z")

</div>

Hi, I am a complete noob at flash, infact this is my first time ever using it. I am making a game for a school project and need some help with it. What I need to do is set it so when I kill an enemy it sets that it is…

---

## [How to add an Flash animation into Webstudio](https://forum.kirupa.com/t/how-to-add-an-flash-animation-into-webstudio/315734)

<div class="topic-metadata">

**Author:** [@sophielucky](https://forum.kirupa.com/u/sophielucky)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 5:33am UTC](https://forum.kirupa.com/t/how-to-add-an-flash-animation-into-webstudio/315734 "2010-11-03T05:33:01Z")

</div>

\[FONT=Verdana,Arial,Helevetica\] \[COLOR=#ff6600\] \[COLOR=Black\]How to add an Flash animation into Webstudio? Anyone helps? Thanks in advance.\[/COLOR\] \[/COLOR\] \[/FONT\]

---

## [How to pass variable to main swf to his child](https://forum.kirupa.com/t/how-to-pass-variable-to-main-swf-to-his-child/315732)

<div class="topic-metadata">

**Author:** [@xelaxam](https://forum.kirupa.com/u/xelaxam)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 4:13am UTC](https://forum.kirupa.com/t/how-to-pass-variable-to-main-swf-to-his-child/315732 "2010-11-03T04:13:27Z")

</div>

I want to do something simple. I'll have a xml with thumnail and XMLlink. When we click on a thumbnail (which each thumbnail has his own XMLlink variable) in the mains swf: it load a new swf. This new swf take …

---

## [Import not working](https://forum.kirupa.com/t/import-not-working/315730)

<div class="topic-metadata">

**Author:** [@zerdang](https://forum.kirupa.com/u/zerdang)\
**Replies:** 0\
**Last updated:** [November 3, 2010, 2:15am UTC](https://forum.kirupa.com/t/import-not-working/315730 "2010-11-03T02:15:54Z")

</div>

I import a class(this is in a .as file for flash CS5.) I define it and clearly I later instantiate it \[CENTER\] import com.greensock.TweenMax; public class Turret extends MovieClip { ..... public v…

---

## [PHP and Flash integration](https://forum.kirupa.com/t/php-and-flash-integration/315728)

<div class="topic-metadata">

**Author:** [@Otto\_man](https://forum.kirupa.com/u/Otto_man)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 11:54pm UTC](https://forum.kirupa.com/t/php-and-flash-integration/315728 "2010-11-02T23:54:44Z")

</div>

Hello everyone... I'm trying to connect flash and php script using sessions but i'm stuck. Here it is. I have file1.php and file2.php file1.php sets session and needed parameters, then calls flash. At some point fl…

---

## [attachMovie randomly WITHIN a specific shape?](https://forum.kirupa.com/t/attachmovie-randomly-within-a-specific-shape/315725)

<div class="topic-metadata">

**Author:** [@Kappa](https://forum.kirupa.com/u/Kappa)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 11:06pm UTC](https://forum.kirupa.com/t/attachmovie-randomly-within-a-specific-shape/315725 "2010-11-02T23:06:10Z")

</div>

I'm currently using a script I picked up from these forums to attach movieclips from the library based on how many child's there are in an XML document. I was wondering if it was possible though, to have each movieclip…

---

## [Load/unload external swf with fadein / fadeout](https://forum.kirupa.com/t/load-unload-external-swf-with-fadein-fadeout/315723)

<div class="topic-metadata">

**Author:** [@tsunami5150](https://forum.kirupa.com/u/tsunami5150)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 9:50pm UTC](https://forum.kirupa.com/t/load-unload-external-swf-with-fadein-fadeout/315723 "2010-11-02T21:50:38Z")

</div>

Hello everyone, I have a very simple main.swf with buttons in a mc. once a button is clicked it loads and external swf file into x y pos. How can I set it up so when the external swf loads with a fade in and the o…

---

## [Mail to question/problem](https://forum.kirupa.com/t/mail-to-question-problem/315721)

<div class="topic-metadata">

**Author:** [@enjoibp3](https://forum.kirupa.com/u/enjoibp3)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 8:54pm UTC](https://forum.kirupa.com/t/mail-to-question-problem/315721 "2010-11-02T20:54:25Z")

</div>

I'm working on my companys website and I am trying to make a link from flash open the default mail program so they can send us an email. All of that works fine and dandy.... on PCs. While using a mac I was not able to ge…

---

## [PHP to load Flash](https://forum.kirupa.com/t/php-to-load-flash/315717)

<div class="topic-metadata">

**Author:** [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 8:07pm UTC](https://forum.kirupa.com/t/php-to-load-flash/315717 "2010-11-02T20:07:05Z")

</div>

Hello, I am new to PHP, and was hoping either for some tut directions or an example script to do the following: Have some swf paths stored in a php array, which load up random swf's into a html page, but not repeatin…

---

## [Loader for site](https://forum.kirupa.com/t/loader-for-site/315716)

<div class="topic-metadata">

**Author:** [@tbhD41](https://forum.kirupa.com/u/tbhD41)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 7:54pm UTC](https://forum.kirupa.com/t/loader-for-site/315716 "2010-11-02T19:54:01Z")

</div>

Hey Im new to AS3 and have made this site: d41.dk My problem is I will make a loader for this site, but it doesn't work. Message: TypeError: Error #1009: Cannot access a property or method of a null object referenc…

---

## [Help creating a rotating nav menu](https://forum.kirupa.com/t/help-creating-a-rotating-nav-menu/315715)

<div class="topic-metadata">

**Author:** [@moebe97](https://forum.kirupa.com/u/moebe97)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 6:21pm UTC](https://forum.kirupa.com/t/help-creating-a-rotating-nav-menu/315715 "2010-11-02T18:21:54Z")

</div>

Hey there! I am working on a project and am trying to create a menu that upon clicking a certain point rotates to a frame and then plays a clip. Something similar to this navigation would be great: see navigation at bo…

---

## [Checkbox not showing as checked when selected=true](https://forum.kirupa.com/t/checkbox-not-showing-as-checked-when-selected-true/315712)

<div class="topic-metadata">

**Author:** [@Gilgemesh](https://forum.kirupa.com/u/Gilgemesh)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 5:31pm UTC](https://forum.kirupa.com/t/checkbox-not-showing-as-checked-when-selected-true/315712 "2010-11-02T17:31:33Z")

</div>

I have a preferences option at the beginning of my app. It calls in some values from an XML file and passes them to a static var and to myCheckbox.selected which should display a checked box if the value is true. The va…

---

## [AS3 / Captivate 5 skin](https://forum.kirupa.com/t/as3-captivate-5-skin/315711)

<div class="topic-metadata">

**Author:** [@red2034](https://forum.kirupa.com/u/red2034)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 5:20pm UTC](https://forum.kirupa.com/t/as3-captivate-5-skin/315711 "2010-11-02T17:20:02Z")

</div>

I am trying to re-purpose the CC btn in a Captivate 5 skin: SO I have updated the btn image and added the btn code Actionscript Code: \[LEFT\]pbcCC\_mc.\[COLOR=#006600\]addEventListener\[/COLOR\]\[COLOR=#66cc66\](\[/COLOR\]Mous…

---

## [Check Upload file type (multiple)](https://forum.kirupa.com/t/check-upload-file-type-multiple/315707)

<div class="topic-metadata">

**Author:** [@shekargoud](https://forum.kirupa.com/u/shekargoud)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 2:32pm UTC](https://forum.kirupa.com/t/check-upload-file-type-multiple/315707 "2010-11-02T14:32:14Z")

</div>

I would like to upload multiple files(image) to folder and I am storing image names to database image and image2 like that give any idea. How can I check if a file extension and mime type are in an array this is the cod…

---

## [AS3 beat em up, need help with attacking!](https://forum.kirupa.com/t/as3-beat-em-up-need-help-with-attacking/315706)

<div class="topic-metadata">

**Author:** [@woodhall2k](https://forum.kirupa.com/u/woodhall2k)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 12:42pm UTC](https://forum.kirupa.com/t/as3-beat-em-up-need-help-with-attacking/315706 "2010-11-02T12:42:18Z")

</div>

Ok, hello my name is matt, and im currently making an "AS3 beat em up" ala streets of rage or double dragon. Currently i have my character moving and a few animations done and i am trying to figure out how to make att…

---

## [RemoveEventListener, Base Class](https://forum.kirupa.com/t/removeeventlistener-base-class/315705)

<div class="topic-metadata">

**Author:** [@denispage](https://forum.kirupa.com/u/denispage)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 11:46am UTC](https://forum.kirupa.com/t/removeeventlistener-base-class/315705 "2010-11-02T11:46:02Z")

</div>

I have a class "BaseMenu", which, needless to say, is a base class to menus that have eventlisteners. When I trigger the function to remove the menu itself, I don't know how to remove these eventlisteners, since their …

---

## [\[Flash8\]Help needed! Naming an Instance '1'](https://forum.kirupa.com/t/flash8-help-needed-naming-an-instance-1/315704)

<div class="topic-metadata">

**Author:** [@tommybanana](https://forum.kirupa.com/u/tommybanana)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 11:40am UTC](https://forum.kirupa.com/t/flash8-help-needed-naming-an-instance-1/315704 "2010-11-02T11:40:54Z")

</div>

Hi in one of the (fantastic) kirupa tutorials on making random colour, the example code provided works because some squares have instance names as numbers 1,2,3,4,5 etc. I can open the source file and the instances sho…

---

## [OCX Error](https://forum.kirupa.com/t/ocx-error/315702)

<div class="topic-metadata">

**Author:** [@glisando](https://forum.kirupa.com/u/glisando)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 9:39am UTC](https://forum.kirupa.com/t/ocx-error/315702 "2010-11-02T09:39:00Z")

</div>

Hi Guys, I was testing out some applications written in AS3 and it worked fine untill I encountered one app when I got the Flash10i.ocx error message. I uninstalled and re-installed the flash player and this time when …

---

## [Urgent need help](https://forum.kirupa.com/t/urgent-need-help/315701)

<div class="topic-metadata">

**Author:** [@moogen](https://forum.kirupa.com/u/moogen)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 9:36am UTC](https://forum.kirupa.com/t/urgent-need-help/315701 "2010-11-02T09:36:11Z")

</div>

Hi everyone! Im totally new here and i have a really bad problem Im working on a banner using cs3 as2 and im using xml to upload the pics i need to upload 11 pics using xml but when i do its stuck at showing 4 pics. when…

---

## [Please Help me on this simple codes](https://forum.kirupa.com/t/please-help-me-on-this-simple-codes/315700)

<div class="topic-metadata">

**Author:** [@LoveTheresa](https://forum.kirupa.com/u/LoveTheresa)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 8:55am UTC](https://forum.kirupa.com/t/please-help-me-on-this-simple-codes/315700 "2010-11-02T08:55:04Z")

</div>

I just started to learn AS3, and I'm trying to do some simple function such as the drag and drop, below is my code: box\_mc.addEventListener (MouseEvent.MOUSE\_DOWN, drag); box\_mc.addEventListener (MouseEvent.MOUSE\_UP,…

---

## [Bug in Flash Player 10?](https://forum.kirupa.com/t/bug-in-flash-player-10/315699)

<div class="topic-metadata">

**Author:** [@cortezcreations](https://forum.kirupa.com/u/cortezcreations)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 8:43am UTC](https://forum.kirupa.com/t/bug-in-flash-player-10/315699 "2010-11-02T08:43:43Z")

</div>

Hello everyone. Not sure if I'm posting in the right spot but I'm having a funny issue with an all flash based site. Few of the specs: SWFADDRESS SFWOBJECT swfmacmousewheel.js AS2 Individual pages (swf files) are loa…

---

## [How is this bitmap effect done?](https://forum.kirupa.com/t/how-is-this-bitmap-effect-done/315694)

<div class="topic-metadata">

**Author:** [@gooselips](https://forum.kirupa.com/u/gooselips)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 7:22am UTC](https://forum.kirupa.com/t/how-is-this-bitmap-effect-done/315694 "2010-11-02T07:22:54Z")

</div>

http://www.shoulder.com.br/ If you select any of the thumbs from the menu on the bottom of the page (once the site is loaded), you'll see the image splits into two as a transition. Anyone have any pointers on how to…

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

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