# programming

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

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

**Page:** 188

---

## [AS3 Game Menus- What's Good Practice?](https://forum.kirupa.com/t/as3-game-menus-whats-good-practice/327415)

<div class="topic-metadata">

**Author:** [@lgm432](https://forum.kirupa.com/u/lgm432)\
**Replies:** 0\
**Last updated:** [February 28, 2012, 12:12am UTC](https://forum.kirupa.com/t/as3-game-menus-whats-good-practice/327415 "2012-02-28T00:12:41Z")

</div>

So I am once again doing stuff with flash and actionscript, and finally attempting to make a game. As per general good code convention, I wish to have no code or items on the timeline. Chances are I'll use a finite-state…

---

## [OOP Projects](https://forum.kirupa.com/t/oop-projects/327414)

<div class="topic-metadata">

**Author:** [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)\
**Replies:** 0\
**Last updated:** [February 28, 2012, 12:10am UTC](https://forum.kirupa.com/t/oop-projects/327414 "2012-02-28T00:10:09Z")

</div>

So Ive spent the last few days getting up to speed with the fundementals of OOP I was wondering if there are any applications or anything you would suggest I try. Thanks

---

## [Google request from remote swf](https://forum.kirupa.com/t/google-request-from-remote-swf/327410)

<div class="topic-metadata">

**Author:** [@jtvalles](https://forum.kirupa.com/u/jtvalles)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 6:15pm UTC](https://forum.kirupa.com/t/google-request-from-remote-swf/327410 "2012-02-27T18:15:30Z")

</div>

I am trying to return a Google Places request with this code. It works in preview testing, but will not return results when the swf is remotely hosted. I know swfs have security measures in place when it comes to importi…

---

## [Need an advice about menu items](https://forum.kirupa.com/t/need-an-advice-about-menu-items/327409)

<div class="topic-metadata">

**Author:** [@Bloodnovski](https://forum.kirupa.com/u/Bloodnovski)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 4:57pm UTC](https://forum.kirupa.com/t/need-an-advice-about-menu-items/327409 "2012-02-27T16:57:50Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]What is the best way to make a menu with items that can be bought ( a.k.a shop ), bought items are invisible and there are about 20 items or so.\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]Wh…

---

## [Loading XML with loop navigation](https://forum.kirupa.com/t/loading-xml-with-loop-navigation/327407)

<div class="topic-metadata">

**Author:** [@thElectroable](https://forum.kirupa.com/u/thElectroable)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 3:33pm UTC](https://forum.kirupa.com/t/loading-xml-with-loop-navigation/327407 "2012-02-27T15:33:37Z")

</div>

Hello! I'm new (newb) and I really like your forums, learned much here \[wink\] Now I have one question for my website. I made navigation like this: var myMenyArray=\[najave,onama,asesoar,kontakt,ponuda,klub,arhiva\]; va…

---

## [getChildIndex(); Problem](https://forum.kirupa.com/t/getchildindex-problem/327406)

<div class="topic-metadata">

**Author:** [@molkman](https://forum.kirupa.com/u/molkman)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 3:01pm UTC](https://forum.kirupa.com/t/getchildindex-problem/327406 "2012-02-27T15:01:10Z")

</div>

Hello, I have a problem with the getChildIndex() method. I have an array that stores multiple children and I want to perform a hitTest that only works on children with a certain depth, with one that is lower than the oth…

---

## [DateField - dynamically changing dayNames & monthNames](https://forum.kirupa.com/t/datefield-dynamically-changing-daynames-monthnames/327405)

<div class="topic-metadata">

**Author:** [@tailjj](https://forum.kirupa.com/u/tailjj)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 2:32pm UTC](https://forum.kirupa.com/t/datefield-dynamically-changing-daynames-monthnames/327405 "2012-02-27T14:32:11Z")

</div>

Hi all. I have been working with Flex and ActionScript for a few years now, but am just now getting into switching locales dynamically in one of my applications. I have set up locale bundles and have everything workin…

---

## [Unload images](https://forum.kirupa.com/t/unload-images/327404)

<div class="topic-metadata">

**Author:** [@Modderov](https://forum.kirupa.com/u/Modderov)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 12:41pm UTC](https://forum.kirupa.com/t/unload-images/327404 "2012-02-27T12:41:20Z")

</div>

\[COLOR=#333333\]Hi everyone..\[/COLOR\] \[COLOR=#333333\]i have this code:\[/COLOR\] \*\*\[COLOR=#FF0000\]// i have nine buttons that activate doclick function\[/COLOR\] for(var i:uint=1;i\<=numeroFoto;++i) { this\["bt"+i\].addEv…

---

## [Mouse event for mouse stand on an object](https://forum.kirupa.com/t/mouse-event-for-mouse-stand-on-an-object/327403)

<div class="topic-metadata">

**Author:** [@GiGaGiG](https://forum.kirupa.com/u/GiGaGiG)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 12:15pm UTC](https://forum.kirupa.com/t/mouse-event-for-mouse-stand-on-an-object/327403 "2012-02-27T12:15:06Z")

</div>

Hi, I'd like to animate a button when I put the mouse over it. What's the problem? I use mouse\_over or roll\_over events, ok. But what if I hide the button when I click it and then I show it again later without moving the…

---

## [PGP encryption decryption in as3](https://forum.kirupa.com/t/pgp-encryption-decryption-in-as3/327401)

<div class="topic-metadata">

**Author:** [@gkp\_gaurav1](https://forum.kirupa.com/u/gkp_gaurav1)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 10:52am UTC](https://forum.kirupa.com/t/pgp-encryption-decryption-in-as3/327401 "2012-02-27T10:52:43Z")

</div>

Can anyone guide how to encrypt and decrypt PGP in flash as3?

---

## [Random ajax load: convert to jQuery?](https://forum.kirupa.com/t/random-ajax-load-convert-to-jquery/327397)

<div class="topic-metadata">

**Author:** [@ctoz](https://forum.kirupa.com/u/ctoz)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 6:18am UTC](https://forum.kirupa.com/t/random-ajax-load-convert-to-jquery/327397 "2012-02-27T06:18:05Z")

</div>

Hello new colleagues: I've been looking for a way to randomly load a page inline, and have basically found two alternatives: there the all-options-in-one-xml-page way ( the 'Chuck Norris way'), and then there's Kirupa'…

---

## [Tutorial: Resizing the HTML Canvas Element](https://forum.kirupa.com/t/tutorial-resizing-the-html-canvas-element/327395)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 1:47am UTC](https://forum.kirupa.com/t/tutorial-resizing-the-html-canvas-element/327395 "2012-02-27T01:47:33Z")

</div>

\[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COLOR=#333333\]\[FONT=Segoe UI\]Hi everyone,\[/FONT\]\[/COLOR\]\[/FONT\]\[/COLOR\]\[/COLOR\] \[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COLOR=#333333\]\[FONT=Segoe UI\]This is the happeni…

---

## [Flash application real time](https://forum.kirupa.com/t/flash-application-real-time/327394)

<div class="topic-metadata">

**Author:** [@mgevo](https://forum.kirupa.com/u/mgevo)\
**Replies:** 0\
**Last updated:** [February 27, 2012, 1:11am UTC](https://forum.kirupa.com/t/flash-application-real-time/327394 "2012-02-27T01:11:11Z")

</div>

Hallo to everyone! recently was wondering how to develope a real time application firs thinking though a joomla extension, then with an action script (flash). today i found something of interesting here: animation…

---

## [Flash remove movie clip](https://forum.kirupa.com/t/flash-remove-movie-clip/327392)

<div class="topic-metadata">

**Author:** [@gt11990](https://forum.kirupa.com/u/gt11990)\
**Replies:** 0\
**Last updated:** [February 26, 2012, 9:02pm UTC](https://forum.kirupa.com/t/flash-remove-movie-clip/327392 "2012-02-26T21:02:45Z")

</div>

ok basicly i have a game which consists of many different games. One main game which i am having trouble is the hangman game now basicly when the user clicks on the menu to play the hangman game the game loads up perec…

---

## [Get php variables w/o echo'ing?](https://forum.kirupa.com/t/get-php-variables-w-o-echoing/327391)

<div class="topic-metadata">

**Author:** [@Esseti](https://forum.kirupa.com/u/Esseti)\
**Replies:** 0\
**Last updated:** [February 26, 2012, 8:45pm UTC](https://forum.kirupa.com/t/get-php-variables-w-o-echoing/327391 "2012-02-26T20:45:43Z")

</div>

Is it possible to return php data without echo'ing print'ing the results in the PHP script? I need to find a secure way, to get data from a PHP script, so that the user can't sniff it or just read the script.

---

## [Drag and Drop inside a shape](https://forum.kirupa.com/t/drag-and-drop-inside-a-shape/327382)

<div class="topic-metadata">

**Author:** [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Replies:** 0\
**Last updated:** [February 25, 2012, 11:00pm UTC](https://forum.kirupa.com/t/drag-and-drop-inside-a-shape/327382 "2012-02-25T23:00:45Z")

</div>

Hello there! I'm facing another problem, this time I wan't to move a object around inside a shape. The red/orange rectangle is the supposed to be dragged around inside the gray shape, the rectangle shouldn't ever be ou…

---

## [Help with tweening photo gallery](https://forum.kirupa.com/t/help-with-tweening-photo-gallery/327381)

<div class="topic-metadata">

**Author:** [@Sputnik1977](https://forum.kirupa.com/u/Sputnik1977)\
**Replies:** 0\
**Last updated:** [February 25, 2012, 10:58pm UTC](https://forum.kirupa.com/t/help-with-tweening-photo-gallery/327381 "2012-02-25T22:58:29Z")

</div>

Hi everyone, I'm really stuck with this problem. I have a sliding photo gallery that uses thumbnails on the left side, and next and previous buttons to scroll through the images. I have the next and prev btns functiona…

---

## [How to make this into a button click? AS3 Help](https://forum.kirupa.com/t/how-to-make-this-into-a-button-click-as3-help/327380)

<div class="topic-metadata">

**Author:** [@deanznets](https://forum.kirupa.com/u/deanznets)\
**Replies:** 0\
**Last updated:** [February 25, 2012, 8:43pm UTC](https://forum.kirupa.com/t/how-to-make-this-into-a-button-click-as3-help/327380 "2012-02-25T20:43:26Z")

</div>

Right now this code starts when it grabs GPS info but i need to to only grab when someone clicks a BUTTON.. But i cannot get it into a button. Can someone please help! import flash.sensors.Geolocation; import flash.…

---

## [Associative Arrays and For loops](https://forum.kirupa.com/t/associative-arrays-and-for-loops/327374)

<div class="topic-metadata">

**Author:** [@TheOtherTedium](https://forum.kirupa.com/u/TheOtherTedium)\
**Replies:** 0\
**Last updated:** [February 25, 2012, 12:02pm UTC](https://forum.kirupa.com/t/associative-arrays-and-for-loops/327374 "2012-02-25T12:02:29Z")

</div>

I was trying something out, and came across a little error. I wrote the following code to create an array and, using each value of that array, create an associative array for the values of xVelocity and yVelocity. Check …

---

## [Weird.. attachMovie doesn't work :\\](https://forum.kirupa.com/t/weird-attachmovie-doesnt-work/327372)

<div class="topic-metadata">

**Author:** [@Aditya\_Dubey](https://forum.kirupa.com/u/Aditya_Dubey)\
**Replies:** 0\
**Last updated:** [February 25, 2012, 7:57am UTC](https://forum.kirupa.com/t/weird-attachmovie-doesnt-work/327372 "2012-02-25T07:57:05Z")

</div>

This may sound very naive but I have been struggling with this for a while. I am using Flash 8. I have a very simple script. 1.) A button on the stage with the code: on (release) { \_root.attachmovie("temp", "test…

---

## [Changing Image in a stage](https://forum.kirupa.com/t/changing-image-in-a-stage/327371)

<div class="topic-metadata">

**Author:** [@jeponkz](https://forum.kirupa.com/u/jeponkz)\
**Replies:** 0\
**Last updated:** [February 25, 2012, 7:10am UTC](https://forum.kirupa.com/t/changing-image-in-a-stage/327371 "2012-02-25T07:10:41Z")

</div>

Hello Everyone! I would like to figure out this.. I have these classes: Main Class, Button Class, and ImageHolder Class.. In evertime I click the button class, the image in ImageHolder class will change.. i have a …

---

## [Set the view of SWF](https://forum.kirupa.com/t/set-the-view-of-swf/327370)

<div class="topic-metadata">

**Author:** [@jeponkz](https://forum.kirupa.com/u/jeponkz)\
**Replies:** 0\
**Last updated:** [February 25, 2012, 5:30am UTC](https://forum.kirupa.com/t/set-the-view-of-swf/327370 "2012-02-25T05:30:14Z")

</div>

ou How can I set the default view of SWF file?? when i compile it in FLASH IDE, the default view would be 100% but when I click the swf file the default view is Show all.. you can see this when you right click the …

---

## [PageFlip as3.0 - Help to Dynamically resize content page](https://forum.kirupa.com/t/pageflip-as3-0-help-to-dynamically-resize-content-page/327369)

<div class="topic-metadata">

**Author:** [@Blueguy](https://forum.kirupa.com/u/Blueguy)\
**Replies:** 0\
**Last updated:** [February 25, 2012, 5:29am UTC](https://forum.kirupa.com/t/pageflip-as3-0-help-to-dynamically-resize-content-page/327369 "2012-02-25T05:29:21Z")

</div>

Hi guys, new to As3 here, just joined the forum, it's a great community, and place to learn. I downloaded "PageFlip as3.0" that Alex Lexcuk did here in the forum, and i've been trying to do a few things that i've not b…

---

## [Fill within the contour of an image?](https://forum.kirupa.com/t/fill-within-the-contour-of-an-image/327368)

<div class="topic-metadata">

**Author:** [@GeekTweak\_0](https://forum.kirupa.com/u/GeekTweak_0)\
**Replies:** 0\
**Last updated:** [February 25, 2012, 5:08am UTC](https://forum.kirupa.com/t/fill-within-the-contour-of-an-image/327368 "2012-02-25T05:08:11Z")

</div>

Hey, so what i want to do is have an image, and fill within the contour of the image with circles of selected size. what would be the first step in doing this? or is this even possible simply in AS3?

---

## [Change SWF Font Used](https://forum.kirupa.com/t/change-swf-font-used/327365)

<div class="topic-metadata">

**Author:** [@Randomishlying](https://forum.kirupa.com/u/Randomishlying)\
**Replies:** 0\
**Last updated:** [February 24, 2012, 9:23pm UTC](https://forum.kirupa.com/t/change-swf-font-used/327365 "2012-02-24T21:23:59Z")

</div>

What is the most common way to change the font in a TextField, within a package? I read a little bit about styling the text in the TextField with CSS, or possibly embedding the fonts, but I know little about accomplishin…

---

## [UIScrollbar width](https://forum.kirupa.com/t/uiscrollbar-width/327363)

<div class="topic-metadata">

**Author:** [@andrewlong](https://forum.kirupa.com/u/andrewlong)\
**Replies:** 0\
**Last updated:** [February 24, 2012, 7:12pm UTC](https://forum.kirupa.com/t/uiscrollbar-width/327363 "2012-02-24T19:12:23Z")

</div>

I have a ScrollPane with two textfields and UIScrollbars. I set the dimensions so that everything fits in the ScrollPane width-wise perfectly (i.e. without the horizontal scroll bar appearing). However, the horizontal …

---

## [Accessing vars in SuperClass from SubClass](https://forum.kirupa.com/t/accessing-vars-in-superclass-from-subclass/327362)

<div class="topic-metadata">

**Author:** [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)\
**Replies:** 0\
**Last updated:** [February 24, 2012, 6:21pm UTC](https://forum.kirupa.com/t/accessing-vars-in-superclass-from-subclass/327362 "2012-02-24T18:21:54Z")

</div>

So, how would you create a class that can access a variable in the class where the subClass was created(superclass), I realise this might be unclear so in example package { import flash.display.MovieClip; public clas…

---

## [Button's script, target not found?](https://forum.kirupa.com/t/buttons-script-target-not-found/327358)

<div class="topic-metadata">

**Author:** [@Ghroth](https://forum.kirupa.com/u/Ghroth)\
**Replies:** 0\
**Last updated:** [February 24, 2012, 5:22am UTC](https://forum.kirupa.com/t/buttons-script-target-not-found/327358 "2012-02-24T05:22:50Z")

</div>

Hey everyone. I'm using cs5.5 with as2 and i'm facing this strange problem: i have a movieclip (test\_main) on root with 2 movieclips (test\_mc & test\_btn) inside. At frame 1 of test\_main i'm writing: stop(); test\_bt…

---

## [Tweener: redrawing object being scaled to avoid scaling outline](https://forum.kirupa.com/t/tweener-redrawing-object-being-scaled-to-avoid-scaling-outline/327356)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [February 23, 2012, 9:01pm UTC](https://forum.kirupa.com/t/tweener-redrawing-object-being-scaled-to-avoid-scaling-outline/327356 "2012-02-23T21:01:44Z")

</div>

Using Tweener, I'm scaling a rectangular Sprite with a 3 pixel outline. I want to only scale in the x-direction, meaning it gets thinner but not shorter. BUT, while the Sprite gets thinner, I don't want the outline to …

---

## [Using Geoloction to find distance travled?](https://forum.kirupa.com/t/using-geoloction-to-find-distance-travled/327355)

<div class="topic-metadata">

**Author:** [@deanznets](https://forum.kirupa.com/u/deanznets)\
**Replies:** 0\
**Last updated:** [February 23, 2012, 5:17pm UTC](https://forum.kirupa.com/t/using-geoloction-to-find-distance-travled/327355 "2012-02-23T17:17:04Z")

</div>

How can i use Geo location to find the distance traveled? Im trying to develop this iphone app but i cant figure it out

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

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