# programming

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

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

**Page:** 211

---

## [Can I use AS to move a MC a specified distance not to a cooridinate?](https://forum.kirupa.com/t/can-i-use-as-to-move-a-mc-a-specified-distance-not-to-a-cooridinate/326113)

<div class="topic-metadata">

**Author:** [@media\_mixx](https://forum.kirupa.com/u/media_mixx)\
**Replies:** 0\
**Last updated:** [November 23, 2011, 1:52pm UTC](https://forum.kirupa.com/t/can-i-use-as-to-move-a-mc-a-specified-distance-not-to-a-cooridinate/326113 "2011-11-23T13:52:31Z")

</div>

\[TABLE="class: tborder, width: 100%, align: center"\] \[TR\] \[TD="class: alt1, bgcolor: #FFFFFF"\]Hello, I am working on a project where I have 5 equal sized panels inside of a MC that uses the following code to load the M…

---

## [Help with passing a variable to Flash. SWFObject maybe, not sure](https://forum.kirupa.com/t/help-with-passing-a-variable-to-flash-swfobject-maybe-not-sure/326112)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [November 23, 2011, 1:19pm UTC](https://forum.kirupa.com/t/help-with-passing-a-variable-to-flash-swfobject-maybe-not-sure/326112 "2011-11-23T13:19:35Z")

</div>

Hello, I am trying to place a SWF on a page and pass a variable to it. The variable would depend on which link that the user clicked on. I am toggling the visibility of the div containing the SWF (code at the bottom). …

---

## [TextAnim class - brilliant - but I have a problem](https://forum.kirupa.com/t/textanim-class-brilliant-but-i-have-a-problem/326110)

<div class="topic-metadata">

**Author:** [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Replies:** 0\
**Last updated:** [November 23, 2011, 11:37am UTC](https://forum.kirupa.com/t/textanim-class-brilliant-but-i-have-a-problem/326110 "2011-11-23T11:37:52Z")

</div>

Anyone tried TextAnim? It's brilliant for making your own text effects. I am making something real simple but cannot get it to work. I am sure just pure AS3 thinkers could probably solve this without even knowing the c…

---

## [Text+Background Expand](https://forum.kirupa.com/t/text-background-expand/326109)

<div class="topic-metadata">

**Author:** [@deaconpt](https://forum.kirupa.com/u/deaconpt)\
**Replies:** 0\
**Last updated:** [November 23, 2011, 11:13am UTC](https://forum.kirupa.com/t/text-background-expand/326109 "2011-11-23T11:13:53Z")

</div>

Hello, Noob alert:) What I would like to do is something like you see in the image. I have a small text with the background. When i click or mouse over read more, the background expands vertically also with the o…

---

## [How to mantain a movieclip's color between frames?](https://forum.kirupa.com/t/how-to-mantain-a-movieclips-color-between-frames/326106)

<div class="topic-metadata">

**Author:** [@lucgeme](https://forum.kirupa.com/u/lucgeme)\
**Replies:** 0\
**Last updated:** [November 23, 2011, 8:52am UTC](https://forum.kirupa.com/t/how-to-mantain-a-movieclips-color-between-frames/326106 "2011-11-23T08:52:39Z")

</div>

My app has 2 frames; in frame 1 there are 5 MC and on a DOUBLE\_CLICK event the target's color change and go to the next frame 2. In frame 2 i have a button to return to frame 1. How can i maintain the MC color when i re…

---

## [CSS3 Generator tool online](https://forum.kirupa.com/t/css3-generator-tool-online/326105)

<div class="topic-metadata">

**Author:** [@sarashar](https://forum.kirupa.com/u/sarashar)\
**Replies:** 0\
**Last updated:** [November 23, 2011, 7:31am UTC](https://forum.kirupa.com/t/css3-generator-tool-online/326105 "2011-11-23T07:31:23Z")

</div>

New tool to generate CSS3 for creating CSS3 and HTML5 web design with updated code to IE9 The tool in created via Flex, easy to generate code online \[smile\] http://www.designscripting.com/webtools/css3/generator/

---

## [Tutorial: Changing the Default Focus Styles](https://forum.kirupa.com/t/tutorial-changing-the-default-focus-styles/326103)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [November 23, 2011, 5:14am UTC](https://forum.kirupa.com/t/tutorial-changing-the-default-focus-styles/326103 "2011-11-23T05:14:52Z")

</div>

Hi everyone, This is the happening place to discuss all things related to the Changing the Default Focus Styles tutorial. Cheers, Kirupa :q:

---

## [It is weird!Help please!](https://forum.kirupa.com/t/it-is-weird-help-please/326102)

<div class="topic-metadata">

**Author:** [@sinyi88](https://forum.kirupa.com/u/sinyi88)\
**Replies:** 0\
**Last updated:** [November 23, 2011, 3:35am UTC](https://forum.kirupa.com/t/it-is-weird-help-please/326102 "2011-11-23T03:35:28Z")

</div>

It is weird.Why the same fla source code publish different size of swf file in different computer with same version of adobe flash which is cs4?1 is about 3mb only and the other is about 20mb.The different is too big!Wha…

---

## [Event capture?!](https://forum.kirupa.com/t/event-capture/326101)

<div class="topic-metadata">

**Author:** [@charlesg](https://forum.kirupa.com/u/charlesg)\
**Replies:** 0\
**Last updated:** [November 23, 2011, 1:50am UTC](https://forum.kirupa.com/t/event-capture/326101 "2011-11-23T01:50:54Z")

</div>

Wow, I just realized that the mouse events stop on the first registered handler... There is no bubbling in as2? How could people get by while having only one event handler for nested movieclips? Nothing was nested and …

---

## [AS3 Vector Array Collisions](https://forum.kirupa.com/t/as3-vector-array-collisions/326100)

<div class="topic-metadata">

**Author:** [@Skulmuk](https://forum.kirupa.com/u/Skulmuk)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 11:25pm UTC](https://forum.kirupa.com/t/as3-vector-array-collisions/326100 "2011-11-22T23:25:16Z")

</div>

Hi guys, First off, let me introduce myself. I'm new here as a member, but Kirupa is one site I oft have visited as a Guest when in dire need of Flash advice, so I know I'm in the right place! I have a very simple qu…

---

## [Count PHP Subarray](https://forum.kirupa.com/t/count-php-subarray/326099)

<div class="topic-metadata">

**Author:** [@NewHeart42108](https://forum.kirupa.com/u/NewHeart42108)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 9:51pm UTC](https://forum.kirupa.com/t/count-php-subarray/326099 "2011-11-22T21:51:24Z")

</div>

I have an array in PHP in the format Array ( \[0\] =\> Array ( \[class\] =\> 14 \[Owner\] =\> 89) \[1\] =\> Array ( \[class\] =\> 15 \[Owner\] =\> 6634) \[2\] =\> Array ( \[class\] =\> 15 \[Owner\] =\> 6837) ... ) I would like to g…

---

## [A button in one SWF gotoandplay in another SWF on the same HTML page](https://forum.kirupa.com/t/a-button-in-one-swf-gotoandplay-in-another-swf-on-the-same-html-page/326097)

<div class="topic-metadata">

**Author:** [@Dominic\_Smith](https://forum.kirupa.com/u/Dominic_Smith)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 8:12pm UTC](https://forum.kirupa.com/t/a-button-in-one-swf-gotoandplay-in-another-swf-on-the-same-html-page/326097 "2011-11-22T20:12:40Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]Ooooohkay, i’ve been digging through the internet to try and find a solution to this… Basically i have two SWFs on my page, one of them has a button which i want to affect the SWF to the righ…

---

## [TypeError: Error #1006](https://forum.kirupa.com/t/typeerror-error-1006/326096)

<div class="topic-metadata">

**Author:** [@bunsak](https://forum.kirupa.com/u/bunsak)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 5:40pm UTC](https://forum.kirupa.com/t/typeerror-error-1006/326096 "2011-11-22T17:40:18Z")

</div>

Dear All, I'm a new AS3 script learner, the code below was extracted from a free tutorial... After I tried to test my project I received the erroe below: \*\* TypeError: Error #1006: value is not a function.\*\* \*\* at …

---

## [How to position a div within a div](https://forum.kirupa.com/t/how-to-position-a-div-within-a-div/326093)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 4:30pm UTC](https://forum.kirupa.com/t/how-to-position-a-div-within-a-div/326093 "2011-11-22T16:30:49Z")

</div>

Hello, I am trying to position a div over a portion of another div. There is a picture attached for reference. I can move the green dragger div down using margin but it moves the SWF down also, which you can see that i…

---

## [Why is my 'enemy' not showing up? AS3 + CS4](https://forum.kirupa.com/t/why-is-my-enemy-not-showing-up-as3-cs4/326092)

<div class="topic-metadata">

**Author:** [@theSkiff](https://forum.kirupa.com/u/theSkiff)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 4:04pm UTC](https://forum.kirupa.com/t/why-is-my-enemy-not-showing-up-as3-cs4/326092 "2011-11-22T16:04:03Z")

</div>

Hey all! I have a problem. My enemy wont show up in my scene! Could you help me? Thanks, and any help is greatly appreciated. Download Link:(.ZIP includes 3 files -\> heli.fla - space3.jpeg - heli.swf) I called it 'he…

---

## [Synchronizing loaders](https://forum.kirupa.com/t/synchronizing-loaders/326091)

<div class="topic-metadata">

**Author:** [@aldernaft](https://forum.kirupa.com/u/aldernaft)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 3:49pm UTC](https://forum.kirupa.com/t/synchronizing-loaders/326091 "2011-11-22T15:49:37Z")

</div>

I'm currently working on a program wherein I use a main class to load external swf files using loader objects. I'm trying to synchronize the unloading of 1 menu with the loading of another using Event.COMPLETE event list…

---

## [Scale all but currentTarget](https://forum.kirupa.com/t/scale-all-but-currenttarget/326086)

<div class="topic-metadata">

**Author:** [@Obi\_Wan](https://forum.kirupa.com/u/Obi_Wan)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 10:02am UTC](https://forum.kirupa.com/t/scale-all-but-currenttarget/326086 "2011-11-22T10:02:59Z")

</div>

Hey folks on click I am trying to scale the currentTarget to 1 and loop through all of my other items and scale them down to .6 if they are not the currentTarget. Please view the two functions below. The initEaselItem…

---

## [Editing a Gallery](https://forum.kirupa.com/t/editing-a-gallery/326084)

<div class="topic-metadata">

**Author:** [@Stela](https://forum.kirupa.com/u/Stela)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 8:03am UTC](https://forum.kirupa.com/t/editing-a-gallery/326084 "2011-11-22T08:03:00Z")

</div>

Hello… I'm editing a Gallery http://www.wop.pt/Working/index.html What I wanted is that the gallery was centered, like this http://www.templatemonster.com/flash-templates/33576.html I think the code for that it's t…

---

## [printJob ignores htmlText with font face declaration](https://forum.kirupa.com/t/printjob-ignores-htmltext-with-font-face-declaration/326082)

<div class="topic-metadata">

**Author:** [@kill\_robot\_kill](https://forum.kirupa.com/u/kill_robot_kill)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 2:12am UTC](https://forum.kirupa.com/t/printjob-ignores-htmltext-with-font-face-declaration/326082 "2011-11-22T02:12:50Z")

</div>

so I am trying to print a string with html formatting. Part of the formatting includes font face. I have found that my print job will not print ANY string that includes a font face declaration. I'm guessing because the f…

---

## [textFormat stops working on set text in costom text class](https://forum.kirupa.com/t/textformat-stops-working-on-set-text-in-costom-text-class/326081)

<div class="topic-metadata">

**Author:** [@bonassus](https://forum.kirupa.com/u/bonassus)\
**Replies:** 0\
**Last updated:** [November 21, 2011, 11:01pm UTC](https://forum.kirupa.com/t/textformat-stops-working-on-set-text-in-costom-text-class/326081 "2011-11-21T23:01:43Z")

</div>

I have a textDisplay class that i want to instantiate in another class and set the text property with the function setText. It works but the problem is that the textformat stops working when I call setText(\_theText); if…

---

## [Event Propagation Problem](https://forum.kirupa.com/t/event-propagation-problem/326079)

<div class="topic-metadata">

**Author:** [@tyberius7](https://forum.kirupa.com/u/tyberius7)\
**Replies:** 0\
**Last updated:** [November 21, 2011, 9:09pm UTC](https://forum.kirupa.com/t/event-propagation-problem/326079 "2011-11-21T21:09:42Z")

</div>

Hello, I have been using Flash Builder to write an actionscript class (hence stage instances aren’t being automatically declared) and have come across a problem with event propagation and nested movieclip targeting whic…

---

## [Require code to stop SE registering website links](https://forum.kirupa.com/t/require-code-to-stop-se-registering-website-links/326078)

<div class="topic-metadata">

**Author:** [@catcat31](https://forum.kirupa.com/u/catcat31)\
**Replies:** 0\
**Last updated:** [November 21, 2011, 8:20pm UTC](https://forum.kirupa.com/t/require-code-to-stop-se-registering-website-links/326078 "2011-11-21T20:20:35Z")

</div>

Hi, A long time ago I remember putting some code on a website (in a txt file I think) which stopped the search engines from spidering the web pages I didn't want showing online. I've forgotten how this should look. Ple…

---

## [Position MovieClips relative to Flash movie size. like in FLEX](https://forum.kirupa.com/t/position-movieclips-relative-to-flash-movie-size-like-in-flex/326077)

<div class="topic-metadata">

**Author:** [@Rinalds\_Zukulis](https://forum.kirupa.com/u/Rinalds_Zukulis)\
**Replies:** 0\
**Last updated:** [November 21, 2011, 7:09pm UTC](https://forum.kirupa.com/t/position-movieclips-relative-to-flash-movie-size-like-in-flex/326077 "2011-11-21T19:09:01Z")

</div>

Hey guys! I have a problem. How to position Objects in flash so that they stay like 10px from left no matter the size of flash movie. Something like in flex. And how to embed Flash movie in HTML so that it all worked…

---

## [Why can't I use this class inside my MovieClip?](https://forum.kirupa.com/t/why-cant-i-use-this-class-inside-my-movieclip/326075)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [November 21, 2011, 4:33pm UTC](https://forum.kirupa.com/t/why-cant-i-use-this-class-inside-my-movieclip/326075 "2011-11-21T16:33:46Z")

</div>

Hi, The attached ﻿\[COLOR=#ff0000\]SlideshowExample\*\*\*\*.as \*\*\[/COLOR\]file works quite nice when I use it on stage directly. But when I tried to use it in \[COLOR=#0000ff\]Gallery\_mc \*\*\[/COLOR\]movie clip, it doesn't work, P…

---

## [Text changes size depending on the parent height](https://forum.kirupa.com/t/text-changes-size-depending-on-the-parent-height/326074)

<div class="topic-metadata">

**Author:** [@avh](https://forum.kirupa.com/u/avh)\
**Replies:** 0\
**Last updated:** [November 21, 2011, 4:07pm UTC](https://forum.kirupa.com/t/text-changes-size-depending-on-the-parent-height/326074 "2011-11-21T16:07:33Z")

</div>

I am attempting to create some sort of information sheet that contains some rows of texts, dynamically loaded from an xml file. I don't have much experience with Action Script, but I've been programming in various langua…

---

## [XML Data disappearing](https://forum.kirupa.com/t/xml-data-disappearing/326072)

<div class="topic-metadata">

**Author:** [@onemhunki](https://forum.kirupa.com/u/onemhunki)\
**Replies:** 0\
**Last updated:** [November 21, 2011, 11:09am UTC](https://forum.kirupa.com/t/xml-data-disappearing/326072 "2011-11-21T11:09:38Z")

</div>

Hello folks, I have a movieclip on my main stage that has two frames within it, both of which are populated by XML data. The data loads fine and I can move to frame two, but when I return to Frame 1 the data fields pop…

---

## [Log every ExternalInterface call](https://forum.kirupa.com/t/log-every-externalinterface-call/326064)

<div class="topic-metadata">

**Author:** [@charlesg](https://forum.kirupa.com/u/charlesg)\
**Replies:** 0\
**Last updated:** [November 20, 2011, 11:41pm UTC](https://forum.kirupa.com/t/log-every-externalinterface-call/326064 "2011-11-20T23:41:08Z")

</div>

Hi, I'm wondering if you guys know a way to log every data coming to a flash 8 swf from its container? I know that it is a bit weird, but I'm trying to figure this one out. Maybe one of you already faced a similar situ…

---

## [What is the best way to have a hovering, draggable element on a page? JS suggestions](https://forum.kirupa.com/t/what-is-the-best-way-to-have-a-hovering-draggable-element-on-a-page-js-suggestions/326063)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [November 20, 2011, 11:10pm UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-have-a-hovering-draggable-element-on-a-page-js-suggestions/326063 "2011-11-20T23:10:17Z")

</div>

Hello, I've been struggling with trying to show a hovering, draggable SWF on a page when a user clicks a link for more information. I created a draggable \[COLOR=darkgreen\]div\[/COLOR\] and put the SWF inside the div but …

---

## [Webcam Night & Day detection](https://forum.kirupa.com/t/webcam-night-day-detection/326062)

<div class="topic-metadata">

**Author:** [@Bruck](https://forum.kirupa.com/u/Bruck)\
**Replies:** 0\
**Last updated:** [November 20, 2011, 9:31pm UTC](https://forum.kirupa.com/t/webcam-night-day-detection/326062 "2011-11-20T21:31:19Z")

</div>

Hi, so I'm having a bit of trouble implementing a system that can detect night and day through webcam. I've decided the best approach would be to detect the average colour of the webcam image, and through this it can b…

---

## [How to load my Gallery.swf on Page 6. It loads on first page (HomePage\_mc)?](https://forum.kirupa.com/t/how-to-load-my-gallery-swf-on-page-6-it-loads-on-first-page-homepage-mc/326060)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [November 20, 2011, 6:44pm UTC](https://forum.kirupa.com/t/how-to-load-my-gallery-swf-on-page-6-it-loads-on-first-page-homepage-mc/326060 "2011-11-20T18:44:27Z")

</div>

Hi, The following code loads my "Gallery.swf" external file on HomePage\_mc (Which is Page-1). But I would like it to load it on Gallery\_mc (which is Page-6). How can I do that? The following is the code: ButtonsPa…

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

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