# programming

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

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

**Page:** 479

---

## [CS3 Generating Variable Names](https://forum.kirupa.com/t/cs3-generating-variable-names/310255)

<div class="topic-metadata">

**Author:** [@Michael\_Knight1](https://forum.kirupa.com/u/Michael_Knight1)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 11:22pm UTC](https://forum.kirupa.com/t/cs3-generating-variable-names/310255 "2010-06-05T23:22:14Z")

</div>

So I'm trying to create a virtual piano using Adobe Flash CS3. I have a library graphic called "whitekey" and a library graphic called "key". I also have library sounds corresponding the strings in the array. The code …

---

## [TLF textfields & css (flash CS 5)](https://forum.kirupa.com/t/tlf-textfields-css-flash-cs-5/310254)

<div class="topic-metadata">

**Author:** [@tristessa](https://forum.kirupa.com/u/tristessa)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 10:33pm UTC](https://forum.kirupa.com/t/tlf-textfields-css-flash-cs-5/310254 "2010-06-05T22:33:30Z")

</div>

Hey all, I can't really find usefull information on this subject, There is no way I can load in css in my TFL textfield in flash CS5 The moment i change the textfield to a classic dynamic textfield the css applies. …

---

## [\[Flash8\] AS2 and Socket Server](https://forum.kirupa.com/t/flash8-as2-and-socket-server/310252)

<div class="topic-metadata">

**Author:** [@capdetrons](https://forum.kirupa.com/u/capdetrons)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 8:16pm UTC](https://forum.kirupa.com/t/flash8-as2-and-socket-server/310252 "2010-06-05T20:16:26Z")

</div>

Hi, again, I hadn't ckecked the forum in a couple of days and managed to get the hitTest working in my application. It works, but only one way: the user in clipA attaches the movieclip, but the other or others, won't. I…

---

## [Flash AS3 Preloader](https://forum.kirupa.com/t/flash-as3-preloader/310250)

<div class="topic-metadata">

**Author:** [@siremorgan](https://forum.kirupa.com/u/siremorgan)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 6:02pm UTC](https://forum.kirupa.com/t/flash-as3-preloader/310250 "2010-06-05T18:02:02Z")

</div>

Hey Guys, I've been trying to get this preloader working for days! I finally got it working, and now when i upload it to my site and refresh the page, the .swf file is stuck at the preloader screen. This is my code: …

---

## [Applying transformation?](https://forum.kirupa.com/t/applying-transformation/310249)

<div class="topic-metadata">

**Author:** [@ilikedragon](https://forum.kirupa.com/u/ilikedragon)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 5:58pm UTC](https://forum.kirupa.com/t/applying-transformation/310249 "2010-06-05T17:58:13Z")

</div>

Hey guys a quick question: If I drew a dog on a scene, and made it a movie clip. I thought it was too big, so I resized the movieclip and made it super tiny. Is there a way to "apply" this transformation so by default, t…

---

## [How to unload an external movieClip with a tweenOut effect](https://forum.kirupa.com/t/how-to-unload-an-external-movieclip-with-a-tweenout-effect/310248)

<div class="topic-metadata">

**Author:** [@anthony\_z](https://forum.kirupa.com/u/anthony_z)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 4:59pm UTC](https://forum.kirupa.com/t/how-to-unload-an-external-movieclip-with-a-tweenout-effect/310248 "2010-06-05T16:59:31Z")

</div>

Basic TweenLite question. How to unload an external movie clip from a loader with a tweenOut effect, with using only AS2, no timeline. here's my simplified scenario: I have 3 movieclips. "main\_mc"; "blue\_mc"; "gr…

---

## [Detect flash player version for 2010](https://forum.kirupa.com/t/detect-flash-player-version-for-2010/310247)

<div class="topic-metadata">

**Author:** [@meshy](https://forum.kirupa.com/u/meshy)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 4:58pm UTC](https://forum.kirupa.com/t/detect-flash-player-version-for-2010/310247 "2010-06-05T16:58:10Z")

</div>

The FB3 app deployment included files: AC\_OETags.js history/history.css history/history/.js history/historyFrame.html playerProductInstall.swf js in the head of the html wrapper // in the head // Glo…

---

## [Connecting an HTML tag to a CSS class with Javascript](https://forum.kirupa.com/t/connecting-an-html-tag-to-a-css-class-with-javascript/310242)

<div class="topic-metadata">

**Author:** [@dev89](https://forum.kirupa.com/u/dev89)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 7:30am UTC](https://forum.kirupa.com/t/connecting-an-html-tag-to-a-css-class-with-javascript/310242 "2010-06-05T07:30:51Z")

</div>

Hello, I'm a newbie in web development, and I really need help on how to connect an HTML tag to a CSS class with Javascript. The content of the HTML tag itself will be inserted to the page through an XML file (which in…

---

## [Determining which data is being loaded](https://forum.kirupa.com/t/determining-which-data-is-being-loaded/310241)

<div class="topic-metadata">

**Author:** [@marquizzo](https://forum.kirupa.com/u/marquizzo)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 4:27am UTC](https://forum.kirupa.com/t/determining-which-data-is-being-loaded/310241 "2010-06-05T04:27:25Z")

</div>

Hello! I have a problem that I've been unable to solve for the past 3 hours. I have an array of ~200 buttons. Each button pulls individual info from a file online: \[INDENT\] /routes/801/ /routes/802/ /routes/803/ ... …

---

## [How to get Website Templates for a Ruby on Rails](https://forum.kirupa.com/t/how-to-get-website-templates-for-a-ruby-on-rails/310240)

<div class="topic-metadata">

**Author:** [@kooti](https://forum.kirupa.com/u/kooti)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 3:34am UTC](https://forum.kirupa.com/t/how-to-get-website-templates-for-a-ruby-on-rails/310240 "2010-06-05T03:34:53Z")

</div>

\[FONT=&quot\]I am a ruby programmer and want to have a crack on building a online store website using ruby on rails as it will be a known territory for me rather than learning php, etc. Anyways, I found heaps of gem like…

---

## [Tile-based Box2d game](https://forum.kirupa.com/t/tile-based-box2d-game/310239)

<div class="topic-metadata">

**Author:** [@Aziraphael](https://forum.kirupa.com/u/Aziraphael)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 3:27am UTC](https://forum.kirupa.com/t/tile-based-box2d-game/310239 "2010-06-05T03:27:05Z")

</div>

G'day all, I am an Art Director for a Sydney based digital advertising agency. In my spare time, though, I have started to make a Box2d tile based platform game. If this is of interest to any of you, I will be sharing my…

---

## [If movieclip leaves movie boundaries, gotoAndPlay new frame](https://forum.kirupa.com/t/if-movieclip-leaves-movie-boundaries-gotoandplay-new-frame/310237)

<div class="topic-metadata">

**Author:** [@Iokina](https://forum.kirupa.com/u/Iokina)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 12:44am UTC](https://forum.kirupa.com/t/if-movieclip-leaves-movie-boundaries-gotoandplay-new-frame/310237 "2010-06-05T00:44:01Z")

</div>

I am using an older version of flash. This is technically a game question but it is in older flash. My MC is a movable char that can jump, fall, and land on platforms. I would like to program a way for if the char fall…

---

## [Know-nothing noobie question](https://forum.kirupa.com/t/know-nothing-noobie-question/310236)

<div class="topic-metadata">

**Author:** [@bribe](https://forum.kirupa.com/u/bribe)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 12:06am UTC](https://forum.kirupa.com/t/know-nothing-noobie-question/310236 "2010-06-05T00:06:28Z")

</div>

I am working on a project and Flash has changed a lot since I last used it (I've also forgotten most of what little I knew then, as that was about 7 years ago). The project that I'm doing is going to need some clickabl…

---

## [Basic BitMap Brain Blister](https://forum.kirupa.com/t/basic-bitmap-brain-blister/310235)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 11:08pm UTC](https://forum.kirupa.com/t/basic-bitmap-brain-blister/310235 "2010-06-04T23:08:24Z")

</div>

I am just breaking into bitMap stuff and today (the last 3 hours) is the first day. With the following code im not throwing any errors but i see nothing. can someone point me in the right direction??:worried: package…

---

## [3D cube change size - should be simple?](https://forum.kirupa.com/t/3d-cube-change-size-should-be-simple/310233)

<div class="topic-metadata">

**Author:** [@jspark11](https://forum.kirupa.com/u/jspark11)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 9:58pm UTC](https://forum.kirupa.com/t/3d-cube-change-size-should-be-simple/310233 "2010-06-04T21:58:33Z")

</div>

Hi everyone, I got the following code for a rotating 3d cube. I'm trying to reduce its size....it should be simple. I've done it before by changing the Z axis but no idea how to proceed here....Any ideas? import com…

---

## [Optimizing code for high number of iterations](https://forum.kirupa.com/t/optimizing-code-for-high-number-of-iterations/310232)

<div class="topic-metadata">

**Author:** [@rb\_othree](https://forum.kirupa.com/u/rb_othree)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 9:52pm UTC](https://forum.kirupa.com/t/optimizing-code-for-high-number-of-iterations/310232 "2010-06-04T21:52:48Z")

</div>

Hi All, I'm posting regarding a small app i'm working on that basically allows a grid of particles to be manipulated based on the mouse position. It is fairly primitive in its ideas, but I thought it would be a good …

---

## [Getting background to move when char jumps](https://forum.kirupa.com/t/getting-background-to-move-when-char-jumps/310231)

<div class="topic-metadata">

**Author:** [@Iokina](https://forum.kirupa.com/u/Iokina)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 8:51pm UTC](https://forum.kirupa.com/t/getting-background-to-move-when-char-jumps/310231 "2010-06-04T20:51:58Z")

</div>

I am using Nathan Stockton's game engine. It is working beautifully, but now I want the ground to move as my char jumps. I have some platforms that are too high for my game screen, and so I need them to move down as he…

---

## [RegExpressions - Removing everything in between?](https://forum.kirupa.com/t/regexpressions-removing-everything-in-between/310227)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 7:50pm UTC](https://forum.kirupa.com/t/regexpressions-removing-everything-in-between/310227 "2010-06-04T19:50:25Z")

</div>

Say I have the following string: "Cotton 231 is & great43 for fun: Cotton"; I want to find and delete everything between the words Cotton via RegExp (because I don't know what will be inbetween Cotton, I just know Cott…

---

## [Declaring data type for a MC on the stage help](https://forum.kirupa.com/t/declaring-data-type-for-a-mc-on-the-stage-help/310225)

<div class="topic-metadata">

**Author:** [@SplashKhat](https://forum.kirupa.com/u/SplashKhat)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 6:08pm UTC](https://forum.kirupa.com/t/declaring-data-type-for-a-mc-on-the-stage-help/310225 "2010-06-04T18:08:08Z")

</div>

deleted

---

## [Advance keyframe with scripted timer](https://forum.kirupa.com/t/advance-keyframe-with-scripted-timer/310223)

<div class="topic-metadata">

**Author:** [@vcugreg](https://forum.kirupa.com/u/vcugreg)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 5:47pm UTC](https://forum.kirupa.com/t/advance-keyframe-with-scripted-timer/310223 "2010-06-04T17:47:57Z")

</div>

Hi all: My Objective: Create a scripted movie with seven keyframes and seven thumbnails below main image, each thumbnail being a jumpto button. I've set the file up with each frame displaying a different image, bu…

---

## [Problems with multiple upload page](https://forum.kirupa.com/t/problems-with-multiple-upload-page/310222)

<div class="topic-metadata">

**Author:** [@BenWillis](https://forum.kirupa.com/u/BenWillis)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 5:17pm UTC](https://forum.kirupa.com/t/problems-with-multiple-upload-page/310222 "2010-06-04T17:17:52Z")

</div>

Hello! I'm new here and I have a problem with an upload page I'm working on... The first time I load the page nothing happens! but if I reload it it works perfectly. I just learnt AS and Flash but this is the code …

---

## [Pagination using xml](https://forum.kirupa.com/t/pagination-using-xml/310221)

<div class="topic-metadata">

**Author:** [@I\_am\_Abby](https://forum.kirupa.com/u/I_am_Abby)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 5:02pm UTC](https://forum.kirupa.com/t/pagination-using-xml/310221 "2010-06-04T17:02:37Z")

</div>

I found a thread here that showed how to do pagination with php and xml and I tried to use it on my page which worked fine other than that...oh yea, I'm new to both php and xml. Anyway I have no Idea what I'm doing bu…

---

## [Read hittest from distance](https://forum.kirupa.com/t/read-hittest-from-distance/310220)

<div class="topic-metadata">

**Author:** [@Pedang](https://forum.kirupa.com/u/Pedang)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 4:57pm UTC](https://forum.kirupa.com/t/read-hittest-from-distance/310220 "2010-06-04T16:57:58Z")

</div>

Hi, is there a way to detect a hittest with two objects colliding from a distance? For example if I move an object like 5 pixels to the right, then it will touch the other object; is there a way to see this? I used my …

---

## [Random Background Rotation with transition effect](https://forum.kirupa.com/t/random-background-rotation-with-transition-effect/310214)

<div class="topic-metadata">

**Author:** [@illusive817](https://forum.kirupa.com/u/illusive817)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 2:50pm UTC](https://forum.kirupa.com/t/random-background-rotation-with-transition-effect/310214 "2010-06-04T14:50:30Z")

</div>

im not exactly sure where to start right now im using a script for dhtml to rotate imaged randomly what i hope to accomplish is background , that will have some type of transition effect and randomly show my images i …

---

## [\[AS2 - CS5\] Code Optimization (Speed issues)](https://forum.kirupa.com/t/as2-cs5-code-optimization-speed-issues/310213)

<div class="topic-metadata">

**Author:** [@Mal1t1a](https://forum.kirupa.com/u/Mal1t1a)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 1:57pm UTC](https://forum.kirupa.com/t/as2-cs5-code-optimization-speed-issues/310213 "2010-06-04T13:57:19Z")

</div>

Hi there, I need help in optimizing my code to speed up my flash (game?). I'm pretty basic with Actionscript and Flash, so I do need a bit of help. If someone could help me with my code, that would be greatly appreciat…

---

## [Flex, AS3 and Away3D](https://forum.kirupa.com/t/flex-as3-and-away3d/310210)

<div class="topic-metadata">

**Author:** [@micheals](https://forum.kirupa.com/u/micheals)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 7:20am UTC](https://forum.kirupa.com/t/flex-as3-and-away3d/310210 "2010-06-04T07:20:34Z")

</div>

I am new to Flex and AS3. I want to create a 3D game like Facebook farmville and cafe world. After research, I found that Cafe World is using Away3d. Anyone has experience doing 3D game using Away3D? Is there any where …

---

## [Flash ==\> php ==\> xml ==\> flash](https://forum.kirupa.com/t/flash-php-xml-flash/310207)

<div class="topic-metadata">

**Author:** [@cicco](https://forum.kirupa.com/u/cicco)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 7:06am UTC](https://forum.kirupa.com/t/flash-php-xml-flash/310207 "2010-06-04T07:06:27Z")

</div>

Hi, in first time, I want apologies me for English, I don't speak English very well, I'm French. My problem is, Flash application call a php script which make en xml file and Flash read this xml. But when I launch PHP …

---

## [Attaching Event Listener to NetStream Time](https://forum.kirupa.com/t/attaching-event-listener-to-netstream-time/310204)

<div class="topic-metadata">

**Author:** [@as3ohh](https://forum.kirupa.com/u/as3ohh)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 5:36am UTC](https://forum.kirupa.com/t/attaching-event-listener-to-netstream-time/310204 "2010-06-04T05:36:45Z")

</div>

So Im trying to get the current time (play head time) for a video on the stage and am using Netstream. I have a timer with an event listener pinging a function every 1000ms. But it is not smooth and the numbers jump a bi…

---

## [Help on codes](https://forum.kirupa.com/t/help-on-codes/310202)

<div class="topic-metadata">

**Author:** [@punk123123123](https://forum.kirupa.com/u/punk123123123)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 2:05am UTC](https://forum.kirupa.com/t/help-on-codes/310202 "2010-06-04T02:05:48Z")

</div>

Basically i need help with this 2 sets of codings to make the object fly at random places but instead it does not fly but blink instead. Food is the object i wan to make it move and 123 is the main class. Food Codes…

---

## [External Library Path for components?](https://forum.kirupa.com/t/external-library-path-for-components/310201)

<div class="topic-metadata">

**Author:** [@Matt\_Garland](https://forum.kirupa.com/u/Matt_Garland)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 11:42pm UTC](https://forum.kirupa.com/t/external-library-path-for-components/310201 "2010-06-03T23:42:02Z")

</div>

Hi, I want to: 1) Place symbols on the stage manually in loaded.fla 2) Exclude these symbols from the swf because they will already be in loading.swf So I: 1) Created a component.fla 2) Created a "comp" symbol in…

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

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