# programming

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

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

**Page:** 332

---

## [(Flash CS5 - AS2.0) Statement block must be terminated by }](https://forum.kirupa.com/t/flash-cs5-as2-0-statement-block-must-be-terminated-by/319107)

<div class="topic-metadata">

**Author:** [@myduta](https://forum.kirupa.com/u/myduta)\
**Replies:** 0\
**Last updated:** [February 9, 2011, 4:13am UTC](https://forum.kirupa.com/t/flash-cs5-as2-0-statement-block-must-be-terminated-by/319107 "2011-02-09T04:13:30Z")

</div>

Hi, i'm getting continuous errors of: Symbol=sprite 415, layer=Layer 22, frame=1, Line 7 Statement block must be terminated by '}' Symbol=sprite 415, layer=Layer 22, frame=1, Line 28 Syntax error. I also hav…

---

## [Problem With Sting Passing](https://forum.kirupa.com/t/problem-with-sting-passing/319104)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [February 9, 2011, 3:17am UTC](https://forum.kirupa.com/t/problem-with-sting-passing/319104 "2011-02-09T03:17:46Z")

</div>

Im trying to pass a string from my view class that tells the second object in a collision. I've gotten as far as the function in my CollisionController class CollisionCatcher() it reads like this public function c…

---

## [Flash Catalyst contact form](https://forum.kirupa.com/t/flash-catalyst-contact-form/319100)

<div class="topic-metadata">

**Author:** [@mod27driver16](https://forum.kirupa.com/u/mod27driver16)\
**Replies:** 0\
**Last updated:** [February 9, 2011, 1:20am UTC](https://forum.kirupa.com/t/flash-catalyst-contact-form/319100 "2011-02-09T01:20:53Z")

</div>

Got to the point on my website to make the contact form in flash catalyst. I have tried making it in flash first but I am terrible with code (why I am using catalyst) and I havnt found a very good tutorial as far as im…

---

## [Flash builder 4, php services as only project](https://forum.kirupa.com/t/flash-builder-4-php-services-as-only-project/319099)

<div class="topic-metadata">

**Author:** [@FGMUK](https://forum.kirupa.com/u/FGMUK)\
**Replies:** 0\
**Last updated:** [February 9, 2011, 12:15am UTC](https://forum.kirupa.com/t/flash-builder-4-php-services-as-only-project/319099 "2011-02-09T00:15:15Z")

</div>

I know it's possible to use Flash builder 4, to create a flex project that uses FB4's data services to connect to a mysql database etc, but my project in FB4 is an actionscript project, so is it still possible for me to …

---

## [Type 1034 Coercion](https://forum.kirupa.com/t/type-1034-coercion/319098)

<div class="topic-metadata">

**Author:** [@frustrated\_user](https://forum.kirupa.com/u/frustrated_user)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 11:47pm UTC](https://forum.kirupa.com/t/type-1034-coercion/319098 "2011-02-08T23:47:08Z")

</div>

TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@68f48ec9 to flash.display.Loader. at as3v2\_fla::MainTimeline/removeFull() I keep getting this coercion error from clicking the butt…

---

## [Problem to parse XML with Linq](https://forum.kirupa.com/t/problem-to-parse-xml-with-linq/319095)

<div class="topic-metadata">

**Author:** [@terryc](https://forum.kirupa.com/u/terryc)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 11:16pm UTC](https://forum.kirupa.com/t/problem-to-parse-xml-with-linq/319095 "2011-02-08T23:16:53Z")

</div>

Hi Kirupa and experts, I am struggling with Link to SQL. I follow examples and get some good result. However I am face to a nasty xml and hope that someone can help me. \<root\> \<MyItem Host="00155DFF045C" LastName=…

---

## [Displaying data in Next Page based on previous Page's List Selection](https://forum.kirupa.com/t/displaying-data-in-next-page-based-on-previous-pages-list-selection/319094)

<div class="topic-metadata">

**Author:** [@newtoWP7](https://forum.kirupa.com/u/newtoWP7)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 11:05pm UTC](https://forum.kirupa.com/t/displaying-data-in-next-page-based-on-previous-pages-list-selection/319094 "2011-02-08T23:05:14Z")

</div>

Hi, I found the Simple navigation and the Passing data between pages tutorials helpful. I tried to create a list in one page and load the next page values based on the selection. Here is my XML structure: \<Class\> \<C…

---

## [Using MC name from a loop to call up another MC](https://forum.kirupa.com/t/using-mc-name-from-a-loop-to-call-up-another-mc/319092)

<div class="topic-metadata">

**Author:** [@zaphlin](https://forum.kirupa.com/u/zaphlin)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 9:39pm UTC](https://forum.kirupa.com/t/using-mc-name-from-a-loop-to-call-up-another-mc/319092 "2011-02-08T21:39:23Z")

</div>

I've been searching and trying to figure this out for a while, but haven't gotten it to work. I have a bunch of buttons "b1" - "b12" which are set up in a "for" statement. Then on a rollover of each button, I want a po…

---

## [Strategic turned base game - board](https://forum.kirupa.com/t/strategic-turned-base-game-board/319087)

<div class="topic-metadata">

**Author:** [@PureConstant](https://forum.kirupa.com/u/PureConstant)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 6:01pm UTC](https://forum.kirupa.com/t/strategic-turned-base-game-board/319087 "2011-02-08T18:01:49Z")

</div>

Hi there ! I am a C#/Java programmer mainly desktop applications. I want to make a turn-based flash game that looks like Risk/Axis and Allies. Turn by turn moving the player pawns(which will be boats carrying a max of 5 …

---

## [.unloadAndStop(); problem with external SWF](https://forum.kirupa.com/t/unloadandstop-problem-with-external-swf/319086)

<div class="topic-metadata">

**Author:** [@thedark\_master](https://forum.kirupa.com/u/thedark_master)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 5:34pm UTC](https://forum.kirupa.com/t/unloadandstop-problem-with-external-swf/319086 "2011-02-08T17:34:27Z")

</div>

So I have a main file that I use to load external swf with. So whenever I load a SWF file that has all the components in it, everything works fine. I can load and uload these types of files with no problem. However…

---

## [Pre-loader Problems](https://forum.kirupa.com/t/pre-loader-problems/319085)

<div class="topic-metadata">

**Author:** [@nick\_barry](https://forum.kirupa.com/u/nick_barry)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 5:06pm UTC](https://forum.kirupa.com/t/pre-loader-problems/319085 "2011-02-08T17:06:21Z")

</div>

Hi all, I've made an online portfolio website, I have a problem that the portfolio pages aren't loading fully http://www.picturesandtext.co.uk/Portfolio.html if you have a look at any of the pages they'll only load small…

---

## [WAV ByteArray to MP3](https://forum.kirupa.com/t/wav-bytearray-to-mp3/319083)

<div class="topic-metadata">

**Author:** [@jagoman](https://forum.kirupa.com/u/jagoman)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 4:05pm UTC](https://forum.kirupa.com/t/wav-bytearray-to-mp3/319083 "2011-02-08T16:05:46Z")

</div>

Hi all, Does anyone have a link to a nice easy tutorial on how to convert/encode a WAV ByteArray to MP3. I am able to record from the microphone and save as a WAV, but I need MP3 format \[frowning\] I've checked other …

---

## [Facebook (FBML) - call page](https://forum.kirupa.com/t/facebook-fbml-call-page/319082)

<div class="topic-metadata">

**Author:** [@RubenDoliveira](https://forum.kirupa.com/u/RubenDoliveira)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 3:54pm UTC](https://forum.kirupa.com/t/facebook-fbml-call-page/319082 "2011-02-08T15:54:14Z")

</div>

Hi, I'm not sure if this is the right section, but it it goes. On a Facebook page (FBML) when I click a tab, how do I call an external webpage inside my FBML instead needing to click a button with ajax.fbml? Thank …

---

## [Coding "conditions" for SQL statements](https://forum.kirupa.com/t/coding-conditions-for-sql-statements/319079)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 12:23pm UTC](https://forum.kirupa.com/t/coding-conditions-for-sql-statements/319079 "2011-02-08T12:23:29Z")

</div>

I thought I may make a few "helper" classes for writing SQL (both in AS3 for AIR and PHP) but I keep running into a problem. First, this is the class that works just fine in my mind: var details:String = "I like to …

---

## [AS3: How to fade out a soundtrack when a video is loaded into another movieclip?](https://forum.kirupa.com/t/as3-how-to-fade-out-a-soundtrack-when-a-video-is-loaded-into-another-movieclip/319078)

<div class="topic-metadata">

**Author:** [@eduaparicio](https://forum.kirupa.com/u/eduaparicio)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 12:21pm UTC](https://forum.kirupa.com/t/as3-how-to-fade-out-a-soundtrack-when-a-video-is-loaded-into-another-movieclip/319078 "2011-02-08T12:21:54Z")

</div>

Hi all! This is my very first post in this forum... but I appreciate all the information I've got as a visitor!! And I hope to contribute very soon. My issue is: I have a mp3 player running in a movieclip and I want…

---

## [Flash-movieclip](https://forum.kirupa.com/t/flash-movieclip/319077)

<div class="topic-metadata">

**Author:** [@prettypriti](https://forum.kirupa.com/u/prettypriti)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 12:09pm UTC](https://forum.kirupa.com/t/flash-movieclip/319077 "2011-02-08T12:09:46Z")

</div>

How to link the movieclip present in stage with the button which present inside another movieclip

---

## [Help required on simple validations for Flex Numeric Stepper](https://forum.kirupa.com/t/help-required-on-simple-validations-for-flex-numeric-stepper/319076)

<div class="topic-metadata">

**Author:** [@rajesh\_flash](https://forum.kirupa.com/u/rajesh_flash)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 11:54am UTC](https://forum.kirupa.com/t/help-required-on-simple-validations-for-flex-numeric-stepper/319076 "2011-02-08T11:54:46Z")

</div>

Friends, I need a small help in Flex Numeric Stepper validation. I have setted a min value to 1 and max value to 10, Now my requirement is when ever user can enter a value other than the range between 1 - 10, i want …

---

## [AS3 and php communication problem](https://forum.kirupa.com/t/as3-and-php-communication-problem/319075)

<div class="topic-metadata">

**Author:** [@ericitzhak](https://forum.kirupa.com/u/ericitzhak)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 11:22am UTC](https://forum.kirupa.com/t/as3-and-php-communication-problem/319075 "2011-02-08T11:22:14Z")

</div>

Hello. my problem is this: i have a video player that on EVENT.COMPLETE passes vars to a php file and then recives vars back. when i run the swf on my localhost it works perfectly fine but when i use it from the server i…

---

## [Panning Camera Forward and Backward](https://forum.kirupa.com/t/panning-camera-forward-and-backward/319073)

<div class="topic-metadata">

**Author:** [@yaziii](https://forum.kirupa.com/u/yaziii)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 10:50am UTC](https://forum.kirupa.com/t/panning-camera-forward-and-backward/319073 "2011-02-08T10:50:10Z")

</div>

i found this link http://www.kirupa.com/developer/actionscript/more\_panning.htm which is luckily on KIRUPA. Actually I want exact this for my project but I can't understand how to do this so please can some one have vi…

---

## [Resizing picture along the stage](https://forum.kirupa.com/t/resizing-picture-along-the-stage/319072)

<div class="topic-metadata">

**Author:** [@zembo](https://forum.kirupa.com/u/zembo)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 10:40am UTC](https://forum.kirupa.com/t/resizing-picture-along-the-stage/319072 "2011-02-08T10:40:12Z")

</div>

Hi there, I'm little bit lost right now. How I make picture resize along the stage, so that the aspect ratio doesen't twist. Picture size can be anything. The point is that you can see the whole picture everytime…

---

## [ERROR Object expected](https://forum.kirupa.com/t/error-object-expected/319071)

<div class="topic-metadata">

**Author:** [@cjj](https://forum.kirupa.com/u/cjj)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 10:27am UTC](https://forum.kirupa.com/t/error-object-expected/319071 "2011-02-08T10:27:52Z")

</div>

Hi, I am NOT very fluent in JavaScript, so I apologize upfront if this appears silly. I took over the design/development of a website and it had a page created using asp, which I had to convert to php. But now the Jav…

---

## [Streaming .mp3 doesn't work in Safari](https://forum.kirupa.com/t/streaming-mp3-doesnt-work-in-safari/319067)

<div class="topic-metadata">

**Author:** [@bfaubion](https://forum.kirupa.com/u/bfaubion)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 7:20am UTC](https://forum.kirupa.com/t/streaming-mp3-doesnt-work-in-safari/319067 "2011-02-08T07:20:35Z")

</div>

Hey Guys, I have a strange problem with my PHP code... perhaps someone here can help identify what's going on. The purpose of my script is to stream an .mp3 while keeping the location hidden and download hard to get to f…

---

## [Events Propagation](https://forum.kirupa.com/t/events-propagation/319066)

<div class="topic-metadata">

**Author:** [@vfistri1](https://forum.kirupa.com/u/vfistri1)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 4:59am UTC](https://forum.kirupa.com/t/events-propagation/319066 "2011-02-08T04:59:40Z")

</div>

i have been reading book Essential actionscript 3.0 , and basically as far as i understand allmost all events propagate. so lets say i have class A,B,C which all extend Sprite , and some cotstume event called CostumeEven…

---

## [Ajax help needed!](https://forum.kirupa.com/t/ajax-help-needed/319063)

<div class="topic-metadata">

**Author:** [@atokatim](https://forum.kirupa.com/u/atokatim)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 1:13am UTC](https://forum.kirupa.com/t/ajax-help-needed/319063 "2011-02-08T01:13:20Z")

</div>

Hello again everyone! I am working on a new project for a company and I am having an issue dealing with Ajax. What I am attempting to do is send data to a php file using ajax, then return 2 variables. I keep seeing al…

---

## [Same Page Feedback form](https://forum.kirupa.com/t/same-page-feedback-form/319061)

<div class="topic-metadata">

**Author:** [@Vanss472](https://forum.kirupa.com/u/Vanss472)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 12:22am UTC](https://forum.kirupa.com/t/same-page-feedback-form/319061 "2011-02-08T00:22:03Z")

</div>

Hello I have program this form, and I want a same page feedback. I dont want the thank you note to go to another page. How can I keep the Feedback Note to stay at the same page? http://adworkscorp.com/facebook/hosp…

---

## [Dynamic Text to play Movie Clip Help!](https://forum.kirupa.com/t/dynamic-text-to-play-movie-clip-help/319060)

<div class="topic-metadata">

**Author:** [@drummerboy1987](https://forum.kirupa.com/u/drummerboy1987)\
**Replies:** 0\
**Last updated:** [February 8, 2011, 12:08am UTC](https://forum.kirupa.com/t/dynamic-text-to-play-movie-clip-help/319060 "2011-02-08T00:08:33Z")

</div>

Hey guys! I'm working on a little project where I would like to use Dynamic text input to play corresponding movie files! Basicly what needs to happen is you type a VERB onto the Dynamic field i.e. JUMP and then a lit…

---

## [Find Closest](https://forum.kirupa.com/t/find-closest/319058)

<div class="topic-metadata">

**Author:** [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Replies:** 0\
**Last updated:** [February 7, 2011, 10:19pm UTC](https://forum.kirupa.com/t/find-closest/319058 "2011-02-07T22:19:11Z")

</div>

How would I go about finding the closest instance to a certain spot? I was thinking about using the distance formula and looping through all the instances on the stage, but I don't know how to find the shortest distance…

---

## [Flash Theory? Strange CS5 vs CS3 Behavior](https://forum.kirupa.com/t/flash-theory-strange-cs5-vs-cs3-behavior/319057)

<div class="topic-metadata">

**Author:** [@dewey](https://forum.kirupa.com/u/dewey)\
**Replies:** 0\
**Last updated:** [February 7, 2011, 10:07pm UTC](https://forum.kirupa.com/t/flash-theory-strange-cs5-vs-cs3-behavior/319057 "2011-02-07T22:07:35Z")

</div>

Hi everyone, I have encountered a strange problem that I am hoping someone her ecan help me understand. I have an older project which I have been maintaining for the past couple of years. Maintenance generally includ…

---

## [Swf navigation, html content](https://forum.kirupa.com/t/swf-navigation-html-content/319054)

<div class="topic-metadata">

**Author:** [@ariekstins](https://forum.kirupa.com/u/ariekstins)\
**Replies:** 0\
**Last updated:** [February 7, 2011, 8:04pm UTC](https://forum.kirupa.com/t/swf-navigation-html-content/319054 "2011-02-07T20:04:38Z")

</div>

Hello everyone! By surprise, on the web I cannot find any solution regarding to the problem I have, even though I think it should be kind a common, cause many websites has only flash navigations (everything else is …

---

## [Could U do it Better?](https://forum.kirupa.com/t/could-u-do-it-better/319053)

<div class="topic-metadata">

**Author:** [@FlashUserNull](https://forum.kirupa.com/u/FlashUserNull)\
**Replies:** 0\
**Last updated:** [February 7, 2011, 7:49pm UTC](https://forum.kirupa.com/t/could-u-do-it-better/319053 "2011-02-07T19:49:06Z")

</div>

I needed a Function to draw an arrow facing either up, down,left, or right and returned as either a Shape, Sprite, or MovieClip. This is what i came up with. My question is: could it be made more concise? var myTria…

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

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