# programming

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

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

**Page:** 488

---

## [SecurityError: Error #2060: Security sandbox violation: (I need help)](https://forum.kirupa.com/t/securityerror-error-2060-security-sandbox-violation-i-need-help/309701)

<div class="topic-metadata">

**Author:** [@flashdaddy](https://forum.kirupa.com/u/flashdaddy)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 7:58pm UTC](https://forum.kirupa.com/t/securityerror-error-2060-security-sandbox-violation-i-need-help/309701 "2010-05-21T19:58:43Z")

</div>

Hi All, I've searched everywhere trying to figure this out. I've tried everything that i've read, but it's still not working. I have a swf file that loads another swf file, but when I compile, I can see a few traces…

---

## [Rewinding the tween class](https://forum.kirupa.com/t/rewinding-the-tween-class/309700)

<div class="topic-metadata">

**Author:** [@sherm](https://forum.kirupa.com/u/sherm)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 7:44pm UTC](https://forum.kirupa.com/t/rewinding-the-tween-class/309700 "2010-05-21T19:44:09Z")

</div>

Hi everyone, I am making a button have a tween effect (using the tween class) on MOUSE\_OVER. Then, on MOUSE\_OUT, I want the button tween back to it's original position. It works right now, but if I hover over and the…

---

## [Error using PHP Contact Form](https://forum.kirupa.com/t/error-using-php-contact-form/309695)

<div class="topic-metadata">

**Author:** [@peterc46](https://forum.kirupa.com/u/peterc46)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 5:49pm UTC](https://forum.kirupa.com/t/error-using-php-contact-form/309695 "2010-05-21T17:49:08Z")

</div>

I tested the form from this site on my GoDaddy site. I got the message "Data has been submitted to ...." ok, but that was followed by this error: Warning: mail() \[function.mail\]: SMTP server response: 451 See http://pob…

---

## [Better Way to Reference One of Many Objects](https://forum.kirupa.com/t/better-way-to-reference-one-of-many-objects/309694)

<div class="topic-metadata">

**Author:** [@Stubbs](https://forum.kirupa.com/u/Stubbs)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 5:09pm UTC](https://forum.kirupa.com/t/better-way-to-reference-one-of-many-objects/309694 "2010-05-21T17:09:12Z")

</div>

How do you guys reference one of multiple objects? Every recent project of mine winds up having a bunch of items pushed into an array, and I find out which one to manipulate like this: function myFunction():void { …

---

## [Challenge to Center Working Preloader](https://forum.kirupa.com/t/challenge-to-center-working-preloader/309691)

<div class="topic-metadata">

**Author:** [@landrvr1](https://forum.kirupa.com/u/landrvr1)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 3:18pm UTC](https://forum.kirupa.com/t/challenge-to-center-working-preloader/309691 "2010-05-21T15:18:52Z")

</div>

I'm in a bit of a pickle and can't sort my way out. I'm loading an external swf that has a preloader on Scene 1, and the main content on Scene2. While the content on Scene 2 centers nicely, the preloader content refuses …

---

## [Character movement/scrollable play area help](https://forum.kirupa.com/t/character-movement-scrollable-play-area-help/309690)

<div class="topic-metadata">

**Author:** [@Mister\_Bob](https://forum.kirupa.com/u/Mister_Bob)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 3:15pm UTC](https://forum.kirupa.com/t/character-movement-scrollable-play-area-help/309690 "2010-05-21T15:15:47Z")

</div>

I am attempting to develop a game, I want the character to move to the mouse position when clicked(and continue moving if the mouse is held down and moved) character frame changes to reflect direction and background move…

---

## [FLVPlayback Function](https://forum.kirupa.com/t/flvplayback-function/309688)

<div class="topic-metadata">

**Author:** [@saenim](https://forum.kirupa.com/u/saenim)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 2:43pm UTC](https://forum.kirupa.com/t/flvplayback-function/309688 "2010-05-21T14:43:35Z")

</div>

Hi there, Trying to write a function to render a movieclip invisible when the user clicks on the play button on the FLVPlayback component (video player) on the stage; and when the video is done playing, have that movic…

---

## [AS3 dynamic XML gallery help](https://forum.kirupa.com/t/as3-dynamic-xml-gallery-help/309685)

<div class="topic-metadata">

**Author:** [@tomto](https://forum.kirupa.com/u/tomto)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 10:16am UTC](https://forum.kirupa.com/t/as3-dynamic-xml-gallery-help/309685 "2010-05-21T10:16:03Z")

</div>

Hi All, I'm currently trying to create a (what I thought would be) relatively simple XML gallery in AS3. What I currently have is my thumbnails being brought in through the XML and distributed horizontally at the bot…

---

## [Problem with CI framework and autoload database library](https://forum.kirupa.com/t/problem-with-ci-framework-and-autoload-database-library/309679)

<div class="topic-metadata">

**Author:** [@Kosko](https://forum.kirupa.com/u/Kosko)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 8:35am UTC](https://forum.kirupa.com/t/problem-with-ci-framework-and-autoload-database-library/309679 "2010-05-21T08:35:17Z")

</div>

hi, only changes i have made in CI are setup db connection and include database library in autoload, when I reload page in browser i get nothing, blank page. if i use any other library, for ex. session instead of dat…

---

## [Possible to read ppt file?](https://forum.kirupa.com/t/possible-to-read-ppt-file/309677)

<div class="topic-metadata">

**Author:** [@Tinelise](https://forum.kirupa.com/u/Tinelise)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 7:54am UTC](https://forum.kirupa.com/t/possible-to-read-ppt-file/309677 "2010-05-21T07:54:02Z")

</div>

Is it possible to get the content of a ppt file with as3? Possibliy similar to loading and reading an xml?

---

## [Disable buttons in bottom of two CSS-overlapped swfs?](https://forum.kirupa.com/t/disable-buttons-in-bottom-of-two-css-overlapped-swfs/309674)

<div class="topic-metadata">

**Author:** [@fastasleep](https://forum.kirupa.com/u/fastasleep)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 7:28am UTC](https://forum.kirupa.com/t/disable-buttons-in-bottom-of-two-css-overlapped-swfs/309674 "2010-05-21T07:28:45Z")

</div>

Is this even possible? I thought if I overlapped the entire underlying Flash with a button on the upper layer, it wouldn't register mouse events underneath. Well, it does. I need to disable the rollovers and click action…

---

## [Scale From Center After Drag](https://forum.kirupa.com/t/scale-from-center-after-drag/309673)

<div class="topic-metadata">

**Author:** [@tcambron](https://forum.kirupa.com/u/tcambron)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 7:03am UTC](https://forum.kirupa.com/t/scale-from-center-after-drag/309673 "2010-05-21T07:03:45Z")

</div>

I have an image inside a movie clip that a user can scale from its center using the slider....works great. However the use can also drag the movie clip. After the movie clip is dragged to a new location it and then scale…

---

## [kirupa.com - Using a Dictionary (Hashtable) in .NET - Page 5](https://forum.kirupa.com/t/kirupa-com-using-a-dictionary-hashtable-in-net-page-5/642930)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 7:00am UTC](https://forum.kirupa.com/t/kirupa-com-using-a-dictionary-hashtable-in-net-page-5/642930 "2010-05-21T07:00:00Z")

</div>

by kirupa | 13 October 2006In the previous page, I explained how hashtables work and the advantages they have over an array/list. In this page I will provide some real world examples that will give you a brief …

---

## [\[Ask\] Over and Out Button Animation](https://forum.kirupa.com/t/ask-over-and-out-button-animation/309671)

<div class="topic-metadata">

**Author:** [@fupuripu](https://forum.kirupa.com/u/fupuripu)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 6:06am UTC](https://forum.kirupa.com/t/ask-over-and-out-button-animation/309671 "2010-05-21T06:06:58Z")

</div>

Hello there. For this few days, I've been googling entire site i can find, and finally I can arrange this script from many sources for my button: button\_btn.addEventListener(MouseEvent.MOUSE\_OVER, buttonOver); butto…

---

## [Encrypt in PHP and decrypt in AS3?](https://forum.kirupa.com/t/encrypt-in-php-and-decrypt-in-as3/309669)

<div class="topic-metadata">

**Author:** [@arundracula](https://forum.kirupa.com/u/arundracula)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 5:26am UTC](https://forum.kirupa.com/t/encrypt-in-php-and-decrypt-in-as3/309669 "2010-05-21T05:26:45Z")

</div>

I am making an AIR project. In that the AIR application sends a request to a PHP script. The script returns an encrypted file. Then the Application decrypts it. How to do this? (I don't want the process to send the file …

---

## [How do I resuse a MovieClip (Class + Graphics) in AS3?](https://forum.kirupa.com/t/how-do-i-resuse-a-movieclip-class-graphics-in-as3/309668)

<div class="topic-metadata">

**Author:** [@Casperankinen](https://forum.kirupa.com/u/Casperankinen)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 5:26am UTC](https://forum.kirupa.com/t/how-do-i-resuse-a-movieclip-class-graphics-in-as3/309668 "2010-05-21T05:26:20Z")

</div>

Hi, I'm still in the process of completely moving from AS2 to AS3 and I felt confident how to do this in AS2 but AS3 is much slower to work with. I'm generally ok with all the syntax changes but I'd continued to put al…

---

## [Arrays that "wrap around"? Or is there a better way?](https://forum.kirupa.com/t/arrays-that-wrap-around-or-is-there-a-better-way/309660)

<div class="topic-metadata">

**Author:** [@booglebop](https://forum.kirupa.com/u/booglebop)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 2:17am UTC](https://forum.kirupa.com/t/arrays-that-wrap-around-or-is-there-a-better-way/309660 "2010-05-21T02:17:31Z")

</div>

Hey All, Banging my head against the wall...Here's what I've got going on: There are three questions. If a user hovers over a question, the answer to that question pops up. What I'm having trouble with is: I want t…

---

## [Not able to create text](https://forum.kirupa.com/t/not-able-to-create-text/309658)

<div class="topic-metadata">

**Author:** [@shivam](https://forum.kirupa.com/u/shivam)\
**Replies:** 0\
**Last updated:** [May 21, 2010, 1:52am UTC](https://forum.kirupa.com/t/not-able-to-create-text/309658 "2010-05-21T01:52:56Z")

</div>

Hello, I copied this code from a site and tried to add textbox in the readResponse() method. I am getting errors which i indicated in bold. Can someone please tell me how to get rid of those errors. Thanks packa…

---

## [Backward on button](https://forum.kirupa.com/t/backward-on-button/309645)

<div class="topic-metadata">

**Author:** [@Stein7](https://forum.kirupa.com/u/Stein7)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 4:35pm UTC](https://forum.kirupa.com/t/backward-on-button/309645 "2010-05-20T16:35:08Z")

</div>

Anyone, help me.. How I create a backward event, this event will have the following tasks: 1. When I 'over' (place my pointer) to the button, a light is appearing, and it's moving from left to right. 2. But when I move m…

---

## [Find string at character(s)](https://forum.kirupa.com/t/find-string-at-character-s/309644)

<div class="topic-metadata">

**Author:** [@nlyttle](https://forum.kirupa.com/u/nlyttle)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 3:47pm UTC](https://forum.kirupa.com/t/find-string-at-character-s/309644 "2010-05-20T15:47:26Z")

</div>

In a dynamic text field, I need to be able to search for the string "http://" and all of the characters after that up until it reaches a \<space\> then return that whole string into a variable I can use.

---

## [How to use Mouse wheel for zoom in zoomout?](https://forum.kirupa.com/t/how-to-use-mouse-wheel-for-zoom-in-zoomout/309642)

<div class="topic-metadata">

**Author:** [@palanivelrajan](https://forum.kirupa.com/u/palanivelrajan)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 1:29pm UTC](https://forum.kirupa.com/t/how-to-use-mouse-wheel-for-zoom-in-zoomout/309642 "2010-05-20T13:29:27Z")

</div>

addEventListener(MouseEvent.MOUSE\_WHEEL,Object\_Zoomin); private function Object\_Zoomin(event:MouseEvent):void { zoom-=10; car.scale=zoom; } I don't know how to write a code for zoom out. Pleas…

---

## [How to reference the webservice in .mxml file?](https://forum.kirupa.com/t/how-to-reference-the-webservice-in-mxml-file/309641)

<div class="topic-metadata">

**Author:** [@krunalkakadia](https://forum.kirupa.com/u/krunalkakadia)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 12:59pm UTC](https://forum.kirupa.com/t/how-to-reference-the-webservice-in-mxml-file/309641 "2010-05-20T12:59:28Z")

</div>

Hi guys, i m new in FLAX. i have just started to learn the FLAX. i have created a web service.now my poroblem is that how to set webservice in my .mxml file? hope you will reply soon guys, Thanks & Regards kk

---

## [Actionscript 2.0 (CS4) - XML/FLASH](https://forum.kirupa.com/t/actionscript-2-0-cs4-xml-flash/309639)

<div class="topic-metadata">

**Author:** [@nas007](https://forum.kirupa.com/u/nas007)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 12:51pm UTC](https://forum.kirupa.com/t/actionscript-2-0-cs4-xml-flash/309639 "2010-05-20T12:51:41Z")

</div>

Hi, I have an xml based "slideshow" file that I am trying to edit. I want to add two attributes to the xml/flash doc. Right now the XML file allows me to enter a URL (so when you click an image it will load the speci…

---

## [Cant figure out the Event Dispatcher](https://forum.kirupa.com/t/cant-figure-out-the-event-dispatcher/309637)

<div class="topic-metadata">

**Author:** [@rez1n](https://forum.kirupa.com/u/rez1n)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 12:45pm UTC](https://forum.kirupa.com/t/cant-figure-out-the-event-dispatcher/309637 "2010-05-20T12:45:54Z")

</div>

Hey Guys, I wonder if you can help. Maybe im going about this all wrong. I have coded a navigation class to work with movieclip on the stage. when the user clicks it needs to tell the main website class, im trying to fig…

---

## [Top Down Shooter, little help? anyone?](https://forum.kirupa.com/t/top-down-shooter-little-help-anyone/309636)

<div class="topic-metadata">

**Author:** [@Thor110](https://forum.kirupa.com/u/Thor110)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 10:56am UTC](https://forum.kirupa.com/t/top-down-shooter-little-help-anyone/309636 "2010-05-20T10:56:39Z")

</div>

Hello there I have been working on a Top Down Shooter in flash Actionscript 3.0 and have only been working on it for around a few weeks and have been learning actionscript 3 for around 4 months, but I am having troubl…

---

## [Calculate inner rectangle](https://forum.kirupa.com/t/calculate-inner-rectangle/309631)

<div class="topic-metadata">

**Author:** [@hehe1](https://forum.kirupa.com/u/hehe1)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 9:51am UTC](https://forum.kirupa.com/t/calculate-inner-rectangle/309631 "2010-05-20T09:51:16Z")

</div>

Hello, Trying to figure out how to find the biggest possible area within a rotated image (the black rect in attached image), but can't figure out how to calculate the points TL, TR, BR, BL to draw my rectangle (the r…

---

## [Syntax error: expecting rightparen before colon](https://forum.kirupa.com/t/syntax-error-expecting-rightparen-before-colon/309629)

<div class="topic-metadata">

**Author:** [@krunalkakadia](https://forum.kirupa.com/u/krunalkakadia)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 7:32am UTC](https://forum.kirupa.com/t/syntax-error-expecting-rightparen-before-colon/309629 "2010-05-20T07:32:28Z")

</div>

hi guys, I am new in FLAX technology.i have just started to learn it. now i have my simple pro. which converts ferenhit into celcius temparature.i have my temparature.mxml file in src folder and temparature.as file …

---

## [Noob: how to get SWF pixel dimensions?](https://forum.kirupa.com/t/noob-how-to-get-swf-pixel-dimensions/309626)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 2:58am UTC](https://forum.kirupa.com/t/noob-how-to-get-swf-pixel-dimensions/309626 "2010-05-20T02:58:02Z")

</div>

How do I programatically get the pixel dimensions of my SWF. I tried using stage.width and stage.height, but this seems to be a tight bounding box on all the objects in the video, not the actual viewing area. I also want…

---

## [Graphics Gradient Circles!](https://forum.kirupa.com/t/graphics-gradient-circles/309625)

<div class="topic-metadata">

**Author:** [@Pokenerd](https://forum.kirupa.com/u/Pokenerd)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 2:53am UTC](https://forum.kirupa.com/t/graphics-gradient-circles/309625 "2010-05-20T02:53:59Z")

</div>

Hey Guys! I have written this code. The ultimate purpose of which is to generate a circle where the interior is of 50% alpha, and the outside is 100% alpha. Should be simple. this.graphics.clear(); this.graphics.lin…

---

## [startDrag and load next pic?](https://forum.kirupa.com/t/startdrag-and-load-next-pic/309624)

<div class="topic-metadata">

**Author:** [@oluc](https://forum.kirupa.com/u/oluc)\
**Replies:** 0\
**Last updated:** [May 20, 2010, 2:46am UTC](https://forum.kirupa.com/t/startdrag-and-load-next-pic/309624 "2010-05-20T02:46:19Z")

</div>

Hey! I have a picture gallery and I'm trying to figure out how to bring on the next picture when dragging the one currently on the screen off of the screen to the left. I have code written out that works to load the pi…

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

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