# programming

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

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

**Page:** 608

---

## [Adding Time and Weather to my site](https://forum.kirupa.com/t/adding-time-and-weather-to-my-site/301857)

<div class="topic-metadata">

**Author:** [@jasonhardwick](https://forum.kirupa.com/u/jasonhardwick)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 9:49pm UTC](https://forum.kirupa.com/t/adding-time-and-weather-to-my-site/301857 "2009-12-16T21:49:52Z")

</div>

Can anyone help me with adding a simple time and weather display to my site: Something like this 75 f | 6:01pm Thanks

---

## [How to script animation of Oval Primitives?](https://forum.kirupa.com/t/how-to-script-animation-of-oval-primitives/301856)

<div class="topic-metadata">

**Author:** [@Jmarshall](https://forum.kirupa.com/u/Jmarshall)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 9:45pm UTC](https://forum.kirupa.com/t/how-to-script-animation-of-oval-primitives/301856 "2009-12-16T21:45:19Z")

</div>

I was in an AS3 course last year and the instructor mentioned that the Oval Options of an Oval Primitive -- start angle, end angle, inner radius -- could be animated in AS3. Does anyone know if this is true, and if so,…

---

## [Putting bitmap data to the stage](https://forum.kirupa.com/t/putting-bitmap-data-to-the-stage/301854)

<div class="topic-metadata">

**Author:** [@jik\_ff](https://forum.kirupa.com/u/jik_ff)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 8:33pm UTC](https://forum.kirupa.com/t/putting-bitmap-data-to-the-stage/301854 "2009-12-16T20:33:23Z")

</div>

I have made a little drawing program for my daughter, and I have worked in the ability to save and load images that you have made. It's a simple line drawing thing, but she's 3, and it works. What I need help with (an…

---

## [Preloader (multiple swf) vs. external video on the first frame issue](https://forum.kirupa.com/t/preloader-multiple-swf-vs-external-video-on-the-first-frame-issue/301846)

<div class="topic-metadata">

**Author:** [@thevibe](https://forum.kirupa.com/u/thevibe)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 7:03pm UTC](https://forum.kirupa.com/t/preloader-multiple-swf-vs-external-video-on-the-first-frame-issue/301846 "2009-12-16T19:03:10Z")

</div>

I posted a lot of treads these few days about the same problem and I am really sorry about that. But since the first tread, the perspective of the issue have changed a lot of time. I finally know now what causes the prob…

---

## [About the Photo Gallery Using XML and Flash Tutorial](https://forum.kirupa.com/t/about-the-photo-gallery-using-xml-and-flash-tutorial/301845)

<div class="topic-metadata">

**Author:** [@ezther\_88](https://forum.kirupa.com/u/ezther_88)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 5:53pm UTC](https://forum.kirupa.com/t/about-the-photo-gallery-using-xml-and-flash-tutorial/301845 "2009-12-16T17:53:35Z")

</div>

Hello Kirupa I have a question about your tutorial: \[FONT=Verdana\]\[COLOR=#003366\]Photo Gallery\[/COLOR\]\[/FONT\] \[FONT=Verdana\] \[COLOR=#003366\] Using XML and Flash. \[SIZE=2\]It was a very usefull to me and found …

---

## [Getting loaded SWF to use a function from main.fla document class](https://forum.kirupa.com/t/getting-loaded-swf-to-use-a-function-from-main-fla-document-class/301843)

<div class="topic-metadata">

**Author:** [@d0c3031](https://forum.kirupa.com/u/d0c3031)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 5:43pm UTC](https://forum.kirupa.com/t/getting-loaded-swf-to-use-a-function-from-main-fla-document-class/301843 "2009-12-16T17:43:28Z")

</div>

I have a main movie with thumb movieclips that load new children and stops the main movie's animation. Within the child there is a close buttion that removes itself. I also wanted the close button to start the animatio…

---

## [Saving Movieclip position without a login](https://forum.kirupa.com/t/saving-movieclip-position-without-a-login/301842)

<div class="topic-metadata">

**Author:** [@hey\_suburbia](https://forum.kirupa.com/u/hey_suburbia)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 5:16pm UTC](https://forum.kirupa.com/t/saving-movieclip-position-without-a-login/301842 "2009-12-16T17:16:01Z")

</div>

Hello. I'm developing a holiday card and have 100+ dragable movieclips that contain audio. It's more or less a drag and drop holiday greeting that plays the audio contained in each movieclip once they hit play. I'm …

---

## [OOP game structure](https://forum.kirupa.com/t/oop-game-structure/301839)

<div class="topic-metadata">

**Author:** [@omgnoseat](https://forum.kirupa.com/u/omgnoseat)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 4:37pm UTC](https://forum.kirupa.com/t/oop-game-structure/301839 "2009-12-16T16:37:15Z")

</div>

hello there, I've been interested in scripting an OOP game for quite a while, and I'm giving it a try. I'm having some trouble transfering data between classes. I'll give an example: I have a character class which …

---

## [Convert Tutorial to AS3?](https://forum.kirupa.com/t/convert-tutorial-to-as3/301838)

<div class="topic-metadata">

**Author:** [@kraftomatic](https://forum.kirupa.com/u/kraftomatic)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 4:24pm UTC](https://forum.kirupa.com/t/convert-tutorial-to-as3/301838 "2009-12-16T16:24:06Z")

</div>

Hey All, Has anyone made the following snow tutorial work with AS3? http://www.kirupa.com/developer/flash8/snow2.htm Just looking to see if it's been done, before looking to redo it myself .. Thanks ..

---

## [Library loads before preloader](https://forum.kirupa.com/t/library-loads-before-preloader/301837)

<div class="topic-metadata">

**Author:** [@rsgvfx](https://forum.kirupa.com/u/rsgvfx)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 4:19pm UTC](https://forum.kirupa.com/t/library-loads-before-preloader/301837 "2009-12-16T16:19:45Z")

</div>

I am rebuilding my website and I have movieclips in the library being exported to actionscript so that I can bring them onto the stage later. The problem that I am having is that everything seems to be loading before my …

---

## [Buttons Sticking on Flash Website](https://forum.kirupa.com/t/buttons-sticking-on-flash-website/301832)

<div class="topic-metadata">

**Author:** [@bhauser](https://forum.kirupa.com/u/bhauser)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 2:12pm UTC](https://forum.kirupa.com/t/buttons-sticking-on-flash-website/301832 "2009-12-16T14:12:07Z")

</div>

Hi, I am having some issues with buttons sticking on a Flash based website that I built. The buttons sticking and not going anywhere does not always happen on the same pages and only occurs on about half the pages. It …

---

## [Defining a property without the instance being in the movie](https://forum.kirupa.com/t/defining-a-property-without-the-instance-being-in-the-movie/301831)

<div class="topic-metadata">

**Author:** [@meadsy](https://forum.kirupa.com/u/meadsy)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 2:10pm UTC](https://forum.kirupa.com/t/defining-a-property-without-the-instance-being-in-the-movie/301831 "2009-12-16T14:10:25Z")

</div>

Hi, I'm a bit on the novice side of AS3 and am struggling away. I have one major issue which I cannot fathom. I have two swf's which I am loading into a flip book. They will both on the stage at the same time one on ea…

---

## [Best way to instantiate class](https://forum.kirupa.com/t/best-way-to-instantiate-class/301830)

<div class="topic-metadata">

**Author:** [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 1:59pm UTC](https://forum.kirupa.com/t/best-way-to-instantiate-class/301830 "2009-12-16T13:59:41Z")

</div>

Hi! Performance wise, is it better to call a class anonymously or to give it a name? Example: function pvt(myClass:Class):void { //do stuff with vars } //anonymously pvt(new Class()); //name it var myClass:Clas…

---

## [Smoothing content of unloaded SWF](https://forum.kirupa.com/t/smoothing-content-of-unloaded-swf/301829)

<div class="topic-metadata">

**Author:** [@danilosanguebao](https://forum.kirupa.com/u/danilosanguebao)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 1:47pm UTC](https://forum.kirupa.com/t/smoothing-content-of-unloaded-swf/301829 "2009-12-16T13:47:38Z")

</div>

Hi, it´s the my first post in this forum. I´m a brazilian webdesigner. I´m using this code to load external SWF. \[COLOR=#993300\]\[/COLOR\]\[COLOR=#993300\]\[/COLOR\]\[COLOR=#993300\]\[/COLOR\]\[COLOR=#993300\]\[/COLOR\] \[COLOR=#993…

---

## [Polymorphism shame on ActionScript](https://forum.kirupa.com/t/polymorphism-shame-on-actionscript/301827)

<div class="topic-metadata">

**Author:** [@pedro\_paulo](https://forum.kirupa.com/u/pedro_paulo)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 1:35pm UTC](https://forum.kirupa.com/t/polymorphism-shame-on-actionscript/301827 "2009-12-16T13:35:59Z")

</div>

Hi. \[LEFT\]I just want to tell my deep frustation about OOP in flash for hard projects. I used to develop some apps with many classes, developping many components and, to be honest, polymorphism in AS simply does not ex…

---

## [Insegrating graphics with externally loaded video](https://forum.kirupa.com/t/insegrating-graphics-with-externally-loaded-video/301825)

<div class="topic-metadata">

**Author:** [@m00nb00ts](https://forum.kirupa.com/u/m00nb00ts)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 12:43pm UTC](https://forum.kirupa.com/t/insegrating-graphics-with-externally-loaded-video/301825 "2009-12-16T12:43:19Z")

</div>

I have a six minute video loading into my flash project. It is too large to import directly into the timeline. I want to display graphics and text underneath at key points and have considered using a timer to tell the …

---

## [Why don't flash recognize button-objects on stage?](https://forum.kirupa.com/t/why-dont-flash-recognize-button-objects-on-stage/301823)

<div class="topic-metadata">

**Author:** [@Marjoth](https://forum.kirupa.com/u/Marjoth)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 12:04pm UTC](https://forum.kirupa.com/t/why-dont-flash-recognize-button-objects-on-stage/301823 "2009-12-16T12:04:50Z")

</div>

I'm getting a very frustrating error in my flash project. I have a button on stage. When I try to trace it, it returns NULL. But when I change the button to a MovieClip in the properties panel, it traces it just fine a…

---

## [Cant change the yeardate in this counter](https://forum.kirupa.com/t/cant-change-the-yeardate-in-this-counter/301821)

<div class="topic-metadata">

**Author:** [@Pretorian](https://forum.kirupa.com/u/Pretorian)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 10:39am UTC](https://forum.kirupa.com/t/cant-change-the-yeardate-in-this-counter/301821 "2009-12-16T10:39:46Z")

</div>

Im trying to follow Kirupas own Flash countdown-tutorial here: http://www.kirupa.com/developer/mx/countdown.htm Ive done everything as it says but this counter counts down to christmas. I want it to countdown to a date…

---

## [Flvplayback issue imported with Video Import Wizard](https://forum.kirupa.com/t/flvplayback-issue-imported-with-video-import-wizard/301817)

<div class="topic-metadata">

**Author:** [@thevibe](https://forum.kirupa.com/u/thevibe)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 9:10am UTC](https://forum.kirupa.com/t/flvplayback-issue-imported-with-video-import-wizard/301817 "2009-12-16T09:10:41Z")

</div>

Hi guys, I imported multiple flvplayback videos on my file via the Video Wizard Import. After that I removed all videos except one. But it's still trying to load those old video and the skin of their player when I prel…

---

## [I need some help pls](https://forum.kirupa.com/t/i-need-some-help-pls/301816)

<div class="topic-metadata">

**Author:** [@simurganka](https://forum.kirupa.com/u/simurganka)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 8:28am UTC](https://forum.kirupa.com/t/i-need-some-help-pls/301816 "2009-12-16T08:28:56Z")

</div>

hi everybody I find some good tutorial in your web site photo gallery example http://www.kirupa.com/developer/mx/photogallery.htm and I want to add timer however I could not find any solution (I am a beginer with as)…

---

## [Green Screen Web Cam](https://forum.kirupa.com/t/green-screen-web-cam/301814)

<div class="topic-metadata">

**Author:** [@bukannoob](https://forum.kirupa.com/u/bukannoob)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 7:15am UTC](https://forum.kirupa.com/t/green-screen-web-cam/301814 "2009-12-16T07:15:06Z")

</div>

I'm trying to make a green screen/chroma key like in after effect keylight where the green is keyed out but using flash instead where the chroma key is keyed out in real time using web cam. Is this possible in Flash? Can…

---

## [Rotating a object](https://forum.kirupa.com/t/rotating-a-object/301811)

<div class="topic-metadata">

**Author:** [@Peterw](https://forum.kirupa.com/u/Peterw)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 5:10am UTC](https://forum.kirupa.com/t/rotating-a-object/301811 "2009-12-16T05:10:48Z")

</div>

Dear All thank you for your help I have a small movie where I rotate one circle and then want to rotate another circle to align to the first movie clips rotation .I can rotate the object no problems but when I want to al…

---

## [BUTTON graphic error](https://forum.kirupa.com/t/button-graphic-error/301810)

<div class="topic-metadata">

**Author:** [@TrueRubix](https://forum.kirupa.com/u/TrueRubix)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 4:59am UTC](https://forum.kirupa.com/t/button-graphic-error/301810 "2009-12-16T04:59:47Z")

</div>

I am building a website and my home button is my name done in photoshop to have texture on it. When I import it into flash and put it on stage, it's fine.... when I convert it into a button graphic, a strip in the middl…

---

## [SimpleButton children](https://forum.kirupa.com/t/simplebutton-children/301809)

<div class="topic-metadata">

**Author:** [@Scythe](https://forum.kirupa.com/u/Scythe)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 2:51am UTC](https://forum.kirupa.com/t/simplebutton-children/301809 "2009-12-16T02:51:35Z")

</div>

Here's a question for anyone in the know. How come SimpleButton instances can be given children in the authoring environment even though SimpleButton doesn't extend DisplayObjectContainer? Furthermore, what is the natu…

---

## [How to remove orphaned datagrid keydown listener](https://forum.kirupa.com/t/how-to-remove-orphaned-datagrid-keydown-listener/301807)

<div class="topic-metadata">

**Author:** [@cauchy](https://forum.kirupa.com/u/cauchy)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 2:30am UTC](https://forum.kirupa.com/t/how-to-remove-orphaned-datagrid-keydown-listener/301807 "2009-12-16T02:30:43Z")

</div>

Hi, I have a data grid in one frame, then upon moving to the next frame use removeChild to get rid of it, which works fine. But it seems to leave behind the keyDown handler that is naturally part of the component (whi…

---

## [1 Swf Loader, multiple swfs importing from shared library](https://forum.kirupa.com/t/1-swf-loader-multiple-swfs-importing-from-shared-library/301806)

<div class="topic-metadata">

**Author:** [@AzureRain](https://forum.kirupa.com/u/AzureRain)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 2:24am UTC](https://forum.kirupa.com/t/1-swf-loader-multiple-swfs-importing-from-shared-library/301806 "2009-12-16T02:24:22Z")

</div>

Hi everyone, I'm using Flex builder 3 for my main application (web-based), and I need to load multiple swf files built in flash cs4 (AS3) at different times. The flash swfs import assets from a separate flash swf used …

---

## [Code just being ignored!](https://forum.kirupa.com/t/code-just-being-ignored/301805)

<div class="topic-metadata">

**Author:** [@Black\_Drazon](https://forum.kirupa.com/u/Black_Drazon)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 2:15am UTC](https://forum.kirupa.com/t/code-just-being-ignored/301805 "2009-12-16T02:15:51Z")

</div>

This is driving me mad! While the code in old files seems to be fine, the code in new files is simply being ignored by Flash! It's not tracing my traces, it's not stopping at stops (which is a mess, I tell you) and it'…

---

## [DELETE keycode not working](https://forum.kirupa.com/t/delete-keycode-not-working/301804)

<div class="topic-metadata">

**Author:** [@ayusuits](https://forum.kirupa.com/u/ayusuits)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 2:15am UTC](https://forum.kirupa.com/t/delete-keycode-not-working/301804 "2009-12-16T02:15:50Z")

</div>

How come this code is not working: voca = new Object(); voca.onKeyDown = function() { if (Key.getCode() == 46) { voca\_pg2.text = "1" } } Key.addListener(voca); Means that when I press the delete button, the text…

---

## [AS3.0 Loading/Reloading Multiple swfs](https://forum.kirupa.com/t/as3-0-loading-reloading-multiple-swfs/301803)

<div class="topic-metadata">

**Author:** [@Jyaw3](https://forum.kirupa.com/u/Jyaw3)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 2:07am UTC](https://forum.kirupa.com/t/as3-0-loading-reloading-multiple-swfs/301803 "2009-12-16T02:07:30Z")

</div>

Hey again So I've got an object IWindow in my AS3.0 file. In it I have a shared variable mLoader. I have Two AS2.0 files, SWFA, and SWFB. Within SWFA, I have a MC, which gets created with attachMovieClip() and it's …

---

## [BUTTON with if else](https://forum.kirupa.com/t/button-with-if-else/301802)

<div class="topic-metadata">

**Author:** [@ayusuits](https://forum.kirupa.com/u/ayusuits)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 1:26am UTC](https://forum.kirupa.com/t/button-with-if-else/301802 "2009-12-16T01:26:33Z")

</div>

My code is not working properly. The subtracting thing should only work if the text is 1 or higher. Could somebody help me: button1.onPress = function() { if (voca\_pg1.text \> 0){ voca\_pg1.text=parseInt(voca\_pg1.…

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

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