# programming

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

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

**Page:** 467

---

## [Load selective swf files before first swf plays](https://forum.kirupa.com/t/load-selective-swf-files-before-first-swf-plays/310966)

<div class="topic-metadata">

**Author:** [@aditi\_bluekrill](https://forum.kirupa.com/u/aditi_bluekrill)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 6:26am UTC](https://forum.kirupa.com/t/load-selective-swf-files-before-first-swf-plays/310966 "2010-06-24T06:26:25Z")

</div>

Hello, I have made an entire Flash website as a collection of movie clips calling each other. The problem is that my first clip is very light whereas the second clip is very heavy. I don't want there to be a break betw…

---

## [Scene/button framelable problem](https://forum.kirupa.com/t/scene-button-framelable-problem/310965)

<div class="topic-metadata">

**Author:** [@lefty](https://forum.kirupa.com/u/lefty)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 5:44am UTC](https://forum.kirupa.com/t/scene-button-framelable-problem/310965 "2010-06-24T05:44:04Z")

</div>

hey guys I've been working on this all day and it is driving me crazy. I have a gallery on my first scene and wanted to make a couple of pages like artist information and contact. but every single time I make a new sce…

---

## [Score error](https://forum.kirupa.com/t/score-error/310963)

<div class="topic-metadata">

**Author:** [@punk123123123](https://forum.kirupa.com/u/punk123123123)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 3:05am UTC](https://forum.kirupa.com/t/score-error/310963 "2010-06-24T03:05:47Z")

</div>

Basically after asking many doubts in this forum, i manage to make those objects fly etc etc etc but score is the problem, timer is the problem. my score cant be displayed and i want to set time base on how to set the sc…

---

## [Liquid Flash Layout](https://forum.kirupa.com/t/liquid-flash-layout/310960)

<div class="topic-metadata">

**Author:** [@solivan2010](https://forum.kirupa.com/u/solivan2010)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 11:01pm UTC](https://forum.kirupa.com/t/liquid-flash-layout/310960 "2010-06-23T23:01:32Z")

</div>

Hi, I'm not sure where I got this tutorial from: http://www.tutorio.com/tutorial/liquid-flash-layout I did it and it works. The only problems is that is not working in Firefox. It's just fine Safari. This is the l…

---

## [Generating Rectangle on Movieclip (AS3)](https://forum.kirupa.com/t/generating-rectangle-on-movieclip-as3/310956)

<div class="topic-metadata">

**Author:** [@Scheisse](https://forum.kirupa.com/u/Scheisse)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 9:47pm UTC](https://forum.kirupa.com/t/generating-rectangle-on-movieclip-as3/310956 "2010-06-23T21:47:42Z")

</div>

Hello, I was wondering if anyone could enlighten me as to how I could generate a rectangle movieclip on top of the longest section of a frame of a movieclip using AS3? If this is the movieclip frame, I want it to find …

---

## [Embed a flash gallery swf into a pre-existing FLA file](https://forum.kirupa.com/t/embed-a-flash-gallery-swf-into-a-pre-existing-fla-file/310955)

<div class="topic-metadata">

**Author:** [@bryantjcoffey](https://forum.kirupa.com/u/bryantjcoffey)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 9:24pm UTC](https://forum.kirupa.com/t/embed-a-flash-gallery-swf-into-a-pre-existing-fla-file/310955 "2010-06-23T21:24:27Z")

</div>

Title says it all, any ideas? Thanks. Bryant

---

## [How fast is indexOf?](https://forum.kirupa.com/t/how-fast-is-indexof/310953)

<div class="topic-metadata">

**Author:** [@dandylion13](https://forum.kirupa.com/u/dandylion13)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 8:15pm UTC](https://forum.kirupa.com/t/how-fast-is-indexof/310953 "2010-06-23T20:15:49Z")

</div>

Hi.. just wondering: Does anyone know if using indexOf is faster than using a for loop?

---

## [Movieclip playing on stage bug](https://forum.kirupa.com/t/movieclip-playing-on-stage-bug/310952)

<div class="topic-metadata">

**Author:** [@003](https://forum.kirupa.com/u/003)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 7:58pm UTC](https://forum.kirupa.com/t/movieclip-playing-on-stage-bug/310952 "2010-06-23T19:58:33Z")

</div>

I've come across a bug in Flash CS4 (AS3).. I've created a mask - shape for which i added a shape tween for resizeing... The tween was not done programicly, it was done by clicking on the timeline and resizeing on stag…

---

## [Flash file in Dreamweaver](https://forum.kirupa.com/t/flash-file-in-dreamweaver/310951)

<div class="topic-metadata">

**Author:** [@getrhythm](https://forum.kirupa.com/u/getrhythm)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 7:08pm UTC](https://forum.kirupa.com/t/flash-file-in-dreamweaver/310951 "2010-06-23T19:08:04Z")

</div>

I have a website (solely flash) that i have embedded in a box inside a dreamweaver file. The .swf has a preloader, contains only as2 and about 45 big images (its not a big file, basically). I have coded everything as it …

---

## [Export .FLV from Flash CS4](https://forum.kirupa.com/t/export-flv-from-flash-cs4/310950)

<div class="topic-metadata">

**Author:** [@GiveMeCoffee](https://forum.kirupa.com/u/GiveMeCoffee)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 6:56pm UTC](https://forum.kirupa.com/t/export-flv-from-flash-cs4/310950 "2010-06-23T18:56:22Z")

</div>

How do you create a .flv file from a flash file? (Flash CS4)

---

## [Event Listener for Specific Time?](https://forum.kirupa.com/t/event-listener-for-specific-time/310948)

<div class="topic-metadata">

**Author:** [@as3ohh](https://forum.kirupa.com/u/as3ohh)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 6:43pm UTC](https://forum.kirupa.com/t/event-listener-for-specific-time/310948 "2010-06-23T18:43:52Z")

</div>

Can an event listener be set up to watch for a specific time? Like at 121 secs fire off?

---

## [Unique names for textField created in for each loop](https://forum.kirupa.com/t/unique-names-for-textfield-created-in-for-each-loop/310947)

<div class="topic-metadata">

**Author:** [@jaioxung](https://forum.kirupa.com/u/jaioxung)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 5:55pm UTC](https://forum.kirupa.com/t/unique-names-for-textfield-created-in-for-each-loop/310947 "2010-06-23T17:55:51Z")

</div>

I have an for each loop that creates a new textField for each item and I need to know how you can give each textField a unique name so it can be targeted later on. Here is the relevent code: var i:int = 1; for each …

---

## [Go to frame and play reverse](https://forum.kirupa.com/t/go-to-frame-and-play-reverse/310945)

<div class="topic-metadata">

**Author:** [@imcabee](https://forum.kirupa.com/u/imcabee)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 5:02pm UTC](https://forum.kirupa.com/t/go-to-frame-and-play-reverse/310945 "2010-06-23T17:02:53Z")

</div>

Is it possible to go to a frame earlier in the timeline and then play the timeline in reverse? Here is my reverse script: retouchBtn.onRelease=function() { \_root.onEnterFrame=reverseFrame; \_root.option = "r…

---

## [I am too stupid to write a conditional statement](https://forum.kirupa.com/t/i-am-too-stupid-to-write-a-conditional-statement/310943)

<div class="topic-metadata">

**Author:** [@JamminBill](https://forum.kirupa.com/u/JamminBill)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 4:53pm UTC](https://forum.kirupa.com/t/i-am-too-stupid-to-write-a-conditional-statement/310943 "2010-06-23T16:53:59Z")

</div>

The code below links to an xml file (currentData). There are three candidates running in an election. The counties (aButtons array) on a state map need to change colors depending on which candidate has the highest percen…

---

## [Error creating Avatar using MyAvatarEditor](https://forum.kirupa.com/t/error-creating-avatar-using-myavatareditor/310942)

<div class="topic-metadata">

**Author:** [@adove](https://forum.kirupa.com/u/adove)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 4:46pm UTC](https://forum.kirupa.com/t/error-creating-avatar-using-myavatareditor/310942 "2010-06-23T16:46:36Z")

</div>

I am using MyAvatarEditor downloaded from http://www.myavatareditor.com/ however, when I compile the \[COLOR=blue\]\[COLOR=blue ! important\]\[COLOR=blue ! important\]application\[/COLOR\]\[/COLOR\]\[/COLOR\] I get runtime errors…

---

## [How to access MC's creating in a custom class?](https://forum.kirupa.com/t/how-to-access-mcs-creating-in-a-custom-class/310940)

<div class="topic-metadata">

**Author:** [@Cablestein](https://forum.kirupa.com/u/Cablestein)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 4:26pm UTC](https://forum.kirupa.com/t/how-to-access-mcs-creating-in-a-custom-class/310940 "2010-06-23T16:26:21Z")

</div>

I have a custom class which creates a new MC using a library MC. The library MC contains a dynamic textfield called productName. The custom class object gets created fine and is displaying on the stage. It's also holdi…

---

## [Dispatching and receiving events](https://forum.kirupa.com/t/dispatching-and-receiving-events/310938)

<div class="topic-metadata">

**Author:** [@wolcotter](https://forum.kirupa.com/u/wolcotter)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 3:27pm UTC](https://forum.kirupa.com/t/dispatching-and-receiving-events/310938 "2010-06-23T15:27:40Z")

</div>

I am attempting to dispatch an event on the click of any of the buttons in a button array in the document class of my application. The intent is to have an external object receive this dispatch so as to remove a listener…

---

## [XML parsing](https://forum.kirupa.com/t/xml-parsing/310936)

<div class="topic-metadata">

**Author:** [@exhaler](https://forum.kirupa.com/u/exhaler)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 12:16pm UTC](https://forum.kirupa.com/t/xml-parsing/310936 "2010-06-23T12:16:55Z")

</div>

hi, i used this great tutorial http://www.kirupa.com/web/xml\_php\_parse\_intermediate.htm to parse an xml file, however my xml file has some attributes in the tags: \<content Name="Press Releases"\> \<article Thumb="pr…

---

## [XML parsing using PHP](https://forum.kirupa.com/t/xml-parsing-using-php/310935)

<div class="topic-metadata">

**Author:** [@exhaler](https://forum.kirupa.com/u/exhaler)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 12:04pm UTC](https://forum.kirupa.com/t/xml-parsing-using-php/310935 "2010-06-23T12:04:50Z")

</div>

Hi, i'm using this great tutorial to view an xml using php http://www.kirupa.com/web/xml\_php\_parse\_intermediate.htm however in my xml file i have somehting like this: \<content Name="Press Releases"\> \<article Thu…

---

## [FLV player problem](https://forum.kirupa.com/t/flv-player-problem/310934)

<div class="topic-metadata">

**Author:** [@OML](https://forum.kirupa.com/u/OML)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 10:46am UTC](https://forum.kirupa.com/t/flv-player-problem/310934 "2010-06-23T10:46:41Z")

</div>

I'm building a custom flv player using the FLVPlayback component. I'm looking for a way to catch an event when the movie enters a new frame (in the flv and not on the timeline). So I tried changing the playheadUpdate…

---

## [How i can add PNG image in custom component?](https://forum.kirupa.com/t/how-i-can-add-png-image-in-custom-component/310930)

<div class="topic-metadata">

**Author:** [@JaxNa](https://forum.kirupa.com/u/JaxNa)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 9:31am UTC](https://forum.kirupa.com/t/how-i-can-add-png-image-in-custom-component/310930 "2010-06-23T09:31:15Z")

</div>

Hi Guys, This is my custom Component. \<components:EmployeeDisplay imageFile="abrilliam.\[COLOR=#FF0000\]png\[/COLOR\]"/\> Can you help me please how to add png format image. when i add png format image that time this ima…

---

## [How to distort a bitmap between the known points](https://forum.kirupa.com/t/how-to-distort-a-bitmap-between-the-known-points/310929)

<div class="topic-metadata">

**Author:** [@artoix](https://forum.kirupa.com/u/artoix)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 9:08am UTC](https://forum.kirupa.com/t/how-to-distort-a-bitmap-between-the-known-points/310929 "2010-06-23T09:08:12Z")

</div>

I have four points and I need to draw a bitmap between these points. Points coordinates constantly change uniformly so the bitmap must be distorted so its vertices have the same coordinates as the points (see attached im…

---

## [Menu item selection error](https://forum.kirupa.com/t/menu-item-selection-error/310925)

<div class="topic-metadata">

**Author:** [@palanivelrajan](https://forum.kirupa.com/u/palanivelrajan)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 5:42am UTC](https://forum.kirupa.com/t/menu-item-selection-error/310925 "2010-06-23T05:42:34Z")

</div>

I tried with some codes but I couldn't do the following in the popup I need to select items when I click I need change the filter effects or colors After selecting item in each category that filter effect won't go. mo…

---

## [\[Flash CS3 AS2\] External SWF Tween can't unload after loaded! HELP!](https://forum.kirupa.com/t/flash-cs3-as2-external-swf-tween-cant-unload-after-loaded-help/310924)

<div class="topic-metadata">

**Author:** [@johnsonjjj](https://forum.kirupa.com/u/johnsonjjj)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 4:54am UTC](https://forum.kirupa.com/t/flash-cs3-as2-external-swf-tween-cant-unload-after-loaded-help/310924 "2010-06-23T04:54:11Z")

</div>

Hi all, I have a gallery with tween effect which allows the photos to change size. However, after loaded photos work but i can't unload it! If i change the 1 to \_mc, it's able to unload but then tween won't work.:e…

---

## [Creating Dynamic Var Names](https://forum.kirupa.com/t/creating-dynamic-var-names/310922)

<div class="topic-metadata">

**Author:** [@as3ohh](https://forum.kirupa.com/u/as3ohh)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 1:28am UTC](https://forum.kirupa.com/t/creating-dynamic-var-names/310922 "2010-06-23T01:28:38Z")

</div>

Is there a way to make dynamic var names? Cant remember how to do this. Something like: NameCount = 1; Obj.eval("Item" + NameCount)) = "hello world"; Obj.Item1 // trace "hello world"

---

## [Nested If Else](https://forum.kirupa.com/t/nested-if-else/310921)

<div class="topic-metadata">

**Author:** [@naa233](https://forum.kirupa.com/u/naa233)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 11:29pm UTC](https://forum.kirupa.com/t/nested-if-else/310921 "2010-06-22T23:29:39Z")

</div>

Forgive me for my lack of as3 vocabulary. I'm working on an image viewer that contains 14 projects, each being their own external swf. I am determined to get a functioning invisible next button that takes you to the ne…

---

## [Rumblesushi3D Collision Grid demo](https://forum.kirupa.com/t/rumblesushi3d-collision-grid-demo/310920)

<div class="topic-metadata">

**Author:** [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 10:50pm UTC](https://forum.kirupa.com/t/rumblesushi3d-collision-grid-demo/310920 "2010-06-22T22:50:42Z")

</div>

I'm in the process of tweaking and optimising my collision broadphase, so I can get on with working on my first game. With all the talk of collision grids etc recently, I've decided to upload it and show the performanc…

---

## [Flash Christmas eCard cs3 or 4](https://forum.kirupa.com/t/flash-christmas-ecard-cs3-or-4/310919)

<div class="topic-metadata">

**Author:** [@jelly46](https://forum.kirupa.com/u/jelly46)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 10:26pm UTC](https://forum.kirupa.com/t/flash-christmas-ecard-cs3-or-4/310919 "2010-06-22T22:26:55Z")

</div>

I am kind of new to flash As i am a web developer i have been asked to develop an e-card Description: A Christmas Card Animated kids drawing that opens up and into a card that the user that write a message Do y…

---

## [Reliable AS3 multiple keypress](https://forum.kirupa.com/t/reliable-as3-multiple-keypress/310916)

<div class="topic-metadata">

**Author:** [@bhnh](https://forum.kirupa.com/u/bhnh)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 8:56pm UTC](https://forum.kirupa.com/t/reliable-as3-multiple-keypress/310916 "2010-06-22T20:56:36Z")

</div>

I recently finished a Flash game under a bone-crushing deadline. I was writing it in AS3 and realized that the good ol' \[COLOR=royalblue\]if(Key.isDown())\[/COLOR\] method was no longer with us. Upon scouting around I fou…

---

## [Getting Movie Clip from Library in AS class](https://forum.kirupa.com/t/getting-movie-clip-from-library-in-as-class/310915)

<div class="topic-metadata">

**Author:** [@blakem](https://forum.kirupa.com/u/blakem)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 8:15pm UTC](https://forum.kirupa.com/t/getting-movie-clip-from-library-in-as-class/310915 "2010-06-22T20:15:45Z")

</div>

I am working on a flash game that I am building in Flash Builder 4. I have a library of movieclips in the FLA file and need to create instances of these movieclips within objects of a custom class. I am unsure how to ref…

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

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