# programming

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

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

**Page:** 203

---

## [Flash professional CS 5.5 actionscript 2.0 platform game help, can't jump over rock](https://forum.kirupa.com/t/flash-professional-cs-5-5-actionscript-2-0-platform-game-help-cant-jump-over-rock/326568)

<div class="topic-metadata">

**Author:** [@arch01](https://forum.kirupa.com/u/arch01)\
**Replies:** 0\
**Last updated:** [December 25, 2011, 7:44am UTC](https://forum.kirupa.com/t/flash-professional-cs-5-5-actionscript-2-0-platform-game-help-cant-jump-over-rock/326568 "2011-12-25T07:44:19Z")

</div>

Sorry, need some help again! I have took a video of the problem \[URL="http://www.youtube.com/watch?v=Hye39hn4KgE"\]http://www.youtube.com/watch?v=Hye39hn4KgE \[COLOR=#000000\] \[/COLOR\]I want to make my character jump ov…

---

## [Div Sticks to top of browser on scroll?](https://forum.kirupa.com/t/div-sticks-to-top-of-browser-on-scroll/326565)

<div class="topic-metadata">

**Author:** [@woodman650](https://forum.kirupa.com/u/woodman650)\
**Replies:** 0\
**Last updated:** [December 24, 2011, 3:46pm UTC](https://forum.kirupa.com/t/div-sticks-to-top-of-browser-on-scroll/326565 "2011-12-24T15:46:23Z")

</div>

Hi all (Happy Holidays!), I'm interested in making a div element "stop" along the top of a browser window when a user scrolls down on the page and pop back into it's original placement when they scroll back up... pleas…

---

## [Can I use jpg as mask?](https://forum.kirupa.com/t/can-i-use-jpg-as-mask/326563)

<div class="topic-metadata">

**Author:** [@zeeto](https://forum.kirupa.com/u/zeeto)\
**Replies:** 0\
**Last updated:** [December 24, 2011, 2:10pm UTC](https://forum.kirupa.com/t/can-i-use-jpg-as-mask/326563 "2011-12-24T14:10:44Z")

</div>

Hi, I wanted to put on the stage a png file with some transparent areas, unfortunately it weight too much. So instead I thought I'll create a shape object and use jpeg image as it's mask... This is my code: packag…

---

## [Flash5.5 AS 2.0 : need help, character flip over when changing directions](https://forum.kirupa.com/t/flash5-5-as-2-0-need-help-character-flip-over-when-changing-directions/326562)

<div class="topic-metadata">

**Author:** [@system](https://forum.kirupa.com/u/system)\
**Replies:** 0\
**Last updated:** [December 24, 2011, 11:39am UTC](https://forum.kirupa.com/t/flash5-5-as-2-0-need-help-character-flip-over-when-changing-directions/326562 "2011-12-24T11:39:48Z")

</div>

Hi I am a day 2 flash user and I have been trying to make a game, but for starters i want to make my character be able to move using arrow keys that includes showing the legs movement instead of a fixed image drifting ac…

---

## [CSS IE8 Rage: Font-Face and Rounded Corners Edition!](https://forum.kirupa.com/t/css-ie8-rage-font-face-and-rounded-corners-edition/326560)

<div class="topic-metadata">

**Author:** [@RussianBeer](https://forum.kirupa.com/u/RussianBeer)\
**Replies:** 0\
**Last updated:** [December 24, 2011, 8:19am UTC](https://forum.kirupa.com/t/css-ie8-rage-font-face-and-rounded-corners-edition/326560 "2011-12-24T08:19:36Z")

</div>

Hello Forum! I need to make sure I'm not doing anything wrong: I think my CSS is IE8 Valid, but nothing works! Fonts and Rounded corners specifically are completely different! Website: http://s391442803.onlinehome.us/ …

---

## [Buttons not working as expected](https://forum.kirupa.com/t/buttons-not-working-as-expected/326559)

<div class="topic-metadata">

**Author:** [@beagle](https://forum.kirupa.com/u/beagle)\
**Replies:** 0\
**Last updated:** [December 23, 2011, 5:27pm UTC](https://forum.kirupa.com/t/buttons-not-working-as-expected/326559 "2011-12-23T17:27:58Z")

</div>

Hi everyone! I've followed this tutorial and made a functional photo gallery. Now, I want to add that photo gallery on my site. I've created a flash button and assigned it this action: on (release) { \_root.con…

---

## [Providing spaces between elements - spacer not working](https://forum.kirupa.com/t/providing-spaces-between-elements-spacer-not-working/326554)

<div class="topic-metadata">

**Author:** [@nitinmukesh](https://forum.kirupa.com/u/nitinmukesh)\
**Replies:** 0\
**Last updated:** [December 23, 2011, 6:34am UTC](https://forum.kirupa.com/t/providing-spaces-between-elements-spacer-not-working/326554 "2011-12-23T06:34:20Z")

</div>

Hi, I have to create a small layout in the following order (sample\_layout.JPG) This is the xml I am loading using JQuery \<titlebar\> \<item type="image" image="assets/images/Logo.png"/\> \<item type="image" im…

---

## [Calculate mouse distance from multiple MovieClips](https://forum.kirupa.com/t/calculate-mouse-distance-from-multiple-movieclips/326551)

<div class="topic-metadata">

**Author:** [@daush](https://forum.kirupa.com/u/daush)\
**Replies:** 0\
**Last updated:** [December 22, 2011, 10:59pm UTC](https://forum.kirupa.com/t/calculate-mouse-distance-from-multiple-movieclips/326551 "2011-12-22T22:59:03Z")

</div>

Hi again! How can i calculate the mouseX distance from an MC? i'm using this: enterFrame event { var d1:Number = pi(mouseX,dist0.x); var d2:Number = pi(mouseX,dist4.x); var d3:Number = pi(mouseX,dist8.x); var d…

---

## [Foxreal DVD to Asus Transformer Prime Converter 20% off](https://forum.kirupa.com/t/foxreal-dvd-to-asus-transformer-prime-converter-20-off/326546)

<div class="topic-metadata">

**Author:** [@eastdav2](https://forum.kirupa.com/u/eastdav2)\
**Replies:** 0\
**Last updated:** [December 22, 2011, 7:38am UTC](https://forum.kirupa.com/t/foxreal-dvd-to-asus-transformer-prime-converter-20-off/326546 "2011-12-22T07:38:34Z")

</div>

Foxreal Christmas Special gifts 2011 - Asus Transformer Prime TF201 looks more like a lap-top with its powerful features of quad-core Tegra 3 processing and keyboard than a tablet. And it is surely more powerful than oth…

---

## [Best Blu-ray to Transformer Prime Ripper 20% off](https://forum.kirupa.com/t/best-blu-ray-to-transformer-prime-ripper-20-off/326545)

<div class="topic-metadata">

**Author:** [@eastdav2](https://forum.kirupa.com/u/eastdav2)\
**Replies:** 0\
**Last updated:** [December 22, 2011, 7:37am UTC](https://forum.kirupa.com/t/best-blu-ray-to-transformer-prime-ripper-20-off/326545 "2011-12-22T07:37:35Z")

</div>

Merry Christmas 2011! To celebrate Christmas, Foxreal Studio announce the biggest discount during the the holiday season. The discounted programs can help users rip/ convert/ transfer Blu-ray, DVD, AVI/ MOV/ MKV/ TIVO/ W…

---

## [Foxreal 2011 Christmas Special offer - Up to 40% off](https://forum.kirupa.com/t/foxreal-2011-christmas-special-offer-up-to-40-off/326544)

<div class="topic-metadata">

**Author:** [@eastdav2](https://forum.kirupa.com/u/eastdav2)\
**Replies:** 0\
**Last updated:** [December 22, 2011, 7:36am UTC](https://forum.kirupa.com/t/foxreal-2011-christmas-special-offer-up-to-40-off/326544 "2011-12-22T07:36:55Z")

</div>

Merry Christmas 2011! To celebrate Christmas, Foxreal Studio announce the biggest discount during the the holiday season. The discounted programs can help users rip/ convert/ transfer Blu-ray, DVD, AVI/ MOV/ MKV/ TIVO/ W…

---

## [Array Trouble](https://forum.kirupa.com/t/array-trouble/326540)

<div class="topic-metadata">

**Author:** [@Trace123](https://forum.kirupa.com/u/Trace123)\
**Replies:** 0\
**Last updated:** [December 22, 2011, 1:07am UTC](https://forum.kirupa.com/t/array-trouble/326540 "2011-12-22T01:07:21Z")

</div>

animals = \[\[dogs, cats, fish\],\[bird, lizards, snakes\]\]; dogs = \[\[dog1,dog2,dog3\]\]; cats = \[\[cat1,cat2,cat3\]\]; fish = \[\[fish1,fish2,fish3\]\]; trace(animals\[0\]\[1\]); //returns undefined How can you get an array value if …

---

## [Vertical Shooter Game on Kirupa site - code issues](https://forum.kirupa.com/t/vertical-shooter-game-on-kirupa-site-code-issues/326539)

<div class="topic-metadata">

**Author:** [@catcat31](https://forum.kirupa.com/u/catcat31)\
**Replies:** 0\
**Last updated:** [December 21, 2011, 9:03pm UTC](https://forum.kirupa.com/t/vertical-shooter-game-on-kirupa-site-code-issues/326539 "2011-12-21T21:03:43Z")

</div>

Hi, I'm trying to work through the Vertical Shooter Game within the tutorials section of this site: http://www.kirupa.com/developer/actionscript/vertical\_shooter.htm. I noticed an code error of if spriteX -= steps; (wh…

---

## [Flash movie exporting as longer in time than fps duration](https://forum.kirupa.com/t/flash-movie-exporting-as-longer-in-time-than-fps-duration/326538)

<div class="topic-metadata">

**Author:** [@KJoe](https://forum.kirupa.com/u/KJoe)\
**Replies:** 0\
**Last updated:** [December 21, 2011, 7:33pm UTC](https://forum.kirupa.com/t/flash-movie-exporting-as-longer-in-time-than-fps-duration/326538 "2011-12-21T19:33:15Z")

</div>

\[LEFT\]\[COLOR=#333333\]\[FONT=arial\]I have created an animation in Flash which is 2mins long at 25fps, so 3000 in frame length. However when I export it as either a swf or a mov it plays for 6mins! The frame rate is defin…

---

## [Flash overlapping on Facebook login](https://forum.kirupa.com/t/flash-overlapping-on-facebook-login/326536)

<div class="topic-metadata">

**Author:** [@vishal3184](https://forum.kirupa.com/u/vishal3184)\
**Replies:** 0\
**Last updated:** [December 21, 2011, 6:13pm UTC](https://forum.kirupa.com/t/flash-overlapping-on-facebook-login/326536 "2011-12-21T18:13:24Z")

</div>

Hi All, Attached is the screenshot of my \[Busines\] Facebook page for which I have used flash. This flash is integrated into Facebook page using Facebook iframe. My problem is flash is overlapping on sign-up \[Login\] …

---

## [Need a translator!](https://forum.kirupa.com/t/need-a-translator/326534)

<div class="topic-metadata">

**Author:** [@lolz666](https://forum.kirupa.com/u/lolz666)\
**Replies:** 0\
**Last updated:** [December 21, 2011, 3:27pm UTC](https://forum.kirupa.com/t/need-a-translator/326534 "2011-12-21T15:27:50Z")

</div>

I've got this code for RTS-like movement in flash, but its AS3. I only know AS2, so i would be very thankful if any of you took your time to translate this to work on a movieclip. \[COLOR=#330099\]var iswalking = false…

---

## [Circle Preloader Mask Not Working](https://forum.kirupa.com/t/circle-preloader-mask-not-working/326530)

<div class="topic-metadata">

**Author:** [@amiec](https://forum.kirupa.com/u/amiec)\
**Replies:** 0\
**Last updated:** [December 21, 2011, 10:46am UTC](https://forum.kirupa.com/t/circle-preloader-mask-not-working/326530 "2011-12-21T10:46:21Z")

</div>

So I've made a circular preloader made with some shapes and masks. Everything like this works. What I want to do now is add a movieclip of animations to the stage and make it look like this movie clip is in the progress …

---

## [How to get movieclip name from class to flash](https://forum.kirupa.com/t/how-to-get-movieclip-name-from-class-to-flash/326529)

<div class="topic-metadata">

**Author:** [@black\_pearl](https://forum.kirupa.com/u/black_pearl)\
**Replies:** 0\
**Last updated:** [December 21, 2011, 9:16am UTC](https://forum.kirupa.com/t/how-to-get-movieclip-name-from-class-to-flash/326529 "2011-12-21T09:16:47Z")

</div>

Hi, I am adding some movieclips dynamically to stage. If we click on the movieclips, they goto and stop at frame 2. The Click Event for the Movieclip is defined in the base class package { import flash.events.M…

---

## [Coupon Code Enter Get Instant Result](https://forum.kirupa.com/t/coupon-code-enter-get-instant-result/326527)

<div class="topic-metadata">

**Author:** [@Vanss472](https://forum.kirupa.com/u/Vanss472)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 10:51pm UTC](https://forum.kirupa.com/t/coupon-code-enter-get-instant-result/326527 "2011-12-20T22:51:20Z")

</div>

Hello My MySQL database will have coupon codes in it. When someone visit my website they will enter a coupon code(that is register already on my database), I want to use Ajax to give them an answer straight away if t…

---

## [AIR3 iPhone, Loading Screen?](https://forum.kirupa.com/t/air3-iphone-loading-screen/326522)

<div class="topic-metadata">

**Author:** [@rei\_flash](https://forum.kirupa.com/u/rei_flash)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 8:45pm UTC](https://forum.kirupa.com/t/air3-iphone-loading-screen/326522 "2011-12-20T20:45:36Z")

</div>

I am currently newing everything on frame one, but the app is eating too much memory... So I want to "new" instances when enter to individual scenes, but if I do that there will be a lag due to FPS drop; Is there a …

---

## [What does a xmlsocket host need?](https://forum.kirupa.com/t/what-does-a-xmlsocket-host-need/326520)

<div class="topic-metadata">

**Author:** [@aminmix](https://forum.kirupa.com/u/aminmix)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 8:13pm UTC](https://forum.kirupa.com/t/what-does-a-xmlsocket-host-need/326520 "2011-12-20T20:13:06Z")

</div>

Hello I have designed a chatroom with xmlsocket and it works fine in localhost. now i want to upload and run in the server , but i have no experience in it. Please answer my questions about setting up a server: 1- Do i n…

---

## [Registration/Rotation Point](https://forum.kirupa.com/t/registration-rotation-point/326519)

<div class="topic-metadata">

**Author:** [@jmathews](https://forum.kirupa.com/u/jmathews)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 7:59pm UTC](https://forum.kirupa.com/t/registration-rotation-point/326519 "2011-12-20T19:59:06Z")

</div>

Ok so I'm working on a project here and am having a hard time with this little part and I'm running out of ideas. So here it is.. I have a simple shape, like a triangle and I have set points that you can click on. Cl…

---

## [Need help with countdown](https://forum.kirupa.com/t/need-help-with-countdown/326518)

<div class="topic-metadata">

**Author:** [@twinny1314](https://forum.kirupa.com/u/twinny1314)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 4:11pm UTC](https://forum.kirupa.com/t/need-help-with-countdown/326518 "2011-12-20T16:11:20Z")

</div>

Hey guys, I'm a newbie to flash/actionscript and need help making a countdown. I'm using actionscript 2. This is the actionscript I've been using: \* start\_time = getTimer(); countdown = 30000; onEnterFrame = functi…

---

## [URLLoader#load() freezes application](https://forum.kirupa.com/t/urlloader-load-freezes-application/326516)

<div class="topic-metadata">

**Author:** [@bumb0x](https://forum.kirupa.com/u/bumb0x)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 3:28pm UTC](https://forum.kirupa.com/t/urlloader-load-freezes-application/326516 "2011-12-20T15:28:31Z")

</div>

Hello everyone. I'm trying to send about 1 MB of binary data to server via URLLoader. But when I call method load of this class, my application hangs for about 1-1.5 seconds, then uploading runs normally. How can I preve…

---

## [Add sprite in a Loop?](https://forum.kirupa.com/t/add-sprite-in-a-loop/326514)

<div class="topic-metadata">

**Author:** [@daush](https://forum.kirupa.com/u/daush)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 1:28pm UTC](https://forum.kirupa.com/t/add-sprite-in-a-loop/326514 "2011-12-20T13:28:22Z")

</div>

Hi there folks, how can i add sprites in a for loop? example: var my\_shape:Sprite = new Sprite(); for (var i:Number =0; i\<total;i++){ addchild(this\["my\_shape"\]+i); } so after that i can access that shape like: …

---

## [To get the value of a variable to the main timeline](https://forum.kirupa.com/t/to-get-the-value-of-a-variable-to-the-main-timeline/326512)

<div class="topic-metadata">

**Author:** [@vishnujr](https://forum.kirupa.com/u/vishnujr)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 10:14am UTC](https://forum.kirupa.com/t/to-get-the-value-of-a-variable-to-the-main-timeline/326512 "2011-12-20T10:14:55Z")

</div>

hello, I have added a movieclip from the library into a scroll panel.There is a combo box inside the movieclip,actully i have set the value of the combo box in to a variable. what i want to know is,how could i acce…

---

## [Array vs Vector issue - BitmapData lost?](https://forum.kirupa.com/t/array-vs-vector-issue-bitmapdata-lost/326511)

<div class="topic-metadata">

**Author:** [@brastas](https://forum.kirupa.com/u/brastas)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 9:04am UTC](https://forum.kirupa.com/t/array-vs-vector-issue-bitmapdata-lost/326511 "2011-12-20T09:04:03Z")

</div>

\[TABLE="class: tborder, width: 100%, align: center"\] \[TR\] \[TD="class: alt1, bgcolor: #FFFFFF"\]Hi guys, I'm trying to make a simple test for my current project and I have som problems with Vector class. I'm assigning Bitm…

---

## [Tutorial: Creating an Awesome Search Box](https://forum.kirupa.com/t/tutorial-creating-an-awesome-search-box/326510)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 7:38am UTC](https://forum.kirupa.com/t/tutorial-creating-an-awesome-search-box/326510 "2011-12-20T07:38:37Z")

</div>

\[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[FONT=Segoe UI\]Hi everyone,\[/FONT\]\[/FONT\]\[/COLOR\]\[/COLOR\] \[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[FONT=Segoe UI\]This is the happening place to discuss all things related…

---

## [Overlapping classes in main swf and child swfs](https://forum.kirupa.com/t/overlapping-classes-in-main-swf-and-child-swfs/326509)

<div class="topic-metadata">

**Author:** [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 7:29am UTC](https://forum.kirupa.com/t/overlapping-classes-in-main-swf-and-child-swfs/326509 "2011-12-20T07:29:00Z")

</div>

Hi all, I have a project which has a main swf file that is compiled with a bunch of classes. The main swf also loads in other child swf objects, created in the flash IDE, that happen to reference some of the same classes…

---

## [Problem calling data from my array. AS3](https://forum.kirupa.com/t/problem-calling-data-from-my-array-as3/326508)

<div class="topic-metadata">

**Author:** [@rustythread](https://forum.kirupa.com/u/rustythread)\
**Replies:** 0\
**Last updated:** [December 20, 2011, 6:12am UTC](https://forum.kirupa.com/t/problem-calling-data-from-my-array-as3/326508 "2011-12-20T06:12:06Z")

</div>

Hey everyone, long time user of Kirupa and first time poster \[smile\] Im having a bit of trouble using data from a csv file i import. Im teaching myself as best i can and at first i was importing xml's to create a dynam…

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

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