# programming

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

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

**Page:** 1443

---

## [Weekly Date based on Sundays](https://forum.kirupa.com/t/weekly-date-based-on-sundays/246107)

<div class="topic-metadata">

**Author:** [@brastedhouse](https://forum.kirupa.com/u/brastedhouse)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 4:25am UTC](https://forum.kirupa.com/t/weekly-date-based-on-sundays/246107 "2007-12-07T04:25:47Z")

</div>

Greetings, I am trying to find a way to automate a date that right now I have to change manually every week on a website I maintain. It is for a church and I want to find a way to use a script to put the week based on …

---

## [Loading XML Data (Only One) - Please Help!](https://forum.kirupa.com/t/loading-xml-data-only-one-please-help/246106)

<div class="topic-metadata">

**Author:** [@wispas](https://forum.kirupa.com/u/wispas)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 2:56am UTC](https://forum.kirupa.com/t/loading-xml-data-only-one-please-help/246106 "2007-12-07T02:56:02Z")

</div>

Hi, I have some data in a XML file. Here it is: \<?xml version="1.0" encoding="utf-8" standalone="yes"?\> \<images\> \<pic\> \<image\>image01.jpg\</image\> \<Thumbnails\>thumb01.jpg\</Thumbnails\> \<caption\>Gr…

---

## [Getting objects to rotate back and forth](https://forum.kirupa.com/t/getting-objects-to-rotate-back-and-forth/246102)

<div class="topic-metadata">

**Author:** [@kenyabob](https://forum.kirupa.com/u/kenyabob)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 1:03am UTC](https://forum.kirupa.com/t/getting-objects-to-rotate-back-and-forth/246102 "2007-12-07T01:03:04Z")

</div>

I have an animation with leaves falling in front of the screen. I need the leaves to rock back and forth as they descend. Let's say rocking backing and forth 20 to 40 degrees each way. I realize that this would be accomp…

---

## [Relative positioning external loaded elements](https://forum.kirupa.com/t/relative-positioning-external-loaded-elements/246099)

<div class="topic-metadata">

**Author:** [@tezzutezzu](https://forum.kirupa.com/u/tezzutezzu)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 1:01am UTC](https://forum.kirupa.com/t/relative-positioning-external-loaded-elements/246099 "2007-12-07T01:01:52Z")

</div>

I'm trying positioning external loaded images from an XML and position them according to the stage dimensions. Here's what I've come so far: creating a loader for each image and then position them according to their siz…

---

## [Problems with SWF with PopUp window, inside another SWF](https://forum.kirupa.com/t/problems-with-swf-with-popup-window-inside-another-swf/246095)

<div class="topic-metadata">

**Author:** [@Kristina](https://forum.kirupa.com/u/Kristina)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 12:17am UTC](https://forum.kirupa.com/t/problems-with-swf-with-popup-window-inside-another-swf/246095 "2007-12-07T00:17:44Z")

</div>

I've been struggling with this for 2 days. Inside one SWF file (\[COLOR=blue\]proizvodi.swf\[/COLOR\]), there's a popUp window(for \[COLOR=mediumturquoise\]\[COLOR=blue\]scrpBoje.swf\[/COLOR\] \[/COLOR\]) - which works perfectly. H…

---

## [Assigning default values for Class properties](https://forum.kirupa.com/t/assigning-default-values-for-class-properties/246094)

<div class="topic-metadata">

**Author:** [@bela0044](https://forum.kirupa.com/u/bela0044)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 12:12am UTC](https://forum.kirupa.com/t/assigning-default-values-for-class-properties/246094 "2007-12-07T00:12:37Z")

</div>

I am wondering about assigning default values for class properties. Is it as symbol as declaring the property and assigning a value: public var my\_property:type = value; or is it better to declare a private property…

---

## [Does Sound Object work in Flash 5 Player?](https://forum.kirupa.com/t/does-sound-object-work-in-flash-5-player/246092)

<div class="topic-metadata">

**Author:** [@wyclef](https://forum.kirupa.com/u/wyclef)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 12:01am UTC](https://forum.kirupa.com/t/does-sound-object-work-in-flash-5-player/246092 "2007-12-07T00:01:10Z")

</div>

Hey, I'm trying to develop something for Flash 5 Player and nothing seems to work. Currently I'm having trouble with the following bit of AS which works fine if I export for Flash 6. But in Flash 5...no sound. Is there a…

---

## [Customizing UIScrollbar component](https://forum.kirupa.com/t/customizing-uiscrollbar-component/246091)

<div class="topic-metadata">

**Author:** [@jfoley](https://forum.kirupa.com/u/jfoley)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 11:58pm UTC](https://forum.kirupa.com/t/customizing-uiscrollbar-component/246091 "2007-12-06T23:58:43Z")

</div>

Ok, I've looked all over, tried this and that... but I can't get this to work. I'm trying to set the global settings for specific styles to recolor the UIScrollbar component. Can anyone give me some info on how this …

---

## [Data types](https://forum.kirupa.com/t/data-types/246086)

<div class="topic-metadata">

**Author:** [@theSchtickler](https://forum.kirupa.com/u/theSchtickler)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 10:52pm UTC](https://forum.kirupa.com/t/data-types/246086 "2007-12-06T22:52:38Z")

</div>

Hi, I was wondering what I have to do to store the following line in a mySQL database, at the moment I get nothing back when I ask for its value: \<!\[CDATA\[\<a href="somehthing"\>something\</a\>\]\]\> Does the type need to…

---

## [Gaps in IE7](https://forum.kirupa.com/t/gaps-in-ie7/246081)

<div class="topic-metadata">

**Author:** [@Zaiah](https://forum.kirupa.com/u/Zaiah)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 10:00pm UTC](https://forum.kirupa.com/t/gaps-in-ie7/246081 "2007-12-06T22:00:22Z")

</div>

Hey, I'm getting some weird breaks in this design. But only in IE7. here's the link: http://bodybalanceliving.com/Uptown/specials/index.html , piggy backed off another site I was doing for this same client. In normal …

---

## [Putting a movieclip on top of others?](https://forum.kirupa.com/t/putting-a-movieclip-on-top-of-others/246078)

<div class="topic-metadata">

**Author:** [@Limen](https://forum.kirupa.com/u/Limen)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 9:23pm UTC](https://forum.kirupa.com/t/putting-a-movieclip-on-top-of-others/246078 "2007-12-06T21:23:12Z")

</div>

Hi everyone, Im new on these forums and I'm trying to learn AS3. \[smile\] At the moment I'm really new to as3, I used to do a tiny bit of basic on my first computer ever (Acorn electron) so this is all pretty new to me.…

---

## [XML Text](https://forum.kirupa.com/t/xml-text/246076)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 9:00pm UTC](https://forum.kirupa.com/t/xml-text/246076 "2007-12-06T21:00:20Z")

</div>

I call a Typewriter class that, when passed the text of a TextField, renders it letter-by-letter on the stage. When, in my .fla file, I define the text to pass to Typewriter as: var t1:TextField = new TextField(); t…

---

## [fileReference upload IOError](https://forum.kirupa.com/t/filereference-upload-ioerror/246073)

<div class="topic-metadata">

**Author:** [@elitem\_sician](https://forum.kirupa.com/u/elitem_sician)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 8:38pm UTC](https://forum.kirupa.com/t/filereference-upload-ioerror/246073 "2007-12-06T20:38:52Z")

</div>

I need to let people upload a .pdf document there are other places on my site that allow people to upload .jpg which are usualy a fairly small file size. Well I need them to be able to upload a .pdf which is considerably…

---

## [Help with mctween bttn action](https://forum.kirupa.com/t/help-with-mctween-bttn-action/246071)

<div class="topic-metadata">

**Author:** [@saved](https://forum.kirupa.com/u/saved)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 8:09pm UTC](https://forum.kirupa.com/t/help-with-mctween-bttn-action/246071 "2007-12-06T20:09:09Z")

</div>

Hello all, I am using the mctween activated bttn. My bttns are looped and have been defined in a variable. I am trying to get specific onrelease functions such as loadMovie from each button in the loop depending on wha…

---

## [Urgent need help! XML Thumbnail Gallery preloaders](https://forum.kirupa.com/t/urgent-need-help-xml-thumbnail-gallery-preloaders/246070)

<div class="topic-metadata">

**Author:** [@amstiegmann](https://forum.kirupa.com/u/amstiegmann)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 7:50pm UTC](https://forum.kirupa.com/t/urgent-need-help-xml-thumbnail-gallery-preloaders/246070 "2007-12-06T19:50:02Z")

</div>

\[LEFT\]Hi. I've gone through and am using the XML Thumbnail Gallery tutorial. But it doesn't explain how to add preloaders for each thumbnail. Has anyone found out how to add a preloader for each thumbnail? Someone's …

---

## [Cannot add an anchor point](https://forum.kirupa.com/t/cannot-add-an-anchor-point/246069)

<div class="topic-metadata">

**Author:** [@Josflos](https://forum.kirupa.com/u/Josflos)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 7:38pm UTC](https://forum.kirupa.com/t/cannot-add-an-anchor-point/246069 "2007-12-06T19:38:22Z")

</div>

Hey, I am working on a walk cycle. This is my first project where I use the pen tool and the subselection tool often, but I have a problem. I made an open path and only straight lines. This is my "template" of the leg …

---

## [getDefinitionByName("Sprite")](https://forum.kirupa.com/t/getdefinitionbyname-sprite/246065)

<div class="topic-metadata">

**Author:** [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 7:15pm UTC](https://forum.kirupa.com/t/getdefinitionbyname-sprite/246065 "2007-12-06T19:15:03Z")

</div>

Is there a way to call getDefinitionByName() on classes another than those in library? This approach gives error ReferenceError: Error #1065: Variable SomeVariableClass is not defined.

---

## [Preloader on Frame 1 of main movie](https://forum.kirupa.com/t/preloader-on-frame-1-of-main-movie/246063)

<div class="topic-metadata">

**Author:** [@elburrodiablo](https://forum.kirupa.com/u/elburrodiablo)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 6:45pm UTC](https://forum.kirupa.com/t/preloader-on-frame-1-of-main-movie/246063 "2007-12-06T18:45:21Z")

</div>

Below you'll see the code for the preloader I've been using for the past few weeks. It works fine if I want to have two separate SWFs (the main SWF, and the preloader SWF.) Unfortunately, for the current project I am …

---

## [Tracking URL in CS3 Banner](https://forum.kirupa.com/t/tracking-url-in-cs3-banner/246058)

<div class="topic-metadata">

**Author:** [@OmiE](https://forum.kirupa.com/u/OmiE)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 5:26pm UTC](https://forum.kirupa.com/t/tracking-url-in-cs3-banner/246058 "2007-12-06T17:26:39Z")

</div>

Hello everyone, I created a simple banner with a button that when you mouse over it changes a different color and some mild math coding to make snow fall in the front. I have used this actionscript to add URLs to prev…

---

## [Verify NT Credentials with PHP?](https://forum.kirupa.com/t/verify-nt-credentials-with-php/246054)

<div class="topic-metadata">

**Author:** [@nobody](https://forum.kirupa.com/u/nobody)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 5:12pm UTC](https://forum.kirupa.com/t/verify-nt-credentials-with-php/246054 "2007-12-06T17:12:52Z")

</div>

I assume this is impossible, but it's worth a shot. I'm creating an app to use at work and I'd rather not have a separate user database which would force everyone to come up with a username and password. We have enough…

---

## [Coding for Flash 5](https://forum.kirupa.com/t/coding-for-flash-5/246052)

<div class="topic-metadata">

**Author:** [@wyclef](https://forum.kirupa.com/u/wyclef)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 4:57pm UTC](https://forum.kirupa.com/t/coding-for-flash-5/246052 "2007-12-06T16:57:26Z")

</div>

how can i get this to work in Flash 5. Seems to have trouble with the Void part. \[AS\] rectMask\_mc.\_height = 1; this.onEnterFrame = function():Void { var loadedData:Number = this.getBytesLoaded(); var allData:Number …

---

## [iFrame heights dynamically](https://forum.kirupa.com/t/iframe-heights-dynamically/246049)

<div class="topic-metadata">

**Author:** [@RabBell](https://forum.kirupa.com/u/RabBell)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 4:45pm UTC](https://forum.kirupa.com/t/iframe-heights-dynamically/246049 "2007-12-06T16:45:46Z")

</div>

Been looking through Google for a while now but I can’t find the right answer. Does anyone know a way to change the height of an iFrame dynamically based on the height of the page it’s displaying? I’ve added the code f…

---

## [Working with the new display list](https://forum.kirupa.com/t/working-with-the-new-display-list/246048)

<div class="topic-metadata">

**Author:** [@the\_lar](https://forum.kirupa.com/u/the_lar)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 4:38pm UTC](https://forum.kirupa.com/t/working-with-the-new-display-list/246048 "2007-12-06T16:38:10Z")

</div>

Hi all, I'm quite new to AS3 so please bear with me. I have read that the attachMovie has been replaced by addChild. I'm not sure how this works though. Basically I have a document class in which I have all my game cod…

---

## [Apply Gradient to Box](https://forum.kirupa.com/t/apply-gradient-to-box/246044)

<div class="topic-metadata">

**Author:** [@MDiddy](https://forum.kirupa.com/u/MDiddy)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 3:56pm UTC](https://forum.kirupa.com/t/apply-gradient-to-box/246044 "2007-12-06T15:56:42Z")

</div>

I need to apply a gradient and I read this article about making a custom MXML component to accomplish this. It seemed pretty straight forward but I haven't been able to get the gradient to appear. I guess the only wri…

---

## [SPRY Accordion / Divs with Nested Head Tag](https://forum.kirupa.com/t/spry-accordion-divs-with-nested-head-tag/246043)

<div class="topic-metadata">

**Author:** [@dewey](https://forum.kirupa.com/u/dewey)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 3:54pm UTC](https://forum.kirupa.com/t/spry-accordion-divs-with-nested-head-tag/246043 "2007-12-06T15:54:47Z")

</div>

Hey Gang, I've been trying to figure something out on my own all morning and I've given up... this is my issue... \<div class="AccordionPanelTab"\>\<h2\>Label 1\</h2\>\</div\> As you may or may not see I am using a SPRY ac…

---

## [FLV component seekbar handle](https://forum.kirupa.com/t/flv-component-seekbar-handle/246042)

<div class="topic-metadata">

**Author:** [@mhunt](https://forum.kirupa.com/u/mhunt)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 3:28pm UTC](https://forum.kirupa.com/t/flv-component-seekbar-handle/246042 "2007-12-06T15:28:14Z")

</div>

I recently reskinned the flv playback compnent but it won't let me target the handle\_mc that goes along with the seek bar I can't give it an instance name or else it throws and error in the compiler. Anyone have any idea…

---

## [SQL or XML for flash](https://forum.kirupa.com/t/sql-or-xml-for-flash/246039)

<div class="topic-metadata">

**Author:** [@RabBell](https://forum.kirupa.com/u/RabBell)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 3:12pm UTC](https://forum.kirupa.com/t/sql-or-xml-for-flash/246039 "2007-12-06T15:12:37Z")

</div>

Idea is for a flash video to get the video's file location is should be playing from either a database or that the database could populate an XML file and the flash movie could use that instead. I'm adjusting from Acti…

---

## [Load/unload movie-goto next frame on timeline](https://forum.kirupa.com/t/load-unload-movie-goto-next-frame-on-timeline/246038)

<div class="topic-metadata">

**Author:** [@Dpots](https://forum.kirupa.com/u/Dpots)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 2:54pm UTC](https://forum.kirupa.com/t/load-unload-movie-goto-next-frame-on-timeline/246038 "2007-12-06T14:54:07Z")

</div>

I have a main flash file that I load various external swf files into. On the first frame of the timeline, there is an intro swf loaded that basically welcoming the viewer to the site. What I want to do is have this load,…

---

## [Problem with gallery. Images are not showing](https://forum.kirupa.com/t/problem-with-gallery-images-are-not-showing/246037)

<div class="topic-metadata">

**Author:** [@Sannu](https://forum.kirupa.com/u/Sannu)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 2:51pm UTC](https://forum.kirupa.com/t/problem-with-gallery-images-are-not-showing/246037 "2007-12-06T14:51:20Z")

</div>

Hello, I'm making a gallery. What gallery would it be without image scaling, right? So I found this code (Which is between //// signs). As you may already understood, I'm a beginner to flash. Now the problem: The image l…

---

## [How to detach snow](https://forum.kirupa.com/t/how-to-detach-snow/246035)

<div class="topic-metadata">

**Author:** [@Eskymo](https://forum.kirupa.com/u/Eskymo)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 2:38pm UTC](https://forum.kirupa.com/t/how-to-detach-snow/246035 "2007-12-06T14:38:07Z")

</div>

Hi All I'm using the script from the tutorial 'Flash Snow 3' http://www.kirupa.com/developer/flash8/snow.htm in an ecard and at the end of the animation I want to snow to disappear - how do I detach the movieclip?

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

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