# programming

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

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

**Page:** 544

---

## [Hebrew in XML files?](https://forum.kirupa.com/t/hebrew-in-xml-files/305985)

<div class="topic-metadata">

**Author:** [@Elementss](https://forum.kirupa.com/u/Elementss)\
**Replies:** 0\
**Last updated:** [March 7, 2010, 10:15am UTC](https://forum.kirupa.com/t/hebrew-in-xml-files/305985 "2010-03-07T10:15:17Z")

</div>

hello, im trying to get a text from an XML file.. \<?xml version="1.0" encoding="UTF-8" ?\> \<portfolio\> \<HEADER\> \<MAINtxt\>1&#1513;&#1513;&#1513;&#1513;&#1513;&#1513;&#1513;\</MAIN…

---

## [Pass variable from function which is on the main timeline, into a variable in a MC](https://forum.kirupa.com/t/pass-variable-from-function-which-is-on-the-main-timeline-into-a-variable-in-a-mc/305984)

<div class="topic-metadata">

**Author:** [@rants](https://forum.kirupa.com/u/rants)\
**Replies:** 0\
**Last updated:** [March 7, 2010, 9:55am UTC](https://forum.kirupa.com/t/pass-variable-from-function-which-is-on-the-main-timeline-into-a-variable-in-a-mc/305984 "2010-03-07T09:55:11Z")

</div>

I have a bit of code that is on my main timeline: var myV:Number=100; var myV2:Number=200; function loader() { myV=200+100; myV2=400+300; fn(); } loader(); function fn() { trace(myV); trace(myV2…

---

## [Accessing this XML?](https://forum.kirupa.com/t/accessing-this-xml/305982)

<div class="topic-metadata">

**Author:** [@Kivshany](https://forum.kirupa.com/u/Kivshany)\
**Replies:** 0\
**Last updated:** [March 7, 2010, 8:05am UTC](https://forum.kirupa.com/t/accessing-this-xml/305982 "2010-03-07T08:05:25Z")

</div>

Hi all, I need to know how I can access the images in this XML code (per image): \[LEFT\]\[SIZE=2\]\<?xml version='1.0' encoding='UTF-8'?\>\[/SIZE\] \[SIZE=2\] \<component name='XMLSlideShowV3'\>\[/SIZE\]\[SIZE=2\] \[COLOR=Silver\]\<!…

---

## [Load From XML and LOOP](https://forum.kirupa.com/t/load-from-xml-and-loop/305981)

<div class="topic-metadata">

**Author:** [@makeitrain](https://forum.kirupa.com/u/makeitrain)\
**Replies:** 0\
**Last updated:** [March 7, 2010, 7:14am UTC](https://forum.kirupa.com/t/load-from-xml-and-loop/305981 "2010-03-07T07:14:20Z")

</div>

Hi all, I am doing a project for my class work and im having some issues to get the things done. \<?xml version="1.0" ?\> \<project\> \<digits\> \<digit\>111111\</digit\> \<digit\>222222\</digit\> \<digit\>444444\</digit\> \<digit\>3333…

---

## [How do you use external files as if they were #included?](https://forum.kirupa.com/t/how-do-you-use-external-files-as-if-they-were-included/305980)

<div class="topic-metadata">

**Author:** [@xgraves](https://forum.kirupa.com/u/xgraves)\
**Replies:** 0\
**Last updated:** [March 7, 2010, 6:43am UTC](https://forum.kirupa.com/t/how-do-you-use-external-files-as-if-they-were-included/305980 "2010-03-07T06:43:02Z")

</div>

I understand the basics of OOP and classes, but I can't seem to find an answer to something between classes and static functions. For instance, what if I have a Game.as class that's 1,500 lines long and I want to yank…

---

## [AS3 in timeline vs package](https://forum.kirupa.com/t/as3-in-timeline-vs-package/305979)

<div class="topic-metadata">

**Author:** [@whiteart](https://forum.kirupa.com/u/whiteart)\
**Replies:** 0\
**Last updated:** [March 7, 2010, 2:14am UTC](https://forum.kirupa.com/t/as3-in-timeline-vs-package/305979 "2010-03-07T02:14:24Z")

</div>

I'm starting out in AS3 and need some basic advice. I noticed when you create an external package/class for a movieclip, all scripts nested in that movieclip timeline are ignored. Only issue is, I have some animations th…

---

## [Passing the stage through than one class](https://forum.kirupa.com/t/passing-the-stage-through-than-one-class/305977)

<div class="topic-metadata">

**Author:** [@Kainevg](https://forum.kirupa.com/u/Kainevg)\
**Replies:** 0\
**Last updated:** [March 7, 2010, 1:50am UTC](https://forum.kirupa.com/t/passing-the-stage-through-than-one-class/305977 "2010-03-07T01:50:48Z")

</div>

Hey guys, So basically this is what I need to happen.. In my document class "Engine" I need to make my "Game Handler" class which is done in the constructor by using: var Game:GameHandler = new GameHandler(stage); …

---

## [MD5 "encryption" the same in AS3 and PHP](https://forum.kirupa.com/t/md5-encryption-the-same-in-as3-and-php/305973)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 9:58pm UTC](https://forum.kirupa.com/t/md5-encryption-the-same-in-as3-and-php/305973 "2010-03-06T21:58:37Z")

</div>

I am currently in need of being able to encrypt a string to MD5 (yes, I know you don't technically encrypt it, since you can't really decrypt it, but I'm not sure what to call it, and you get the point!) A few weeks ba…

---

## [Loading images from Tumblr](https://forum.kirupa.com/t/loading-images-from-tumblr/305969)

<div class="topic-metadata">

**Author:** [@okap\_o](https://forum.kirupa.com/u/okap_o)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 7:51pm UTC](https://forum.kirupa.com/t/loading-images-from-tumblr/305969 "2010-03-06T19:51:25Z")

</div>

Greetings guys Perhaps someone could help with this. I am trying to use my tumblr.com blog to feed my website news section. For every account and xml feed is provided i.e. num42.tumblr.com/api/read When i compile…

---

## [Stage Size for Fullscreen Flash](https://forum.kirupa.com/t/stage-size-for-fullscreen-flash/305967)

<div class="topic-metadata">

**Author:** [@alemieux34](https://forum.kirupa.com/u/alemieux34)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 7:07pm UTC](https://forum.kirupa.com/t/stage-size-for-fullscreen-flash/305967 "2010-03-06T19:07:01Z")

</div>

Does the stage size matter if you're planning on using stage scaling and fullscreen Flash? What should the stage size ideally be? Do you have to position every element with Event.RESIZE?

---

## [Keyboard event for the ENTER key](https://forum.kirupa.com/t/keyboard-event-for-the-enter-key/305965)

<div class="topic-metadata">

**Author:** [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 6:39pm UTC](https://forum.kirupa.com/t/keyboard-event-for-the-enter-key/305965 "2010-03-06T18:39:50Z")

</div>

Hi, I have a button on the stage called enterCostBtn that when it is pressed it executes the code inside the calculateCost function. What I want to do is to be able to use the ENTER key on my keyboard to trigger that f…

---

## [Dynamic text field and Embed fonts problems](https://forum.kirupa.com/t/dynamic-text-field-and-embed-fonts-problems/305963)

<div class="topic-metadata">

**Author:** [@psychoP](https://forum.kirupa.com/u/psychoP)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 5:31pm UTC](https://forum.kirupa.com/t/dynamic-text-field-and-embed-fonts-problems/305963 "2010-03-06T17:31:38Z")

</div>

Created obj.createTextField(tName,obj.getNextHighestDepth(),tX,tY,tW,tH); and formated text. embed a specific font into library added it to this object: var tfFormat = new TextFormat("Tahoma", tSize, tRGB, false, false,…

---

## [Few Problems](https://forum.kirupa.com/t/few-problems/305962)

<div class="topic-metadata">

**Author:** [@alemieux34](https://forum.kirupa.com/u/alemieux34)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 5:04pm UTC](https://forum.kirupa.com/t/few-problems/305962 "2010-03-06T17:04:55Z")

</div>

I have two separate issues with this code. There should be a preloader for every thumbnail and I'm getting an error on removing the preloader. import flash.events.\*; var myImages:XMLList; var myTotal:Number; var imag…

---

## [Looking for some help on CS3](https://forum.kirupa.com/t/looking-for-some-help-on-cs3/305961)

<div class="topic-metadata">

**Author:** [@lynn51](https://forum.kirupa.com/u/lynn51)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 5:01pm UTC](https://forum.kirupa.com/t/looking-for-some-help-on-cs3/305961 "2010-03-06T17:01:25Z")

</div>

I've just started learning Flash and i'm looking for some help. I'm trying to create a program to allow you to pick out of 3 movies, select a day and time, how many people will be watching the movie and then show all t…

---

## [Enemy-AI Collision detection\[help\]](https://forum.kirupa.com/t/enemy-ai-collision-detection-help/305959)

<div class="topic-metadata">

**Author:** [@touches](https://forum.kirupa.com/u/touches)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 2:44pm UTC](https://forum.kirupa.com/t/enemy-ai-collision-detection-help/305959 "2010-03-06T14:44:57Z")

</div>

Hello i hope i get help from the talented ppl here... i am developing a simple los based game like security where if i fall within the LOS of enemy i am out... well for testing i wanted the movement of the NPC's to be in…

---

## [Render?](https://forum.kirupa.com/t/render/305958)

<div class="topic-metadata">

**Author:** [@Luigi\_Vercotti](https://forum.kirupa.com/u/Luigi_Vercotti)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 1:00pm UTC](https://forum.kirupa.com/t/render/305958 "2010-03-06T13:00:15Z")

</div>

Hello guys, can someone please explain it to me what does it mean and what does it do. Try it like I am ten year old. I am trying to understand it. I understand the words but not meaning of it. English is not my native l…

---

## [RollOver - Windows:Fine, Mac:Error](https://forum.kirupa.com/t/rollover-windows-fine-mac-error/305955)

<div class="topic-metadata">

**Author:** [@samroni](https://forum.kirupa.com/u/samroni)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 7:25am UTC](https://forum.kirupa.com/t/rollover-windows-fine-mac-error/305955 "2010-03-06T07:25:39Z")

</div>

Hi people, me again.... not sure how to search in google for this one.. its been bothering me for a long time, and it got me stuck with the problem finally... the problem occurs in 2 cases (as far as i know) 1) i…

---

## [Character jump help](https://forum.kirupa.com/t/character-jump-help/305953)

<div class="topic-metadata">

**Author:** [@Kale542](https://forum.kirupa.com/u/Kale542)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 4:43am UTC](https://forum.kirupa.com/t/character-jump-help/305953 "2010-03-06T04:43:21Z")

</div>

Hi, I'm making a game, and I need my guy to jump. Right now, he jumps, but more appears about 60 pixels higher, and then falls down regularly (i have a working "gravity" effect). I really need him to progress pixel by …

---

## [How to animate what you draw on the stage with Actionscript 3.0](https://forum.kirupa.com/t/how-to-animate-what-you-draw-on-the-stage-with-actionscript-3-0/305950)

<div class="topic-metadata">

**Author:** [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 3:29am UTC](https://forum.kirupa.com/t/how-to-animate-what-you-draw-on-the-stage-with-actionscript-3-0/305950 "2010-03-06T03:29:02Z")

</div>

Hi, I have been practicing on how to draw shapes on the stage with actionscript and it seems fun. var rec:Sprite = new Sprite(); with (rec.graphics) { beginFill(0xff23564,1); lineStyle(0); drawCircle(20,20,50)…

---

## [AS2: Sky view AI help](https://forum.kirupa.com/t/as2-sky-view-ai-help/305949)

<div class="topic-metadata">

**Author:** [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 3:21am UTC](https://forum.kirupa.com/t/as2-sky-view-ai-help/305949 "2010-03-06T03:21:13Z")

</div>

Ok i have this code on an enemy on the frame onClipEvent(enterFrame){ if(this.HP \> 0){ dead = false }else{ dead = true } ///GETTING HIT/// if(this.HP \>= 1){ if(\_root.bullet01.hitTest(\_x,\_y)){ trace("h…

---

## [A few thoughts on "Illegal Operation Error"](https://forum.kirupa.com/t/a-few-thoughts-on-illegal-operation-error/305947)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 1:28am UTC](https://forum.kirupa.com/t/a-few-thoughts-on-illegal-operation-error/305947 "2010-03-06T01:28:36Z")

</div>

Here is the Language Reference page if it helps anyone: http://help.adobe.com/en\_US/AS3LCR/Flash\_10.0/flash/errors/IllegalOperationError.html First of all, I'm not finding any way to actually set the "errorID". You nee…

---

## [Portfolio with Externally Loaded Images Fading In and Out](https://forum.kirupa.com/t/portfolio-with-externally-loaded-images-fading-in-and-out/305946)

<div class="topic-metadata">

**Author:** [@Mesono](https://forum.kirupa.com/u/Mesono)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 12:59am UTC](https://forum.kirupa.com/t/portfolio-with-externally-loaded-images-fading-in-and-out/305946 "2010-03-06T00:59:33Z")

</div>

Hi, this is my first message on these forums. I really like the site and it’s gotten me out of a flash-related fix more than once. I was just wondering, because I’m still an amateur at flash (more precisely, actionscript…

---

## [Making hangman game - few problems](https://forum.kirupa.com/t/making-hangman-game-few-problems/305945)

<div class="topic-metadata">

**Author:** [@sampson](https://forum.kirupa.com/u/sampson)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 12:38am UTC](https://forum.kirupa.com/t/making-hangman-game-few-problems/305945 "2010-03-06T00:38:14Z")

</div>

at the moment these are the things i'm having trouble with: \[LIST\] \[\*\]Making it so that if the letter you just entered is already in "usedletters" then it wont go ahead with the sendletter function \[\*\]A lives system, s…

---

## [IE 6 Image Centering Problem...Pulling Hair out](https://forum.kirupa.com/t/ie-6-image-centering-problem-pulling-hair-out/305944)

<div class="topic-metadata">

**Author:** [@nongshimking](https://forum.kirupa.com/u/nongshimking)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 11:41pm UTC](https://forum.kirupa.com/t/ie-6-image-centering-problem-pulling-hair-out/305944 "2010-03-05T23:41:33Z")

</div>

Hi everyone, the problem is found here at this website: http://www.lavishhair.com In Mozilla the image lines up just fine, but in IE 6 it gets pushed to the right way too much. Have been fiddling with text align's …

---

## [Storyboard Help: Playing a Storyboard](https://forum.kirupa.com/t/storyboard-help-playing-a-storyboard/305943)

<div class="topic-metadata">

**Author:** [@SokrMan](https://forum.kirupa.com/u/SokrMan)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 11:37pm UTC](https://forum.kirupa.com/t/storyboard-help-playing-a-storyboard/305943 "2010-03-05T23:37:51Z")

</div>

Hi, So I have made the front page of my website. I have hyperlink buttons as navigation. I want to be able to click the hyperlink button and then have a new page come in with an animation. So I could make the animation…

---

## [Preloader for xml content](https://forum.kirupa.com/t/preloader-for-xml-content/305941)

<div class="topic-metadata">

**Author:** [@vbkun](https://forum.kirupa.com/u/vbkun)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 11:04pm UTC](https://forum.kirupa.com/t/preloader-for-xml-content/305941 "2010-03-05T23:04:13Z")

</div>

Well I made a neat gallery with thumbnail previews and stuff, and now i'm facing a serious problem =,=. I don't know how to pre-load the stuff flash loads from xml -.- (actually the thumbnails, that need to be ready …

---

## [IE7 Absolute Positioning Wrapping Issue](https://forum.kirupa.com/t/ie7-absolute-positioning-wrapping-issue/305940)

<div class="topic-metadata">

**Author:** [@redelite](https://forum.kirupa.com/u/redelite)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 10:08pm UTC](https://forum.kirupa.com/t/ie7-absolute-positioning-wrapping-issue/305940 "2010-03-05T22:08:58Z")

</div>

Hey guys, I'm creating a theme for a base template set of HTML and I've run into an awkward issue with IE7. I've cut out the HTML and CSS that shows the problem and threw it into a file with some junk text for you guys…

---

## [Duplicating a MovieClip from an external SWF without explicit linkage](https://forum.kirupa.com/t/duplicating-a-movieclip-from-an-external-swf-without-explicit-linkage/305936)

<div class="topic-metadata">

**Author:** [@Unicoder](https://forum.kirupa.com/u/Unicoder)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 8:40pm UTC](https://forum.kirupa.com/t/duplicating-a-movieclip-from-an-external-swf-without-explicit-linkage/305936 "2010-03-05T20:40:13Z")

</div>

In Flash CS3 I was able to duplicate any MovieClip from an external SWF by loading the SWF, and then executing the following code: var targetClass:Class = MovieClipToDuplicate.constructor; var duplicate:MovieClip = new…

---

## [Controlling div content with Flash](https://forum.kirupa.com/t/controlling-div-content-with-flash/305932)

<div class="topic-metadata">

**Author:** [@Range](https://forum.kirupa.com/u/Range)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 6:54pm UTC](https://forum.kirupa.com/t/controlling-div-content-with-flash/305932 "2010-03-05T18:54:32Z")

</div>

I would like to implement a Flash menu, that when clicked on, changes the content within a specific \<div\> on the PHP page. However, I am having a hard time finding useful examples of this for a beginner. Can someone pl…

---

## [Help with AS3 and XML](https://forum.kirupa.com/t/help-with-as3-and-xml/305931)

<div class="topic-metadata">

**Author:** [@gradile](https://forum.kirupa.com/u/gradile)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 6:36pm UTC](https://forum.kirupa.com/t/help-with-as3-and-xml/305931 "2010-03-05T18:36:01Z")

</div>

Hi. I'm trying to learn AS3, but I'm a little lost on it!. I have the following code: var myXML:XML; var myLoader:URLLoader = new URLLoader(); myLoader.load(new URLRequest("test.xml")); myLoader.addEventListener(Event…

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

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