# programming

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

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

**Page:** 1133

---

## [Confused on main document class](https://forum.kirupa.com/t/confused-on-main-document-class/267271)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 8:36am UTC](https://forum.kirupa.com/t/confused-on-main-document-class/267271 "2008-07-30T08:36:33Z")

</div>

I have a document class, exp.as. In it is the normal: package { import flash.display.MovieClip; public class exp extends MovieClip{ } } And in it, I define a function: public function t(){ } Now, in th…

---

## [Controlling movieclips acting as buttons](https://forum.kirupa.com/t/controlling-movieclips-acting-as-buttons/267269)

<div class="topic-metadata">

**Author:** [@indiochano](https://forum.kirupa.com/u/indiochano)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 8:07am UTC](https://forum.kirupa.com/t/controlling-movieclips-acting-as-buttons/267269 "2008-07-30T08:07:16Z")

</div>

Ok, so i've got a little dilemma with one of my projects again I made a nav bar which has 5 movieclips acting as buttons. I have them with a Rollover, Rollout, and Click stage. Now the click stage is the trickiest...…

---

## [Is there a way to refer to the main instance of the document class?](https://forum.kirupa.com/t/is-there-a-way-to-refer-to-the-main-instance-of-the-document-class/267268)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 7:57am UTC](https://forum.kirupa.com/t/is-there-a-way-to-refer-to-the-main-instance-of-the-document-class/267268 "2008-07-30T07:57:07Z")

</div>

Okay - the main document class can be referred to as 'this' in the first frame. Is there another way to refer to it though? I took and made a static variable of the same type and stored the instance... that has to be …

---

## [Shadowbox/Thickbox in flash! (working!)](https://forum.kirupa.com/t/shadowbox-thickbox-in-flash-working/267266)

<div class="topic-metadata">

**Author:** [@wootwoot](https://forum.kirupa.com/u/wootwoot)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 6:51am UTC](https://forum.kirupa.com/t/shadowbox-thickbox-in-flash-working/267266 "2008-07-30T06:51:19Z")

</div>

If you ever wondered how to implement a shadowbox or thickbox in flash then look no further! shadowbox --\> http://mjijackson.com/shadowbox/ thickbox --\> http://jquery.com/demo/thickbox/ Here are two examples …

---

## [Referencing stage](https://forum.kirupa.com/t/referencing-stage/267264)

<div class="topic-metadata">

**Author:** [@yankeedoodles](https://forum.kirupa.com/u/yankeedoodles)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 6:20am UTC](https://forum.kirupa.com/t/referencing-stage/267264 "2008-07-30T06:20:59Z")

</div>

Hello, I am trying to make my first as3 class based game and so i was wondering if i could get some help. although the game wont have fancy graphics, i just would like to understand the way it works...currently, i am at…

---

## [Regarding Singleton classes](https://forum.kirupa.com/t/regarding-singleton-classes/267263)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 6:00am UTC](https://forum.kirupa.com/t/regarding-singleton-classes/267263 "2008-07-30T06:00:17Z")

</div>

I have been reading a bit about using singleton classes. Does anyone know the advantage of that, over making everything in the class completely static (static methods) ? Since the purpose of singleton classes is to have…

---

## [Contributing Bg UP MOvement Code](https://forum.kirupa.com/t/contributing-bg-up-movement-code/267262)

<div class="topic-metadata">

**Author:** [@rahul\_7star](https://forum.kirupa.com/u/rahul_7star)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 5:48am UTC](https://forum.kirupa.com/t/contributing-bg-up-movement-code/267262 "2008-07-30T05:48:15Z")

</div>

HI i am posting a link were BG is moving UP ....i think it will be usefull for a beginner .. Happy Coding

---

## [How to create Weekly Calendar View](https://forum.kirupa.com/t/how-to-create-weekly-calendar-view/267261)

<div class="topic-metadata">

**Author:** [@sowmyavs](https://forum.kirupa.com/u/sowmyavs)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 5:47am UTC](https://forum.kirupa.com/t/how-to-create-weekly-calendar-view/267261 "2008-07-30T05:47:32Z")

</div>

Hi, Can anyone please help me in creating a calendar in weekly view to develop Gantt Chart in Flash. Thanks & Regards, Sowmya

---

## [Slider with fixed locations](https://forum.kirupa.com/t/slider-with-fixed-locations/267257)

<div class="topic-metadata">

**Author:** [@hasch2o](https://forum.kirupa.com/u/hasch2o)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 5:00am UTC](https://forum.kirupa.com/t/slider-with-fixed-locations/267257 "2008-07-30T05:00:36Z")

</div>

Hello all I was trying to look for a tutorial for a slider which will lock on fixed positions. (does that make any sense? it's really hard for me to explain what I mean. If I need to explain further please tell me so.) …

---

## [2 questions about a flv file](https://forum.kirupa.com/t/2-questions-about-a-flv-file/267255)

<div class="topic-metadata">

**Author:** [@fido\_glc](https://forum.kirupa.com/u/fido_glc)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 4:59am UTC](https://forum.kirupa.com/t/2-questions-about-a-flv-file/267255 "2008-07-30T04:59:37Z")

</div>

I have 2 questions: I have a flv movie embeded into a fla file. Is there a way I can export the flv ? How can I edit the flv file after I exported it ? Can I convert it to swf and decompile the swf and use flash to e…

---

## [Problem displaying duration time Netstream](https://forum.kirupa.com/t/problem-displaying-duration-time-netstream/267252)

<div class="topic-metadata">

**Author:** [@TheMagicMan](https://forum.kirupa.com/u/TheMagicMan)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 3:59am UTC](https://forum.kirupa.com/t/problem-displaying-duration-time-netstream/267252 "2008-07-30T03:59:33Z")

</div>

I have a flv in my netstream. Somehow I cannot show the duration correctly. I have read forums and tried their ways, still no luck. this part is in my constructor -------- //load video var con…

---

## [Show hide menu with rollover/rollout problem](https://forum.kirupa.com/t/show-hide-menu-with-rollover-rollout-problem/267250)

<div class="topic-metadata">

**Author:** [@vennasa](https://forum.kirupa.com/u/vennasa)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 3:44am UTC](https://forum.kirupa.com/t/show-hide-menu-with-rollover-rollout-problem/267250 "2008-07-30T03:44:40Z")

</div>

Hi all, The attached is my sample of show hide menu , but the problem is i used a movie clip to make rollover and then second mc will come out.And in that second movie I have buttons (:crying:that's the problem indeed I …

---

## [Help with Loader.close()](https://forum.kirupa.com/t/help-with-loader-close/267249)

<div class="topic-metadata">

**Author:** [@valkner](https://forum.kirupa.com/u/valkner)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 3:43am UTC](https://forum.kirupa.com/t/help-with-loader-close/267249 "2008-07-30T03:43:48Z")

</div>

Please help! I've been racking my brain and I can't figure out how exactly to close a loader. I've tried several methods, and it seems that the following code should work (just an example for calling the close()). Thank…

---

## [Simple speaking bubble](https://forum.kirupa.com/t/simple-speaking-bubble/267248)

<div class="topic-metadata">

**Author:** [@lalapower](https://forum.kirupa.com/u/lalapower)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 2:45am UTC](https://forum.kirupa.com/t/simple-speaking-bubble/267248 "2008-07-30T02:45:28Z")

</div>

How to make it when click on it many times, it will speak the different bubble? Like this flash banner http://youth.sg/ fellow with the mic on the left. I can only do like this. It will go to frame called hi only. on…

---

## [Storing Path in a Var](https://forum.kirupa.com/t/storing-path-in-a-var/267245)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 2:08am UTC](https://forum.kirupa.com/t/storing-path-in-a-var/267245 "2008-07-30T02:08:38Z")

</div>

I'm not entirely sure how to go about this, but I want to store a path inside a var to reuse throughout some interface code: var thisPath:Object = pageText\_mc.pageCntrls\_mc; \[thisPath + "."\]prevButton\_mc.\_visible = fa…

---

## [URLLoader... which url?](https://forum.kirupa.com/t/urlloader-which-url/267238)

<div class="topic-metadata">

**Author:** [@shadedecho](https://forum.kirupa.com/u/shadedecho)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 11:36pm UTC](https://forum.kirupa.com/t/urlloader-which-url/267238 "2008-07-29T23:36:13Z")

</div>

When a URLLoader (that was passed a URLRequest object) fires an event like the 'complete' event, the 'target' attribute of the event parameter is the URLLoader... however, because of certain program logic, I need to be a…

---

## [Usage of "super"](https://forum.kirupa.com/t/usage-of-super/267236)

<div class="topic-metadata">

**Author:** [@surferdudenate](https://forum.kirupa.com/u/surferdudenate)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 11:29pm UTC](https://forum.kirupa.com/t/usage-of-super/267236 "2008-07-29T23:29:48Z")

</div>

code: package { import flash.display.MovieClip; public class SuperExample extends MovieClip { public function SuperExample() { var myExt:ExtenderSomeMore = new ExtenderSomeMore() trace(myExt.thanks()); // output: Maha…

---

## [Fading MC help](https://forum.kirupa.com/t/fading-mc-help/267235)

<div class="topic-metadata">

**Author:** [@Tswanny](https://forum.kirupa.com/u/Tswanny)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 11:25pm UTC](https://forum.kirupa.com/t/fading-mc-help/267235 "2008-07-29T23:25:51Z")

</div>

hey all I need some help with getting this MC to fade on release, it fades in but i can not get it to fade out please help onClipEvent(load){ this.\_alpha=0; this.fader=1; } onClipEvent(enterFrame){ if (thi…

---

## [Noob - Simple Q about Properties](https://forum.kirupa.com/t/noob-simple-q-about-properties/267234)

<div class="topic-metadata">

**Author:** [@t0paz](https://forum.kirupa.com/u/t0paz)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 11:25pm UTC](https://forum.kirupa.com/t/noob-simple-q-about-properties/267234 "2008-07-29T23:25:04Z")

</div>

Hey, noob here trying to map my PHP sensibilities onto AS3 with only some luck. I'm making a flash video player and I have a basic toggle play/pause toggle switch (mov. clip with 2 frames) with a superimposed big Play …

---

## [Pass array values to function arguments](https://forum.kirupa.com/t/pass-array-values-to-function-arguments/267232)

<div class="topic-metadata">

**Author:** [@sandcar](https://forum.kirupa.com/u/sandcar)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 11:13pm UTC](https://forum.kirupa.com/t/pass-array-values-to-function-arguments/267232 "2008-07-29T23:13:54Z")

</div>

hi all, Maybe someone could help me ! it's possible to do this ? I have an array with some values and i want to pass this values to a function arguments. example var theArray:Array = new Array("test1","teste2"…

---

## [Behaviors-\>Go To Web Page and OPERA 9.5x](https://forum.kirupa.com/t/behaviors-go-to-web-page-and-opera-9-5x/267228)

<div class="topic-metadata">

**Author:** [@Naneek\_Of\_The\_N](https://forum.kirupa.com/u/Naneek_Of_The_N)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 10:29pm UTC](https://forum.kirupa.com/t/behaviors-go-to-web-page-and-opera-9-5x/267228 "2008-07-29T22:29:03Z")

</div>

Hello all. I have just started learning flash, so a lot of you might roll your eyes at this one. I've got a ver of MX 2004 Professional and I was going through the basic tutorial. When I got to the part where you set up …

---

## [hitTest();](https://forum.kirupa.com/t/hittest/267227)

<div class="topic-metadata">

**Author:** [@webbhelp](https://forum.kirupa.com/u/webbhelp)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 10:28pm UTC](https://forum.kirupa.com/t/hittest/267227 "2008-07-29T22:28:14Z")

</div>

Hi! I want to check if a cursor roll over a movieclip! My code: cursor.startDrag("true"); Mouse.hide(); if(cursor, hitTest(fel)) { trace('HIT') } When a test my flash, nothing happends when i…

---

## [Any way to alter application/x-shockwave-flash content?](https://forum.kirupa.com/t/any-way-to-alter-application-x-shockwave-flash-content/267226)

<div class="topic-metadata">

**Author:** [@invinceable](https://forum.kirupa.com/u/invinceable)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 10:18pm UTC](https://forum.kirupa.com/t/any-way-to-alter-application-x-shockwave-flash-content/267226 "2008-07-29T22:18:26Z")

</div>

\<object width="425" height="344"\>\<param name="movie" value="\[myvideo"\>\</param\>\<param name="allowFullScreen" value="true"\>\</param\>\<embed src="\[URL="http://www.youtube.com/v/rQNnn2QG\_1M&hl=en&fs=1"\]myvideo\](http://www.yout…

---

## [Whats the best way to scale down a swf?](https://forum.kirupa.com/t/whats-the-best-way-to-scale-down-a-swf/267224)

<div class="topic-metadata">

**Author:** [@Daimz](https://forum.kirupa.com/u/Daimz)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 10:17pm UTC](https://forum.kirupa.com/t/whats-the-best-way-to-scale-down-a-swf/267224 "2008-07-29T22:17:17Z")

</div>

I have made a website a foolishly made it larger that 1024x800 (not the smartest thing to do I know) but I was wondering if there was a quick way of changing the size of a swf rather than having to change the size of all…

---

## [Covert Bitmap to MovieClip Dynamically?](https://forum.kirupa.com/t/covert-bitmap-to-movieclip-dynamically/267222)

<div class="topic-metadata">

**Author:** [@Exnem](https://forum.kirupa.com/u/Exnem)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 9:36pm UTC](https://forum.kirupa.com/t/covert-bitmap-to-movieclip-dynamically/267222 "2008-07-29T21:36:40Z")

</div>

Anyone knows how to convert a bitmap into a movieclip through AS3? And I don't mean attaching the bitmap to a movieclip via addChild() but rather making the actual bitmap a movie clip so it can behave like a button (be…

---

## [Determining which \_levels are occupied](https://forum.kirupa.com/t/determining-which--levels-are-occupied/267220)

<div class="topic-metadata">

**Author:** [@thalamus](https://forum.kirupa.com/u/thalamus)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 9:08pm UTC](https://forum.kirupa.com/t/determining-which--levels-are-occupied/267220 "2008-07-29T21:08:46Z")

</div>

Trying to write a function on \_level0 that will let me find out if any Flash movies are loaded on \_level1, \_level2, etc. using loadMovieNum. for example, in \_level0; if I: loadMovieNum ("movie2.swf", 2); load…

---

## [Trouble using Timer](https://forum.kirupa.com/t/trouble-using-timer/267216)

<div class="topic-metadata">

**Author:** [@Rebel\_Star](https://forum.kirupa.com/u/Rebel_Star)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 8:46pm UTC](https://forum.kirupa.com/t/trouble-using-timer/267216 "2008-07-29T20:46:12Z")

</div>

I'm new to ActionScript 3.0. I am writing code that grabs data from an external XML file and displays it in dynamic text fields. The data is weather data gathered from a weather station. The data is processed by a lo…

---

## [Using an external class / function to return variables](https://forum.kirupa.com/t/using-an-external-class-function-to-return-variables/267215)

<div class="topic-metadata">

**Author:** [@serostar](https://forum.kirupa.com/u/serostar)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 8:19pm UTC](https://forum.kirupa.com/t/using-an-external-class-function-to-return-variables/267215 "2008-07-29T20:19:40Z")

</div>

Hi, just to preface, I'm pretty new to AS3 and having a hard time using external classes. I'm using a class that I converted from AS2 to AS3 using Patrick Mineault's converter: http://www.5etdemi.com/convert/index.php …

---

## [Ultra newbie question regarding Movieclips as buttons](https://forum.kirupa.com/t/ultra-newbie-question-regarding-movieclips-as-buttons/267214)

<div class="topic-metadata">

**Author:** [@indiochano](https://forum.kirupa.com/u/indiochano)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 8:14pm UTC](https://forum.kirupa.com/t/ultra-newbie-question-regarding-movieclips-as-buttons/267214 "2008-07-29T20:14:47Z")

</div>

this is a really really basic problem im having... i created the following code: function onClick(evt:MouseEvent):void { this.gotoAndPlay(2); } block1\_mc.buttonMode = true; block2\_mc.buttonMode = true; block2\_m…

---

## [Remove a flash video on completion](https://forum.kirupa.com/t/remove-a-flash-video-on-completion/267213)

<div class="topic-metadata">

**Author:** [@derleek](https://forum.kirupa.com/u/derleek)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 8:06pm UTC](https://forum.kirupa.com/t/remove-a-flash-video-on-completion/267213 "2008-07-29T20:06:03Z")

</div>

Is there a way to remove a flash video after it is done running? I have a site that an animation runs over the content every time an image is clicked, I need it to disappear once it is done running so that they can in…

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

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