# flash

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

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

**Page:** 2

---

## [loadbytes throws TypeError: Error #1007:](https://forum.kirupa.com/t/loadbytes-throws-typeerror-error-1007/637934)

<div class="topic-metadata">

**Author:** [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Replies:** 6\
**Last updated:** [March 17, 2018, 11:05am UTC](https://forum.kirupa.com/t/loadbytes-throws-typeerror-error-1007/637934 "2018-03-17T11:05:31Z")

</div>

Hi all ! I have been trying out this little snippet of code below - package { import flash.display.Loader; import flash.display.Sprite; import flash.system.ApplicationDomain; import flash.system.LoaderContext; \[S…

---

## [AS3 hitTestObject for Array Works Sometimes and Other Times Doesn't?](https://forum.kirupa.com/t/as3-hittestobject-for-array-works-sometimes-and-other-times-doesnt/637907)

<div class="topic-metadata">

**Author:** [@Twisted4000](https://forum.kirupa.com/u/Twisted4000)\
**Replies:** 2\
**Last updated:** [March 17, 2018, 4:25am UTC](https://forum.kirupa.com/t/as3-hittestobject-for-array-works-sometimes-and-other-times-doesnt/637907 "2018-03-17T04:25:51Z")

</div>

In a Flash game I’m trying to make, you play as a character with a gun and you shoot your enemies (like most games). I have the enemies (“ghosts”) set in an array and currently they appear in random spots on the screen. …

---

## [One field two words](https://forum.kirupa.com/t/one-field-two-words/637897)

<div class="topic-metadata">

**Author:** [@erezb1](https://forum.kirupa.com/u/erezb1)\
**Replies:** 2\
**Last updated:** [March 1, 2018, 12:35pm UTC](https://forum.kirupa.com/t/one-field-two-words/637897 "2018-03-01T12:35:12Z")

</div>

Hi guys wondered if i have one text field with two words, one needs to be bold and one regular. Is there an AS3 code which can achieve it ? Thanks

---

## [Checking the URL to ensure the file is being viewed from my page](https://forum.kirupa.com/t/checking-the-url-to-ensure-the-file-is-being-viewed-from-my-page/634228)

<div class="topic-metadata">

**Author:** [@e\_v](https://forum.kirupa.com/u/e_v)\
**Replies:** 27\
**Last updated:** [February 28, 2018, 1:07pm UTC](https://forum.kirupa.com/t/checking-the-url-to-ensure-the-file-is-being-viewed-from-my-page/634228 "2018-02-28T13:07:18Z")

</div>

Is it reasonable to assume that if I check the URL via ExternalInterface.call("window.location.href.toString"), the first characters should match "http://mydomainname.com" if that is where I'm hosting my game? I'm tryin…

---

## [Clear socker input buffer \< SOLVED](https://forum.kirupa.com/t/clear-socker-input-buffer-solved/637739)

<div class="topic-metadata">

**Author:** [@McLucky](https://forum.kirupa.com/u/McLucky)\
**Replies:** 1\
**Last updated:** [January 12, 2018, 9:28pm UTC](https://forum.kirupa.com/t/clear-socker-input-buffer-solved/637739 "2018-01-12T21:28:18Z")

</div>

Hi all, My question: I’m using a socket in an AIR project to receive serial data from an arduino. However, my arduino spits out the data too fast, so the input buffer keeps filling up. I know the OUTput buffer can b…

---

## [How to get coordinates of two touch points simultaneously? AS3 AIR](https://forum.kirupa.com/t/how-to-get-coordinates-of-two-touch-points-simultaneously-as3-air/637694)

<div class="topic-metadata">

**Author:** [@ekoneo](https://forum.kirupa.com/u/ekoneo)\
**Replies:** 1\
**Last updated:** [January 3, 2018, 11:49am UTC](https://forum.kirupa.com/t/how-to-get-coordinates-of-two-touch-points-simultaneously-as3-air/637694 "2018-01-03T11:49:04Z")

</div>

Dear All, After my researches, I prepare a simple .fla. I try to write two touch points coordinates simultaneously. To separate 1th and 2th touches, I used TouchID odd even condition simultaneously. But I couldnt achiev…

---

## [A New Coding app to show you - KIDLO CODING](https://forum.kirupa.com/t/a-new-coding-app-to-show-you-kidlo-coding/637527)

<div class="topic-metadata">

**Author:** [@sunsub](https://forum.kirupa.com/u/sunsub)\
**Replies:** 0\
**Last updated:** [November 28, 2017, 1:02pm UTC](https://forum.kirupa.com/t/a-new-coding-app-to-show-you-kidlo-coding/637527 "2017-11-28T13:02:54Z")

</div>

\*Kidlo Coding For Kids - Learn To Code | IDZ Digital- (6-8 years) Kidlo Coding for Kids is a fun coding game to teach kids the very basics of programming, a very essential skill in today’s world. It teaches coding with …

---

## [Font size according to field area](https://forum.kirupa.com/t/font-size-according-to-field-area/637512)

<div class="topic-metadata">

**Author:** [@erezb1](https://forum.kirupa.com/u/erezb1)\
**Replies:** 0\
**Last updated:** [November 26, 2017, 3:59pm UTC](https://forum.kirupa.com/t/font-size-according-to-field-area/637512 "2017-11-26T15:59:58Z")

</div>

Hi All Got a dynamic text box which get text from outer source, (fits to 20 chars). I want the whole text to keep inside the box and shrink (font size) if text is too long. Tried all of this options, none of them shir…

---

## [Box Pushing in AS2](https://forum.kirupa.com/t/box-pushing-in-as2/637310)

<div class="topic-metadata">

**Author:** [@bbpanzu](https://forum.kirupa.com/u/bbpanzu)\
**Replies:** 3\
**Last updated:** [October 15, 2017, 3:02pm UTC](https://forum.kirupa.com/t/box-pushing-in-as2/637310 "2017-10-15T15:02:57Z")

</div>

I’m trying to make my character push a box, but all the box is doing is sticking onto the character. I know why it’s doing it, I just don’t know how to fix it. code: if(this.hitTest(\_root.char)){ \_x += \_root.xSpeed; …

---

## [CS4, AS2, if currentframe action](https://forum.kirupa.com/t/cs4-as2-if-currentframe-action/332125)

<div class="topic-metadata">

**Author:** [@dennisgaines](https://forum.kirupa.com/u/dennisgaines)\
**Replies:** 1\
**Last updated:** [September 5, 2017, 2:20am UTC](https://forum.kirupa.com/t/cs4-as2-if-currentframe-action/332125 "2017-09-05T02:20:02Z")

</div>

Spent days trying to figure something out along this line: on (release){ play(); if (this.\_currentframe == 17){ root.box.visible = true; } } Code is on a mc on main timeline. box is mc on main timeline.

---

## [AS2 animation loop problem](https://forum.kirupa.com/t/as2-animation-loop-problem/332417)

<div class="topic-metadata">

**Author:** [@rik\_na1](https://forum.kirupa.com/u/rik_na1)\
**Replies:** 1\
**Last updated:** [September 5, 2017, 2:15am UTC](https://forum.kirupa.com/t/as2-animation-loop-problem/332417 "2017-09-05T02:15:44Z")

</div>

I am trying to make a simple animation that goes right 20px, then left 20px in an infinite loop. I have got so far: onClipEvent (load) { speed = 3 } onClipEvent (enterFrame) { if(this.\_x &lt; 20){ this.…

---

## [AS2 Help](https://forum.kirupa.com/t/as2-help/637124)

<div class="topic-metadata">

**Author:** [@bbpanzu](https://forum.kirupa.com/u/bbpanzu)\
**Replies:** 0\
**Last updated:** [September 5, 2017, 1:49am UTC](https://forum.kirupa.com/t/as2-help/637124 "2017-09-05T01:49:09Z")

</div>

I tried this code for the character to go to the next frame when it touches it onClipEvent(enterFrame){ if(\_root.char.hitTest(this)){ \_root.nextFrame(); } } but it doesn't do anything

---

## [object rotates on its side in animate](https://forum.kirupa.com/t/object-rotates-on-its-side-in-animate/636862)

<div class="topic-metadata">

**Author:** [@code17](https://forum.kirupa.com/u/code17)\
**Replies:** 3\
**Last updated:** [July 10, 2017, 7:43am UTC](https://forum.kirupa.com/t/object-rotates-on-its-side-in-animate/636862 "2017-07-10T07:43:52Z")

</div>

I have several movie clips, when I checked the transform tool the little circle is in the center, but when I select the object the cross hair is on one of the sides. Therefore when I run the movie the object rotates on i…

---

## [How to create a button from array of buttons?](https://forum.kirupa.com/t/how-to-create-a-button-from-array-of-buttons/636750)

<div class="topic-metadata">

**Author:** [@Serifaz](https://forum.kirupa.com/u/Serifaz)\
**Replies:** 2\
**Last updated:** [June 15, 2017, 5:26am UTC](https://forum.kirupa.com/t/how-to-create-a-button-from-array-of-buttons/636750 "2017-06-15T05:26:33Z")

</div>

Hello I am trying to create an array of buttons that I can click and then trace out the name of those buttons This is what I have. private function charList(event:ProgressEvent):void { while(socket.bytesAvailab…

---

## [How to addchild for each array value with an incremented int?](https://forum.kirupa.com/t/how-to-addchild-for-each-array-value-with-an-incremented-int/636531)

<div class="topic-metadata">

**Author:** [@Serifaz](https://forum.kirupa.com/u/Serifaz)\
**Replies:** 7\
**Last updated:** [June 14, 2017, 5:45pm UTC](https://forum.kirupa.com/t/how-to-addchild-for-each-array-value-with-an-incremented-int/636531 "2017-06-14T17:45:16Z")

</div>

Hello I am trying to addChild for an array that I have. I want to make it so if I have values in my database table it displays those values on the movieclip. my problem is I don't want to have to add a line for each add…

---

## [Retrieve array index as addChild parameter](https://forum.kirupa.com/t/retrieve-array-index-as-addchild-parameter/636639)

<div class="topic-metadata">

**Author:** [@alebnn](https://forum.kirupa.com/u/alebnn)\
**Replies:** 2\
**Last updated:** [May 19, 2017, 1:49pm UTC](https://forum.kirupa.com/t/retrieve-array-index-as-addchild-parameter/636639 "2017-05-19T13:49:07Z")

</div>

Hello everybody, hopefully somebody will be able to help me. I have an array with some indexes inside and I want to pass one of those index as a addChild parameter. If I type it (i.e. Tambor1\_mc.addChild(atunIcon); th…

---

## [ActionScript: Send Snow 3.0 to Back?](https://forum.kirupa.com/t/actionscript-send-snow-3-0-to-back/636637)

<div class="topic-metadata">

**Author:** [@raqueldesousa](https://forum.kirupa.com/u/raqueldesousa)\
**Replies:** 0\
**Last updated:** [May 18, 2017, 5:55pm UTC](https://forum.kirupa.com/t/actionscript-send-snow-3-0-to-back/636637 "2017-05-18T17:55:24Z")

</div>

Hello Everyone, How can we modify the code for the Snow 3.0 so we can control the Z-Index of the snow. Currently no matter which layer the movie clip is in the snow always shows above all other elements in the movie. I a…

---

## [AS3 Help!!](https://forum.kirupa.com/t/as3-help/636616)

<div class="topic-metadata">

**Author:** [@lewismills](https://forum.kirupa.com/u/lewismills)\
**Replies:** 1\
**Last updated:** [May 16, 2017, 12:56pm UTC](https://forum.kirupa.com/t/as3-help/636616 "2017-05-16T12:56:09Z")

</div>

i have a promblem with my code im new to flash and it has be really confussed i dont no alot about flash but the problem is TypeError: Error #1006: checkCollisionWithPlayer is not a function. at Platform/onEnterFrame() …

---

## [ERROR #10009 : Cannot access a property or method of a null object reference](https://forum.kirupa.com/t/error-10009-cannot-access-a-property-or-method-of-a-null-object-reference/636561)

<div class="topic-metadata">

**Author:** [@coucou2000](https://forum.kirupa.com/u/coucou2000)\
**Replies:** 0\
**Last updated:** [May 5, 2017, 8:19pm UTC](https://forum.kirupa.com/t/error-10009-cannot-access-a-property-or-method-of-a-null-object-reference/636561 "2017-05-05T20:19:16Z")

</div>

Hi there, keep getting this error 1009. I debuged my code and the line pointed is the following and i don't know how to correct it. Tks a lot.

---

## [AS3 touch events lagging and causing unwanted right-click behavior](https://forum.kirupa.com/t/as3-touch-events-lagging-and-causing-unwanted-right-click-behavior/636546)

<div class="topic-metadata">

**Author:** [@Scythe](https://forum.kirupa.com/u/Scythe)\
**Replies:** 0\
**Last updated:** [May 3, 2017, 4:48pm UTC](https://forum.kirupa.com/t/as3-touch-events-lagging-and-causing-unwanted-right-click-behavior/636546 "2017-05-03T16:48:58Z")

</div>

This may be a long shot, but hopefully someone can help me with this. I’m running Windows 10 64-bit on a Dell Inspiron laptop with a 10-touch-point touchscreen. I can get touch events to fire but they’re not working the…

---

## [GameInput - List of gamepad controls](https://forum.kirupa.com/t/gameinput-list-of-gamepad-controls/636412)

<div class="topic-metadata">

**Author:** [@obuw](https://forum.kirupa.com/u/obuw)\
**Replies:** 2\
**Last updated:** [April 11, 2017, 3:58pm UTC](https://forum.kirupa.com/t/gameinput-list-of-gamepad-controls/636412 "2017-04-11T15:58:23Z")

</div>

Hello all, I made a simple utility to list the controls of a connected gamepad (id | minValue | maxValue): http://www.fastswf.com/ueGqQF8 (It doesn't seem to work in chrome but it works fine in firefox / iexplorer) …

---

## [Make Search Box in AS2 HELP...](https://forum.kirupa.com/t/make-search-box-in-as2-help/636297)

<div class="topic-metadata">

**Author:** [@Agung\_Rama](https://forum.kirupa.com/u/Agung_Rama)\
**Replies:** 0\
**Last updated:** [March 25, 2017, 6:10pm UTC](https://forum.kirupa.com/t/make-search-box-in-as2-help/636297 "2017-03-25T18:10:39Z")

</div>

I want to create a search box that can search for the frame and that can take you to the relevant frame. so .. for example when I enter "3" in the search box I would go to frame 3. I've been looking on the internet but…

---

## [Facebook & Twitter feeds in flash as2 as3](https://forum.kirupa.com/t/facebook-twitter-feeds-in-flash-as2-as3/635996)

<div class="topic-metadata">

**Author:** [@marrabella](https://forum.kirupa.com/u/marrabella)\
**Replies:** 4\
**Last updated:** [March 3, 2017, 3:46pm UTC](https://forum.kirupa.com/t/facebook-twitter-feeds-in-flash-as2-as3/635996 "2017-03-03T15:46:17Z")

</div>

Hey, Im making a social flash file. like a comand window for my selected feeds I have downloaded a weather xml display scirpt and a regular xml reader to create a news-screen setup. But Im not known with the true pote…

---

## [AS2 Need help with timed button](https://forum.kirupa.com/t/as2-need-help-with-timed-button/636076)

<div class="topic-metadata">

**Author:** [@Marvin\_Conman](https://forum.kirupa.com/u/Marvin_Conman)\
**Replies:** 0\
**Last updated:** [February 23, 2017, 10:21pm UTC](https://forum.kirupa.com/t/as2-need-help-with-timed-button/636076 "2017-02-23T22:21:29Z")

</div>

Hello, I'm trying to make a flash game similar to "Dragon's Lair" in which the animation flows until there's a moment where you need to press a specified button in a short amount of time to progress, or it's game over. I…

---

## [AS3 Android Calendar Event Pop-Up](https://forum.kirupa.com/t/as3-android-calendar-event-pop-up/636012)

<div class="topic-metadata">

**Author:** [@TomasB](https://forum.kirupa.com/u/TomasB)\
**Replies:** 1\
**Last updated:** [February 21, 2017, 7:28pm UTC](https://forum.kirupa.com/t/as3-android-calendar-event-pop-up/636012 "2017-02-21T19:28:12Z")

</div>

Hi, can somebody help with calendar I am trying to make? This Android app should use xml feed to read the calendar data. If DATE EVENT is EMPTY do nothing. If DATE EVENT has EVENT then POP-UP ALERT MESSAGE. It reads t…

---

## [rotate gesture](https://forum.kirupa.com/t/rotate-gesture/636022)

<div class="topic-metadata">

**Author:** [@dandewa](https://forum.kirupa.com/u/dandewa)\
**Replies:** 0\
**Last updated:** [February 17, 2017, 3:30am UTC](https://forum.kirupa.com/t/rotate-gesture/636022 "2017-02-17T03:30:24Z")

</div>

hello guys. wanna ask is there any way we could apply rotate gesture to flv playback which was imported from components tab? it doesnt work unless it converted to movie clip first. By the way, i used code snippets for t…

---

## [how can I make a connection from as2 to c++ with xml sockets?](https://forum.kirupa.com/t/how-can-i-make-a-connection-from-as2-to-c-with-xml-sockets/635891)

<div class="topic-metadata">

**Author:** [@Serifaz](https://forum.kirupa.com/u/Serifaz)\
**Replies:** 4\
**Last updated:** [February 3, 2017, 5:46pm UTC](https://forum.kirupa.com/t/how-can-i-make-a-connection-from-as2-to-c-with-xml-sockets/635891 "2017-02-03T17:46:39Z")

</div>

I don't know how many here are familiar with c++ or making it communicate with flash but I know as2 must use xml sockets to communicate with a c++ server. I have made a simple c++ console app that I want to gather data f…

---

## [Data-driven powerpoint style presenation in Flash](https://forum.kirupa.com/t/data-driven-powerpoint-style-presenation-in-flash/290565)

<div class="topic-metadata">

**Author:** [@jflint](https://forum.kirupa.com/u/jflint)\
**Replies:** 2\
**Last updated:** [January 29, 2017, 6:24pm UTC](https://forum.kirupa.com/t/data-driven-powerpoint-style-presenation-in-flash/290565 "2017-01-29T18:24:06Z")

</div>

I have been tasked to research methods for creating powerpoint-style presentations, but using Flash for better transitions, effects, etc. This also needs to be data-driven so that information can be easily swapped out fo…

---

## [Flash printer dialogue box](https://forum.kirupa.com/t/flash-printer-dialogue-box/250414)

<div class="topic-metadata">

**Author:** [@digiteam](https://forum.kirupa.com/u/digiteam)\
**Replies:** 0\
**Last updated:** [January 29, 2008, 11:36am UTC](https://forum.kirupa.com/t/flash-printer-dialogue-box/250414 "2008-01-29T11:36:15Z")

</div>

Hi, I am currently trying to print from Flash but I need to print without the printer dialogue box appearing. I have done serveral searchs online and it looks like it can't be done. Is there any other way in which I …

---

## [Couple of things about embedding swf files](https://forum.kirupa.com/t/couple-of-things-about-embedding-swf-files/635673)

<div class="topic-metadata">

**Author:** [@David\_Kachlon](https://forum.kirupa.com/u/David_Kachlon)\
**Replies:** 0\
**Last updated:** [December 19, 2016, 12:09am UTC](https://forum.kirupa.com/t/couple-of-things-about-embedding-swf-files/635673 "2016-12-19T00:09:14Z")

</div>

I am using a .swf file with FlashVars to create a .flv web player... I managed to load the flv and play it. WHen it's done however, I want to switch to an HTML5 VideoPlayer playing a .mp4/.ogg How can I tell when …

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

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