# programming

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

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

**Page:** 444

---

## [Changing Timer intervals](https://forum.kirupa.com/t/changing-timer-intervals/312352)

<div class="topic-metadata">

**Author:** [@coggia](https://forum.kirupa.com/u/coggia)\
**Replies:** 0\
**Last updated:** [July 31, 2010, 9:07pm UTC](https://forum.kirupa.com/t/changing-timer-intervals/312352 "2010-07-31T21:07:12Z")

</div>

Hello, I'd like to change a timer interval, but I dunno how to do it, In my code i first initialize the timer with a selected interval with : gameTimer=new Timer(interval,0); gameTimer.addEventListener(TimerEvent.TIM…

---

## [Event Listener curiosity](https://forum.kirupa.com/t/event-listener-curiosity/312350)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [July 31, 2010, 8:33pm UTC](https://forum.kirupa.com/t/event-listener-curiosity/312350 "2010-07-31T20:33:23Z")

</div>

Just as a test, here's the entirety of my code: stage.removeEventListener(Event.ADDED\_TO\_STAGE, foobar); function foobar(e:Event):void { } I never ADDED the corresponding event listener. Why doesn't Flash complain …

---

## [\[AS2\] sharedObject help](https://forum.kirupa.com/t/as2-sharedobject-help/312349)

<div class="topic-metadata">

**Author:** [@Devlini](https://forum.kirupa.com/u/Devlini)\
**Replies:** 0\
**Last updated:** [July 31, 2010, 8:12pm UTC](https://forum.kirupa.com/t/as2-sharedobject-help/312349 "2010-07-31T20:12:31Z")

</div>

I have attempted to create a save file using sharedObject but it doesn't work. I don't get any errors it just doesn't seem to save when I press the save button. In the main frame I have: user\_so = SharedObject.getLo…

---

## [Reposition Images in XML Gallery](https://forum.kirupa.com/t/reposition-images-in-xml-gallery/312346)

<div class="topic-metadata">

**Author:** [@ajm97210](https://forum.kirupa.com/u/ajm97210)\
**Replies:** 0\
**Last updated:** [July 31, 2010, 6:42pm UTC](https://forum.kirupa.com/t/reposition-images-in-xml-gallery/312346 "2010-07-31T18:42:42Z")

</div>

If you view my site: anthonymorones.com and click on the Photography or Graphics button you can see that there are galleries on each of the pages, these are externally loaded XML galleries. When you click on the small im…

---

## [Erase tool MovieClip.graphics.lineTo](https://forum.kirupa.com/t/erase-tool-movieclip-graphics-lineto/312342)

<div class="topic-metadata">

**Author:** [@spectator](https://forum.kirupa.com/u/spectator)\
**Replies:** 0\
**Last updated:** [July 31, 2010, 1:12pm UTC](https://forum.kirupa.com/t/erase-tool-movieclip-graphics-lineto/312342 "2010-07-31T13:12:30Z")

</div>

Hello :). I have one simple app, loads an image and then via class that extends shape the user is able to draw. Now I want to create an eraser tool so the user could erase something that he dislikes. As far as I know the…

---

## [Help! Game with AS3, flying boxes](https://forum.kirupa.com/t/help-game-with-as3-flying-boxes/312339)

<div class="topic-metadata">

**Author:** [@amelia](https://forum.kirupa.com/u/amelia)\
**Replies:** 0\
**Last updated:** [July 31, 2010, 2:48am UTC](https://forum.kirupa.com/t/help-game-with-as3-flying-boxes/312339 "2010-07-31T02:48:13Z")

</div>

Hi I was wondering if anyone can help!? I am trying to make a game with boxes (gifts), flying across the screen randomly, they are worth 10pnts and when the user clicks one, more are supposed to enter the screen and the…

---

## [Removing a Video from the Stage](https://forum.kirupa.com/t/removing-a-video-from-the-stage/312338)

<div class="topic-metadata">

**Author:** [@ajm97210](https://forum.kirupa.com/u/ajm97210)\
**Replies:** 0\
**Last updated:** [July 31, 2010, 12:34am UTC](https://forum.kirupa.com/t/removing-a-video-from-the-stage/312338 "2010-07-31T00:34:51Z")

</div>

So I have a 5 page website, on the home page when I opens you see a video and it automatically plays. When you click to a different page though you can still hear the sound in the background. The video has an instance na…

---

## [Dynamically sizing flash object in Safari](https://forum.kirupa.com/t/dynamically-sizing-flash-object-in-safari/312337)

<div class="topic-metadata">

**Author:** [@mcmustang](https://forum.kirupa.com/u/mcmustang)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 11:24pm UTC](https://forum.kirupa.com/t/dynamically-sizing-flash-object-in-safari/312337 "2010-07-30T23:24:59Z")

</div>

I have a weird problem with Safari 5.0 and Flash player 10.1... When I resize the flash html object via ExternalInterface and JavaScript flash will jump down the page a little bit for a fraction of a second. Here is…

---

## [\[AS3\]"Barrier function" Enough is Enough iam tired plz help me :(](https://forum.kirupa.com/t/as3-barrier-function-enough-is-enough-iam-tired-plz-help-me/312335)

<div class="topic-metadata">

**Author:** [@Mena\_\_99](https://forum.kirupa.com/u/Mena__99)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 10:02pm UTC](https://forum.kirupa.com/t/as3-barrier-function-enough-is-enough-iam-tired-plz-help-me/312335 "2010-07-30T22:02:16Z")

</div>

\[COLOR=blue\]Hello all , its been really long time i kept trying and trying to find an answer all over and i didn't find any :S and i posted here my question several times On one of the forums and no one answered except…

---

## [Page code not compatible to different browsers](https://forum.kirupa.com/t/page-code-not-compatible-to-different-browsers/312331)

<div class="topic-metadata">

**Author:** [@kklui](https://forum.kirupa.com/u/kklui)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 8:26pm UTC](https://forum.kirupa.com/t/page-code-not-compatible-to-different-browsers/312331 "2010-07-30T20:26:33Z")

</div>

Hello, I have a test page: http://www.magicare.ca/test\_pages/team/test\_A.html What I want to do is: The bigger picture changes when cursor moves over small pictures. I used a javascript to do this. It works perfect…

---

## [Odd movement inside MovieClip](https://forum.kirupa.com/t/odd-movement-inside-movieclip/312329)

<div class="topic-metadata">

**Author:** [@aszex](https://forum.kirupa.com/u/aszex)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 7:50pm UTC](https://forum.kirupa.com/t/odd-movement-inside-movieclip/312329 "2010-07-30T19:50:16Z")

</div>

I have problem, it may be stupid, but i have no idea how to solve it. Furthermore I don't even know what causes it. I have a MovieClip "world" on my main stage, it contains level and player. I use standart (?) code for…

---

## [Targeting movieClips in AS3](https://forum.kirupa.com/t/targeting-movieclips-in-as3/312327)

<div class="topic-metadata">

**Author:** [@ccbass85](https://forum.kirupa.com/u/ccbass85)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 6:47pm UTC](https://forum.kirupa.com/t/targeting-movieclips-in-as3/312327 "2010-07-30T18:47:25Z")

</div>

Hey Guys, Its day 3 of learning AS3 for me. And I've run onto a small problem that seems pretty simple but I haven't been able to figure out the answer to. I cant seem to target a movieclip within a movieclip. I code w…

---

## [Movement only when the mouse is near center](https://forum.kirupa.com/t/movement-only-when-the-mouse-is-near-center/312325)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 5:20pm UTC](https://forum.kirupa.com/t/movement-only-when-the-mouse-is-near-center/312325 "2010-07-30T17:20:23Z")

</div>

Hello, I am making an animation that shows roughly how an airplane's localizer works. (It is a guage in the cockpit that tells you the angle of the plane) This explanation might be a bit hard to follow, bear with me. A…

---

## [Programming - general advice](https://forum.kirupa.com/t/programming-general-advice/312317)

<div class="topic-metadata">

**Author:** [@progcomputeach](https://forum.kirupa.com/u/progcomputeach)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 10:43am UTC](https://forum.kirupa.com/t/programming-general-advice/312317 "2010-07-30T10:43:45Z")

</div>

I thought it would be good to write down a list of things you can do to improve your programming and job prospects when you have learned what you need to. To get the ball rolling: a. learn the syntax of the language(and…

---

## [Vainglory blossoms but never bears](https://forum.kirupa.com/t/vainglory-blossoms-but-never-bears/312314)

<div class="topic-metadata">

**Author:** [@wholesalebs88](https://forum.kirupa.com/u/wholesalebs88)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 10:21am UTC](https://forum.kirupa.com/t/vainglory-blossoms-but-never-bears/312314 "2010-07-30T10:21:53Z")

</div>

Vainglory blossoms but never bears. \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\[Loose Shell Beads\[url=http://www.21cnbeads.com/shell-beads-c-50.html\]Cheap Shell Beads\](http://www.21cnbeads.com/shell-beads-c-50.html)

---

## [NaN problem... clarifying numbers](https://forum.kirupa.com/t/nan-problem-clarifying-numbers/312312)

<div class="topic-metadata">

**Author:** [@12sea21](https://forum.kirupa.com/u/12sea21)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 9:43am UTC](https://forum.kirupa.com/t/nan-problem-clarifying-numbers/312312 "2010-07-30T09:43:46Z")

</div>

Quiz type program cant attach so i give temp link code: frame 4 code: var numSuc:Number; //number of successes is a number var numTry:Number; // number of tries is a number var percent:Number; // percent correct …

---

## [Problem with title and image description](https://forum.kirupa.com/t/problem-with-title-and-image-description/312311)

<div class="topic-metadata">

**Author:** [@pm4698](https://forum.kirupa.com/u/pm4698)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 9:36am UTC](https://forum.kirupa.com/t/problem-with-title-and-image-description/312311 "2010-07-30T09:36:50Z")

</div>

Hello there! I bought an xml flash template and i am trying to modify it. In main.fla file there is a layer named functions. At this layer there is actionscript code where i saw this part: function loadImages () { …

---

## [TextArea Issues](https://forum.kirupa.com/t/textarea-issues/312309)

<div class="topic-metadata">

**Author:** [@holborner](https://forum.kirupa.com/u/holborner)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 7:29am UTC](https://forum.kirupa.com/t/textarea-issues/312309 "2010-07-30T07:29:38Z")

</div>

Hello all, I'm trying to create TextArea component in an external .as file. For starters I've copy the code directly from the Adobe AS3 reference page import fl.controls.TextArea; var aTa:TextArea = new TextArea();…

---

## [How Do I add the download counter php into my loging page?](https://forum.kirupa.com/t/how-do-i-add-the-download-counter-php-into-my-loging-page/312306)

<div class="topic-metadata">

**Author:** [@nubreed](https://forum.kirupa.com/u/nubreed)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 6:53am UTC](https://forum.kirupa.com/t/how-do-i-add-the-download-counter-php-into-my-loging-page/312306 "2010-07-30T06:53:17Z")

</div>

Hi all I've been working on a Loging script and also a download script, they both work seprately, but when I want to use the include function say for example include ("demo.php"); and place it on to my secure print…

---

## [顽固的颈椎病](https://forum.kirupa.com/t/topic/312303)

<div class="topic-metadata">

**Author:** [@jjdk0825jj](https://forum.kirupa.com/u/jjdk0825jj)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 3:17am UTC](https://forum.kirupa.com/t/topic/312303 "2010-07-30T03:17:30Z")

</div>

无法安静下来做一些事,手臂与颈脖都酸胀难受,胸闷与反胃的感觉,让人心烦意乱.知道这是颈椎病又犯厉害了.自从年后,颈椎病就一直没有间断,时好时坏,若是出去走走,还能够暂时缓解一下酸痛的困扰,只要一坐在电脑前,那病就立马像绳索一样将人捆缚,霎时便被可恶的症状袭击了头部,颈部,腰部,乃至全身.这几年,又迷恋上写作,颈椎病更是愈发严重.许是年龄不饶人吧,进入中年,身体处在了亚健康状态,干什么事都觉得力不从心了,时常叫累.记忆力也逐渐减退.比如说…

---

## [Referencing stage.width/height references mc.width/height?](https://forum.kirupa.com/t/referencing-stage-width-height-references-mc-width-height/312302)

<div class="topic-metadata">

**Author:** [@timmy666](https://forum.kirupa.com/u/timmy666)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 2:59am UTC](https://forum.kirupa.com/t/referencing-stage-width-height-references-mc-width-height/312302 "2010-07-30T02:59:09Z")

</div>

Hey guys, I am trying to reference to top level (stage) width and height of the main stage for the placement of something located inside a movieclip on the stage. My code is: my\_loader.x = (stage.stageWidth …

---

## [Help Needed w/ mc links](https://forum.kirupa.com/t/help-needed-w-mc-links/312300)

<div class="topic-metadata">

**Author:** [@jwolf](https://forum.kirupa.com/u/jwolf)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 1:30am UTC](https://forum.kirupa.com/t/help-needed-w-mc-links/312300 "2010-07-30T01:30:14Z")

</div>

This is my first time in this forum. I am creating a framed website in Dreamweaver, but I made my navigation menu in Flash w/ AS 3. The frameset has two frames, one is called header and the other is called content. I …

---

## [Metadata on seek](https://forum.kirupa.com/t/metadata-on-seek/312299)

<div class="topic-metadata">

**Author:** [@rondog](https://forum.kirupa.com/u/rondog)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 12:13am UTC](https://forum.kirupa.com/t/metadata-on-seek/312299 "2010-07-30T00:13:59Z")

</div>

Is it normal to receive metadata every time you seek when you are viewing from a flash media server? Right now that is happening and I've never noticed it til now.

---

## [Fonts - Embedding Fonts in AS3](https://forum.kirupa.com/t/fonts-embedding-fonts-in-as3/312297)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [July 29, 2010, 11:57pm UTC](https://forum.kirupa.com/t/fonts-embedding-fonts-in-as3/312297 "2010-07-29T23:57:55Z")

</div>

Hi all. I am using "AS3 Text Editor Lite" which is free to use for developers. The fonts within this, are calling from the fonts installed on your computer. So if you create a program that allows a user to input text, th…

---

## [Help with Syntax Error 1084](https://forum.kirupa.com/t/help-with-syntax-error-1084/312293)

<div class="topic-metadata">

**Author:** [@chedrick](https://forum.kirupa.com/u/chedrick)\
**Replies:** 0\
**Last updated:** [July 29, 2010, 10:18pm UTC](https://forum.kirupa.com/t/help-with-syntax-error-1084/312293 "2010-07-29T22:18:42Z")

</div>

I keep getting two errors: 1084: Syntax Error expecting right parenthesis before colon. 1084: Syntax Error: expecting colon before dot. I put an asterisk by the lines with the errors. The first error goes with the…

---

## [Speed of Collision (physics)](https://forum.kirupa.com/t/speed-of-collision-physics/312291)

<div class="topic-metadata">

**Author:** [@ilikedragon](https://forum.kirupa.com/u/ilikedragon)\
**Replies:** 0\
**Last updated:** [July 29, 2010, 8:42pm UTC](https://forum.kirupa.com/t/speed-of-collision-physics/312291 "2010-07-29T20:42:36Z")

</div>

Hi, I have a simple little physics problem. I have the values (x, y, xSpeed, ySpeed) of the movieclips (Hero and Badguy) Now, when they collide, how will i calculate how hard the collision is? Obviously weight, accel…

---

## [Using an array to pull values from another array](https://forum.kirupa.com/t/using-an-array-to-pull-values-from-another-array/312289)

<div class="topic-metadata">

**Author:** [@W92Baj](https://forum.kirupa.com/u/W92Baj)\
**Replies:** 0\
**Last updated:** [July 29, 2010, 7:37pm UTC](https://forum.kirupa.com/t/using-an-array-to-pull-values-from-another-array/312289 "2010-07-29T19:37:48Z")

</div>

I have 2 long arrays of items, say 20 or so, as a constant items included on a page. On individual pages I want to use another array to take the values from a certain number of positions (the same) within both constants. …

---

## [Highscore / sort array](https://forum.kirupa.com/t/highscore-sort-array/312288)

<div class="topic-metadata">

**Author:** [@kekekiko](https://forum.kirupa.com/u/kekekiko)\
**Replies:** 0\
**Last updated:** [July 29, 2010, 7:28pm UTC](https://forum.kirupa.com/t/highscore-sort-array/312288 "2010-07-29T19:28:21Z")

</div>

I am trying to create a high score table offline that doesn't need php just relies on dynamic textboxes. I am basing it on a kind of random football results generator. I have been able to get the random scores and add po…

---

## [Zoom in, AS3](https://forum.kirupa.com/t/zoom-in-as3/312286)

<div class="topic-metadata">

**Author:** [@rinchi](https://forum.kirupa.com/u/rinchi)\
**Replies:** 0\
**Last updated:** [July 29, 2010, 6:55pm UTC](https://forum.kirupa.com/t/zoom-in-as3/312286 "2010-07-29T18:55:41Z")

</div>

Hi, I would need to make the view in flash cs3 to zoom in a mc that is already in my stage and make this mc go in the centre of the view. It is a 2D game, and I need to zoom to automatically go in the second level of …

---

## [Transparent Textbox Trick (AS2)](https://forum.kirupa.com/t/transparent-textbox-trick-as2/312283)

<div class="topic-metadata">

**Author:** [@kerry\_rnl](https://forum.kirupa.com/u/kerry_rnl)\
**Replies:** 0\
**Last updated:** [July 29, 2010, 5:21pm UTC](https://forum.kirupa.com/t/transparent-textbox-trick-as2/312283 "2010-07-29T17:21:44Z")

</div>

I've seen the question of how to make a transparent textbox in Flash come up a lot online, but I've yet to see a solution that works. I figured one out that is working for me. I name each textbox with its own unique inst…

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

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