# programming

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

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

**Page:** 797

---

## [Casting vs As?](https://forum.kirupa.com/t/casting-vs-as/289648)

<div class="topic-metadata">

**Author:** [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 10:17pm UTC](https://forum.kirupa.com/t/casting-vs-as/289648 "2009-06-02T22:17:50Z")

</div>

Hey all. I have noticed that in AS3, lets say i have a text field which uses a int variable. var myNumber:int = 10394; ..... textField.text = String(myNumber); or ..... textField.text = myNumber as String; I …

---

## [SOS!a few as3 woes](https://forum.kirupa.com/t/sos-a-few-as3-woes/289646)

<div class="topic-metadata">

**Author:** [@hikkosan](https://forum.kirupa.com/u/hikkosan)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 9:30pm UTC](https://forum.kirupa.com/t/sos-a-few-as3-woes/289646 "2009-06-02T21:30:12Z")

</div>

I am a green guy who jumped into this actionscript 3 thing head first.It's a real "day one" scenario for me.All I want to do is to press a button and the swf loads(prod)then after the swf loads, I can unload it with a bu…

---

## [Help with AS 3.0](https://forum.kirupa.com/t/help-with-as-3-0/289644)

<div class="topic-metadata">

**Author:** [@raya](https://forum.kirupa.com/u/raya)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 9:11pm UTC](https://forum.kirupa.com/t/help-with-as-3-0/289644 "2009-06-02T21:11:44Z")

</div>

Hi, i am a new user and a fairly new user to Flash CS4, so my question would probably seem simple and stupid, but oh well, here i go: I have a movie clip on my main timeline and i have a button inside that i want on Mous…

---

## [Finding an angle](https://forum.kirupa.com/t/finding-an-angle/289641)

<div class="topic-metadata">

**Author:** [@DashMasterful](https://forum.kirupa.com/u/DashMasterful)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 9:03pm UTC](https://forum.kirupa.com/t/finding-an-angle/289641 "2009-06-02T21:03:31Z")

</div>

I have an object that moves to wherever the mouse is clicked, I need to be able to determine the angle at which it is moving like so var dx:Number = mouseX- this.x; var dy:Number = mouseY- this.y; var angle:Number = Ma…

---

## [Making an object follow a path](https://forum.kirupa.com/t/making-an-object-follow-a-path/289640)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 8:58pm UTC](https://forum.kirupa.com/t/making-an-object-follow-a-path/289640 "2009-06-02T20:58:06Z")

</div>

I want to be able to create a path, then have an object move along that path. Does anyone know of an example I could use? It seems easy enough, but I'm not sure how to do it, short of saving the path as an array of x,y p…

---

## [Importing swf into swf throws 1009 error](https://forum.kirupa.com/t/importing-swf-into-swf-throws-1009-error/289639)

<div class="topic-metadata">

**Author:** [@smair33](https://forum.kirupa.com/u/smair33)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 8:49pm UTC](https://forum.kirupa.com/t/importing-swf-into-swf-throws-1009-error/289639 "2009-06-02T20:49:06Z")

</div>

I have a swf, lets call it toImport.swf, it has an external as file, it loads images from xml. toImport.swf also has movieclips that have their own classes inside other external as files. I have another swf called portfo…

---

## [Video in background](https://forum.kirupa.com/t/video-in-background/289638)

<div class="topic-metadata">

**Author:** [@daniel\_mihalcea](https://forum.kirupa.com/u/daniel_mihalcea)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 8:44pm UTC](https://forum.kirupa.com/t/video-in-background/289638 "2009-06-02T20:44:19Z")

</div>

Hello there. I have and xml file with flvs. How can I make them play in background random and to check if they are loaded. It something like this: A movie starts and after 20-40 seconds another random movie starts and th…

---

## [hitTest Multiple targets](https://forum.kirupa.com/t/hittest-multiple-targets/289637)

<div class="topic-metadata">

**Author:** [@madhat](https://forum.kirupa.com/u/madhat)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 8:20pm UTC](https://forum.kirupa.com/t/hittest-multiple-targets/289637 "2009-06-02T20:20:50Z")

</div>

Greetings All, I have a question about hitTest, and I was wondering if anyone can help me. I have an object in the display set called redBall. Each frame, I want test to see if the ball is touching any of the other objec…

---

## [AS3 XML numbered image gallery](https://forum.kirupa.com/t/as3-xml-numbered-image-gallery/289636)

<div class="topic-metadata">

**Author:** [@wuzzi2ya](https://forum.kirupa.com/u/wuzzi2ya)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 8:17pm UTC](https://forum.kirupa.com/t/as3-xml-numbered-image-gallery/289636 "2009-06-02T20:17:20Z")

</div>

How would I go about dynamically listing the number of xml images within my slideshow and have them clickable to go to the corresponding image? An example of what I am looking to accomplish: http://www.entheosweb.com/…

---

## [Preloader in dreamweaver](https://forum.kirupa.com/t/preloader-in-dreamweaver/289635)

<div class="topic-metadata">

**Author:** [@flashjones](https://forum.kirupa.com/u/flashjones)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 8:10pm UTC](https://forum.kirupa.com/t/preloader-in-dreamweaver/289635 "2009-06-02T20:10:24Z")

</div>

How do I load large images in dreamweaver without it taking forever? Is there a way to add a pre-loader to one specific table inside a dreamweaver document?

---

## [Problem with transition stops randomly](https://forum.kirupa.com/t/problem-with-transition-stops-randomly/289634)

<div class="topic-metadata">

**Author:** [@mr\_Hansen](https://forum.kirupa.com/u/mr_Hansen)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 8:09pm UTC](https://forum.kirupa.com/t/problem-with-transition-stops-randomly/289634 "2009-06-02T20:09:48Z")

</div>

Hi lads, ive just convertet from as2 to as3 so please bare with the non-tight coding. Im loading 5 images from an xml file into flash. all loaded into an array and randomnized in another array. then the first image is …

---

## [Matching width to screen size](https://forum.kirupa.com/t/matching-width-to-screen-size/289631)

<div class="topic-metadata">

**Author:** [@thegrrraue](https://forum.kirupa.com/u/thegrrraue)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 7:27pm UTC](https://forum.kirupa.com/t/matching-width-to-screen-size/289631 "2009-06-02T19:27:21Z")

</div>

I'm sure there are a million posts on this, but I cannot for the life of me figure out the wording under which they are classified. I am trying to get my site to scale so that the width is 100% the width of the screen,…

---

## [Flash CS3 AS 2.0 Syntax error](https://forum.kirupa.com/t/flash-cs3-as-2-0-syntax-error/289628)

<div class="topic-metadata">

**Author:** [@wanderlustjules](https://forum.kirupa.com/u/wanderlustjules)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 7:10pm UTC](https://forum.kirupa.com/t/flash-cs3-as-2-0-syntax-error/289628 "2009-06-02T19:10:23Z")

</div>

Hi there, I'm pretty new to Flash and my first project is my own on-line portfolio. I found (what I think is a Flash 5) code on this board to create an infinite menu. I'm trying to tweak it so that it works in AS 2.0 f…

---

## [Need advice in managing a "header" textfield](https://forum.kirupa.com/t/need-advice-in-managing-a-header-textfield/289627)

<div class="topic-metadata">

**Author:** [@dragonfly](https://forum.kirupa.com/u/dragonfly)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 7:04pm UTC](https://forum.kirupa.com/t/need-advice-in-managing-a-header-textfield/289627 "2009-06-02T19:04:32Z")

</div>

I've got a function, based on the Flash help files called configureHeader(); private function configureHeader():void { tfHeader = new TextField(); tfHeader.autoSize = TextFieldAutoSize.LEFT; …

---

## [Cross browser blur filter method](https://forum.kirupa.com/t/cross-browser-blur-filter-method/289626)

<div class="topic-metadata">

**Author:** [@saxx](https://forum.kirupa.com/u/saxx)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 6:44pm UTC](https://forum.kirupa.com/t/cross-browser-blur-filter-method/289626 "2009-06-02T18:44:45Z")

</div>

Is there a method to make a blur filter and have it work with all browsers. It's not just images so configuring a server side script to return the image blurred wouldn't be the solution i'm looking for. So far it only …

---

## [ExternalInterface/Javascript](https://forum.kirupa.com/t/externalinterface-javascript/289625)

<div class="topic-metadata">

**Author:** [@ThaJock](https://forum.kirupa.com/u/ThaJock)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 6:05pm UTC](https://forum.kirupa.com/t/externalinterface-javascript/289625 "2009-06-02T18:05:53Z")

</div>

I have a little problem that I've spent hours trying to figure out. I am trying to return an array from javascript. The problem (I assume) is that is has some php in the javascript function Here is the code I am try…

---

## [Communication with classes](https://forum.kirupa.com/t/communication-with-classes/289623)

<div class="topic-metadata">

**Author:** [@youwh](https://forum.kirupa.com/u/youwh)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 4:33pm UTC](https://forum.kirupa.com/t/communication-with-classes/289623 "2009-06-02T16:33:39Z")

</div>

I don't know how to phrase this, but as you can see my code below I have 2 classes. 1. wp\_title 2. wp\_date How can I let wp\_date to get the height of wp\_title's contentText? Currently I tried tracing wp\_title.height fr…

---

## [Global function to stop/start timelines](https://forum.kirupa.com/t/global-function-to-stop-start-timelines/289622)

<div class="topic-metadata">

**Author:** [@kdawg](https://forum.kirupa.com/u/kdawg)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 4:07pm UTC](https://forum.kirupa.com/t/global-function-to-stop-start-timelines/289622 "2009-06-02T16:07:49Z")

</div>

I was wondering if someone could shed some light in helping translate a AS2 function to AS3. It stops the movie's timeline from where you called the function. Thanks much. \[LEFT\] MovieClip.prototype.wait = function(n:…

---

## [Convert/Encode Video IN swf](https://forum.kirupa.com/t/convert-encode-video-in-swf/289619)

<div class="topic-metadata">

**Author:** [@MadTurki](https://forum.kirupa.com/u/MadTurki)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 3:16pm UTC](https://forum.kirupa.com/t/convert-encode-video-in-swf/289619 "2009-06-02T15:16:53Z")

</div>

I've looked all over and can't find this... Is there a way to convert an uploaded video file to an flv file? Either through AS3 or through a pre-built app somewhere? Does AS3 have a function built in for converting v…

---

## [Ideas for simple 360 panorama simulation](https://forum.kirupa.com/t/ideas-for-simple-360-panorama-simulation/289616)

<div class="topic-metadata">

**Author:** [@nighteagle](https://forum.kirupa.com/u/nighteagle)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 2:55pm UTC](https://forum.kirupa.com/t/ideas-for-simple-360-panorama-simulation/289616 "2009-06-02T14:55:22Z")

</div>

I have to make some 360 panorama simulation for a school project. It should be some thing like this http://www.360gradpanorama.at/virtueller-rundgang/webdesign/rundgaenge/die\_gruenanlage\_vorm\_riesenrad/die\_gruenanlage\_vo…

---

## [What is the best way to create a complete site in flash?](https://forum.kirupa.com/t/what-is-the-best-way-to-create-a-complete-site-in-flash/289615)

<div class="topic-metadata">

**Author:** [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 2:51pm UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-create-a-complete-site-in-flash/289615 "2009-06-02T14:51:13Z")

</div>

\[FONT=Calibri\] Hi, \[/FONT\] \[FONT=Calibri\] I have made four complete flash sites and I’m about to create the fifth one, but every time I start creating a new one I get into a debate myself on what would be the bette…

---

## [Accessing Class instances from another movie clip](https://forum.kirupa.com/t/accessing-class-instances-from-another-movie-clip/289614)

<div class="topic-metadata">

**Author:** [@Zaylril](https://forum.kirupa.com/u/Zaylril)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 2:50pm UTC](https://forum.kirupa.com/t/accessing-class-instances-from-another-movie-clip/289614 "2009-06-02T14:50:07Z")

</div>

Hey guys I have a movie clip on the root which contains my menu. And another movie clip which plays my video. Basically when i click a menu item it calls a function which i want to able to send a command to my video pl…

---

## [AS3 help](https://forum.kirupa.com/t/as3-help/289613)

<div class="topic-metadata">

**Author:** [@k4rlos](https://forum.kirupa.com/u/k4rlos)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 2:46pm UTC](https://forum.kirupa.com/t/as3-help/289613 "2009-06-02T14:46:43Z")

</div>

I am getting an error with the following code: \[COLOR=Red\]this.footerUp = false;\[/COLOR\] //User has clicked on footer to move up function footerUp(p\_event : Event) { if(this.footerUp == false){ Twe…

---

## [Making a Select Box](https://forum.kirupa.com/t/making-a-select-box/289612)

<div class="topic-metadata">

**Author:** [@DashMasterful](https://forum.kirupa.com/u/DashMasterful)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 2:36pm UTC](https://forum.kirupa.com/t/making-a-select-box/289612 "2009-06-02T14:36:53Z")

</div>

I am trying to make a select box for an RTS Flash game. For the most part I have it working, I can click and drag a box from top left to bottom right, however it doesn't work when I click and drag from bottom right to to…

---

## [.as file to fade in images not working all the time](https://forum.kirupa.com/t/as-file-to-fade-in-images-not-working-all-the-time/289609)

<div class="topic-metadata">

**Author:** [@icekomo](https://forum.kirupa.com/u/icekomo)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 1:44pm UTC](https://forum.kirupa.com/t/as-file-to-fade-in-images-not-working-all-the-time/289609 "2009-06-02T13:44:01Z")

</div>

Hello all, I have 10 images that are set to a loop. I wrote a .as file to control how the fade it. The first one works great, but after that the fades seem to get less and less till the last one seems to just pop up on s…

---

## [Papervision glitch](https://forum.kirupa.com/t/papervision-glitch/289608)

<div class="topic-metadata">

**Author:** [@jonito](https://forum.kirupa.com/u/jonito)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 1:41pm UTC](https://forum.kirupa.com/t/papervision-glitch/289608 "2009-06-02T13:41:01Z")

</div>

Hi there I'm fooling around with papervision and i'm getting this strange glitch kind of rendering. Basically i'm just creating alot of bars with a FlatShadeMaterial. All of them have the same light. Then i'm positioning…

---

## [Got a little problem with some sound script](https://forum.kirupa.com/t/got-a-little-problem-with-some-sound-script/289607)

<div class="topic-metadata">

**Author:** [@Judda](https://forum.kirupa.com/u/Judda)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 1:29pm UTC](https://forum.kirupa.com/t/got-a-little-problem-with-some-sound-script/289607 "2009-06-02T13:29:12Z")

</div>

Can anyone see anything wrong with this sound script? It should work and has worked but for some reason it does and it doesn't which is kinda frustrating. HERE'S THE SCRIPT: allmicnames = Microphone.names; active…

---

## [CuTanks - a Microsoft XNA game](https://forum.kirupa.com/t/cutanks-a-microsoft-xna-game/289603)

<div class="topic-metadata">

**Author:** [@flipizam](https://forum.kirupa.com/u/flipizam)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 1:08pm UTC](https://forum.kirupa.com/t/cutanks-a-microsoft-xna-game/289603 "2009-06-02T13:08:30Z")

</div>

Greetings! :sonic: Microsoft XNA is a popular framework applied with C# that is being used to create quality games. My thesis group decided to use the said framework for our thesis which required us to develop a game. …

---

## [Text in movie clip](https://forum.kirupa.com/t/text-in-movie-clip/289601)

<div class="topic-metadata">

**Author:** [@daniel\_mihalcea](https://forum.kirupa.com/u/daniel_mihalcea)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 12:48pm UTC](https://forum.kirupa.com/t/text-in-movie-clip/289601 "2009-06-02T12:48:13Z")

</div>

Hello there.I have a question. Is it possible to have a textField in a movieClip in vertical position and after you click on that movieClip the text to go in horizontal position? If it is possible, how can be done? Becau…

---

## [Load default image if 'URL Not Found'](https://forum.kirupa.com/t/load-default-image-if-url-not-found/289599)

<div class="topic-metadata">

**Author:** [@Tedri\_Mark](https://forum.kirupa.com/u/Tedri_Mark)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 12:02pm UTC](https://forum.kirupa.com/t/load-default-image-if-url-not-found/289599 "2009-06-02T12:02:27Z")

</div>

Hey there, I’ve got a slideshow which runs from an XML file, and at the moment, if the image specified in the XML file isn’t there, I get an error Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found. …

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

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