# programming

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

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

**Page:** 412

---

## [Trouble with loader class](https://forum.kirupa.com/t/trouble-with-loader-class/314256)

<div class="topic-metadata">

**Author:** [@Frosteh](https://forum.kirupa.com/u/Frosteh)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 10:53pm UTC](https://forum.kirupa.com/t/trouble-with-loader-class/314256 "2010-09-22T22:53:07Z")

</div>

I've got a website that I'm building and I'm having a bit of trouble with the loader. Basically I've got 3 .swf files that make up the website. 1) Preloader. 2) Site 1. 3) Site 2. The website is rather large, with each s…

---

## [Hockey DT Johnson out for Bengals RB Benson will s](https://forum.kirupa.com/t/hockey-dt-johnson-out-for-bengals-rb-benson-will-s/314254)

<div class="topic-metadata">

**Author:** [@skdhdkd091](https://forum.kirupa.com/u/skdhdkd091)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 10:24pm UTC](https://forum.kirupa.com/t/hockey-dt-johnson-out-for-bengals-rb-benson-will-s/314254 "2010-09-22T22:24:12Z")

</div>

,\[LeBron James Vintage JerseyCheck out the complete list of inactives for Week 5. The development of Vishnevskiy and Leddy will be directly tied to the Blackhawks ability and willingness to move Campbell. Overall, the Bl…

---

## [Tell movie clip to play](https://forum.kirupa.com/t/tell-movie-clip-to-play/314253)

<div class="topic-metadata">

**Author:** [@KateH](https://forum.kirupa.com/u/KateH)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 9:31pm UTC](https://forum.kirupa.com/t/tell-movie-clip-to-play/314253 "2010-09-22T21:31:42Z")

</div>

I have a movie clip on my stage. I want a button to tell the movie to play The instance of the movie clip is called holder\_mc. What is the action script to tell the holder\_mc to play. Thanks, Kate

---

## [Noob accessing different Classes with a variable question](https://forum.kirupa.com/t/noob-accessing-different-classes-with-a-variable-question/314251)

<div class="topic-metadata">

**Author:** [@Gilgemesh](https://forum.kirupa.com/u/Gilgemesh)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 8:13pm UTC](https://forum.kirupa.com/t/noob-accessing-different-classes-with-a-variable-question/314251 "2010-09-22T20:13:48Z")

</div>

I am trying to write some code that will pull a different instance of a library item into a placeholder on the stage depending on what button is pressed. Here is the code I have right now, but it seems like there should…

---

## [Need help with my scrollable textfield class](https://forum.kirupa.com/t/need-help-with-my-scrollable-textfield-class/314249)

<div class="topic-metadata">

**Author:** [@rayarman](https://forum.kirupa.com/u/rayarman)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 7:50pm UTC](https://forum.kirupa.com/t/need-help-with-my-scrollable-textfield-class/314249 "2010-09-22T19:50:37Z")

</div>

Hi, I'm still new to flash and actionscript so would appreciate any help. I've made a class called scrollertext which creates a textfield to my dimensions, which is then scrollable by clicking on the text and draggin…

---

## [Animated Scrolling of Text in Text Area Component](https://forum.kirupa.com/t/animated-scrolling-of-text-in-text-area-component/314247)

<div class="topic-metadata">

**Author:** [@tcambron](https://forum.kirupa.com/u/tcambron)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 7:07pm UTC](https://forum.kirupa.com/t/animated-scrolling-of-text-in-text-area-component/314247 "2010-09-22T19:07:18Z")

</div>

Greetings, Can anyone tell me how to animate the scrolling of text down through a populated scrollPane. There is an initial text area populated with several lines of text, not all visible. Onload the ScrollPane shoul…

---

## [Problems with XML](https://forum.kirupa.com/t/problems-with-xml/314242)

<div class="topic-metadata">

**Author:** [@infestedd](https://forum.kirupa.com/u/infestedd)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 5:59pm UTC](https://forum.kirupa.com/t/problems-with-xml/314242 "2010-09-22T17:59:00Z")

</div>

Hi! First of all, nice to meet you guys, im glad i found a cool forum like this and i wish i can help u someday Well i started making flash websites this week, so u can figure im a total newbie. since my work depends o…

---

## [Embedding a login form from an aspx site on a php home page](https://forum.kirupa.com/t/embedding-a-login-form-from-an-aspx-site-on-a-php-home-page/314241)

<div class="topic-metadata">

**Author:** [@onlyhands](https://forum.kirupa.com/u/onlyhands)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 5:41pm UTC](https://forum.kirupa.com/t/embedding-a-login-form-from-an-aspx-site-on-a-php-home-page/314241 "2010-09-22T17:41:09Z")

</div>

Hello. I'm not a developer, so I'm really lost. I want to have a login form like the one seen at the bottom right-hand corner on http://www.medqresearch.com/. I'll have this on the home page of a site built on php, a…

---

## [Package Files to Open in Internet Browser](https://forum.kirupa.com/t/package-files-to-open-in-internet-browser/314240)

<div class="topic-metadata">

**Author:** [@foolontheplanet](https://forum.kirupa.com/u/foolontheplanet)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 5:06pm UTC](https://forum.kirupa.com/t/package-files-to-open-in-internet-browser/314240 "2010-09-22T17:06:09Z")

</div>

Hey everyone. I'm getting close to finishing the application I'm working on, and the person I'm working for is going to be distributing it via DVD. My question is, can someone either help me, or point me somewhere tha…

---

## [Pinball Wizard](https://forum.kirupa.com/t/pinball-wizard/314239)

<div class="topic-metadata">

**Author:** [@paulscanlon\_99](https://forum.kirupa.com/u/paulscanlon_99)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 3:47pm UTC](https://forum.kirupa.com/t/pinball-wizard/314239 "2010-09-22T15:47:23Z")

</div>

Hey, i'm doing my best to make the step from AS2 to AS3 and thought a game would be the most bearable way to do it, at the very least i get to play games while i develop... but then i got stuck. the problem i think is …

---

## [Converting mouse control to arrow keys](https://forum.kirupa.com/t/converting-mouse-control-to-arrow-keys/314234)

<div class="topic-metadata">

**Author:** [@kimmy\_dora](https://forum.kirupa.com/u/kimmy_dora)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 1:07pm UTC](https://forum.kirupa.com/t/converting-mouse-control-to-arrow-keys/314234 "2010-09-22T13:07:40Z")

</div>

hi all, can somebody help me with my codes in my flash game . Because here in my game the main character is controlled through mouse and i want it to be controlled in left and right arrow keys. Here are the codes: on t…

---

## [How to Embed fonts in Flash CS5](https://forum.kirupa.com/t/how-to-embed-fonts-in-flash-cs5/314233)

<div class="topic-metadata">

**Author:** [@ilmyar](https://forum.kirupa.com/u/ilmyar)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 12:20pm UTC](https://forum.kirupa.com/t/how-to-embed-fonts-in-flash-cs5/314233 "2010-09-22T12:20:26Z")

</div>

\[FONT="Trebuchet MS"\] \[COLOR="Blue"\]I am new to Flash and I am using Flash CS5, please provide some guidance regarding fonts embedding in flash CS 5.\[/COLOR\] \[/FONT\]

---

## [How do I drag the flash background?](https://forum.kirupa.com/t/how-do-i-drag-the-flash-background/314232)

<div class="topic-metadata">

**Author:** [@devamind](https://forum.kirupa.com/u/devamind)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 12:18pm UTC](https://forum.kirupa.com/t/how-do-i-drag-the-flash-background/314232 "2010-09-22T12:18:37Z")

</div>

I want to click and drag the background like this: http://www.newgrounds.com/portal/view/289031 How do i do it? Do I just paste a specific action script? Please help! Thanks! P.S. Something like google map: http://ma…

---

## [\[Flash CS4\] Scroll navigation portfolio issue](https://forum.kirupa.com/t/flash-cs4-scroll-navigation-portfolio-issue/314231)

<div class="topic-metadata">

**Author:** [@LvD](https://forum.kirupa.com/u/LvD)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 11:41am UTC](https://forum.kirupa.com/t/flash-cs4-scroll-navigation-portfolio-issue/314231 "2010-09-22T11:41:03Z")

</div>

Hey guys, I am having an issue with my portfolio navigation. I got 6 vertical thumbnails with a scrollbar. If you click on one of those i want the project to be enlarged in the window beside of it. The scroll has a …

---

## [Find and change all instances of a colour in CSS](https://forum.kirupa.com/t/find-and-change-all-instances-of-a-colour-in-css/314229)

<div class="topic-metadata">

**Author:** [@radbourn3](https://forum.kirupa.com/u/radbourn3)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 10:50am UTC](https://forum.kirupa.com/t/find-and-change-all-instances-of-a-colour-in-css/314229 "2010-09-22T10:50:35Z")

</div>

Hi all I have a CSS file that contains a million instances of the colour #00add0. The user now wants to be able to change the colour of the entire website so I'd like to be able to use JavaScript or jQuery to find and re…

---

## [Function parameter as unknown type](https://forum.kirupa.com/t/function-parameter-as-unknown-type/314228)

<div class="topic-metadata">

**Author:** [@kissa](https://forum.kirupa.com/u/kissa)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 10:33am UTC](https://forum.kirupa.com/t/function-parameter-as-unknown-type/314228 "2010-09-22T10:33:39Z")

</div>

I'm trying to convert some C# code I have and one problem I can't find a solution for is to have a function take parameters of unknown types. C# code: public T Maximum\<T\>(T v1, T v2) { return v1 \> v2 != null ? v1…

---

## [New and need help - drag and drop with dynamic text](https://forum.kirupa.com/t/new-and-need-help-drag-and-drop-with-dynamic-text/314219)

<div class="topic-metadata">

**Author:** [@evilkittay](https://forum.kirupa.com/u/evilkittay)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 1:30am UTC](https://forum.kirupa.com/t/new-and-need-help-drag-and-drop-with-dynamic-text/314219 "2010-09-22T01:30:34Z")

</div>

So I'm doing this project and as an animator I'm not familiar with the whole action script side of flash Okay so far I've managed to create the whole Drag and Drop feature and it works well, the thing is I want to mak…

---

## [Loading instance into movie clip? Brain Fart](https://forum.kirupa.com/t/loading-instance-into-movie-clip-brain-fart/314215)

<div class="topic-metadata">

**Author:** [@KateH](https://forum.kirupa.com/u/KateH)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 9:29pm UTC](https://forum.kirupa.com/t/loading-instance-into-movie-clip-brain-fart/314215 "2010-09-21T21:29:23Z")

</div>

Hello, I want to load an instance into a empty movie clip on my scene1. On scene1 I have an empty movie clip empty\_mc. In my library I have a jpeg I converted into a symbol. I through the symbol onto stage1 and gave it…

---

## [XML tag variable name](https://forum.kirupa.com/t/xml-tag-variable-name/314214)

<div class="topic-metadata">

**Author:** [@Wilky](https://forum.kirupa.com/u/Wilky)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 9:23pm UTC](https://forum.kirupa.com/t/xml-tag-variable-name/314214 "2010-09-21T21:23:04Z")

</div>

Hi there, this may be a noob question. I have this part of XML: \<news\> \<image src="..."\> \</news\> \<about\> \<image src="..."\> \</about\> and I have this function which passes the name of the section I would like to use ("…

---

## [Which way is faster?](https://forum.kirupa.com/t/which-way-is-faster/314213)

<div class="topic-metadata">

**Author:** [@Nick23](https://forum.kirupa.com/u/Nick23)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 8:50pm UTC](https://forum.kirupa.com/t/which-way-is-faster/314213 "2010-09-21T20:50:56Z")

</div>

I am making a flash game and I am trying to make it as efficient as possible. I need to set a timer and then do something after the timer runs out. So, that being said I am wondering which method would be faster (or mor…

---

## [Round a number to values in an array](https://forum.kirupa.com/t/round-a-number-to-values-in-an-array/314209)

<div class="topic-metadata">

**Author:** [@xbox\_hacker](https://forum.kirupa.com/u/xbox_hacker)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 7:30pm UTC](https://forum.kirupa.com/t/round-a-number-to-values-in-an-array/314209 "2010-09-21T19:30:31Z")

</div>

lets say i do some simple AS3 math and get a Number of 199. How can i use a Array with values of "preferred" numbers, compare the 199 to the array and round up or down to the closest value in the array? var myNumber:N…

---

## [Always show 3 Decimal Places](https://forum.kirupa.com/t/always-show-3-decimal-places/314207)

<div class="topic-metadata">

**Author:** [@blasko229](https://forum.kirupa.com/u/blasko229)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 6:42pm UTC](https://forum.kirupa.com/t/always-show-3-decimal-places/314207 "2010-09-21T18:42:54Z")

</div>

For example I could have 6 or 6.5 or 6.75 or 6.125 but I need to convert all to show zeros at the end if they are less than three decimal places. So it should output respectively, 6.000 6.500 6.750 or leave alone at 6…

---

## [Preloader issue in AS2](https://forum.kirupa.com/t/preloader-issue-in-as2/314206)

<div class="topic-metadata">

**Author:** [@arudius](https://forum.kirupa.com/u/arudius)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 6:14pm UTC](https://forum.kirupa.com/t/preloader-issue-in-as2/314206 "2010-09-21T18:14:51Z")

</div>

I have a pre-loader built into my website. The preloader may look familiar to some in fact... Because I have to export the main site's content - of which is held in various scrollpanes, to the first frame, the preloader …

---

## [Multilanguage site](https://forum.kirupa.com/t/multilanguage-site/314203)

<div class="topic-metadata">

**Author:** [@Life\_Master](https://forum.kirupa.com/u/Life_Master)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 4:00pm UTC](https://forum.kirupa.com/t/multilanguage-site/314203 "2010-09-21T16:00:55Z")

</div>

and again raise the issue of multilanguage I struggle with this problem for a long time ... tired ... have ready solutions? all with XML...

---

## [TimerEvent - can I pass a variable?](https://forum.kirupa.com/t/timerevent-can-i-pass-a-variable/314201)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 3:33pm UTC](https://forum.kirupa.com/t/timerevent-can-i-pass-a-variable/314201 "2010-09-21T15:33:10Z")

</div>

Hi, I have a TimerEvent set up and want to pass a variable in it. Is this possible without creating my own custom event? public function someFunction() { var apples:int = 200; var timer:Timer = new Timer(1000, 1); t…

---

## [Best practices question](https://forum.kirupa.com/t/best-practices-question/314198)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 3:20pm UTC](https://forum.kirupa.com/t/best-practices-question/314198 "2010-09-21T15:20:54Z")

</div>

I see this kind of thing periodically: addEventListener(Event.ENTER\_FRAME, enterFrameListener); function enterFrameListener(e:Event):void { var aaa:Number = 10; var bbb:Sprite = new Sprite(); // do stuf…

---

## [Array help? Hoorray...?](https://forum.kirupa.com/t/array-help-hoorray/314196)

<div class="topic-metadata">

**Author:** [@Drjekyll](https://forum.kirupa.com/u/Drjekyll)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 2:41pm UTC](https://forum.kirupa.com/t/array-help-hoorray/314196 "2010-09-21T14:41:39Z")

</div>

Ok, so I'm ne to this forum, please dont laugh. I'm trying to build a flash gallery with two levels, I.e. thumb \> click to see medium image \> click large medium image! Now, I do know a little about coding however, SA3 …

---

## [Problems resizing SWF to browser](https://forum.kirupa.com/t/problems-resizing-swf-to-browser/314192)

<div class="topic-metadata">

**Author:** [@Morruin](https://forum.kirupa.com/u/Morruin)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 12:40pm UTC](https://forum.kirupa.com/t/problems-resizing-swf-to-browser/314192 "2010-09-21T12:40:21Z")

</div>

Hello everybody! I've some problems with my flash website http://a.bogdanov.x10.mx/ . I've a photo as a background and I need to stretch that image on browser window without scale. I need that the image was expanded…

---

## [Random Image transition in flash](https://forum.kirupa.com/t/random-image-transition-in-flash/314191)

<div class="topic-metadata">

**Author:** [@skeerthana](https://forum.kirupa.com/u/skeerthana)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 11:19am UTC](https://forum.kirupa.com/t/random-image-transition-in-flash/314191 "2010-09-21T11:19:10Z")

</div>

Hello Im looking for a random transition effect in flash.... say for example i have 10 images.... Each time page refreshes images should be shuffled and be loaded. Kindly help me Regards Keerthana

---

## [Newbie question - conflict with imported classes?](https://forum.kirupa.com/t/newbie-question-conflict-with-imported-classes/314189)

<div class="topic-metadata">

**Author:** [@theMonitor](https://forum.kirupa.com/u/theMonitor)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 9:19am UTC](https://forum.kirupa.com/t/newbie-question-conflict-with-imported-classes/314189 "2010-09-21T09:19:13Z")

</div>

An unashamedly naive question, I'm afraid, from someone trying to get to grips with as3 classes... I have a movie clip (a car) on the stage that's linked, through the 'Class' field in the symbol properties dialogue bo…

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

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