# flash

**URL:** https://forum.kirupa.com/c/programming/flash/38.md?page=684

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

**Page:** 685

---

## [Why doesnt this code work?](https://forum.kirupa.com/t/why-doesnt-this-code-work/283605)

<div class="topic-metadata">

**Author:** [@helpflash0](https://forum.kirupa.com/u/helpflash0)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 3:00am UTC](https://forum.kirupa.com/t/why-doesnt-this-code-work/283605 "2009-03-09T03:00:11Z")

</div>

ok i am using as2 and zinc 3.0 Can anyone tell me why these codes are different? I have 2 textboxes and a button all on the same frame on the same layer. called sendAnswer, box1.text and box2.text. This code does…

---

## [How does MXML and Actionscript 3 relate?](https://forum.kirupa.com/t/how-does-mxml-and-actionscript-3-relate/283599)

<div class="topic-metadata">

**Author:** [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 1:04am UTC](https://forum.kirupa.com/t/how-does-mxml-and-actionscript-3-relate/283599 "2009-03-09T01:04:37Z")

</div>

Hi all, I have been using Flex Builder for a while now, infact since i started coding in AS3 Projects. One of the fundamental issues i have from experience of trying flex, is i dont see how MXML tags and AS3 is rela…

---

## [How to make the value decrease?](https://forum.kirupa.com/t/how-to-make-the-value-decrease/283590)

<div class="topic-metadata">

**Author:** [@farban](https://forum.kirupa.com/u/farban)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 9:26pm UTC](https://forum.kirupa.com/t/how-to-make-the-value-decrease/283590 "2009-03-08T21:26:51Z")

</div>

Heya there just havig a stupid problem where the health on my game increases on my game instead of decreases when the player is hit. here is the source code HUD.as (Scoreboard) private var stageRef:Stage…

---

## [Expandable Flash Content](https://forum.kirupa.com/t/expandable-flash-content/283588)

<div class="topic-metadata">

**Author:** [@jrbamberg](https://forum.kirupa.com/u/jrbamberg)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 6:47pm UTC](https://forum.kirupa.com/t/expandable-flash-content/283588 "2009-03-08T18:47:04Z")

</div>

I'd like to create a expandable flash file that lays over html content. Here's what I am trying to figure out how to do. I have a client that I made a flash banner for that has flash map that you can interact with whic…

---

## [Binary Socket](https://forum.kirupa.com/t/binary-socket/283587)

<div class="topic-metadata">

**Author:** [@PsuFan](https://forum.kirupa.com/u/PsuFan)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 6:29pm UTC](https://forum.kirupa.com/t/binary-socket/283587 "2009-03-08T18:29:14Z")

</div>

Hello, Everyone claims that they have a binary socket using the Socket() class but I havent found any that work properly. I have tried var sData = socket.readUTFBytes(sock.bytesAvailable); which works fine for plain …

---

## [AS 3.0 - Linking to a frame from a MovieClip](https://forum.kirupa.com/t/as-3-0-linking-to-a-frame-from-a-movieclip/283586)

<div class="topic-metadata">

**Author:** [@oblivion2010](https://forum.kirupa.com/u/oblivion2010)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 6:11pm UTC](https://forum.kirupa.com/t/as-3-0-linking-to-a-frame-from-a-movieclip/283586 "2009-03-08T18:11:59Z")

</div>

Hey guys, I'm trying to link from inside my movieclip to a frame on the main timeline. The ActionScript is inside the MovieClip. function gotoSite(e:MouseEvent):void{ gotoAndPlay("home"); } This is the code I'm u…

---

## [\[AS2\] mp3 using loadSound restarting after 2 seconds](https://forum.kirupa.com/t/as2-mp3-using-loadsound-restarting-after-2-seconds/283580)

<div class="topic-metadata">

**Author:** [@Heerefishyfish](https://forum.kirupa.com/u/Heerefishyfish)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 2:46pm UTC](https://forum.kirupa.com/t/as2-mp3-using-loadsound-restarting-after-2-seconds/283580 "2009-03-08T14:46:39Z")

</div>

Hi all, I'm having some trouble with loadSound. I've created a portfolio section for a company that has short (1:30) mp3 clips. The clips are being loaded in dynamically through an XML doc. For whatever reason, when…

---

## [\[AS2\] Buffering animation reappearing over netStream loaded FLV](https://forum.kirupa.com/t/as2-buffering-animation-reappearing-over-netstream-loaded-flv/283579)

<div class="topic-metadata">

**Author:** [@Heerefishyfish](https://forum.kirupa.com/u/Heerefishyfish)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 2:44pm UTC](https://forum.kirupa.com/t/as2-buffering-animation-reappearing-over-netstream-loaded-flv/283579 "2009-03-08T14:44:23Z")

</div>

Hi all, I'm using netStream to stream dynamically loaded flv's into a video gallery. I've created a "buffering" animation called "bufferCounter" that loops while the stream is buffering. However, it keeps reappearing…

---

## [Tweening and easing a mc onto stage on enter](https://forum.kirupa.com/t/tweening-and-easing-a-mc-onto-stage-on-enter/283578)

<div class="topic-metadata">

**Author:** [@Poul](https://forum.kirupa.com/u/Poul)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 2:25pm UTC](https://forum.kirupa.com/t/tweening-and-easing-a-mc-onto-stage-on-enter/283578 "2009-03-08T14:25:29Z")

</div>

Im trying to load a movie clip onto the stage as soon as you enter the main movie. I want to use action script to tween with a little ease in and out. I found a usefull tutorial that almost does what Im looking for, but …

---

## [Adding volume control to Simple Viewer-Pro gallery](https://forum.kirupa.com/t/adding-volume-control-to-simple-viewer-pro-gallery/283577)

<div class="topic-metadata">

**Author:** [@Nancye50](https://forum.kirupa.com/u/Nancye50)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 2:00pm UTC](https://forum.kirupa.com/t/adding-volume-control-to-simple-viewer-pro-gallery/283577 "2009-03-08T14:00:04Z")

</div>

I'm a complete Flash novice and am trying to add volume control and/or on/off controls to a Simple Viewer-Pro photo gallery. Is this an involved task or something I could tackle? Thanks for your help! Nancy

---

## [Add movieclip class](https://forum.kirupa.com/t/add-movieclip-class/283576)

<div class="topic-metadata">

**Author:** [@Alber\_Kidd](https://forum.kirupa.com/u/Alber_Kidd)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 1:43pm UTC](https://forum.kirupa.com/t/add-movieclip-class/283576 "2009-03-08T13:43:43Z")

</div>

Hi, I want to write a class that adds a movieclip to the stage, I need to pass the movieclip class to be added, a variable name, delay time, x position, y position, parent. I would like to add it like this addMyIma…

---

## [Loading an external SWF and going to specific coordinates](https://forum.kirupa.com/t/loading-an-external-swf-and-going-to-specific-coordinates/283574)

<div class="topic-metadata">

**Author:** [@RussianBeer](https://forum.kirupa.com/u/RussianBeer)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 1:12pm UTC](https://forum.kirupa.com/t/loading-an-external-swf-and-going-to-specific-coordinates/283574 "2009-03-08T13:12:48Z")

</div>

Hi guys I have menu.swf which loads an external SWF (longmenu.swf) (I attach an image to explain better) longmenu.swf has a long background on stage, which scrolls according to what the user clicks. It works fine on…

---

## [How to communicate between loaded swf and parent swf](https://forum.kirupa.com/t/how-to-communicate-between-loaded-swf-and-parent-swf/283573)

<div class="topic-metadata">

**Author:** [@Wouke](https://forum.kirupa.com/u/Wouke)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 11:49am UTC](https://forum.kirupa.com/t/how-to-communicate-between-loaded-swf-and-parent-swf/283573 "2009-03-08T11:49:57Z")

</div>

Hi guys, I started learning the basics of as3.0 a year ago by doing a lot of experiments.. I never read a book or took lessons or something.. I guess i'm still missing important logics when i'm programming. I'm creatin…

---

## [How to wait until user respond and then continue process?](https://forum.kirupa.com/t/how-to-wait-until-user-respond-and-then-continue-process/283572)

<div class="topic-metadata">

**Author:** [@cpthk](https://forum.kirupa.com/u/cpthk)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 8:35am UTC](https://forum.kirupa.com/t/how-to-wait-until-user-respond-and-then-continue-process/283572 "2009-03-08T08:35:37Z")

</div>

If I have code: Alert.show('Please respond'); request.send(); In this code, flex will pop alert to screen and immediately send out the request. How do I wait until user clicks ok on the alert and then send out the …

---

## [\[as2\] Keycode issue with play and pause toggle, please help](https://forum.kirupa.com/t/as2-keycode-issue-with-play-and-pause-toggle-please-help/283564)

<div class="topic-metadata">

**Author:** [@petra825](https://forum.kirupa.com/u/petra825)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 5:05am UTC](https://forum.kirupa.com/t/as2-keycode-issue-with-play-and-pause-toggle-please-help/283564 "2009-03-08T05:05:44Z")

</div>

Hi, I am trying to use the letter x to stop and play my movie, I got it to sucessfully stop but I am having trouble restarting it, can anyone please help me. this is what i have so far: keyListener = new Object(); …

---

## [Update Flash to play Pre-roll video](https://forum.kirupa.com/t/update-flash-to-play-pre-roll-video/283563)

<div class="topic-metadata">

**Author:** [@chame111](https://forum.kirupa.com/u/chame111)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 3:04am UTC](https://forum.kirupa.com/t/update-flash-to-play-pre-roll-video/283563 "2009-03-08T03:04:16Z")

</div>

Help!! I am completely lost...I need to update a customized flash player to play a pre-roll video such as an AD before it plays the main video and I haven't a clue. I thought it would be similar to the way the "postroll…

---

## [\[AS2\] Dragging with limits to where you can drag?](https://forum.kirupa.com/t/as2-dragging-with-limits-to-where-you-can-drag/283562)

<div class="topic-metadata">

**Author:** [@Lurker](https://forum.kirupa.com/u/Lurker)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 2:27am UTC](https://forum.kirupa.com/t/as2-dragging-with-limits-to-where-you-can-drag/283562 "2009-03-08T02:27:55Z")

</div>

I'm attempting to create something where you can imitate scrolling. Basically, it's similar to the custom scrollbar tutorial on the main site, but you drag the content movieclip instead of a button. In the startDrag() fu…

---

## [Datagrid AS3 Binding problems](https://forum.kirupa.com/t/datagrid-as3-binding-problems/283560)

<div class="topic-metadata">

**Author:** [@isdito](https://forum.kirupa.com/u/isdito)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 1:35am UTC](https://forum.kirupa.com/t/datagrid-as3-binding-problems/283560 "2009-03-08T01:35:35Z")

</div>

Hello and good night. My problem is that I have to datagrid one full of data and another empty, if I copy elements go well, with drag and drop Global.vars.Drag\_elements=new DataProvider(e.target.selectedItems) The …

---

## [AS 3: can a child call a function in its parent](https://forum.kirupa.com/t/as-3-can-a-child-call-a-function-in-its-parent/283554)

<div class="topic-metadata">

**Author:** [@eforblue](https://forum.kirupa.com/u/eforblue)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 12:05am UTC](https://forum.kirupa.com/t/as-3-can-a-child-call-a-function-in-its-parent/283554 "2009-03-08T00:05:30Z")

</div>

Hi: I have a function (let's call it testFunction for right now ) on the actions layer in the main timeline There is a movie clip with 15 frames long in the library i want to add a child of the movie clip on the stag…

---

## [Bounding box onclick on a movieclip](https://forum.kirupa.com/t/bounding-box-onclick-on-a-movieclip/283546)

<div class="topic-metadata">

**Author:** [@geck0](https://forum.kirupa.com/u/geck0)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 9:03pm UTC](https://forum.kirupa.com/t/bounding-box-onclick-on-a-movieclip/283546 "2009-03-07T21:03:32Z")

</div>

Anyone know of a method whereby when i click on a movieclip on my stage i can create a bounding box which will allow me to click on any corner and re size the box manually......?

---

## [My preloader works locally, but not on a server](https://forum.kirupa.com/t/my-preloader-works-locally-but-not-on-a-server/283544)

<div class="topic-metadata">

**Author:** [@MFoller](https://forum.kirupa.com/u/MFoller)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 8:57pm UTC](https://forum.kirupa.com/t/my-preloader-works-locally-but-not-on-a-server/283544 "2009-03-07T20:57:18Z")

</div>

Hi everyone, I'm new here and here goes with my first post: I'm working on a website (www.fworks.dk - don't think the flash file can be seen in FF yet) and I want to load an swf-file with some illustrations and such. A…

---

## [Preloading Images from database](https://forum.kirupa.com/t/preloading-images-from-database/283543)

<div class="topic-metadata">

**Author:** [@fry17](https://forum.kirupa.com/u/fry17)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 8:42pm UTC](https://forum.kirupa.com/t/preloading-images-from-database/283543 "2009-03-07T20:42:22Z")

</div>

Hello all, I have a small problem with preloading images from a database. Basically i have a folder on my server called 'work', i have a database in which when i add a new project a folder is created on the server in…

---

## [3d menu (list component wrapped around horizontal cylinder)](https://forum.kirupa.com/t/3d-menu-list-component-wrapped-around-horizontal-cylinder/283540)

<div class="topic-metadata">

**Author:** [@tripaz](https://forum.kirupa.com/u/tripaz)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 6:52pm UTC](https://forum.kirupa.com/t/3d-menu-list-component-wrapped-around-horizontal-cylinder/283540 "2009-03-07T18:52:39Z")

</div>

hi, I am stuck trying to create a vertical 3d menu that acts a bit like a 3d carousel. Basically it would be like the list component wrapped around a horizontal cylinder. Minus the scrollbar but with a down and up …

---

## [Switching from one movieclip to another](https://forum.kirupa.com/t/switching-from-one-movieclip-to-another/283534)

<div class="topic-metadata">

**Author:** [@freshrod](https://forum.kirupa.com/u/freshrod)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 5:39pm UTC](https://forum.kirupa.com/t/switching-from-one-movieclip-to-another/283534 "2009-03-07T17:39:46Z")

</div>

Greetings I am trying to do something that, for all I know, should be pretty easy. Except.... What should happen is that when the swf plays it plays through one movieclip, then, on the last frame, switches to another m…

---

## [Keyboard Listener won't listen?](https://forum.kirupa.com/t/keyboard-listener-wont-listen/283531)

<div class="topic-metadata">

**Author:** [@relinquished](https://forum.kirupa.com/u/relinquished)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 4:29pm UTC](https://forum.kirupa.com/t/keyboard-listener-wont-listen/283531 "2009-03-07T16:29:25Z")

</div>

Hello, I'm having a bit of trouble with the keyboardEvent.KEY\_DOWN event listener. I'm not getting any errors, flash seems to be just ignoring that listener altogether. I'll paste my code below, if anyone could help, t…

---

## [External Loading of swf and watching behind the scenes](https://forum.kirupa.com/t/external-loading-of-swf-and-watching-behind-the-scenes/283528)

<div class="topic-metadata">

**Author:** [@blackcoma](https://forum.kirupa.com/u/blackcoma)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 3:25pm UTC](https://forum.kirupa.com/t/external-loading-of-swf-and-watching-behind-the-scenes/283528 "2009-03-07T15:25:19Z")

</div>

I'm currently working on a portfolio site, which, among other things, loads external swf files into the stage. The problem starts when I load a 400x300 swf file into the stage, which is 900x800. The result is that I g…

---

## [ROLL\_OUT and MOUSE\_OUT triggering incorrectly](https://forum.kirupa.com/t/roll-out-and-mouse-out-triggering-incorrectly/283526)

<div class="topic-metadata">

**Author:** [@Dan0](https://forum.kirupa.com/u/Dan0)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 2:12pm UTC](https://forum.kirupa.com/t/roll-out-and-mouse-out-triggering-incorrectly/283526 "2009-03-07T14:12:42Z")

</div>

Hey! I am having a rather annoying problem!! Basically my code is triggering the event when it definitely should not be... Here is my layout: Node container - holds all my Sprites and has a MOUSE\_OVER (\<works fine) and…

---

## [TypeError. Trying to create a Class with an Array of Objects](https://forum.kirupa.com/t/typeerror-trying-to-create-a-class-with-an-array-of-objects/283523)

<div class="topic-metadata">

**Author:** [@Wurzagg](https://forum.kirupa.com/u/Wurzagg)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 11:14am UTC](https://forum.kirupa.com/t/typeerror-trying-to-create-a-class-with-an-array-of-objects/283523 "2009-03-07T11:14:19Z")

</div>

I've been trying to create an Array of Objects in a Class structure, for easy access of the objects from other classes and my .fla file. Unfortunately I keep running into this error: "TypeError: Error #1034: Type Coerc…

---

## [SWF not working if moved](https://forum.kirupa.com/t/swf-not-working-if-moved/283518)

<div class="topic-metadata">

**Author:** [@manojanand](https://forum.kirupa.com/u/manojanand)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 7:28am UTC](https://forum.kirupa.com/t/swf-not-working-if-moved/283518 "2009-03-07T07:28:19Z")

</div>

Hi guys! I have a small SWF that works if I run it in FlashDevelop or when I run it (by double clicking) it from the bin folder. Now, if I move the bin folder anywhere else, and then double click on the SWF, it runs, b…

---

## [\[Flash8\]for loop question](https://forum.kirupa.com/t/flash8-for-loop-question/283517)

<div class="topic-metadata">

**Author:** [@asoako](https://forum.kirupa.com/u/asoako)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 6:15am UTC](https://forum.kirupa.com/t/flash8-for-loop-question/283517 "2009-03-07T06:15:49Z")

</div>

Please help \[frowning\] Really want to know the script for this one. How to loop this script: here is the basic script of tiles: game.Tile0 = function(){ }; game.Tile0.\_prototype.\_\_proto = game.TileClass.prototype; gam…

[Previous page](https://forum.kirupa.com/c/programming/flash/38.md?page=683)

[Next page](https://forum.kirupa.com/c/programming/flash/38.md?page=685)
