# programming

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

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

**Page:** 309

---

## [Can you attach an image to a Sprite?](https://forum.kirupa.com/t/can-you-attach-an-image-to-a-sprite/320404)

<div class="topic-metadata">

**Author:** [@megshea](https://forum.kirupa.com/u/megshea)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 6:05pm UTC](https://forum.kirupa.com/t/can-you-attach-an-image-to-a-sprite/320404 "2011-03-22T18:05:09Z")

</div>

Can you name a Sprite like a movie clip and then reference that to attach an image? Like: myMovieClip.mySprite.attachChild(imageLoader);

---

## [Trimming unprintable characters](https://forum.kirupa.com/t/trimming-unprintable-characters/320403)

<div class="topic-metadata">

**Author:** [@jasonfahy](https://forum.kirupa.com/u/jasonfahy)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 5:48pm UTC](https://forum.kirupa.com/t/trimming-unprintable-characters/320403 "2011-03-22T17:48:54Z")

</div>

Hello, I’m fumbling my way along, writing a schedule-building utility for my online students. I want it to load class information from a .txt file, written in NotePad. I’ve loaded the data as a string, then I used .spl…

---

## [Ming php Action script](https://forum.kirupa.com/t/ming-php-action-script/320400)

<div class="topic-metadata">

**Author:** [@kiwi2](https://forum.kirupa.com/u/kiwi2)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 4:39pm UTC](https://forum.kirupa.com/t/ming-php-action-script/320400 "2011-03-22T16:39:19Z")

</div>

\<?php include "lib.php"; $time = time(); $date = getdate($time); $year = $date\[year\]; $month = $date\[mon\]; $day = $date\[mday\]; $c1 =255; $c2 =255; $c3 =255; $h = 400; $w = 400; $m = newmovie($h,$w,$c1,$c2,$c3); $file =…

---

## [Preloader not working with external jpegs](https://forum.kirupa.com/t/preloader-not-working-with-external-jpegs/320398)

<div class="topic-metadata">

**Author:** [@Toner](https://forum.kirupa.com/u/Toner)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 3:18pm UTC](https://forum.kirupa.com/t/preloader-not-working-with-external-jpegs/320398 "2011-03-22T15:18:25Z")

</div>

Hi, Working in Flash CS5 and using ActionScript 2.0 I'm trying to attach a preloader to a MovieClip which has a loader component inside to load an external jpeg. The MovieClip is inside a another MovieClip. I've use…

---

## [Loading images problem HELP!](https://forum.kirupa.com/t/loading-images-problem-help/320395)

<div class="topic-metadata">

**Author:** [@starsoccer10921](https://forum.kirupa.com/u/starsoccer10921)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 2:38pm UTC](https://forum.kirupa.com/t/loading-images-problem-help/320395 "2011-03-22T14:38:24Z")

</div>

Hello there I made 1 image gallery. and i am facing a big issue. When one image is loading in my Loader object. If i click on next image button. It starts loading another image without canceling the existing image. So …

---

## [Cannot open the document](https://forum.kirupa.com/t/cannot-open-the-document/320390)

<div class="topic-metadata">

**Author:** [@sula](https://forum.kirupa.com/u/sula)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 12:33pm UTC](https://forum.kirupa.com/t/cannot-open-the-document/320390 "2011-03-22T12:33:49Z")

</div>

When I open the file in Flash CS5, this message appears: \*\*Flash can not parse this document. An error occurred opening file 'D:......fla'\*\* what problem it is and how to solve it? thanks in advance

---

## [Eval replacement?](https://forum.kirupa.com/t/eval-replacement/320389)

<div class="topic-metadata">

**Author:** [@geter712](https://forum.kirupa.com/u/geter712)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 12:29pm UTC](https://forum.kirupa.com/t/eval-replacement/320389 "2011-03-22T12:29:18Z")

</div>

Ok, I know there is no eval function in AS3, and that \['bla'+bla\] is a proper replacement, when it comes to calling dynamically created objects, but this what I need is a little bit different... I have a piece of AS3 cod…

---

## [Flash 8 mail and php multiline issue](https://forum.kirupa.com/t/flash-8-mail-and-php-multiline-issue/320388)

<div class="topic-metadata">

**Author:** [@sirn51](https://forum.kirupa.com/u/sirn51)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 11:35am UTC](https://forum.kirupa.com/t/flash-8-mail-and-php-multiline-issue/320388 "2011-03-22T11:35:24Z")

</div>

Hi, I'm using flash 8 AS2, I've created a form for people to contact me from my website. However, everything's working well except the input text for comments. In flash, it does multiline wrapping and go back to the lin…

---

## [How to access existing data in DataGrid cell?](https://forum.kirupa.com/t/how-to-access-existing-data-in-datagrid-cell/320387)

<div class="topic-metadata">

**Author:** [@srvikram13](https://forum.kirupa.com/u/srvikram13)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 11:19am UTC](https://forum.kirupa.com/t/how-to-access-existing-data-in-datagrid-cell/320387 "2011-03-22T11:19:39Z")

</div>

Hi, Can anybody tell me how to access existing data in a DataGrid cell in labelFunction? I am able to access the new data to be displayed in the cell. What I want to do now is if the new value is less than the pre…

---

## [KeyBoardEvent... Help pls.. URGENT](https://forum.kirupa.com/t/keyboardevent-help-pls-urgent/320385)

<div class="topic-metadata">

**Author:** [@LoveTheresa](https://forum.kirupa.com/u/LoveTheresa)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 10:26am UTC](https://forum.kirupa.com/t/keyboardevent-help-pls-urgent/320385 "2011-03-22T10:26:31Z")

</div>

I have 2 sprite, A sprite and B sprite, A sprite can listen to KeyboardEvent, when I click an button on A sprite, B sprite will jump on top of A sprite, when I close B sprite in which A sprite at the bottom will be seen …

---

## [AS3 Simple Bounce Not Rendering at Boundary](https://forum.kirupa.com/t/as3-simple-bounce-not-rendering-at-boundary/320384)

<div class="topic-metadata">

**Author:** [@Inpetto](https://forum.kirupa.com/u/Inpetto)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 10:03am UTC](https://forum.kirupa.com/t/as3-simple-bounce-not-rendering-at-boundary/320384 "2011-03-22T10:03:51Z")

</div>

Hi guys I'm running some AS3-based animation, a simple bounce effect. A ball lies above a line, gravity as acceleration increases it's negative velocity by 1 each frame. When it penetrates an arbitrary line it is move up…

---

## [Paint like application](https://forum.kirupa.com/t/paint-like-application/320381)

<div class="topic-metadata">

**Author:** [@Lamcho](https://forum.kirupa.com/u/Lamcho)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 9:15am UTC](https://forum.kirupa.com/t/paint-like-application/320381 "2011-03-22T09:15:12Z")

</div>

Does anybody know a framework that could be used as a base for creation of paint like (but more complex) application. This application will include - layers - drawing vector objects - rotating, scaling all o…

---

## [How to use shared library?](https://forum.kirupa.com/t/how-to-use-shared-library/320380)

<div class="topic-metadata">

**Author:** [@harry\_kooner2k](https://forum.kirupa.com/u/harry_kooner2k)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 7:40am UTC](https://forum.kirupa.com/t/how-to-use-shared-library/320380 "2011-03-22T07:40:43Z")

</div>

Hello my genius friends, I used the word genius because I got solution here everytime i post an issue.. Hope you people help me this time also. In my child swf I am using the sound from library with "attachSound". I …

---

## [Where can I get VB Full Ebook?](https://forum.kirupa.com/t/where-can-i-get-vb-full-ebook/320377)

<div class="topic-metadata">

**Author:** [@Andrelle](https://forum.kirupa.com/u/Andrelle)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 7:00am UTC](https://forum.kirupa.com/t/where-can-i-get-vb-full-ebook/320377 "2011-03-22T07:00:48Z")

</div>

I'm new to visual basic programming and i have been searching all over the internet for a simple ebook that can teach me visual basic. I'm tired of searching so I'm asking anyone if they know of any E book or software th…

---

## [How does extends work?](https://forum.kirupa.com/t/how-does-extends-work/320376)

<div class="topic-metadata">

**Author:** [@taint](https://forum.kirupa.com/u/taint)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 4:46am UTC](https://forum.kirupa.com/t/how-does-extends-work/320376 "2011-03-22T04:46:09Z")

</div>

How should I use it and when I would use it? I got two classes hero\_class and navigate hero\_class is for my character navigate is for my character movement how should i put the navigate for my hero\_class Here i…

---

## [Help with Sprites](https://forum.kirupa.com/t/help-with-sprites/320374)

<div class="topic-metadata">

**Author:** [@lozts](https://forum.kirupa.com/u/lozts)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 3:11am UTC](https://forum.kirupa.com/t/help-with-sprites/320374 "2011-03-22T03:11:08Z")

</div>

I am using a sprite as a container so that when the users chooses a new item from a combobox, the sprites contained in the container sprite can be removed but for some reason it keeps displaying this error: "RangeError:…

---

## [Trig problem](https://forum.kirupa.com/t/trig-problem/320370)

<div class="topic-metadata">

**Author:** [@ColinDavies](https://forum.kirupa.com/u/ColinDavies)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 1:16am UTC](https://forum.kirupa.com/t/trig-problem/320370 "2011-03-22T01:16:46Z")

</div>

I'm hoping someone might have an easy answer here, also hoping this is the right forum. I have a stage which is circular shaped plane, If my observer is at xb,yb on the and my object is at xc,yc I can easily find the d…

---

## [Air 2.6 SDK available](https://forum.kirupa.com/t/air-2-6-sdk-available/320369)

<div class="topic-metadata">

**Author:** [@tbo](https://forum.kirupa.com/u/tbo)\
**Replies:** 0\
**Last updated:** [March 22, 2011, 12:21am UTC](https://forum.kirupa.com/t/air-2-6-sdk-available/320369 "2011-03-22T00:21:28Z")

</div>

with updated Android and iOS support of course http://blogs.adobe.com/cantrell/archives/2011/03/everything-new-in-adobe-air-2-6.html

---

## [TLF Autosize in Flex 4.1](https://forum.kirupa.com/t/tlf-autosize-in-flex-4-1/320368)

<div class="topic-metadata">

**Author:** [@kleelof](https://forum.kirupa.com/u/kleelof)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 11:24pm UTC](https://forum.kirupa.com/t/tlf-autosize-in-flex-4-1/320368 "2011-03-21T23:24:33Z")

</div>

\[URL="http://stackoverflow.com/questions/5374561/flex-4-1-richtext-richeditabletext-autosizing#"\] In the past, I used the flash.text.textField object s…

---

## [Adding time to a game timer in AS3](https://forum.kirupa.com/t/adding-time-to-a-game-timer-in-as3/320366)

<div class="topic-metadata">

**Author:** [@lynn51](https://forum.kirupa.com/u/lynn51)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 8:36pm UTC](https://forum.kirupa.com/t/adding-time-to-a-game-timer-in-as3/320366 "2011-03-21T20:36:14Z")

</div>

Hi, Im hoping someone will be able to help here. I've created a simple flash game for moving a car round the flame to collect fuel cans and avoid traffic cones. The game has a 10sec timer running but i want to make it th…

---

## [Trying to add 3 simple movieclips, yet they are disappearing?](https://forum.kirupa.com/t/trying-to-add-3-simple-movieclips-yet-they-are-disappearing/320365)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 7:58pm UTC](https://forum.kirupa.com/t/trying-to-add-3-simple-movieclips-yet-they-are-disappearing/320365 "2011-03-21T19:58:54Z")

</div>

I took on a small AS2 project, which I shouldn't but did anyway. I know AS3, but AS2 is foreign. I am trying to add 3 movieclips from the library, to the stage. Only the last one shows up, and the others disappear. Eve…

---

## [Create ARGB from RGB and alpha](https://forum.kirupa.com/t/create-argb-from-rgb-and-alpha/320364)

<div class="topic-metadata">

**Author:** [@flashgroove](https://forum.kirupa.com/u/flashgroove)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 7:33pm UTC](https://forum.kirupa.com/t/create-argb-from-rgb-and-alpha/320364 "2011-03-21T19:33:30Z")

</div>

How is it possible to create an ARGB value from an RGB value (ex: 0x00FF00) and an alpha value (ex: 0.5) ?

---

## [Kirupa Photo Gallery, Add numbers to Thumbnails](https://forum.kirupa.com/t/kirupa-photo-gallery-add-numbers-to-thumbnails/320363)

<div class="topic-metadata">

**Author:** [@davetifftaylor](https://forum.kirupa.com/u/davetifftaylor)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 7:09pm UTC](https://forum.kirupa.com/t/kirupa-photo-gallery-add-numbers-to-thumbnails/320363 "2011-03-21T19:09:12Z")

</div>

Hi \[COLOR=black\]\[FONT=Verdana\]I have created a Photo Gallery based on the excellent tutorial, the only thing I would like to add is Numbers to the Thumbnails.\[/FONT\]\[/COLOR\] \[COLOR=black\]\[FONT=Verdana\] \[/FONT\]\[/COLOR\] \[…

---

## [htmlText question](https://forum.kirupa.com/t/htmltext-question/320362)

<div class="topic-metadata">

**Author:** [@vfistri1](https://forum.kirupa.com/u/vfistri1)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 6:48pm UTC](https://forum.kirupa.com/t/htmltext-question/320362 "2011-03-21T18:48:51Z")

</div>

so i have a textfield t and some string stri"\<a href='www.google.com'\>link \</a\>" now i add string to textfield as html formated text t.htmlText = stri; is there any way to change link color strictly throught manipulati…

---

## [Touch question](https://forum.kirupa.com/t/touch-question/320360)

<div class="topic-metadata">

**Author:** [@dkdanielkli](https://forum.kirupa.com/u/dkdanielkli)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 5:54pm UTC](https://forum.kirupa.com/t/touch-question/320360 "2011-03-21T17:54:04Z")

</div>

I'm thinking about creating apps for the apple store and my question is : do the app have to be used only by the mouse ? Like cuz than the mouse= touching the iphone screen.

---

## [AS3 holder to load a swf with no timeline?](https://forum.kirupa.com/t/as3-holder-to-load-a-swf-with-no-timeline/320358)

<div class="topic-metadata">

**Author:** [@RichGags](https://forum.kirupa.com/u/RichGags)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 4:09pm UTC](https://forum.kirupa.com/t/as3-holder-to-load-a-swf-with-no-timeline/320358 "2011-03-21T16:09:00Z")

</div>

I am working on site already made and Im trying to add a holder to load a swf. It is a AS3 file and has no timeline. It is made with OOP and classes only. So I would like to be able to load an item into a holder on th…

---

## [Red eye](https://forum.kirupa.com/t/red-eye/320357)

<div class="topic-metadata">

**Author:** [@walerka](https://forum.kirupa.com/u/walerka)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 3:43pm UTC](https://forum.kirupa.com/t/red-eye/320357 "2011-03-21T15:43:25Z")

</div>

Hello All! i need for my image editor add Rey eye removal tools, how can make? thanks

---

## [Why is this NULL?](https://forum.kirupa.com/t/why-is-this-null/320356)

<div class="topic-metadata">

**Author:** [@megshea](https://forum.kirupa.com/u/megshea)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 3:34pm UTC](https://forum.kirupa.com/t/why-is-this-null/320356 "2011-03-21T15:34:12Z")

</div>

When I run this snippet of code, I am getting "TypeError: Error #1009: Cannot access a property or method of a null object reference. at mouseMoveSlider02\_fla::MainTimeline/init() at mouseMoveSlider02\_fla::MainTi…

---

## [How to move on timeline after collision?](https://forum.kirupa.com/t/how-to-move-on-timeline-after-collision/320352)

<div class="topic-metadata">

**Author:** [@R\_T\_WALLER](https://forum.kirupa.com/u/R_T_WALLER)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 2:44pm UTC](https://forum.kirupa.com/t/how-to-move-on-timeline-after-collision/320352 "2011-03-21T14:44:59Z")

</div>

I would like for when my mc "touches" a door on my stage, for the animation to jump to another place in the timeline. I do not know how to do that though, but I assume it has something to do with collision detection? I…

---

## [How to restrict where a mc can be on the stage?](https://forum.kirupa.com/t/how-to-restrict-where-a-mc-can-be-on-the-stage/320351)

<div class="topic-metadata">

**Author:** [@R\_T\_WALLER](https://forum.kirupa.com/u/R_T_WALLER)\
**Replies:** 0\
**Last updated:** [March 21, 2011, 2:43pm UTC](https://forum.kirupa.com/t/how-to-restrict-where-a-mc-can-be-on-the-stage/320351 "2011-03-21T14:43:15Z")

</div>

How do I restrict a mc to a certain area of the stage? I am going to have some buildings on the top of my stage and I don't want my character to be able to walk past the street level. So basically I don't want him to be …

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

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