# flash

**URL:** https://forum.kirupa.com/c/programming/flash/38.md?page=886

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

**Page:** 887

---

## [Problem moving code from timeline to doc class](https://forum.kirupa.com/t/problem-moving-code-from-timeline-to-doc-class/267331)

<div class="topic-metadata">

**Author:** [@spike50](https://forum.kirupa.com/u/spike50)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 7:48pm UTC](https://forum.kirupa.com/t/problem-moving-code-from-timeline-to-doc-class/267331 "2008-07-30T19:48:16Z")

</div>

Hi, I am pretty new to AS. I'm trying to move some working AS3 code from the main timeline to a doc class but am getting a series of error messages. Can anyone tell me what I'm doing wrong? I'm attaching the FLA and AS…

---

## [Targeting with nested repeaters](https://forum.kirupa.com/t/targeting-with-nested-repeaters/267330)

<div class="topic-metadata">

**Author:** [@nburlington](https://forum.kirupa.com/u/nburlington)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 7:43pm UTC](https://forum.kirupa.com/t/targeting-with-nested-repeaters/267330 "2008-07-30T19:43:04Z")

</div>

I have two repeaters in my UI. The first displays all of the 'projects' in my collection. Each 'project' has a collection of 'images'. The projects are displayed as panels with the image list inside each panel as a set o…

---

## [Playing a embedded sound in an external .swf](https://forum.kirupa.com/t/playing-a-embedded-sound-in-an-external-swf/267326)

<div class="topic-metadata">

**Author:** [@bsyapril88](https://forum.kirupa.com/u/bsyapril88)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 6:55pm UTC](https://forum.kirupa.com/t/playing-a-embedded-sound-in-an-external-swf/267326 "2008-07-30T18:55:03Z")

</div>

Is there a way to play a sound that has been embedded in an externally loaded .swf from the main .swf (the .swf that loaded it)? Playing the embeded sound from within the same .swf is easy but how is it possible from t…

---

## [Drag/Scale Object Help](https://forum.kirupa.com/t/drag-scale-object-help/267320)

<div class="topic-metadata">

**Author:** [@MyronStanley](https://forum.kirupa.com/u/MyronStanley)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 5:58pm UTC](https://forum.kirupa.com/t/drag-scale-object-help/267320 "2008-07-30T17:58:30Z")

</div>

Hey all, Trying to fine tune, if possible, a drag scale movie clip functionality. I'm trying to get it to scale on the arrow instead of the whole image. Here is the code... var OnScale:Boolean; display01A.imageBg…

---

## [AS -\> Javascript](https://forum.kirupa.com/t/as-javascript/267318)

<div class="topic-metadata">

**Author:** [@derleek](https://forum.kirupa.com/u/derleek)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 5:51pm UTC](https://forum.kirupa.com/t/as-javascript/267318 "2008-07-30T17:51:06Z")

</div>

I'm trying to include a simple action script command to send a string that contains 'flashDiv' to a javascript function hideFlash(). I have the code: import flash.external.\*; function() { ExternalInterface.call("hid…

---

## [How to use XML as data provider for Datagrid?](https://forum.kirupa.com/t/how-to-use-xml-as-data-provider-for-datagrid/267317)

<div class="topic-metadata">

**Author:** [@Pixelmech](https://forum.kirupa.com/u/Pixelmech)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 5:46pm UTC](https://forum.kirupa.com/t/how-to-use-xml-as-data-provider-for-datagrid/267317 "2008-07-30T17:46:47Z")

</div>

I'm trying to find instructions on how to use an XML file as the data provider for the datagrid component. I've searched the forums here, but I get a jillion threads with 'xml' in it. I found the Datagrid tutorial but it…

---

## [setMask ignored on dynamically loaded clip](https://forum.kirupa.com/t/setmask-ignored-on-dynamically-loaded-clip/267315)

<div class="topic-metadata">

**Author:** [@rondog](https://forum.kirupa.com/u/rondog)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 5:16pm UTC](https://forum.kirupa.com/t/setmask-ignored-on-dynamically-loaded-clip/267315 "2008-07-30T17:16:59Z")

</div>

I am using movieClipLoader to load a swf into slideHolder slideLoader.loadClip(mediaPath + slideSWF,slideHolder); slideListener.onLoadInit = function(target:MovieClip) { slideHolder.setMask(zoomMask); }; It d…

---

## [AS3 XML based Gallery](https://forum.kirupa.com/t/as3-xml-based-gallery/267314)

<div class="topic-metadata">

**Author:** [@Overshee](https://forum.kirupa.com/u/Overshee)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 5:16pm UTC](https://forum.kirupa.com/t/as3-xml-based-gallery/267314 "2008-07-30T17:16:36Z")

</div>

Hey, I'm trying to build an XML based image gallery in AS3. However, I'm having some troubles. Are there any quality tutorials that explain it pretty much from scratch? Everything I can find is fairly geared towards o…

---

## [Changing brightness for my color picker (with easy-to-run code)](https://forum.kirupa.com/t/changing-brightness-for-my-color-picker-with-easy-to-run-code/267312)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 4:45pm UTC](https://forum.kirupa.com/t/changing-brightness-for-my-color-picker-with-easy-to-run-code/267312 "2008-07-30T16:45:13Z")

</div>

I have a color picker, and I need to be able to change the movieclips brightness. I don't know how, but here is an idea of what I'm going for - using the alpha property instead: function drawGradientBox(size:uint, col…

---

## [Loading XML -- AS3 Skipping Files](https://forum.kirupa.com/t/loading-xml-as3-skipping-files/267310)

<div class="topic-metadata">

**Author:** [@chadian22](https://forum.kirupa.com/u/chadian22)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 4:27pm UTC](https://forum.kirupa.com/t/loading-xml-as3-skipping-files/267310 "2008-07-30T16:27:22Z")

</div>

Hello everyone, this has me stumped. Flash seems to be skipping files. With this code: (other code.......) var xmlString:URLRequest = new URLRequest(testLoad); trace("\*\*\* LOADING \*\*…

---

## [Loading external panorama swf into another swf](https://forum.kirupa.com/t/loading-external-panorama-swf-into-another-swf/267309)

<div class="topic-metadata">

**Author:** [@LeonardoZimbres](https://forum.kirupa.com/u/LeonardoZimbres)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 4:11pm UTC](https://forum.kirupa.com/t/loading-external-panorama-swf-into-another-swf/267309 "2008-07-30T16:11:46Z")

</div>

Hello, I wanto to load a swf panorama, from papervision, into my site. I want to buy the flash panorama player, but first I need to show to the customer his flash site with a panorama running, so Im asking this. Someon…

---

## [Loading complex BitmapData objects](https://forum.kirupa.com/t/loading-complex-bitmapdata-objects/267308)

<div class="topic-metadata">

**Author:** [@trundrumbalind](https://forum.kirupa.com/u/trundrumbalind)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 4:06pm UTC](https://forum.kirupa.com/t/loading-complex-bitmapdata-objects/267308 "2008-07-30T16:06:09Z")

</div>

Hi I'm generating quite a complex BitmapData object and drawing a lot of symbols into it using copyPixels. Now, there's always a delay from when I start drawing until it's actually rendered and appears on the screen. S…

---

## [Exporting Photoshop works to flash](https://forum.kirupa.com/t/exporting-photoshop-works-to-flash/267306)

<div class="topic-metadata">

**Author:** [@ilikemyself](https://forum.kirupa.com/u/ilikemyself)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 4:04pm UTC](https://forum.kirupa.com/t/exporting-photoshop-works-to-flash/267306 "2008-07-30T16:04:36Z")

</div>

I have made this window with some buttons that look like vista window (sorry for the quality i had to reduce it to upload it) and i would like to export it to flash but still have it's transparency. Is that possible?

---

## [Animated image loop with AS3](https://forum.kirupa.com/t/animated-image-loop-with-as3/267305)

<div class="topic-metadata">

**Author:** [@md3](https://forum.kirupa.com/u/md3)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 3:50pm UTC](https://forum.kirupa.com/t/animated-image-loop-with-as3/267305 "2008-07-30T15:50:57Z")

</div>

Hello. I'm new to AS3 and need some help creating an animated loop with dynamic images loaded from an xml document. I have it all working except I was wondering if there was a way for the images to transition in a way …

---

## [\[AS2\] Playing a specific frame](https://forum.kirupa.com/t/as2-playing-a-specific-frame/267303)

<div class="topic-metadata">

**Author:** [@Arkman](https://forum.kirupa.com/u/Arkman)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 3:45pm UTC](https://forum.kirupa.com/t/as2-playing-a-specific-frame/267303 "2008-07-30T15:45:31Z")

</div>

I am using the following actionscript to load a external swf. I would like to actually start playing that movie at a specific location based on what is already loaded. I am using this tutorial \[COLOR=#0000ff\]here\[/COLOR\].…

---

## [Playing a sound when one object hits another?](https://forum.kirupa.com/t/playing-a-sound-when-one-object-hits-another/267302)

<div class="topic-metadata">

**Author:** [@scott1969](https://forum.kirupa.com/u/scott1969)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 3:36pm UTC](https://forum.kirupa.com/t/playing-a-sound-when-one-object-hits-another/267302 "2008-07-30T15:36:05Z")

</div>

I am creating a kids game in AS 1 and want a "good" sound to play when a "good" object falls into the beavers basket and a "bad" sound to play when it falls into the basket. What is the best way to handle this in AS 1? …

---

## [Pause & Play Content in Flash as well as Sound](https://forum.kirupa.com/t/pause-play-content-in-flash-as-well-as-sound/267296)

<div class="topic-metadata">

**Author:** [@jemma\_jemma](https://forum.kirupa.com/u/jemma_jemma)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 1:26pm UTC](https://forum.kirupa.com/t/pause-play-content-in-flash-as-well-as-sound/267296 "2008-07-30T13:26:42Z")

</div>

Hi Everyone! I am a little new at this. I am just trying to find a good tutorial or some help on an issue I have. I will try to explain it in short but cover everything. Here it goes: I am creating a training site wi…

---

## [Changing the way a radio button looks](https://forum.kirupa.com/t/changing-the-way-a-radio-button-looks/267291)

<div class="topic-metadata">

**Author:** [@CoDe\_ReD](https://forum.kirupa.com/u/CoDe_ReD)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 12:34pm UTC](https://forum.kirupa.com/t/changing-the-way-a-radio-button-looks/267291 "2008-07-30T12:34:57Z")

</div>

Hey people, Just a quick question. It's probably very easy but I can't figure it out. Is there a way you can change the look of a radiobutton. I want to change the green glow it has to a different color. Either with ac…

---

## [Button Mode for Icon](https://forum.kirupa.com/t/button-mode-for-icon/267290)

<div class="topic-metadata">

**Author:** [@seek\_nik](https://forum.kirupa.com/u/seek_nik)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 12:33pm UTC](https://forum.kirupa.com/t/button-mode-for-icon/267290 "2008-07-30T12:33:49Z")

</div>

Hello All, Here I am loading Icon, //function definition to apply Icon in the button private function applyIcon() { var urlIconPath:URLRequest = new URLRequest(getButtonIcon()); …

---

## [I need a small code to convert from as2 to as3](https://forum.kirupa.com/t/i-need-a-small-code-to-convert-from-as2-to-as3/267289)

<div class="topic-metadata">

**Author:** [@rupnarayan\_b](https://forum.kirupa.com/u/rupnarayan_b)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 11:42am UTC](https://forum.kirupa.com/t/i-need-a-small-code-to-convert-from-as2-to-as3/267289 "2008-07-30T11:42:37Z")

</div>

I am creating a flv player in flash, i used this as in flash8 for embedding flash flv url flv.contentPath = flvurl; but this code is not getting supported by flash cs3 .Can anybody please suggest what will be the code fo…

---

## [Splash frame for Movie](https://forum.kirupa.com/t/splash-frame-for-movie/267286)

<div class="topic-metadata">

**Author:** [@rbudnikas](https://forum.kirupa.com/u/rbudnikas)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 11:10am UTC](https://forum.kirupa.com/t/splash-frame-for-movie/267286 "2008-07-30T11:10:48Z")

</div>

I am new to Flash and really don't know the terminology to search through the forum. I have converted a mpg to flv and have imported and is in layer 1 frame 1. Right now when I publish the movie it works great but on the…

---

## [Can I pause an externally loaded swf? AS3 to AS2](https://forum.kirupa.com/t/can-i-pause-an-externally-loaded-swf-as3-to-as2/267282)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 10:49am UTC](https://forum.kirupa.com/t/can-i-pause-an-externally-loaded-swf-as3-to-as2/267282 "2008-07-30T10:49:25Z")

</div>

It uses timeline animation, so I just need to stop it. The loaded movie is AS2, the movie I load it in is AS3. If I add it to an AS3 movieclip, is there a way I can just copy the whole surface?

---

## [Movie Clip Instance Name](https://forum.kirupa.com/t/movie-clip-instance-name/267274)

<div class="topic-metadata">

**Author:** [@MediaMonkey2008](https://forum.kirupa.com/u/MediaMonkey2008)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 8:46am UTC](https://forum.kirupa.com/t/movie-clip-instance-name/267274 "2008-07-30T08:46:16Z")

</div>

Hello, I am setting up a menu which already had 6 movie-clips in place; I would like to add number 7. I have changed sections of the actionscript (as below)... However; I need to change the instance name of the movie-…

---

## [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 …

---

## [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…

---

## [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.) …

[Previous page](https://forum.kirupa.com/c/programming/flash/38.md?page=885)

[Next page](https://forum.kirupa.com/c/programming/flash/38.md?page=887)
