# programming

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

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

**Page:** 297

---

## [PHP and form variables](https://forum.kirupa.com/t/php-and-form-variables/321096)

<div class="topic-metadata">

**Author:** [@zzxjoanw](https://forum.kirupa.com/u/zzxjoanw)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 7:47pm UTC](https://forum.kirupa.com/t/php-and-form-variables/321096 "2011-04-10T19:47:22Z")

</div>

I'm trying to insert a record using the following code: if($hasError==0) { $time = $\_POST\['hour'\] . ":" . $\_POST\['minute'\]; $sql="INSERT INTO res\_tblReservation(resDate,time,numGuests, email) VALUES('$\_POST\[…

---

## [Flash/XML Trivia Quiz](https://forum.kirupa.com/t/flash-xml-trivia-quiz/321094)

<div class="topic-metadata">

**Author:** [@Rach\_S27](https://forum.kirupa.com/u/Rach_S27)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 6:34pm UTC](https://forum.kirupa.com/t/flash-xml-trivia-quiz/321094 "2011-04-10T18:34:05Z")

</div>

Hello, I am trying to make a flash/xml trivia quiz. I have the radio button quiz running from an xml file. My question is can I play specific swf's for particular questions from the xml file at the same time. I have some…

---

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

<div class="topic-metadata">

**Author:** [@fikontrollet](https://forum.kirupa.com/u/fikontrollet)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 6:11pm UTC](https://forum.kirupa.com/t/pathfinding-a/321093 "2011-04-10T18:11:33Z")

</div>

Hello guys Ok, so I'm in the making of a serious game and before I continue any further with he pathfinding i just wanna check if I'm going in the right direction. Maybe you even can give me some hints on how to continue…

---

## [Help with load xml driven swf in another swf](https://forum.kirupa.com/t/help-with-load-xml-driven-swf-in-another-swf/321092)

<div class="topic-metadata">

**Author:** [@wulckdroff](https://forum.kirupa.com/u/wulckdroff)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 5:56pm UTC](https://forum.kirupa.com/t/help-with-load-xml-driven-swf-in-another-swf/321092 "2011-04-10T17:56:36Z")

</div>

Hello people ... (sorry for my Google transalte English) ... I am desperate, tapping in place last week. In fact, i make flash CD presentation in Adobe Flash CS5 AS2 (with minimal use of ActionScript). It occurs to…

---

## [AS best practice questions](https://forum.kirupa.com/t/as-best-practice-questions/321090)

<div class="topic-metadata">

**Author:** [@flashgroove](https://forum.kirupa.com/u/flashgroove)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 5:26pm UTC](https://forum.kirupa.com/t/as-best-practice-questions/321090 "2011-04-10T17:26:51Z")

</div>

Hi, There are a few things regarding best practices in ActionScript that I would like to know about: When a class uses other classes located in the same package, I know that it is not necessary to import them. But w…

---

## [Outside Stage, gets laggy?](https://forum.kirupa.com/t/outside-stage-gets-laggy/321088)

<div class="topic-metadata">

**Author:** [@TheAwesomeDude](https://forum.kirupa.com/u/TheAwesomeDude)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 4:25pm UTC](https://forum.kirupa.com/t/outside-stage-gets-laggy/321088 "2011-04-10T16:25:57Z")

</div>

Hi! I'm making a 2D Platform game. I have a player, and some boxes that I can walk on. I downloaded vCam and got it to work. But now here comes the problem. It seems like when im going outside the stage with my player, …

---

## [JSFL file path (without file name)](https://forum.kirupa.com/t/jsfl-file-path-without-file-name/321087)

<div class="topic-metadata">

**Author:** [@smokin2008](https://forum.kirupa.com/u/smokin2008)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 12:51pm UTC](https://forum.kirupa.com/t/jsfl-file-path-without-file-name/321087 "2011-04-10T12:51:44Z")

</div>

I want to get the path of the file (in which the script is run), with out the file name. how to do that? at present i have the following code: var filename1=flash.documents\[0\].name; fl.trace("this file name \>\>\> "+…

---

## [Having problem in start/stop drag on mc containing multiple mc's](https://forum.kirupa.com/t/having-problem-in-start-stop-drag-on-mc-containing-multiple-mcs/321084)

<div class="topic-metadata">

**Author:** [@leeda111](https://forum.kirupa.com/u/leeda111)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 9:34am UTC](https://forum.kirupa.com/t/having-problem-in-start-stop-drag-on-mc-containing-multiple-mcs/321084 "2011-04-10T09:34:15Z")

</div>

Hi, I am facing a weird problem. I am not sure if it should go to flash ide or as3 so posting here at the moment. I will try to explain it. I have a movie clip named:\*\* F1\*\* Inside F1 there are multiple movieclips(e.…

---

## [Convert to Bitmap](https://forum.kirupa.com/t/convert-to-bitmap/321083)

<div class="topic-metadata">

**Author:** [@darkbold](https://forum.kirupa.com/u/darkbold)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 8:50am UTC](https://forum.kirupa.com/t/convert-to-bitmap/321083 "2011-04-10T08:50:31Z")

</div>

Hello ... var req:URLRequest=new URLRequest("img1.jpg") var ldr:Loader = new Loader(); ldr.load(req) ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loadFNC) function loadFNC(evt:Event):void { var bmp:Bitm…

---

## [Camera movement? Maybe vCam?](https://forum.kirupa.com/t/camera-movement-maybe-vcam/321082)

<div class="topic-metadata">

**Author:** [@TheAwesomeDude](https://forum.kirupa.com/u/TheAwesomeDude)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 8:46am UTC](https://forum.kirupa.com/t/camera-movement-maybe-vcam/321082 "2011-04-10T08:46:34Z")

</div>

Hi! Im making a 2D platformer game. And I need the camera to move. And I don't want the player to be centered, I want it to be like this: http://img43.imageshack.us/i/cameraa.png/ Explain: I want to see everything, b…

---

## [Hide/unhide movie clip](https://forum.kirupa.com/t/hide-unhide-movie-clip/321081)

<div class="topic-metadata">

**Author:** [@DarkLink](https://forum.kirupa.com/u/DarkLink)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 2:41am UTC](https://forum.kirupa.com/t/hide-unhide-movie-clip/321081 "2011-04-10T02:41:43Z")

</div>

I'd like to have one button to use for hiding and unhiding movie clips. I think I'm having an issue with my if statement. I can get the button to hide the movie clip, but can't get it to work on unhiding the movie clip…

---

## [Sprite(parent).value](https://forum.kirupa.com/t/sprite-parent-value/321078)

<div class="topic-metadata">

**Author:** [@tbo](https://forum.kirupa.com/u/tbo)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 1:34am UTC](https://forum.kirupa.com/t/sprite-parent-value/321078 "2011-04-10T01:34:51Z")

</div>

if i needed to do this, is there some equivalent besides dispatching an event? I would want to access a variable in the sprite

---

## [Control everything in a layer?](https://forum.kirupa.com/t/control-everything-in-a-layer/321077)

<div class="topic-metadata">

**Author:** [@TheAwesomeDude](https://forum.kirupa.com/u/TheAwesomeDude)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 1:20am UTC](https://forum.kirupa.com/t/control-everything-in-a-layer/321077 "2011-04-10T01:20:09Z")

</div>

Hi! Is it able to control everything in a layer? Like if i have 2 boxes in a layer, and then i want to write some code like this: "if(player.hitTestObject(buttom)) { MYLAYER.x -=1; } What im trying so say is.. Ca…

---

## [Zend AMF load image](https://forum.kirupa.com/t/zend-amf-load-image/321076)

<div class="topic-metadata">

**Author:** [@LOLFlash](https://forum.kirupa.com/u/LOLFlash)\
**Replies:** 0\
**Last updated:** [April 10, 2011, 1:10am UTC](https://forum.kirupa.com/t/zend-amf-load-image/321076 "2011-04-10T01:10:22Z")

</div>

Hi I have Zend\_Amf\_Server in gateway and a'm calling function getImage in my Class what has very simple code: public function getImage($str){ return file\_get\_contents($str); } when I load html file all goes g…

---

## [Adobe Flash Professional CS5 help?](https://forum.kirupa.com/t/adobe-flash-professional-cs5-help/321075)

<div class="topic-metadata">

**Author:** [@Xglsuperbounce](https://forum.kirupa.com/u/Xglsuperbounce)\
**Replies:** 0\
**Last updated:** [April 9, 2011, 11:21pm UTC](https://forum.kirupa.com/t/adobe-flash-professional-cs5-help/321075 "2011-04-09T23:21:07Z")

</div>

Okay, so I have used this many times before but I cannot figure out how to fix this. This is what happened. after i open up any type of document like an actionscript 3.0 document or anything, if i draw with the paint bru…

---

## [1 class and multiple symbols](https://forum.kirupa.com/t/1-class-and-multiple-symbols/321074)

<div class="topic-metadata">

**Author:** [@ColinDavies](https://forum.kirupa.com/u/ColinDavies)\
**Replies:** 0\
**Last updated:** [April 9, 2011, 11:19pm UTC](https://forum.kirupa.com/t/1-class-and-multiple-symbols/321074 "2011-04-09T23:19:49Z")

</div>

Is there a way for 1 class to have multiple symbols, (not individual instances but symbols) Or should I just make a major Class with minor classes extending that one class?

---

## [PHP newbie Needs Help](https://forum.kirupa.com/t/php-newbie-needs-help/321070)

<div class="topic-metadata">

**Author:** [@jaybee612](https://forum.kirupa.com/u/jaybee612)\
**Replies:** 0\
**Last updated:** [April 9, 2011, 7:17pm UTC](https://forum.kirupa.com/t/php-newbie-needs-help/321070 "2011-04-09T19:17:22Z")

</div>

Hi, im making a gaming website for the game GTA IV. The games will be played threw xbox live. I need help, if you could point me in the right direction that would be great. The user will sign up/log in, pick a specif…

---

## [Memory Usage goes insane! HELP!](https://forum.kirupa.com/t/memory-usage-goes-insane-help/321068)

<div class="topic-metadata">

**Author:** [@TheAwesomeDude](https://forum.kirupa.com/u/TheAwesomeDude)\
**Replies:** 0\
**Last updated:** [April 9, 2011, 4:08pm UTC](https://forum.kirupa.com/t/memory-usage-goes-insane-help/321068 "2011-04-09T16:08:33Z")

</div>

Hi, I have a code where I controll a ball with my phones accelerometer. And I want the ball to stop when i hit a object, so I wrote this code: import flash.events.Event; var accelX:Number; var fl\_Accelerometer:Acce…

---

## [How do I go about flash games](https://forum.kirupa.com/t/how-do-i-go-about-flash-games/321067)

<div class="topic-metadata">

**Author:** [@maxxiejw](https://forum.kirupa.com/u/maxxiejw)\
**Replies:** 0\
**Last updated:** [April 9, 2011, 2:22pm UTC](https://forum.kirupa.com/t/how-do-i-go-about-flash-games/321067 "2011-04-09T14:22:54Z")

</div>

I want to create a 2 player flash game, but no idea how to go about it. I've created a background and now want to create the 2 characters. The end result of these characters are that they continually blink automatica…

---

## [I need help on my project?](https://forum.kirupa.com/t/i-need-help-on-my-project/321062)

<div class="topic-metadata">

**Author:** [@runzun](https://forum.kirupa.com/u/runzun)\
**Replies:** 0\
**Last updated:** [April 9, 2011, 4:59am UTC](https://forum.kirupa.com/t/i-need-help-on-my-project/321062 "2011-04-09T04:59:00Z")

</div>

i Want my project to be like this check the link http://megaswf.com/serve/1052904 project i made it till now ..... http://megaswf.com/serve/1052908 i want arrow going up on start and when ever i press the green butt…

---

## [Need your help to make Flash website full browser](https://forum.kirupa.com/t/need-your-help-to-make-flash-website-full-browser/321060)

<div class="topic-metadata">

**Author:** [@kmarnob](https://forum.kirupa.com/u/kmarnob)\
**Replies:** 0\
**Last updated:** [April 9, 2011, 4:10am UTC](https://forum.kirupa.com/t/need-your-help-to-make-flash-website-full-browser/321060 "2011-04-09T04:10:39Z")

</div>

Hello, I am making a website. Client's requirement is full browser will be flash but content will be fixed. There is a line in the header which will scale full browser. Please check the attached rough layout. Red borde…

---

## [I dont get what this event:Event thing is](https://forum.kirupa.com/t/i-dont-get-what-this-event-event-thing-is/321059)

<div class="topic-metadata">

**Author:** [@zaartt](https://forum.kirupa.com/u/zaartt)\
**Replies:** 0\
**Last updated:** [April 9, 2011, 4:06am UTC](https://forum.kirupa.com/t/i-dont-get-what-this-event-event-thing-is/321059 "2011-04-09T04:06:30Z")

</div>

I dont get what this event:Event argument thingy is in this code plz explain to me in a simple explanation im a total begginer "import flash.events.Event; //First I defined a function where all of //the code needed to …

---

## [Read Main var from Child SWF](https://forum.kirupa.com/t/read-main-var-from-child-swf/321054)

<div class="topic-metadata">

**Author:** [@daush](https://forum.kirupa.com/u/daush)\
**Replies:** 0\
**Last updated:** [April 8, 2011, 10:13pm UTC](https://forum.kirupa.com/t/read-main-var-from-child-swf/321054 "2011-04-08T22:13:48Z")

</div>

Hi guyz. i have main.swf with var car:String = "my car"; then i addchild a new swf; child.swf inside child, how can i trace my "car" var? MovieClip(root).car give me Undefined \[frowning\] help!

---

## [Disappearing Dynamic Image on Timeline](https://forum.kirupa.com/t/disappearing-dynamic-image-on-timeline/321052)

<div class="topic-metadata">

**Author:** [@bigbstanley](https://forum.kirupa.com/u/bigbstanley)\
**Replies:** 0\
**Last updated:** [April 8, 2011, 7:47pm UTC](https://forum.kirupa.com/t/disappearing-dynamic-image-on-timeline/321052 "2011-04-08T19:47:52Z")

</div>

I'm relatively new to AS3, but have done a lot of work with AS2, so please forgive me if I'm not using the right terminology with this.... I've created a button that I turned into a library class and am pulling onto my…

---

## [Combining SWC class and .as file class](https://forum.kirupa.com/t/combining-swc-class-and-as-file-class/321051)

<div class="topic-metadata">

**Author:** [@riveroaks](https://forum.kirupa.com/u/riveroaks)\
**Replies:** 0\
**Last updated:** [April 8, 2011, 7:18pm UTC](https://forum.kirupa.com/t/combining-swc-class-and-as-file-class/321051 "2011-04-08T19:18:03Z")

</div>

Greetings, I have a .as file class definition for a class I'll call GameGUI that includes all of the business logic for my GameGUI abstraction. However, I wanted to compose its graphical assets and code its animations…

---

## [Rollover only once OR rollover in new position](https://forum.kirupa.com/t/rollover-only-once-or-rollover-in-new-position/321050)

<div class="topic-metadata">

**Author:** [@Gabums](https://forum.kirupa.com/u/Gabums)\
**Replies:** 0\
**Last updated:** [April 8, 2011, 5:11pm UTC](https://forum.kirupa.com/t/rollover-only-once-or-rollover-in-new-position/321050 "2011-04-08T17:11:21Z")

</div>

Hello all, Here I am again with new questions. So I took my framed rollover animation and made it into code with that "convert to as3" feature and it works great. The only problem is that if my animation has moved to a…

---

## [Reasons for MovieClip to ignore Timeline code CS4 AS3](https://forum.kirupa.com/t/reasons-for-movieclip-to-ignore-timeline-code-cs4-as3/321049)

<div class="topic-metadata">

**Author:** [@thehat](https://forum.kirupa.com/u/thehat)\
**Replies:** 0\
**Last updated:** [April 8, 2011, 4:19pm UTC](https://forum.kirupa.com/t/reasons-for-movieclip-to-ignore-timeline-code-cs4-as3/321049 "2011-04-08T16:19:55Z")

</div>

I have a custom class that is extended from MovieClip. The class is basically creating a button that uses frame labels in the MovieClip to move between button states as mouse events are dispatched. Each state (each …

---

## [Next Frame from Movie Clip within MC etc.?](https://forum.kirupa.com/t/next-frame-from-movie-clip-within-mc-etc/321048)

<div class="topic-metadata">

**Author:** [@snelson](https://forum.kirupa.com/u/snelson)\
**Replies:** 0\
**Last updated:** [April 8, 2011, 4:14pm UTC](https://forum.kirupa.com/t/next-frame-from-movie-clip-within-mc-etc/321048 "2011-04-08T16:14:59Z")

</div>

I need a code that'll allow me to go to the next frame on the main timeline from the prev frame with is a movieclip of MCs that already have actions script animating them. Does this making any sense?

---

## [AS3 embedding fonts via .swf](https://forum.kirupa.com/t/as3-embedding-fonts-via-swf/321047)

<div class="topic-metadata">

**Author:** [@FGMUK](https://forum.kirupa.com/u/FGMUK)\
**Replies:** 0\
**Last updated:** [April 8, 2011, 4:03pm UTC](https://forum.kirupa.com/t/as3-embedding-fonts-via-swf/321047 "2011-04-08T16:03:51Z")

</div>

I'm working on an AS3 project with Flash builder 4. I'm trying to get fonts into it. I read somewhere that it's possible to get the fonts from a .swf. I'm currently loading my assets in at run time, is it possible for …

---

## [Spark style property won't work inside datagrid renderer](https://forum.kirupa.com/t/spark-style-property-wont-work-inside-datagrid-renderer/321045)

<div class="topic-metadata">

**Author:** [@budkin](https://forum.kirupa.com/u/budkin)\
**Replies:** 0\
**Last updated:** [April 8, 2011, 3:40pm UTC](https://forum.kirupa.com/t/spark-style-property-wont-work-inside-datagrid-renderer/321045 "2011-04-08T15:40:31Z")

</div>

Hello, I've got a custom component with a spark text input in it (s:TextInput) I have it styled via css and one of the properties is: \*\*contentBackgroundColor \*\*(This is a spark specific style according to the docs) …

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

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