# programming

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

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

**Page:** 616

---

## [Scripting Database entries into XML](https://forum.kirupa.com/t/scripting-database-entries-into-xml/301342)

<div class="topic-metadata">

**Author:** [@LaughDonor](https://forum.kirupa.com/u/LaughDonor)\
**Replies:** 0\
**Last updated:** [December 8, 2009, 12:08am UTC](https://forum.kirupa.com/t/scripting-database-entries-into-xml/301342 "2009-12-08T00:08:28Z")

</div>

Just wanted to say that I enjoyed \[Jubba's guide for converting \[URL="http://www.kirupa.com/web/mysql\_xml\_php.htm"\]database entries into XML\](http://www.kirupa.com/forum/member.php?u=5).. I wanted to show you guys my ver…

---

## [Looking for a shatter or explode effect... / class?](https://forum.kirupa.com/t/looking-for-a-shatter-or-explode-effect-class/301341)

<div class="topic-metadata">

**Author:** [@dtrace](https://forum.kirupa.com/u/dtrace)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 11:48pm UTC](https://forum.kirupa.com/t/looking-for-a-shatter-or-explode-effect-class/301341 "2009-12-07T23:48:52Z")

</div>

I have an mc, that I want to shatter and float away. I know I've seen classes that do this sort of thing. Have you heard of any? Thanks.

---

## [Finding available time](https://forum.kirupa.com/t/finding-available-time/301338)

<div class="topic-metadata">

**Author:** [@imagined](https://forum.kirupa.com/u/imagined)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 10:46pm UTC](https://forum.kirupa.com/t/finding-available-time/301338 "2009-12-07T22:46:02Z")

</div>

Ok, I can already input available time in MySQL. Like: AvailableDay = Monday FromTime = 08:00 ToTime = 11:00 Means it's available on Mondays from 8-11am Now, I need to create a drop down menu that will allow the user…

---

## [Music Button newbie question](https://forum.kirupa.com/t/music-button-newbie-question/301336)

<div class="topic-metadata">

**Author:** [@johnnien](https://forum.kirupa.com/u/johnnien)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 10:42pm UTC](https://forum.kirupa.com/t/music-button-newbie-question/301336 "2009-12-07T22:42:25Z")

</div>

Do you guys know a nice tutorial about a music button in AS 3? I already have this file from another thread here, where a sound button is made on a single frame and the code goes like this: import flash.media.Sound; imp…

---

## [Creating XML problem](https://forum.kirupa.com/t/creating-xml-problem/301334)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 10:26pm UTC](https://forum.kirupa.com/t/creating-xml-problem/301334 "2009-12-07T22:26:19Z")

</div>

Hello, I have been working on a tool for use in our office which creates XML. The problem is if a user leaves any of the text fields blank, I get only the end tag, for example \</text\>. This only happens if a text field…

---

## [Swap images using html and css](https://forum.kirupa.com/t/swap-images-using-html-and-css/301331)

<div class="topic-metadata">

**Author:** [@laertjansen](https://forum.kirupa.com/u/laertjansen)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 9:28pm UTC](https://forum.kirupa.com/t/swap-images-using-html-and-css/301331 "2009-12-07T21:28:20Z")

</div>

Hello mates, May I ask for some help here? I'm trying to swap two \*.png images following a tut from webdesignerwall.com but I can't seem to make it work. Actually is this the best way to swap images? css? Currenlty…

---

## [onRelease with nested movieClips](https://forum.kirupa.com/t/onrelease-with-nested-movieclips/301330)

<div class="topic-metadata">

**Author:** [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 9:03pm UTC](https://forum.kirupa.com/t/onrelease-with-nested-movieclips/301330 "2009-12-07T21:03:02Z")

</div>

Hi There, this SIMPLE problem is killing me! I have an mc, with a nested mc inside, which has a nested mc inside that. When I rollOver the container mc, It wont allow me to perform a onRelease with the 2nd nested mc ..…

---

## [RegExp Value Between a Hard Coded Variable and &](https://forum.kirupa.com/t/regexp-value-between-a-hard-coded-variable-and/301328)

<div class="topic-metadata">

**Author:** [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 8:41pm UTC](https://forum.kirupa.com/t/regexp-value-between-a-hard-coded-variable-and/301328 "2009-12-07T20:41:08Z")

</div>

Hey guys, I have a string that looks like site=somewhere&content1=foo&content2=1469&somethingelse=something I need to dynamically replace the content2 variable on the fly with a new value. So for example I will r…

---

## [Editting code from movieclip to actions layer](https://forum.kirupa.com/t/editting-code-from-movieclip-to-actions-layer/301325)

<div class="topic-metadata">

**Author:** [@Iakona](https://forum.kirupa.com/u/Iakona)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 7:48pm UTC](https://forum.kirupa.com/t/editting-code-from-movieclip-to-actions-layer/301325 "2009-12-07T19:48:51Z")

</div>

Hey chaps i’m currently having a small problem with some Actionscript 2.0 in CS3. I’m following a tutorial to make a simple maze like game Tutorial here: http://www.webwasp.co.uk/tutorials/b32-collision-detection/01.ph…

---

## [AS3.0 loading AS2.0 swf - root issues](https://forum.kirupa.com/t/as3-0-loading-as2-0-swf-root-issues/301324)

<div class="topic-metadata">

**Author:** [@Jyaw3](https://forum.kirupa.com/u/Jyaw3)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 6:56pm UTC](https://forum.kirupa.com/t/as3-0-loading-as2-0-swf-root-issues/301324 "2009-12-07T18:56:50Z")

</div>

Hello, I've got a question about AS3.0 loading AS2.0 swfs Basically, my AS2.0 swf contains a uses the timeline, and at label "Game" calls Maingame.main(this); and the Maingame.as file handles things And this all works …

---

## [Script doesn't work in fullscreen mode](https://forum.kirupa.com/t/script-doesnt-work-in-fullscreen-mode/301323)

<div class="topic-metadata">

**Author:** [@yarafashion](https://forum.kirupa.com/u/yarafashion)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 5:42pm UTC](https://forum.kirupa.com/t/script-doesnt-work-in-fullscreen-mode/301323 "2009-12-07T17:42:13Z")

</div>

Hello, The following problem occured when I tried to view my flash project in full screen mode: When I applied a glowfilter to an movie object it didn't show when I run it, so I tried to do this with actionscript. It w…

---

## [Icon pops on video playback or causes whole movie to play at once](https://forum.kirupa.com/t/icon-pops-on-video-playback-or-causes-whole-movie-to-play-at-once/301322)

<div class="topic-metadata">

**Author:** [@Wes\_Ide](https://forum.kirupa.com/u/Wes_Ide)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 5:11pm UTC](https://forum.kirupa.com/t/icon-pops-on-video-playback-or-causes-whole-movie-to-play-at-once/301322 "2009-12-07T17:11:56Z")

</div>

Hello all. I've just converted a Powerpoint presentation to Flash. Several slides/frames have video on them, so I've got a FLV in those frames with the video, as well as the controls for them (which created a video cont…

---

## [Customizable page flipper](https://forum.kirupa.com/t/customizable-page-flipper/301320)

<div class="topic-metadata">

**Author:** [@nook](https://forum.kirupa.com/u/nook)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 4:41pm UTC](https://forum.kirupa.com/t/customizable-page-flipper/301320 "2009-12-07T16:41:22Z")

</div>

Hi. I've been trying to shovel through the tons of page flippers out there to find the one that suits my needs and was hoping for some hints here. It's for commercial use so a small cost is acceptable. This is what I w…

---

## [Help needed AS3 - Adding objects from library vs directly on stage](https://forum.kirupa.com/t/help-needed-as3-adding-objects-from-library-vs-directly-on-stage/301319)

<div class="topic-metadata">

**Author:** [@Freaken](https://forum.kirupa.com/u/Freaken)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 4:13pm UTC](https://forum.kirupa.com/t/help-needed-as3-adding-objects-from-library-vs-directly-on-stage/301319 "2009-12-07T16:13:33Z")

</div>

I am a flash developer and I've got some experience in games and applications, but there is a problem that always comes back and that I solve in sometimes discussing manners, but I've decided to find the "good way" of do…

---

## [Get JSON Object in correct order](https://forum.kirupa.com/t/get-json-object-in-correct-order/301317)

<div class="topic-metadata">

**Author:** [@livingdeadbeat](https://forum.kirupa.com/u/livingdeadbeat)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 3:42pm UTC](https://forum.kirupa.com/t/get-json-object-in-correct-order/301317 "2009-12-07T15:42:19Z")

</div>

Hi I'm getting a large JSON string and decoding it into an object, i'm looping through this object to create the interface. The problem is it seems to build the interface in a random order, is this because actionscri…

---

## [Little problem with animating with AS3](https://forum.kirupa.com/t/little-problem-with-animating-with-as3/301311)

<div class="topic-metadata">

**Author:** [@ZebraMan](https://forum.kirupa.com/u/ZebraMan)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 1:59pm UTC](https://forum.kirupa.com/t/little-problem-with-animating-with-as3/301311 "2009-12-07T13:59:15Z")

</div>

Hey all, Yet again i get stuck on something really stupid. I have this code in where i try to animate a simple bus, so i try it with the tween class. And use almost the same code as described in the actionscript cook…

---

## [as3 CS4 web service](https://forum.kirupa.com/t/as3-cs4-web-service/301310)

<div class="topic-metadata">

**Author:** [@mca102](https://forum.kirupa.com/u/mca102)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 1:38pm UTC](https://forum.kirupa.com/t/as3-cs4-web-service/301310 "2009-12-07T13:38:07Z")

</div>

Welcome, I have a problem with using the webservice component from flex 3 in flash cs4. I am making the same thing what is in this adobe tutorial: http://www.webkitchen.be/2009/03/02/...-cs4-projects/ public function …

---

## [The funny thing about "else if"](https://forum.kirupa.com/t/the-funny-thing-about-else-if/301305)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 10:16am UTC](https://forum.kirupa.com/t/the-funny-thing-about-else-if/301305 "2009-12-07T10:16:16Z")

</div>

Just noticed something funny a few weeks back. To recap, if statements can be written without brackets. If this is done, the very next line is executed, that only that line if the query is met. Same thing after 'else'. …

---

## [AS2.0 XML viewer, using wrong source](https://forum.kirupa.com/t/as2-0-xml-viewer-using-wrong-source/301304)

<div class="topic-metadata">

**Author:** [@callmejay](https://forum.kirupa.com/u/callmejay)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 9:45am UTC](https://forum.kirupa.com/t/as2-0-xml-viewer-using-wrong-source/301304 "2009-12-07T09:45:38Z")

</div>

Hi everyone, I followed the XML gallery tutorial on the main site, no problems there. But for this project I'd like to have multiple of those viewers on the cd-rom. So what I did was I made 7 different viewer moviecl…

---

## [Handling animation in Flex](https://forum.kirupa.com/t/handling-animation-in-flex/301300)

<div class="topic-metadata">

**Author:** [@noobie123](https://forum.kirupa.com/u/noobie123)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 8:52am UTC](https://forum.kirupa.com/t/handling-animation-in-flex/301300 "2009-12-07T08:52:23Z")

</div>

Is it possible to write Actionscript code on different frames using just the Flex SDK? How can this be done? What is the equivalent for gotoandstop() here?

---

## [How to display XML?](https://forum.kirupa.com/t/how-to-display-xml/301298)

<div class="topic-metadata">

**Author:** [@lighteyes](https://forum.kirupa.com/u/lighteyes)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 8:16am UTC](https://forum.kirupa.com/t/how-to-display-xml/301298 "2009-12-07T08:16:23Z")

</div>

Hello. I'm a beginner in XML. And I need help with this. What I want to achieve is to display the XML data once I click the button. But I kept getting undefined error. Here's what I have: t1.onRelease = function ()…

---

## [XML Error ( TypeError: Error #1010 )](https://forum.kirupa.com/t/xml-error-typeerror-error-1010/301294)

<div class="topic-metadata">

**Author:** [@uAlpay](https://forum.kirupa.com/u/uAlpay)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 5:52am UTC](https://forum.kirupa.com/t/xml-error-typeerror-error-1010/301294 "2009-12-07T05:52:30Z")

</div>

TypeError: Error #1010: A term undefined and does not feature. at index\_fla::MainTimeline/onLoaded() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.…

---

## [Timeline-controlled game programming](https://forum.kirupa.com/t/timeline-controlled-game-programming/301291)

<div class="topic-metadata">

**Author:** [@asbestos\_bill](https://forum.kirupa.com/u/asbestos_bill)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 4:10am UTC](https://forum.kirupa.com/t/timeline-controlled-game-programming/301291 "2009-12-07T04:10:32Z")

</div>

I am trying to create a few simple games for a school project and I decided to try a timeline-controlled programming style. Basically I have a movie clip for each character, each of which has a set of behaviors and anima…

---

## [Countdown timer reference date from a textfile](https://forum.kirupa.com/t/countdown-timer-reference-date-from-a-textfile/301288)

<div class="topic-metadata">

**Author:** [@otep](https://forum.kirupa.com/u/otep)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 2:45am UTC](https://forum.kirupa.com/t/countdown-timer-reference-date-from-a-textfile/301288 "2009-12-07T02:45:31Z")

</div>

Hi guys, I am a noob when it comes to scripting. Please help me on this one, I saw this countdown timer (http://www.kirupa.com/developer/mx/countdown2.htm) and I want the date to be referenced on a text file. :\*( h…

---

## [KeyboardEvents inside classes (not a movieclip)](https://forum.kirupa.com/t/keyboardevents-inside-classes-not-a-movieclip/301286)

<div class="topic-metadata">

**Author:** [@bontempos](https://forum.kirupa.com/u/bontempos)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 1:07am UTC](https://forum.kirupa.com/t/keyboardevents-inside-classes-not-a-movieclip/301286 "2009-12-07T01:07:45Z")

</div>

Hello! All I want is to create a class to treat users keyboard entries, and store it on public vars for all other classes to read it. I'd like to know: to get the keyboardEvent working inside a class, do I need my cl…

---

## [Arcball in papervision?](https://forum.kirupa.com/t/arcball-in-papervision/301285)

<div class="topic-metadata">

**Author:** [@slopps](https://forum.kirupa.com/u/slopps)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 11:45pm UTC](https://forum.kirupa.com/t/arcball-in-papervision/301285 "2009-12-06T23:45:24Z")

</div>

Hey Everyone, I was wondering if anyone knew of an existing implementation for an arcball-style mouse control in papervision for rotating an object? Or some useful advice for doing it myself? I can't seem to find one so …

---

## [Background clicking through to a layer below error](https://forum.kirupa.com/t/background-clicking-through-to-a-layer-below-error/301284)

<div class="topic-metadata">

**Author:** [@kptgreg](https://forum.kirupa.com/u/kptgreg)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 11:22pm UTC](https://forum.kirupa.com/t/background-clicking-through-to-a-layer-below-error/301284 "2009-12-06T23:22:07Z")

</div>

I designed an all flash website and coded in AS2 and when someone clicks to play a movie in my Commercials section, I fade in a solid black background (which is a Symbol - Graphic) and the video (FLV) plays. I noticed t…

---

## [Programming with Flash MX](https://forum.kirupa.com/t/programming-with-flash-mx/301283)

<div class="topic-metadata">

**Author:** [@King\_Kong](https://forum.kirupa.com/u/King_Kong)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 11:03pm UTC](https://forum.kirupa.com/t/programming-with-flash-mx/301283 "2009-12-06T23:03:47Z")

</div>

:cyborg:How can you create a car driving game or a man running. I would like some tutorials so I could get use to flash mx. Please give me some tutorials showing how to make a car driving game.

---

## [\[MX2004\] Help With Frame Labels (next scene)](https://forum.kirupa.com/t/mx2004-help-with-frame-labels-next-scene/301282)

<div class="topic-metadata">

**Author:** [@Danceatron](https://forum.kirupa.com/u/Danceatron)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 10:43pm UTC](https://forum.kirupa.com/t/mx2004-help-with-frame-labels-next-scene/301282 "2009-12-06T22:43:14Z")

</div>

Hello, gentlemen. This one \*should \*be easy, but it's driving me crazy. \[laughs\] I'm trying to go from scene 1 to scene 2. I have the first frame of scene 2 labeled as "firstframe2" That's where I want to go. I ha…

---

## [Excess padding/spacing inside div](https://forum.kirupa.com/t/excess-padding-spacing-inside-div/301281)

<div class="topic-metadata">

**Author:** [@celicasaur](https://forum.kirupa.com/u/celicasaur)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 8:55pm UTC](https://forum.kirupa.com/t/excess-padding-spacing-inside-div/301281 "2009-12-06T20:55:28Z")

</div>

Here's an image for you to see the problem I have: \[image\] Here's the css: #Main #LogoContainer { /\* Holds the logo and the site navigation links inside a container \*/ margin: 45px 0 0 51px; width: 523px; display…

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

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