# programming

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

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

**Page:** 957

---

## [\[3d\] global/local transformations](https://forum.kirupa.com/t/3d-global-local-transformations/279411)

<div class="topic-metadata">

**Author:** [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 2:20pm UTC](https://forum.kirupa.com/t/3d-global-local-transformations/279411 "2009-01-14T14:20:02Z")

</div>

Hi! I've studied all adobe docs, but still can't understand all. Is there any that can help me understand all the differences between global and local transformations, and their practical use? Yes, I know, global r…

---

## [\[cs4\]\[3d\] as3 equivalent of global/local option](https://forum.kirupa.com/t/cs4-3d-as3-equivalent-of-global-local-option/279410)

<div class="topic-metadata">

**Author:** [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 2:14pm UTC](https://forum.kirupa.com/t/cs4-3d-as3-equivalent-of-global-local-option/279410 "2009-01-14T14:14:28Z")

</div>

Hi! If I change some 3d property via as3, how do set the global/local option usually available under the tools palette? Is there a way?

---

## [Preloading Multiple External SWF files](https://forum.kirupa.com/t/preloading-multiple-external-swf-files/279408)

<div class="topic-metadata">

**Author:** [@abhikumar](https://forum.kirupa.com/u/abhikumar)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 1:58pm UTC](https://forum.kirupa.com/t/preloading-multiple-external-swf-files/279408 "2009-01-14T13:58:26Z")

</div>

hello- this is how im trying to preload external swf files: var Count = 5; for (var i = 1; i\<Count; i++) { var fileLoad= this.createEmptyMovieClip("fileLoad"+i, this.getNextHighestDepth()); fileLoad.loadMovie("swf…

---

## [Advanced masking with flash?](https://forum.kirupa.com/t/advanced-masking-with-flash/279406)

<div class="topic-metadata">

**Author:** [@marcelomdsc](https://forum.kirupa.com/u/marcelomdsc)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 1:20pm UTC](https://forum.kirupa.com/t/advanced-masking-with-flash/279406 "2009-01-14T13:20:44Z")

</div>

Let´s say I have 3 layers A, B and C. I want A to be the mask for B which is pretty easy, but at the same time I want B to be the mask for C. Is that possible? thanks.

---

## [hitTestObject - any child](https://forum.kirupa.com/t/hittestobject-any-child/279404)

<div class="topic-metadata">

**Author:** [@trickeyd](https://forum.kirupa.com/u/trickeyd)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 12:39pm UTC](https://forum.kirupa.com/t/hittestobject-any-child/279404 "2009-01-14T12:39:22Z")

</div>

Hi, I was wondering if there is a way to run a hit test on any child within a MovieClip. I am trying to create a maze MovieClip which contains a number of Wall children. I have an object that needs to know when it hi…

---

## [McCain Potato Parade...how?](https://forum.kirupa.com/t/mccain-potato-parade-how/279399)

<div class="topic-metadata">

**Author:** [@wesleybramwell](https://forum.kirupa.com/u/wesleybramwell)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 11:52am UTC](https://forum.kirupa.com/t/mccain-potato-parade-how/279399 "2009-01-14T11:52:37Z")

</div>

Hi guys I'm sure most have seen www.potatoparade.com, my question is how does one go about creating the text from user input, and getting it displayed over an image/video?

---

## [Papervision - get 2D bounding rectangle](https://forum.kirupa.com/t/papervision-get-2d-bounding-rectangle/279397)

<div class="topic-metadata">

**Author:** [@Myung](https://forum.kirupa.com/u/Myung)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 11:32am UTC](https://forum.kirupa.com/t/papervision-get-2d-bounding-rectangle/279397 "2009-01-14T11:32:59Z")

</div>

Hi! Does anyone know how do I get the 2D dimensions of a 3D Object? I know I can get the position of the center point with the .screen property, but when with all the geom rect? TNX!

---

## [Drawing with Mouse](https://forum.kirupa.com/t/drawing-with-mouse/279396)

<div class="topic-metadata">

**Author:** [@vxd](https://forum.kirupa.com/u/vxd)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 11:17am UTC](https://forum.kirupa.com/t/drawing-with-mouse/279396 "2009-01-14T11:17:19Z")

</div>

Hi All, I've got a problem with my code and I'm not to sure whats wrong. It seems like it's drawing behind the MC. I've attached the files. Thanks vxd

---

## [CS4 interface](https://forum.kirupa.com/t/cs4-interface/279395)

<div class="topic-metadata">

**Author:** [@Voursez](https://forum.kirupa.com/u/Voursez)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 11:15am UTC](https://forum.kirupa.com/t/cs4-interface/279395 "2009-01-14T11:15:23Z")

</div>

Hey Kirupians Ive been really fond of the new version of flash, with features like workspaces, AIR and the likes. But the new way of docking windows is.. not me. I usually work with an extra monitor only containing the…

---

## [Dynamic Character](https://forum.kirupa.com/t/dynamic-character/279394)

<div class="topic-metadata">

**Author:** [@darnpunk](https://forum.kirupa.com/u/darnpunk)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 10:28am UTC](https://forum.kirupa.com/t/dynamic-character/279394 "2009-01-14T10:28:57Z")

</div>

Hi all, I am building a multiplayer game with the character as the main highlight. One requirement is for the character to be highly adjustable in appearance. The character is broken into 20 parts. Each part is then lo…

---

## [Displaying blog post feed in PHP Webpage](https://forum.kirupa.com/t/displaying-blog-post-feed-in-php-webpage/279393)

<div class="topic-metadata">

**Author:** [@hariku](https://forum.kirupa.com/u/hariku)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 9:31am UTC](https://forum.kirupa.com/t/displaying-blog-post-feed-in-php-webpage/279393 "2009-01-14T09:31:22Z")

</div>

\[FONT=Trebuchet MS\]I have a site in PHP. And there is a blogger blog associated with it. \[/FONT\] \[FONT=Trebuchet MS\]\[/FONT\] \[FONT=Trebuchet MS\]I wish to display the new post headlines of the blog inside my website. \[/FO…

---

## [What is the default component label font](https://forum.kirupa.com/t/what-is-the-default-component-label-font/279391)

<div class="topic-metadata">

**Author:** [@simononestop](https://forum.kirupa.com/u/simononestop)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 8:01am UTC](https://forum.kirupa.com/t/what-is-the-default-component-label-font/279391 "2009-01-14T08:01:29Z")

</div>

Any one know what the default label font that flash uses when you add a component???? Ive searched around Im trying ti match it as it looks much better than other fonts???

---

## [Perl quoting issue in CGI script (MySQL program)](https://forum.kirupa.com/t/perl-quoting-issue-in-cgi-script-mysql-program/279390)

<div class="topic-metadata">

**Author:** [@iamhere](https://forum.kirupa.com/u/iamhere)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 7:42am UTC](https://forum.kirupa.com/t/perl-quoting-issue-in-cgi-script-mysql-program/279390 "2009-01-14T07:42:47Z")

</div>

Hi, I have this line in my CGI Perl script: $sth=$dbh-\>prepare (qq {INSERT INTO reviews VALUES ('$ary\[0\]','$reviewername','$topic','$review','DATE\_FORMAT(CURDATE(),"%D %M, %Y"') } ) ; , but I keep getting "0000-00-00…

---

## [AS3 What is a static class?](https://forum.kirupa.com/t/as3-what-is-a-static-class/279385)

<div class="topic-metadata">

**Author:** [@ayumilove](https://forum.kirupa.com/u/ayumilove)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 5:47am UTC](https://forum.kirupa.com/t/as3-what-is-a-static-class/279385 "2009-01-14T05:47:37Z")

</div>

I was wandering whether is it required that all the functions and variables must be static in order to be a static class. Like Math.random() Or having 1 function or variable in a class is static makes it as "static cl…

---

## ['else' encountered without matching 'if' error](https://forum.kirupa.com/t/else-encountered-without-matching-if-error/279384)

<div class="topic-metadata">

**Author:** [@strawhat](https://forum.kirupa.com/u/strawhat)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 5:43am UTC](https://forum.kirupa.com/t/else-encountered-without-matching-if-error/279384 "2009-01-14T05:43:13Z")

</div>

checkTheMouse = function() { cursor\_mc.\_x = \_xmouse; cursor\_mc.\_y = \_ymouse; if (\_xmouse &lt; centerX-10) { panLeft(cursor\_mc.gotoAndStop(2)); } else if (\_xmouse &gt; centerX+10 ) { panRight(cursor\_mc…

---

## [Check what's under the mouse?](https://forum.kirupa.com/t/check-whats-under-the-mouse/279380)

<div class="topic-metadata">

**Author:** [@cholin](https://forum.kirupa.com/u/cholin)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 4:04am UTC](https://forum.kirupa.com/t/check-whats-under-the-mouse/279380 "2009-01-14T04:04:28Z")

</div>

I have a movieclip that lists a bunch of song artists, and I need to find out which movieclip is underneath the mouse at a given time. They are all different sizes so I can't run a simple for loop. The only thing I c…

---

## [checkPolicyFile = true;](https://forum.kirupa.com/t/checkpolicyfile-true/279378)

<div class="topic-metadata">

**Author:** [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 3:44am UTC](https://forum.kirupa.com/t/checkpolicyfile-true/279378 "2009-01-14T03:44:30Z")

</div>

var context:LoaderContext = new LoaderContext(); context.checkPolicyFile = true; var loader:Loader = new Loader(); //Security.checkPolicyFile = true; var img\_url:String = img\_src; var reques…

---

## [Question on pop up windows Flash8](https://forum.kirupa.com/t/question-on-pop-up-windows-flash8/279377)

<div class="topic-metadata">

**Author:** [@Guarie](https://forum.kirupa.com/u/Guarie)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 3:16am UTC](https://forum.kirupa.com/t/question-on-pop-up-windows-flash8/279377 "2009-01-14T03:16:17Z")

</div>

Hi guys I am in the middle of a commercial job for a client and I am becoming unstuck in getting it all finished. I'm hoping someone here can point me in the right direction... hope you can stick with me through my lon…

---

## [Line spacing changes when movie is compiled](https://forum.kirupa.com/t/line-spacing-changes-when-movie-is-compiled/279367)

<div class="topic-metadata">

**Author:** [@shane\_c](https://forum.kirupa.com/u/shane_c)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 11:35pm UTC](https://forum.kirupa.com/t/line-spacing-changes-when-movie-is-compiled/279367 "2009-01-13T23:35:38Z")

</div>

EDIT: Bah, it looks like static text boxes can't do justified text... Hey, I'm having an annoying issue... I have some simple static text in a simple swf, but when I test the movie, the line spacing becomes much less t…

---

## [Fullscreen on Multiple Monitors](https://forum.kirupa.com/t/fullscreen-on-multiple-monitors/279366)

<div class="topic-metadata">

**Author:** [@icio](https://forum.kirupa.com/u/icio)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 11:35pm UTC](https://forum.kirupa.com/t/fullscreen-on-multiple-monitors/279366 "2009-01-13T23:35:00Z")

</div>

Does Actionscript 3 have, or are there methods of, getting a list of the monitors connected to a PC and selecting which one you would like to go to fullscreen in? Thanks

---

## [Passing Variables from PHP to Flash](https://forum.kirupa.com/t/passing-variables-from-php-to-flash/279365)

<div class="topic-metadata">

**Author:** [@ThaJock](https://forum.kirupa.com/u/ThaJock)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 11:27pm UTC](https://forum.kirupa.com/t/passing-variables-from-php-to-flash/279365 "2009-01-13T23:27:12Z")

</div>

I have never had a problem passing variables from PHP to flash until now. The difference is that I'm trying to pass an IP Address. Action Script 3: var url:String = "http://localhost:8888/TheTest.php"; var request:U…

---

## [Embedded fonts stopped working](https://forum.kirupa.com/t/embedded-fonts-stopped-working/279364)

<div class="topic-metadata">

**Author:** [@mpelland](https://forum.kirupa.com/u/mpelland)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 11:19pm UTC](https://forum.kirupa.com/t/embedded-fonts-stopped-working/279364 "2009-01-13T23:19:43Z")

</div>

Hey, I am trying to embed a couple of fonts into a movie. I have created the symbols in the library and set their linkage values. In my code, I have them defined as follows: var businessNameFont:Font = new BusinessNam…

---

## [Database Treemenu Help](https://forum.kirupa.com/t/database-treemenu-help/279362)

<div class="topic-metadata">

**Author:** [@james182](https://forum.kirupa.com/u/james182)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 11:11pm UTC](https://forum.kirupa.com/t/database-treemenu-help/279362 "2009-01-13T23:11:35Z")

</div>

I need to get this from pulling data from a directory to generating it from a Database. my Database: tbl\_tree\_menu treeview\_id | treeview\_name | treeview\_desc | treeview\_parent\_id 1 | root | …

---

## [Removing Dynamic SWF Question](https://forum.kirupa.com/t/removing-dynamic-swf-question/279361)

<div class="topic-metadata">

**Author:** [@coloradocelt](https://forum.kirupa.com/u/coloradocelt)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 11:10pm UTC](https://forum.kirupa.com/t/removing-dynamic-swf-question/279361 "2009-01-13T23:10:51Z")

</div>

Hey all, I am placing an external swf files with the following code: var removeSpaces0:RegExp = / /g; var noSpaces0:String = String(itemZero); var structureName0:String = (noSpaces0.replace(removeS…

---

## [(Flash MX) Need help with a hitTest](https://forum.kirupa.com/t/flash-mx-need-help-with-a-hittest/279360)

<div class="topic-metadata">

**Author:** [@Oboe\_Passion](https://forum.kirupa.com/u/Oboe_Passion)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 10:45pm UTC](https://forum.kirupa.com/t/flash-mx-need-help-with-a-hittest/279360 "2009-01-13T22:45:53Z")

</div>

I am making a mouse avoider game and I have a mc (cursor) that follows the mouse with a very small delay and I have a mc (lvl) which the cursor must navigate through. When I run a normal hitTest function it doesn't discr…

---

## [Validating web address with query parameters](https://forum.kirupa.com/t/validating-web-address-with-query-parameters/279359)

<div class="topic-metadata">

**Author:** [@thalamus](https://forum.kirupa.com/u/thalamus)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 10:39pm UTC](https://forum.kirupa.com/t/validating-web-address-with-query-parameters/279359 "2009-01-13T22:39:55Z")

</div>

Hello: I'm working with an URL with this query string at the end: /page/?item=01x-001/ I want to check to make sure the parameter "item" exists in the address, and that it is displayed (entered) correctly in the ad…

---

## [AJAX xhr status when local?](https://forum.kirupa.com/t/ajax-xhr-status-when-local/279358)

<div class="topic-metadata">

**Author:** [@GrndMasterFlash](https://forum.kirupa.com/u/GrndMasterFlash)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 10:22pm UTC](https://forum.kirupa.com/t/ajax-xhr-status-when-local/279358 "2009-01-13T22:22:04Z")

</div>

i am using a little AJAX to load text files onto a page for this xml/javascript blog engine im making, every thing is fine, but i want the engine to operate regardless if its on line or in a local folder. the one hang …

---

## [gotoAndPlay(20) going to frame 1](https://forum.kirupa.com/t/gotoandplay-20-going-to-frame-1/279357)

<div class="topic-metadata">

**Author:** [@rachel\_612](https://forum.kirupa.com/u/rachel_612)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 10:06pm UTC](https://forum.kirupa.com/t/gotoandplay-20-going-to-frame-1/279357 "2009-01-13T22:06:26Z")

</div>

I am using Flash CS3 with AS2 to write code that will fade images in and out, looping from the last frame back to frame 20. Loading the images with XML is working, as is the fading in and out. Unfortunately, when it rea…

---

## [MDF file?](https://forum.kirupa.com/t/mdf-file/279356)

<div class="topic-metadata">

**Author:** [@mr\_white](https://forum.kirupa.com/u/mr_white)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 9:56pm UTC](https://forum.kirupa.com/t/mdf-file/279356 "2009-01-13T21:56:57Z")

</div>

Hello, What is the purpose of putting an MDF file in the "app\_data" folder? is it a way to avoid using microsoft sql server? currently i'm paying a lot of extra money (more than hosting fees) to my hosting company fo…

---

## [PHP/MySQL - What's wrong with this INSERT statement?](https://forum.kirupa.com/t/php-mysql-whats-wrong-with-this-insert-statement/279351)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 8:34pm UTC](https://forum.kirupa.com/t/php-mysql-whats-wrong-with-this-insert-statement/279351 "2009-01-13T20:34:31Z")

</div>

\<?php include 'connect.php'; $link = mysql\_connect("$host","$user","$pass") or die ("Unable to connect to database."); mysql\_select\_db("$db", $link) or die (mysql\_error()); $sql = "INSERT INTO customer ('first\_name',…

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

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