# programming

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

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

**Page:** 1957

---

## [Problem with using XML inside of a Class File](https://forum.kirupa.com/t/problem-with-using-xml-inside-of-a-class-file/208106)

<div class="topic-metadata">

**Author:** [@Caraldur](https://forum.kirupa.com/u/Caraldur)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 11:32pm UTC](https://forum.kirupa.com/t/problem-with-using-xml-inside-of-a-class-file/208106 "2006-11-24T23:32:54Z")

</div>

I have created a class file with 2 functions one to load an xml file and the other to parse the file and push the values into an array. My problem is that I can't access this array inside another function unless pass th…

---

## [Action script for clicking a button?](https://forum.kirupa.com/t/action-script-for-clicking-a-button/208105)

<div class="topic-metadata">

**Author:** [@Newbie123](https://forum.kirupa.com/u/Newbie123)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 11:16pm UTC](https://forum.kirupa.com/t/action-script-for-clicking-a-button/208105 "2006-11-24T23:16:38Z")

</div>

Hi, Need a bit of help with some action script. I have many buttons (symbols). This is what I want it to do: -Select a button on the screen, and then a movieclip plays. - If the user selects any OTHER button on scree…

---

## [Subtracting dates & issues with document.write](https://forum.kirupa.com/t/subtracting-dates-issues-with-document-write/208104)

<div class="topic-metadata">

**Author:** [@cryo\_burned](https://forum.kirupa.com/u/cryo_burned)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 11:12pm UTC](https://forum.kirupa.com/t/subtracting-dates-issues-with-document-write/208104 "2006-11-24T23:12:25Z")

</div>

im using a script i made that looks like this: \[js\] var year = time.getYear(); var months = time.getMonth(); var days = time.getDate(); posteddate = 20061121; var prestamp = Math.ceil((year\*10000)+(months\*100)+days); var…

---

## [Problem with Tween/AS Preloader](https://forum.kirupa.com/t/problem-with-tween-as-preloader/208101)

<div class="topic-metadata">

**Author:** [@Eliffio](https://forum.kirupa.com/u/Eliffio)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 10:59pm UTC](https://forum.kirupa.com/t/problem-with-tween-as-preloader/208101 "2006-11-24T22:59:16Z")

</div>

Hello. I have been working on this: http://www.kirupa.com/developer/actionscript/tween\_as\_preloader.htm Everything is Ok, but I need the text (percent loaded) not to go from left to right, but from the bottom to top,…

---

## [Why are counter created new XML objects not working?](https://forum.kirupa.com/t/why-are-counter-created-new-xml-objects-not-working/208099)

<div class="topic-metadata">

**Author:** [@charles\_i](https://forum.kirupa.com/u/charles_i)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 10:18pm UTC](https://forum.kirupa.com/t/why-are-counter-created-new-xml-objects-not-working/208099 "2006-11-24T22:18:25Z")

</div>

I'm sure this is simple and stupid of me. Why does this work... textForContent = \["1.xml","2.xml","3.xml","4.xml","5.xml","6.xml","7.xml"\] counter = textForContent.length-1; while (counter\>=0){ xmlData = new…

---

## [Replacing Characters - How to](https://forum.kirupa.com/t/replacing-characters-how-to/208087)

<div class="topic-metadata">

**Author:** [@jbailey](https://forum.kirupa.com/u/jbailey)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 7:21pm UTC](https://forum.kirupa.com/t/replacing-characters-how-to/208087 "2006-11-24T19:21:51Z")

</div>

Scenario: InputTF, button MC, and a dynamicTF on the stage. What I want to do:When a user inputs text into the inputTF and presses the button, any spaces are replaced with \_ and the "string" is placed in the dynamicTF. …

---

## [First random mp3 from xml list?](https://forum.kirupa.com/t/first-random-mp3-from-xml-list/208086)

<div class="topic-metadata">

**Author:** [@flashwillkill](https://forum.kirupa.com/u/flashwillkill)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 7:08pm UTC](https://forum.kirupa.com/t/first-random-mp3-from-xml-list/208086 "2006-11-24T19:08:20Z")

</div>

Hello Kirupians, A problem makes me grow grey hair: I would like to randomly load a song from my xml list when entering my site. After doing a search I figured out I could do it with a math.random? Ok. But could someone …

---

## ["Masked" Passwords](https://forum.kirupa.com/t/masked-passwords/208079)

<div class="topic-metadata">

**Author:** [@mnkeymasta](https://forum.kirupa.com/u/mnkeymasta)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 6:34pm UTC](https://forum.kirupa.com/t/masked-passwords/208079 "2006-11-24T18:34:30Z")

</div>

Hello everbody! I was just wondering how to "mask" a password, like with the little dots or something... PM me if yuo don't understand but I'm sure you will. Thanks in advance!:trout:

---

## [Fighting Game AI](https://forum.kirupa.com/t/fighting-game-ai/208078)

<div class="topic-metadata">

**Author:** [@sam111](https://forum.kirupa.com/u/sam111)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 6:17pm UTC](https://forum.kirupa.com/t/fighting-game-ai/208078 "2006-11-24T18:17:38Z")

</div>

I'm sorry if this was already answered in another thread but I couldn't find one. I am working on a project and part of it involves a fighting game. I have all the script for player 1 (moving, punching etc...) but I do…

---

## [How to autohide playerskins](https://forum.kirupa.com/t/how-to-autohide-playerskins/208077)

<div class="topic-metadata">

**Author:** [@larsen2000](https://forum.kirupa.com/u/larsen2000)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 6:08pm UTC](https://forum.kirupa.com/t/how-to-autohide-playerskins/208077 "2006-11-24T18:08:15Z")

</div>

If I use the autohide feature to hide playercontrolskins in Flash 8, it will not disappear after it is visible (after mouseover). How can I get the playercontrols/skins to disappear again when I move the mouse outside th…

---

## [How to Make Rows Question](https://forum.kirupa.com/t/how-to-make-rows-question/208071)

<div class="topic-metadata">

**Author:** [@ne148on](https://forum.kirupa.com/u/ne148on)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 5:11pm UTC](https://forum.kirupa.com/t/how-to-make-rows-question/208071 "2006-11-24T17:11:26Z")

</div>

Hey guys, I am trying to create several rows, 4 movieclips per row (movie is named image), spaced apart as shown below under te .x and .y values. I can't all the rows showing, only the last row shoes, can anyone help me? …

---

## [Attach events to multiple MCs...again](https://forum.kirupa.com/t/attach-events-to-multiple-mcs-again/208070)

<div class="topic-metadata">

**Author:** [@kalaxan](https://forum.kirupa.com/u/kalaxan)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 4:56pm UTC](https://forum.kirupa.com/t/attach-events-to-multiple-mcs-again/208070 "2006-11-24T16:56:10Z")

</div>

I have created a map (1 frame movie) at Flash MX 2004, that each area is a movieclip. Each movieclip has a unique name. I am trying to dynamically attach events to each movieclip, by reading their corresponding names fro…

---

## [fileReference upload filetype check](https://forum.kirupa.com/t/filereference-upload-filetype-check/208066)

<div class="topic-metadata">

**Author:** [@rille31](https://forum.kirupa.com/u/rille31)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 3:57pm UTC](https://forum.kirupa.com/t/filereference-upload-filetype-check/208066 "2006-11-24T15:57:47Z")

</div>

Hi When uploading with fileRefernce flash sends all files as application/octet-stream I want to allow .txt, .pdf and. doc so when I check the mime type in php the upload fails, my script works in a regular html form …

---

## [Visited Link in Nav](https://forum.kirupa.com/t/visited-link-in-nav/208061)

<div class="topic-metadata">

**Author:** [@rootdiv99](https://forum.kirupa.com/u/rootdiv99)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 2:54pm UTC](https://forum.kirupa.com/t/visited-link-in-nav/208061 "2006-11-24T14:54:17Z")

</div>

Looking to create a 'visited' state in Flash Nav that can show viewer with a text link that the page was visited. Not usre ow to do this...variables? Hit state? The finished nav would encompass a text nav area on the p…

---

## [Analogue Countdown Clock](https://forum.kirupa.com/t/analogue-countdown-clock/208056)

<div class="topic-metadata">

**Author:** [@Asparagus](https://forum.kirupa.com/u/Asparagus)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 1:44pm UTC](https://forum.kirupa.com/t/analogue-countdown-clock/208056 "2006-11-24T13:44:49Z")

</div>

Howdy all, I've been surfing around trying to find a tutorial or an open source file, on how to make an analogue clock tick backwards to a defined date/time. Maybe even with a shorter day 'hand'. There's some really …

---

## [List Componet](https://forum.kirupa.com/t/list-componet/208054)

<div class="topic-metadata">

**Author:** [@dunkyb123](https://forum.kirupa.com/u/dunkyb123)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 11:15am UTC](https://forum.kirupa.com/t/list-componet/208054 "2006-11-24T11:15:24Z")

</div>

I have a loader component on my stage and i want to load another .swf file into it using a LIST component. Does any body know the basics on getting this to work thanks Dunky

---

## [X and Y axis question](https://forum.kirupa.com/t/x-and-y-axis-question/208051)

<div class="topic-metadata">

**Author:** [@Beaulne](https://forum.kirupa.com/u/Beaulne)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 10:39am UTC](https://forum.kirupa.com/t/x-and-y-axis-question/208051 "2006-11-24T10:39:30Z")

</div>

Hello, So what I would like to know is the following... I want to gotoAndStop(2); If image\_btn is greater then say 300 on the X axis... But i am not sure how to go about doing this because i am just starting out in a…

---

## [onMotionFinished help](https://forum.kirupa.com/t/onmotionfinished-help/208049)

<div class="topic-metadata">

**Author:** [@alesys](https://forum.kirupa.com/u/alesys)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 9:53am UTC](https://forum.kirupa.com/t/onmotionfinished-help/208049 "2006-11-24T09:53:57Z")

</div>

I have this function function createLoader(i, data, num) { thisLoader = eval("container\_mc.loader"+i+"\_mc"); thisLoader.\_alpha = 0; thisLoader.loadMovie(data\[num\].path); c.capela.text = data\[num\].…

---

## [Screenweaver Trayicon example](https://forum.kirupa.com/t/screenweaver-trayicon-example/208047)

<div class="topic-metadata">

**Author:** [@docdoc](https://forum.kirupa.com/u/docdoc)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 9:45am UTC](https://forum.kirupa.com/t/screenweaver-trayicon-example/208047 "2006-11-24T09:45:16Z")

</div>

Hey, I'm having some trouble with the tray icon example provided for screenweaver. In the preview mode it works as expected with an icon in the system tray. However, when I build the project there is no icon in the syste…

---

## [Sliding visual](https://forum.kirupa.com/t/sliding-visual/208043)

<div class="topic-metadata">

**Author:** [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 9:12am UTC](https://forum.kirupa.com/t/sliding-visual/208043 "2006-11-24T09:12:11Z")

</div>

Hi all, I am after something similar to this :- http://www.kirupa.com/developer/flash8/slidingMenu.htm Except its going to be a series of screen shots in a window and I will have two arrows, one on the left and one o…

---

## [Auto Scrolling for Thumbnails Gallery](https://forum.kirupa.com/t/auto-scrolling-for-thumbnails-gallery/208041)

<div class="topic-metadata">

**Author:** [@B3Y](https://forum.kirupa.com/u/B3Y)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 8:18am UTC](https://forum.kirupa.com/t/auto-scrolling-for-thumbnails-gallery/208041 "2006-11-24T08:18:50Z")

</div>

Dear Flash Experts, need advices on how to auto-scroll the thumbnails for the thumbnail gallery tutorial: http://www.kirupa.com/developer/mx2004/thumbnails.htm i.e. you don't need to mouseover to make it scroll, the th…

---

## [Stage Menus](https://forum.kirupa.com/t/stage-menus/208037)

<div class="topic-metadata">

**Author:** [@anders\_jensen](https://forum.kirupa.com/u/anders_jensen)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 7:39am UTC](https://forum.kirupa.com/t/stage-menus/208037 "2006-11-24T07:39:53Z")

</div>

\[image\] I guess many of you thinks this is very easy, and thats why I am asking! How can I add menus like this? 2nd question: Will it work with : fo.addParam("menu", "false"); Tutorial links, ref codes or whatever wo…

---

## [Image panning question](https://forum.kirupa.com/t/image-panning-question/208029)

<div class="topic-metadata">

**Author:** [@mansonivan](https://forum.kirupa.com/u/mansonivan)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 5:01am UTC](https://forum.kirupa.com/t/image-panning-question/208029 "2006-11-24T05:01:39Z")

</div>

I had tried the image panning tutorial and i have some question with it bcoz i m begginer of AS. Can anyone clear d question marks in my mind? First below is the code and explaination for it. The red colour words are my …

---

## [Flash & Aftereffects generic transition](https://forum.kirupa.com/t/flash-aftereffects-generic-transition/208028)

<div class="topic-metadata">

**Author:** [@Trippin](https://forum.kirupa.com/u/Trippin)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 4:49am UTC](https://forum.kirupa.com/t/flash-aftereffects-generic-transition/208028 "2006-11-24T04:49:09Z")

</div>

Hi, Ok I am noticing a increasing numbeer of sites that use very funky effects that seem to be done in Adobe AE and are integrated in image galleries etc. I mean it's totaly inefficient to perform an effect on every …

---

## [fileReference](https://forum.kirupa.com/t/filereference/208023)

<div class="topic-metadata">

**Author:** [@rille31](https://forum.kirupa.com/u/rille31)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 3:37am UTC](https://forum.kirupa.com/t/filereference/208023 "2006-11-24T03:37:43Z")

</div>

Im uploading with the fileReference and want to check the mime type for security reasons. The php code work in a regular html/php form but the same code doesnt work with the swf file, when I comment out the mime checki…

---

## [Customer Logo list with scale and scroll?](https://forum.kirupa.com/t/customer-logo-list-with-scale-and-scroll/208022)

<div class="topic-metadata">

**Author:** [@ChakkaCam](https://forum.kirupa.com/u/ChakkaCam)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 2:41am UTC](https://forum.kirupa.com/t/customer-logo-list-with-scale-and-scroll/208022 "2006-11-24T02:41:43Z")

</div>

Does anybody know if there is a tutorial outlining how to accomplish this? (see http://www.salesforce.com/customers/ for example) Their customer logos are scrollable based on mouse position and movement, and have scali…

---

## [Other Keys](https://forum.kirupa.com/t/other-keys/208021)

<div class="topic-metadata">

**Author:** [@Dark\_Cloud](https://forum.kirupa.com/u/Dark_Cloud)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 2:41am UTC](https://forum.kirupa.com/t/other-keys/208021 "2006-11-24T02:41:07Z")

</div>

Hello. I'm making a game. On the MC I have this script: onClipEvent (keyUp) { if (Key.getCode() == 90) { gotoAndPlay(4); } } I want it to go to frame 4 of my MC which shows him punching when you press Z. But that…

---

## [\[CSS\]Image RollOver](https://forum.kirupa.com/t/css-image-rollover/208019)

<div class="topic-metadata">

**Author:** [@cokelatdesign](https://forum.kirupa.com/u/cokelatdesign)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 2:21am UTC](https://forum.kirupa.com/t/css-image-rollover/208019 "2006-11-24T02:21:28Z")

</div>

hi guys, i have css script that supposed to do a rollover effect whenever the mouse over the image but apparently it only works in FF but not in IE, as far as I know IE can handle a:hover but not li:hover, etc., right? …

---

## [Can somebody explain the purpose of this?](https://forum.kirupa.com/t/can-somebody-explain-the-purpose-of-this/208018)

<div class="topic-metadata">

**Author:** [@2socks](https://forum.kirupa.com/u/2socks)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 1:59am UTC](https://forum.kirupa.com/t/can-somebody-explain-the-purpose-of-this/208018 "2006-11-24T01:59:34Z")

</div>

I got this code from the XML portfolio tutorial and use it all the time. Works good. But just for my own curiousity why are all the 'Success' arguments needed? The function wouldn' be called until it is properly loade…

---

## [Correct syntax](https://forum.kirupa.com/t/correct-syntax/208017)

<div class="topic-metadata">

**Author:** [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)\
**Replies:** 0\
**Last updated:** [November 24, 2006, 1:04am UTC](https://forum.kirupa.com/t/correct-syntax/208017 "2006-11-24T01:04:18Z")

</div>

I want to make 5 out of 10 movieclips invisible. I know this works for each movie : item1.\_visible = false; item2.\_visible = false; etc But whats the correct syntax to do it in the loop. This seems to clear all 10 m…

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

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