# programming

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

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

**Page:** 336

---

## [Sprite is larger than its children](https://forum.kirupa.com/t/sprite-is-larger-than-its-children/318883)

<div class="topic-metadata">

**Author:** [@Ninna](https://forum.kirupa.com/u/Ninna)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 6:01pm UTC](https://forum.kirupa.com/t/sprite-is-larger-than-its-children/318883 "2011-02-02T18:01:50Z")

</div>

I have sprites with dynamically created children: combo-boxes, buttons, and textfields. The number of children is variable and they're positioned vertically one under the other. If a sprite contains textfields only, its …

---

## [Targeting parent of clicked MC](https://forum.kirupa.com/t/targeting-parent-of-clicked-mc/318881)

<div class="topic-metadata">

**Author:** [@travisschau](https://forum.kirupa.com/u/travisschau)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 5:17pm UTC](https://forum.kirupa.com/t/targeting-parent-of-clicked-mc/318881 "2011-02-02T17:17:26Z")

</div>

hi there! this one's driving me crazy. I've got a button embedded in a MovieClip. When the user clicks the button (from the stage level), I want to return what MC the button's parent is, so that I can pull some variables…

---

## [Referencing the stage](https://forum.kirupa.com/t/referencing-the-stage/318880)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 5:14pm UTC](https://forum.kirupa.com/t/referencing-the-stage/318880 "2011-02-02T17:14:13Z")

</div>

I'm trying to reference the stage from my view class(AsteroidSuppyView). The view is a child of the document class. I'm tryng diffferent ways to do this but i'm getting the error: 1152: A conflict exists with inherit…

---

## [Diference between 'private function' and 'private static function'?](https://forum.kirupa.com/t/diference-between-private-function-and-private-static-function/318879)

<div class="topic-metadata">

**Author:** [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 4:54pm UTC](https://forum.kirupa.com/t/diference-between-private-function-and-private-static-function/318879 "2011-02-02T16:54:52Z")

</div>

Something that's been bugging me - is there a difference between classifying a function 'private' or 'private static' in a singleton? It seems that they both do the same thing. Maybe some difference in performance? pa…

---

## [Redirect after double-click](https://forum.kirupa.com/t/redirect-after-double-click/318875)

<div class="topic-metadata">

**Author:** [@tut222](https://forum.kirupa.com/u/tut222)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 1:19pm UTC](https://forum.kirupa.com/t/redirect-after-double-click/318875 "2011-02-02T13:19:44Z")

</div>

Hi I use jwplayer with plugin that allow embedding video on another sites and I need to add function through AS3. I need that after double click on embded video it redirects user on my website. Same thing like on you…

---

## [Changing dynamic font via XML data](https://forum.kirupa.com/t/changing-dynamic-font-via-xml-data/318874)

<div class="topic-metadata">

**Author:** [@theMonitor](https://forum.kirupa.com/u/theMonitor)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 12:25pm UTC](https://forum.kirupa.com/t/changing-dynamic-font-via-xml-data/318874 "2011-02-02T12:25:35Z")

</div>

Hello, wondered if anyone might be able to help... I am trying to create dynamic text fields in a movie that get their font information from an attribute in an XML document, i.e. \<fontInfo\>buttonFont="C:/WINDOWS/Fo…

---

## [Couple of issues i need a hand with](https://forum.kirupa.com/t/couple-of-issues-i-need-a-hand-with/318872)

<div class="topic-metadata">

**Author:** [@SessionDesign](https://forum.kirupa.com/u/SessionDesign)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 10:11am UTC](https://forum.kirupa.com/t/couple-of-issues-i-need-a-hand-with/318872 "2011-02-02T10:11:47Z")

</div>

Hi, Okay, here's my problems. For some reason the text-shadow dosen't show in any browsers, why is that? In the submenu the hover background is supposed to be purple, why isn't it? If anybody could take a look at …

---

## [EventDispatcher inner working](https://forum.kirupa.com/t/eventdispatcher-inner-working/318871)

<div class="topic-metadata">

**Author:** [@Booya](https://forum.kirupa.com/u/Booya)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 9:45am UTC](https://forum.kirupa.com/t/eventdispatcher-inner-working/318871 "2011-02-02T09:45:51Z")

</div>

Hi - hopefully someone could help me out. I want to simulate the Actionscript3.0 EventDispatcher in JavaScript. If you have seen a rebuild of the EventDispatcher I would be pleased to know about that \[smile\] So if yo…

---

## [What is better to use "div" or "tables"?](https://forum.kirupa.com/t/what-is-better-to-use-div-or-tables/318870)

<div class="topic-metadata">

**Author:** [@andykeating](https://forum.kirupa.com/u/andykeating)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 9:08am UTC](https://forum.kirupa.com/t/what-is-better-to-use-div-or-tables/318870 "2011-02-02T09:08:44Z")

</div>

\*\*\[FONT=&quot\] \[/FONT\]\*\* Hi all, I would like to know some doubts that I have. I have observer that some websites are using "div" and other "tables". What is the difference between those 2? What do I get or what …

---

## [Heavy looping](https://forum.kirupa.com/t/heavy-looping/318869)

<div class="topic-metadata">

**Author:** [@fikontrollet](https://forum.kirupa.com/u/fikontrollet)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 8:44am UTC](https://forum.kirupa.com/t/heavy-looping/318869 "2011-02-02T08:44:40Z")

</div>

Hey, I'm having trouble getting my loop to run efficiently on slower computers. I've made some speed improvements, but i's still not fast enough. Could someone give me their 2 cents of how to speed it up? // all verti…

---

## [Retrieving randomized data from an array?](https://forum.kirupa.com/t/retrieving-randomized-data-from-an-array/318868)

<div class="topic-metadata">

**Author:** [@takearushfan](https://forum.kirupa.com/u/takearushfan)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 7:45am UTC](https://forum.kirupa.com/t/retrieving-randomized-data-from-an-array/318868 "2011-02-02T07:45:32Z")

</div>

Hi again, I'm currently reading various books on AS 3 and haven't yet reached the parts that would enlighten me to my question. However, my impatient side is getting the better of me right now, so I'll ask here. (so…

---

## [Problem sending data to php](https://forum.kirupa.com/t/problem-sending-data-to-php/318866)

<div class="topic-metadata">

**Author:** [@JamminBill](https://forum.kirupa.com/u/JamminBill)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 4:07am UTC](https://forum.kirupa.com/t/problem-sending-data-to-php/318866 "2011-02-02T04:07:53Z")

</div>

I have two text fields. One is named txtFoo and the other is txtBar. They have numbers in them. When I click the btnSubmit I want the txtFoo.text and txtBar.text to be sent to a php file. Below is my code: var variabl…

---

## [Access constructor parameters from another function](https://forum.kirupa.com/t/access-constructor-parameters-from-another-function/318865)

<div class="topic-metadata">

**Author:** [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 2:51am UTC](https://forum.kirupa.com/t/access-constructor-parameters-from-another-function/318865 "2011-02-02T02:51:14Z")

</div>

So I usually use an object in the constructor to receive the parameters like new Class({param1:00,param2:0099,etc). To be able to access those parameters from other functions inside the class I create an object, and co…

---

## [Embedded font works in one TextField, not in another?!](https://forum.kirupa.com/t/embedded-font-works-in-one-textfield-not-in-another/318864)

<div class="topic-metadata">

**Author:** [@Stickeroo](https://forum.kirupa.com/u/Stickeroo)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 2:13am UTC](https://forum.kirupa.com/t/embedded-font-works-in-one-textfield-not-in-another/318864 "2011-02-02T02:13:15Z")

</div>

This is weird. I have a font embedded on, say, frame 11 -- it doesn't get used until frame 21. I'm preloading everything using Jack Doyle's LoaderMax classes. No problems there. What's weird is that after everythin…

---

## [Minor problem in AOL](https://forum.kirupa.com/t/minor-problem-in-aol/318862)

<div class="topic-metadata">

**Author:** [@nordink](https://forum.kirupa.com/u/nordink)\
**Replies:** 0\
**Last updated:** [February 2, 2011, 12:26am UTC](https://forum.kirupa.com/t/minor-problem-in-aol/318862 "2011-02-02T00:26:31Z")

</div>

This page I've coded contains thumbnail pictures at the bottom. On every browser other than AOL, you can flip through these by clicking on the pictures or arrows. But in AOL (9) it is frozen! Does anyone have an idea…

---

## [Overcasted superclass method not triggering subclass' method](https://forum.kirupa.com/t/overcasted-superclass-method-not-triggering-subclass-method/318856)

<div class="topic-metadata">

**Author:** [@Geki](https://forum.kirupa.com/u/Geki)\
**Replies:** 0\
**Last updated:** [February 1, 2011, 3:13pm UTC](https://forum.kirupa.com/t/overcasted-superclass-method-not-triggering-subclass-method/318856 "2011-02-01T15:13:30Z")

</div>

Ok, Say I have a class called Animal that has a method foo() and I call it out within the Animal class. protected function foo():void { trace("Animal"); } I also have a class called Cat that extends Animal and …

---

## [CSS formatting and a custom font](https://forum.kirupa.com/t/css-formatting-and-a-custom-font/318852)

<div class="topic-metadata">

**Author:** [@Markomedia](https://forum.kirupa.com/u/Markomedia)\
**Replies:** 0\
**Last updated:** [February 1, 2011, 2:04pm UTC](https://forum.kirupa.com/t/css-formatting-and-a-custom-font/318852 "2011-02-01T14:04:00Z")

</div>

Hi, all! In my flash project I use a CSS formated text field. And today I found a really nice font for it on the web. Is there a way to make the field display that font even on computers which don't have it installed? T…

---

## [Sailing on the scrollbar high seas and have a question or two](https://forum.kirupa.com/t/sailing-on-the-scrollbar-high-seas-and-have-a-question-or-two/318851)

<div class="topic-metadata">

**Author:** [@chilldog](https://forum.kirupa.com/u/chilldog)\
**Replies:** 0\
**Last updated:** [February 1, 2011, 2:01pm UTC](https://forum.kirupa.com/t/sailing-on-the-scrollbar-high-seas-and-have-a-question-or-two/318851 "2011-02-01T14:01:18Z")

</div>

I'm trying to get a playhead to move across a grid, when it reaches the maximum space of the mask covering the grid I want the playhead to automatically scroll the scrollbar. Right now, the playhead will move to the end …

---

## [Error #2136](https://forum.kirupa.com/t/error-2136/318848)

<div class="topic-metadata">

**Author:** [@damienAlbern](https://forum.kirupa.com/u/damienAlbern)\
**Replies:** 0\
**Last updated:** [February 1, 2011, 10:08am UTC](https://forum.kirupa.com/t/error-2136/318848 "2011-02-01T10:08:50Z")

</div>

Hi I am using Flash 9 Flex SDK Flash Develop Here is the exact error I get in FD; "\[Fault\] exception, information=Error: Error #2136: The SWF file file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/i…

---

## [Online Portfolio with multi-preloaders](https://forum.kirupa.com/t/online-portfolio-with-multi-preloaders/318846)

<div class="topic-metadata">

**Author:** [@nick\_barry](https://forum.kirupa.com/u/nick_barry)\
**Replies:** 0\
**Last updated:** [February 1, 2011, 8:34am UTC](https://forum.kirupa.com/t/online-portfolio-with-multi-preloaders/318846 "2011-02-01T08:34:31Z")

</div>

So, The past couple of days I've been trying create a flash portfolio, with preloaders for each different project. Sound easy enough? Apparently not for me. So I'm trying to structure the page like this. …

---

## [Shared Object Plz Help](https://forum.kirupa.com/t/shared-object-plz-help/318844)

<div class="topic-metadata">

**Author:** [@Asteroids](https://forum.kirupa.com/u/Asteroids)\
**Replies:** 0\
**Last updated:** [February 1, 2011, 7:40am UTC](https://forum.kirupa.com/t/shared-object-plz-help/318844 "2011-02-01T07:40:51Z")

</div>

hi... plz help about shared object i wanna to make some program click button to change color button and save last color when close program plz help thanks you:)

---

## [Button code for my fla](https://forum.kirupa.com/t/button-code-for-my-fla/318842)

<div class="topic-metadata">

**Author:** [@skundan75](https://forum.kirupa.com/u/skundan75)\
**Replies:** 0\
**Last updated:** [February 1, 2011, 7:10am UTC](https://forum.kirupa.com/t/button-code-for-my-fla/318842 "2011-02-01T07:10:47Z")

</div>

Hi I have one fla. In this FLA I have few Movie Clips. aboutus (movieclip) -\> aboutmenu (movieclip) -\> buttonMenu (movieclip)-\> president (button) I want to write the code for president (button) and want to go to a…

---

## [Ie load a white square instead of de file.swf](https://forum.kirupa.com/t/ie-load-a-white-square-instead-of-de-file-swf/318840)

<div class="topic-metadata">

**Author:** [@jucape](https://forum.kirupa.com/u/jucape)\
**Replies:** 0\
**Last updated:** [February 1, 2011, 5:16am UTC](https://forum.kirupa.com/t/ie-load-a-white-square-instead-of-de-file-swf/318840 "2011-02-01T05:16:36Z")

</div>

Hello I have a lot of problems with IE in my site. It’s a very easy site. Elastic Layout. the header is invisible, the rest (footer, sidebar and content) have objects that load swfs. It has worked with all the browsers…

---

## [Rotating Bar with Multiple Childs - how to find points of attachments](https://forum.kirupa.com/t/rotating-bar-with-multiple-childs-how-to-find-points-of-attachments/318836)

<div class="topic-metadata">

**Author:** [@gamerx](https://forum.kirupa.com/u/gamerx)\
**Replies:** 0\
**Last updated:** [February 1, 2011, 1:35am UTC](https://forum.kirupa.com/t/rotating-bar-with-multiple-childs-how-to-find-points-of-attachments/318836 "2011-02-01T01:35:50Z")

</div>

Hi fellow gamers, I am rotating a horizontal bar from one of its axis called pt x. This pt x is one one end of the bar. On the other end of the bar is two objects that needs to be attached at specified places on the …

---

## [Have I actually managed to modify XML?](https://forum.kirupa.com/t/have-i-actually-managed-to-modify-xml/318833)

<div class="topic-metadata">

**Author:** [@JamminBill](https://forum.kirupa.com/u/JamminBill)\
**Replies:** 0\
**Last updated:** [February 1, 2011, 12:24am UTC](https://forum.kirupa.com/t/have-i-actually-managed-to-modify-xml/318833 "2011-02-01T00:24:19Z")

</div>

We have a sort of game where buttons are clicked in order to make choices. A number of buttons are available. When a button is clicked it registers a "1" in a textfield. If it is not clicked or later unclicked the textfi…

---

## [Problems: loaded SWF cannot add movie from library](https://forum.kirupa.com/t/problems-loaded-swf-cannot-add-movie-from-library/318829)

<div class="topic-metadata">

**Author:** [@marceloreborn](https://forum.kirupa.com/u/marceloreborn)\
**Replies:** 0\
**Last updated:** [January 31, 2011, 9:34pm UTC](https://forum.kirupa.com/t/problems-loaded-swf-cannot-add-movie-from-library/318829 "2011-01-31T21:34:01Z")

</div>

Hi! I have a "Main" swf, which loads "Site" swf. "Site" is a normal movie, with it's Document Class. When I run it alone, it works fine, adding a movieclip from library into it's stage. But when I run "Main", it sh…

---

## [Best methods for exporting a .mov from Flash?](https://forum.kirupa.com/t/best-methods-for-exporting-a-mov-from-flash/318826)

<div class="topic-metadata">

**Author:** [@Pixelmech](https://forum.kirupa.com/u/Pixelmech)\
**Replies:** 0\
**Last updated:** [January 31, 2011, 7:24pm UTC](https://forum.kirupa.com/t/best-methods-for-exporting-a-mov-from-flash/318826 "2011-01-31T19:24:12Z")

</div>

I'm creating an introductory video for readers of my webcomic. Because I know Flash, I'm creating it there. Basically it's a voiceover with some static comic images getting panned and zoomed around, with some sound effec…

---

## [Is an array the best solution for this problem?](https://forum.kirupa.com/t/is-an-array-the-best-solution-for-this-problem/318825)

<div class="topic-metadata">

**Author:** [@Pixelmech](https://forum.kirupa.com/u/Pixelmech)\
**Replies:** 0\
**Last updated:** [January 31, 2011, 7:19pm UTC](https://forum.kirupa.com/t/is-an-array-the-best-solution-for-this-problem/318825 "2011-01-31T19:19:05Z")

</div>

Hi there, I'm working up a demo where a couple of little games would show up in a panel. There is a main menu that you bounce around to select things (the games as well as other apps.) When a single game is running, …

---

## [Looking for someone good with HTML/CSS](https://forum.kirupa.com/t/looking-for-someone-good-with-html-css/318824)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [January 31, 2011, 6:58pm UTC](https://forum.kirupa.com/t/looking-for-someone-good-with-html-css/318824 "2011-01-31T18:58:24Z")

</div>

Is there anyone good at HTML and CSS that is willing to help out with small things now and then in return for AS3 or PHP favors? I am quite good with ActionScript, and able to do most things in PHP. So in return, I wou…

---

## [Attach Multiple MC w/values](https://forum.kirupa.com/t/attach-multiple-mc-w-values/318818)

<div class="topic-metadata">

**Author:** [@kill\_robot\_kill](https://forum.kirupa.com/u/kill_robot_kill)\
**Replies:** 0\
**Last updated:** [January 31, 2011, 3:53pm UTC](https://forum.kirupa.com/t/attach-multiple-mc-w-values/318818 "2011-01-31T15:53:42Z")

</div>

function createTopicMC(f\_id:uint, f\_text:String):void{ var topic:SavedTopic = new SavedTopic(); topic.savedTitle.text = f\_id // \<-here topic.savedText.text = f\_text; // \<-here addChild(topic); savedTopicArr.push(t…

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

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