# flash

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

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

**Page:** 54

---

## [Can anybody convert this here actionscriptz?](https://forum.kirupa.com/t/can-anybody-convert-this-here-actionscriptz/329623)

<div class="topic-metadata">

**Author:** [@vapourrub](https://forum.kirupa.com/u/vapourrub)\
**Replies:** 0\
**Last updated:** [September 23, 2012, 11:39pm UTC](https://forum.kirupa.com/t/can-anybody-convert-this-here-actionscriptz/329623 "2012-09-23T23:39:48Z")

</div>

\[COLOR=#333333\]This here code works great and dandy for the ole AS2 but wont play ball on AS3 whatsoever. Is there a straightforward conversion for AS3 or must I embark on an entirely new scroll?\[/COLOR\] \[CENTER\]\[COLOR…

---

## [regExp to find spaces?](https://forum.kirupa.com/t/regexp-to-find-spaces/329621)

<div class="topic-metadata">

**Author:** [@GeekTweak\_0](https://forum.kirupa.com/u/GeekTweak_0)\
**Replies:** 0\
**Last updated:** [September 23, 2012, 8:30pm UTC](https://forum.kirupa.com/t/regexp-to-find-spaces/329621 "2012-09-23T20:30:52Z")

</div>

I just learned about regExp, and am having trouble understanding the concept. any links to good tutorials would be awesome. but primarily i want to know how to do it to replace a " " (space) with something, but everyw…

---

## [Auto Execution of actionscript code on different frames](https://forum.kirupa.com/t/auto-execution-of-actionscript-code-on-different-frames/329620)

<div class="topic-metadata">

**Author:** [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Replies:** 0\
**Last updated:** [September 23, 2012, 3:32pm UTC](https://forum.kirupa.com/t/auto-execution-of-actionscript-code-on-different-frames/329620 "2012-09-23T15:32:43Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]Hi guys !\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]I have a very simple question, I have a small flash file which has on the 1st 10 frames, tweened a simple Welcome Message. On the 11th …

---

## [Need delay after detecting the sound](https://forum.kirupa.com/t/need-delay-after-detecting-the-sound/329618)

<div class="topic-metadata">

**Author:** [@Zubair\_Affan](https://forum.kirupa.com/u/Zubair_Affan)\
**Replies:** 0\
**Last updated:** [September 23, 2012, 9:42am UTC](https://forum.kirupa.com/t/need-delay-after-detecting-the-sound/329618 "2012-09-23T09:42:24Z")

</div>

I need to place a delay as soon as the "this.gotoAndStop(currentFrame + 30);" is executed. the purpose of this script is to move the timeline after mic read the sound in time interval of 5 sec.. for example, current fra…

---

## [Working of Drag and drop using mouse events in as3/flex](https://forum.kirupa.com/t/working-of-drag-and-drop-using-mouse-events-in-as3-flex/329615)

<div class="topic-metadata">

**Author:** [@arjun1](https://forum.kirupa.com/u/arjun1)\
**Replies:** 0\
**Last updated:** [September 22, 2012, 4:38pm UTC](https://forum.kirupa.com/t/working-of-drag-and-drop-using-mouse-events-in-as3-flex/329615 "2012-09-22T16:38:56Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]After going through many tutorials i came up with the below drag and drop mxml program(using script tag), but the placement is not accurate. Looking for alternate method for placing dropping ca…

---

## [Actionscript 3: finding the name of a sound currently playing](https://forum.kirupa.com/t/actionscript-3-finding-the-name-of-a-sound-currently-playing/329613)

<div class="topic-metadata">

**Author:** [@pfasu](https://forum.kirupa.com/u/pfasu)\
**Replies:** 0\
**Last updated:** [September 22, 2012, 12:10am UTC](https://forum.kirupa.com/t/actionscript-3-finding-the-name-of-a-sound-currently-playing/329613 "2012-09-22T00:10:33Z")

</div>

Hello All, I'm brand new to Actionscript 3 and am using the clearly explained code from this site to preload and play a sound: var soundClip:Sound; function init() { soundClip = new Sound(); soundClip.load(new URLR…

---

## [Geometry / trigonometry question related to video game character behavior](https://forum.kirupa.com/t/geometry-trigonometry-question-related-to-video-game-character-behavior/329611)

<div class="topic-metadata">

**Author:** [@Wollog](https://forum.kirupa.com/u/Wollog)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 9:43pm UTC](https://forum.kirupa.com/t/geometry-trigonometry-question-related-to-video-game-character-behavior/329611 "2012-09-21T21:43:12Z")

</div>

Hello guys, I'm a little rusty on geometry and trigonometry stuff and could use a little help! It's rather super urgent, too \[stuck\_out\_tongue\] So I have an AI controlled character who moves in quick jumps towards it…

---

## [Need Flash Movie Of Arrow Flying Across Europe](https://forum.kirupa.com/t/need-flash-movie-of-arrow-flying-across-europe/329609)

<div class="topic-metadata">

**Author:** [@Peter\_Gibbons](https://forum.kirupa.com/u/Peter_Gibbons)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 8:02pm UTC](https://forum.kirupa.com/t/need-flash-movie-of-arrow-flying-across-europe/329609 "2012-09-21T20:02:29Z")

</div>

Hi- Forgive me if Im in the wrong place, I am not a programmer \[smile\] I'm trying to make a film about the spread of communism in eastern Europe under the old USSR. I was wondering if anyone here could tell me where on…

---

## [Error: Notice: Undefined variable: res.php on lines 362, 408, 412](https://forum.kirupa.com/t/error-notice-undefined-variable-res-php-on-lines-362-408-412/329606)

<div class="topic-metadata">

**Author:** [@Scotty13](https://forum.kirupa.com/u/Scotty13)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 2:44pm UTC](https://forum.kirupa.com/t/error-notice-undefined-variable-res-php-on-lines-362-408-412/329606 "2012-09-21T14:44:22Z")

</div>

Error: Notice: Undefined variable: res.php on lines 362, 408, 412 (Marked bold red below) Notice: Undefined variable: passengerUserName in /home/\*\*\*\*\*\*\*\*\*\*\*\*/res.php on line 362 Notice: Undefined variable: passengerF…

---

## [(as2) frame game](https://forum.kirupa.com/t/as2-frame-game/329605)

<div class="topic-metadata">

**Author:** [@bcteam](https://forum.kirupa.com/u/bcteam)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 12:40pm UTC](https://forum.kirupa.com/t/as2-frame-game/329605 "2012-09-21T12:40:59Z")

</div>

Hi there! Is there any solution for this? Scene 1 FRAME 1 (\_root) \> CITY (Has 4 frames) When I in Frame1 (\_root), I have to reach a button named (BUT) of CITY's third frame. CITY.\_level2.BUT.onPress = function ()…

---

## [Only one instance of custom class functions properly at runtime](https://forum.kirupa.com/t/only-one-instance-of-custom-class-functions-properly-at-runtime/329604)

<div class="topic-metadata">

**Author:** [@Zachary\_Hogna](https://forum.kirupa.com/u/Zachary_Hogna)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 9:23am UTC](https://forum.kirupa.com/t/only-one-instance-of-custom-class-functions-properly-at-runtime/329604 "2012-09-21T09:23:37Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]Hi!\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]So I have a function in my side-scroller game that is designed to scroll the background while the character remains in the center of the stag…

---

## [AS3 - banner - masking effect - can someone help?](https://forum.kirupa.com/t/as3-banner-masking-effect-can-someone-help/329602)

<div class="topic-metadata">

**Author:** [@molly\_ferns](https://forum.kirupa.com/u/molly_ferns)\
**Replies:** 0\
**Last updated:** [September 20, 2012, 6:04pm UTC](https://forum.kirupa.com/t/as3-banner-masking-effect-can-someone-help/329602 "2012-09-20T18:04:38Z")

</div>

Hi All, I really need to do a banner like http://osc4.template-help.com/wt\_31190/header\_v8.swf I tried decompiling the swf but it gives garbage AS3. Can someone please help me out? Basically I need the masking effect m…

---

## [Stop timeline progress arbitrarily](https://forum.kirupa.com/t/stop-timeline-progress-arbitrarily/329601)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [September 20, 2012, 4:39pm UTC](https://forum.kirupa.com/t/stop-timeline-progress-arbitrarily/329601 "2012-09-20T16:39:12Z")

</div>

I've searched for this and all I can find is how to use the stop() command, which isn't what I need. I'm working entirely on the timeline, which has 20 seconds or so of content. Is there a function I can attach to a bu…

---

## [Using a trigger to detect a range of objects without specifying all objects](https://forum.kirupa.com/t/using-a-trigger-to-detect-a-range-of-objects-without-specifying-all-objects/329598)

<div class="topic-metadata">

**Author:** [@Zachary\_Hogna](https://forum.kirupa.com/u/Zachary_Hogna)\
**Replies:** 0\
**Last updated:** [September 20, 2012, 5:46am UTC](https://forum.kirupa.com/t/using-a-trigger-to-detect-a-range-of-objects-without-specifying-all-objects/329598 "2012-09-20T05:46:24Z")

</div>

Hi guys! \[COLOR=#000000\]\[FONT=verdana\]I'm working on a little sidescroller as my first AS3 project.\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]I've been thinking of ways to add shadows that interact with my characte…

---

## [How to query if a Sprite has had any shapes drawn in it?](https://forum.kirupa.com/t/how-to-query-if-a-sprite-has-had-any-shapes-drawn-in-it/329595)

<div class="topic-metadata">

**Author:** [@FlashUserNull](https://forum.kirupa.com/u/FlashUserNull)\
**Replies:** 0\
**Last updated:** [September 19, 2012, 9:30pm UTC](https://forum.kirupa.com/t/how-to-query-if-a-sprite-has-had-any-shapes-drawn-in-it/329595 "2012-09-19T21:30:32Z")

</div>

Consider the following: var mySprite:Sprite= new Sprite(); addChild(mySprite); trace(mySprite.graphics == null); //traces false mySprite.graphics.beginFill(0x0000FF); mySpr…

---

## [Webservice return value as array](https://forum.kirupa.com/t/webservice-return-value-as-array/329593)

<div class="topic-metadata">

**Author:** [@jfabris](https://forum.kirupa.com/u/jfabris)\
**Replies:** 0\
**Last updated:** [September 19, 2012, 3:00pm UTC](https://forum.kirupa.com/t/webservice-return-value-as-array/329593 "2012-09-19T15:00:04Z")

</div>

I am making a webservice call and the webservice returns an array as TallyList I am not 100% sure how to get the TallyList in the return call Is the code below correct? var serviceOperation:AbstractOperation; …

---

## [AS3 XML trying to create a search feature using Flash](https://forum.kirupa.com/t/as3-xml-trying-to-create-a-search-feature-using-flash/329587)

<div class="topic-metadata">

**Author:** [@lonestarr](https://forum.kirupa.com/u/lonestarr)\
**Replies:** 0\
**Last updated:** [September 18, 2012, 5:27pm UTC](https://forum.kirupa.com/t/as3-xml-trying-to-create-a-search-feature-using-flash/329587 "2012-09-18T17:27:22Z")

</div>

I used the Using XML in Flash CS3/AS3 - by kirupa | 17 July 2007, However all you have are trace statements. I am new to AS3 and I am trying to make a search feature using Flash AS3 and XML. I need for the user to be abl…

---

## [Frame Work](https://forum.kirupa.com/t/frame-work/329585)

<div class="topic-metadata">

**Author:** [@bcteam](https://forum.kirupa.com/u/bcteam)\
**Replies:** 0\
**Last updated:** [September 18, 2012, 1:23pm UTC](https://forum.kirupa.com/t/frame-work/329585 "2012-09-18T13:23:45Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]Hi there, me again! I have a scene with 2 frames. In 2nd frame there is a button and a movieclip. When I press the button mc becomes invisible. thats ok. But when I return to the 1st frame th…

---

## [How make move movieClip inside array as3](https://forum.kirupa.com/t/how-make-move-movieclip-inside-array-as3/329582)

<div class="topic-metadata">

**Author:** [@Oskil](https://forum.kirupa.com/u/Oskil)\
**Replies:** 0\
**Last updated:** [September 18, 2012, 6:53am UTC](https://forum.kirupa.com/t/how-make-move-movieclip-inside-array-as3/329582 "2012-09-18T06:53:03Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]i have 2 MC(car1,car2)\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]i wanna make move Array with arrow left and right\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]this my code : var object:…

---

## [Flash CS5.5 - AS2 - How to insert a java script into a flash movie - Need help](https://forum.kirupa.com/t/flash-cs5-5-as2-how-to-insert-a-java-script-into-a-flash-movie-need-help/329581)

<div class="topic-metadata">

**Author:** [@eddiojp](https://forum.kirupa.com/u/eddiojp)\
**Replies:** 0\
**Last updated:** [September 18, 2012, 4:22am UTC](https://forum.kirupa.com/t/flash-cs5-5-as2-how-to-insert-a-java-script-into-a-flash-movie-need-help/329581 "2012-09-18T04:22:21Z")

</div>

Hello everybody Thank you very much in advance I have done an intesive graphics website for a friend (the oldschool way) using adobe fireworks. you can see it in this link http://tuguiaderepuesto.com the problem w…

---

## [Group A\* Pathfinding](https://forum.kirupa.com/t/group-a-pathfinding/329580)

<div class="topic-metadata">

**Author:** [@Ragnoroct](https://forum.kirupa.com/u/Ragnoroct)\
**Replies:** 0\
**Last updated:** [September 18, 2012, 1:55am UTC](https://forum.kirupa.com/t/group-a-pathfinding/329580 "2012-09-18T01:55:32Z")

</div>

Ok, so here's the thing. I already have A\* pathfinding down pat(even converting it to vectors). I don't want the enemies moving inside of each other so I would like to make them spread out there paths. Or somehow follow …

---

## [Reading variable from php and testin if it is "1"](https://forum.kirupa.com/t/reading-variable-from-php-and-testin-if-it-is-1/329579)

<div class="topic-metadata">

**Author:** [@magu](https://forum.kirupa.com/u/magu)\
**Replies:** 0\
**Last updated:** [September 18, 2012, 12:04am UTC](https://forum.kirupa.com/t/reading-variable-from-php-and-testin-if-it-is-1/329579 "2012-09-18T00:04:01Z")

</div>

How can I read a variable from php file and test in as3 if it is "1" and if it is "1" to make the frame jump to frame 20 (to skip the first 20 frames). I just can not manage to do this...

---

## [\[Help\] Inertia, elasticity](https://forum.kirupa.com/t/help-inertia-elasticity/329578)

<div class="topic-metadata">

**Author:** [@Kurtz](https://forum.kirupa.com/u/Kurtz)\
**Replies:** 0\
**Last updated:** [September 17, 2012, 2:32pm UTC](https://forum.kirupa.com/t/help-inertia-elasticity/329578 "2012-09-17T14:32:06Z")

</div>

Hi All, \[COLOR=#333333\]I’m trying to build something similar to Oxylus (http://www.oxylusflash.com/flashfiles/easy-before-and-after-photo-mask-as3) to display before/after images. \[/COLOR\] \[COLOR=#333333\]What I like o…

---

## [3D in Flash Pro](https://forum.kirupa.com/t/3d-in-flash-pro/329575)

<div class="topic-metadata">

**Author:** [@azeroth](https://forum.kirupa.com/u/azeroth)\
**Replies:** 0\
**Last updated:** [September 17, 2012, 12:47pm UTC](https://forum.kirupa.com/t/3d-in-flash-pro/329575 "2012-09-17T12:47:47Z")

</div>

\[COLOR=#333333\]\[FONT=adobe-clean\]Hello, i want to import a 3d model made using a programm like maya, blender etc in flash.I have studied away3d and papervision3d so i know the basics of 3d like view, scene, camera, light…

---

## [AS3 help with game](https://forum.kirupa.com/t/as3-help-with-game/329573)

<div class="topic-metadata">

**Author:** [@Jaller](https://forum.kirupa.com/u/Jaller)\
**Replies:** 0\
**Last updated:** [September 17, 2012, 9:54am UTC](https://forum.kirupa.com/t/as3-help-with-game/329573 "2012-09-17T09:54:57Z")

</div>

Hi everyone, I have to build a 2d game prototype for my team, but I am not good with code. The code I got so far is from a team member of mine, but he left and now I have to finish it. The game is build using Adobe Fla…

---

## [Random case as3](https://forum.kirupa.com/t/random-case-as3/329571)

<div class="topic-metadata">

**Author:** [@Oskil](https://forum.kirupa.com/u/Oskil)\
**Replies:** 0\
**Last updated:** [September 16, 2012, 8:29pm UTC](https://forum.kirupa.com/t/random-case-as3/329571 "2012-09-16T20:29:06Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]i have MC and produce animation using statement \[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]switch (count) \[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]Case 1\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[…

---

## [BitmapData in AS2 Why won't this work!?](https://forum.kirupa.com/t/bitmapdata-in-as2-why-wont-this-work/329565)

<div class="topic-metadata">

**Author:** [@confusion](https://forum.kirupa.com/u/confusion)\
**Replies:** 0\
**Last updated:** [September 15, 2012, 1:03am UTC](https://forum.kirupa.com/t/bitmapdata-in-as2-why-wont-this-work/329565 "2012-09-15T01:03:56Z")

</div>

Hello. I'm trying to set up a Spritesheet in AS2 with BitmapData but it's really hard to do. I HAVE to use AS2 for this project so I have no other choice. Can anyone please help me make this code work? The purpose is …

---

## [If condition doesn't work. why?](https://forum.kirupa.com/t/if-condition-doesnt-work-why/329563)

<div class="topic-metadata">

**Author:** [@bcteam](https://forum.kirupa.com/u/bcteam)\
**Replies:** 0\
**Last updated:** [September 14, 2012, 9:07pm UTC](https://forum.kirupa.com/t/if-condition-doesnt-work-why/329563 "2012-09-14T21:07:29Z")

</div>

Hello guys! I have a movieclip on frame 2, named "sual". And have a button on frame 3. When i release the button it always booms. if (Number(sual:sualNow) == 1) condition doesn't work. I tried "\_root" etc... How can i s…

---

## [1067 implicit coercion of a value of type Array](https://forum.kirupa.com/t/1067-implicit-coercion-of-a-value-of-type-array/329556)

<div class="topic-metadata">

**Author:** [@hq231](https://forum.kirupa.com/u/hq231)\
**Replies:** 0\
**Last updated:** [September 13, 2012, 11:03pm UTC](https://forum.kirupa.com/t/1067-implicit-coercion-of-a-value-of-type-array/329556 "2012-09-13T23:03:17Z")

</div>

This error keeps appearing: "1067 implicit coercion of a value of type Array to an unrelated type flash.display.DisplayObject" When I added code to test for hits between the array "ships" and the movieclip "city1" …

---

## [No subpixel rendering in flash fonts in Chrome?](https://forum.kirupa.com/t/no-subpixel-rendering-in-flash-fonts-in-chrome/329554)

<div class="topic-metadata">

**Author:** [@Przemek\_Pietrak](https://forum.kirupa.com/u/Przemek_Pietrak)\
**Replies:** 0\
**Last updated:** [September 13, 2012, 7:14pm UTC](https://forum.kirupa.com/t/no-subpixel-rendering-in-flash-fonts-in-chrome/329554 "2012-09-13T19:14:41Z")

</div>

Hello, I am having a problem with blurry fonts in Chrome (in FF and IE everything looks fine). I tried to look closer at the issue and it looks like there is no subpixel rendering in Chrome. It looks like that (clic…

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

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