# programming

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

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

**Page:** 1080

---

## [How to draw a jagged line?](https://forum.kirupa.com/t/how-to-draw-a-jagged-line/270729)

<div class="topic-metadata">

**Author:** [@chad101](https://forum.kirupa.com/u/chad101)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 11:58pm UTC](https://forum.kirupa.com/t/how-to-draw-a-jagged-line/270729 "2008-09-12T23:58:21Z")

</div>

Is there a way to draw a jagged line with one of the tools (pencil,pen etc) A jagged line like a "z" kind of like if you zoom in on the edge of a bitmap that doesn't have good resolution? Thanks in advanced

---

## [Navigate to next or prev frame for presentation](https://forum.kirupa.com/t/navigate-to-next-or-prev-frame-for-presentation/270727)

<div class="topic-metadata">

**Author:** [@gabrolll](https://forum.kirupa.com/u/gabrolll)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 10:44pm UTC](https://forum.kirupa.com/t/navigate-to-next-or-prev-frame-for-presentation/270727 "2008-09-12T22:44:09Z")

</div>

Hi there, I'm getting really frustrated with writing code to accurately move forward 1 frame or backwards 1 frame depending on hitting the Up or Down keys... I've used a Listener with minimal success. I've managed to g…

---

## [Shift graphic without changing XY](https://forum.kirupa.com/t/shift-graphic-without-changing-xy/270724)

<div class="topic-metadata">

**Author:** [@unmodify](https://forum.kirupa.com/u/unmodify)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 9:17pm UTC](https://forum.kirupa.com/t/shift-graphic-without-changing-xy/270724 "2008-09-12T21:17:17Z")

</div>

Hello, I'm looking to change the position of a movie's graphic content; change it's registration point, without changing it's xy position. I can't do it outside of runtime. Is there a way to, using AS3? I know I c…

---

## [Adding a SWF into a Scaled Container](https://forum.kirupa.com/t/adding-a-swf-into-a-scaled-container/270722)

<div class="topic-metadata">

**Author:** [@gotoAndSmoke](https://forum.kirupa.com/u/gotoAndSmoke)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 7:40pm UTC](https://forum.kirupa.com/t/adding-a-swf-into-a-scaled-container/270722 "2008-09-12T19:40:32Z")

</div>

Ok this is what I got import flash.display.Stage; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; var portRequest:URLRequest = new URLRequest("PictureViewer.swf"); …

---

## [Sum Values From Form Fields](https://forum.kirupa.com/t/sum-values-from-form-fields/270721)

<div class="topic-metadata">

**Author:** [@sgg](https://forum.kirupa.com/u/sgg)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 7:36pm UTC](https://forum.kirupa.com/t/sum-values-from-form-fields/270721 "2008-09-12T19:36:21Z")

</div>

Hello, I am working on a script, but I'm really not an expert. Any help will be highly appreciated. Description: I have items - some have option for adding an amount and some not (because they can be only 1). I need when…

---

## [AS2 XML "Attributes" help please](https://forum.kirupa.com/t/as2-xml-attributes-help-please/270719)

<div class="topic-metadata">

**Author:** [@LittleFenris](https://forum.kirupa.com/u/LittleFenris)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 6:59pm UTC](https://forum.kirupa.com/t/as2-xml-attributes-help-please/270719 "2008-09-12T18:59:13Z")

</div>

I'm can't for the life of me figure out how to trace the "aspect" attribute I have setup in the xml document. I've been trying to get this to work on my own for hours and I'm sure its a VERY simple fix. Here is the xm…

---

## [Scale movieclip on mouseover](https://forum.kirupa.com/t/scale-movieclip-on-mouseover/270718)

<div class="topic-metadata">

**Author:** [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 5:51pm UTC](https://forum.kirupa.com/t/scale-movieclip-on-mouseover/270718 "2008-09-12T17:51:40Z")

</div>

Hi I'm looking for a solution to scale (gradually scaling) the movieclip on mouseover and return to previous state on mouseout. Any movieclip prototypes available for that thanks in advance :}

---

## [Regular expression \[HTML\]](https://forum.kirupa.com/t/regular-expression-html/270717)

<div class="topic-metadata">

**Author:** [@imagined](https://forum.kirupa.com/u/imagined)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 5:18pm UTC](https://forum.kirupa.com/t/regular-expression-html/270717 "2008-09-12T17:18:19Z")

</div>

How can I create a ereg regular expression to match exactly the following: \`html i tried ^ \`html $ but it doesnt seem to work.

---

## [Record audio, play it back?](https://forum.kirupa.com/t/record-audio-play-it-back/270715)

<div class="topic-metadata">

**Author:** [@mulberry](https://forum.kirupa.com/u/mulberry)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 5:03pm UTC](https://forum.kirupa.com/t/record-audio-play-it-back/270715 "2008-09-12T17:03:53Z")

</div>

Hello All, I'm doing research on a potential project. It's a course to help customer service employees learn the correct way to speak with clients over the phone. The client wants a Flash course to record audio respons…

---

## [Scrollrect and scaleX / scaleY](https://forum.kirupa.com/t/scrollrect-and-scalex-scaley/270712)

<div class="topic-metadata">

**Author:** [@DavidOrtiz](https://forum.kirupa.com/u/DavidOrtiz)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 4:16pm UTC](https://forum.kirupa.com/t/scrollrect-and-scalex-scaley/270712 "2008-09-12T16:16:47Z")

</div>

Hey guys, i've got a scrollrect on a movieclip, however when i scale the movieclip, my scrollrect rectangle visible area on the screen gets dramatically smaller. is there a way to keep it proportion to the viewable area …

---

## [Page won't center in IE?](https://forum.kirupa.com/t/page-wont-center-in-ie/270708)

<div class="topic-metadata">

**Author:** [@Superwilly](https://forum.kirupa.com/u/Superwilly)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 4:01pm UTC](https://forum.kirupa.com/t/page-wont-center-in-ie/270708 "2008-09-12T16:01:45Z")

</div>

Hi guys, just uploaded a page to http://new.enr.ca last night, it centers horizontally in FF but not in IE? Any ideas why? I've used the container DIV lots, including sites such as http://www.macpheats.ca, and never had …

---

## [Color HTML code](https://forum.kirupa.com/t/color-html-code/270707)

<div class="topic-metadata">

**Author:** [@imagined](https://forum.kirupa.com/u/imagined)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 3:57pm UTC](https://forum.kirupa.com/t/color-html-code/270707 "2008-09-12T15:57:38Z")

</div>

Ok, I already created a function that colorizes PHP code. I'm googling for a way to colorizes HTML code. Looks like there is no PHP function to do this with HTML. Does anybody knows where can I find more info on how …

---

## [AS3 noob question](https://forum.kirupa.com/t/as3-noob-question/270706)

<div class="topic-metadata">

**Author:** [@Burvs](https://forum.kirupa.com/u/Burvs)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 3:57pm UTC](https://forum.kirupa.com/t/as3-noob-question/270706 "2008-09-12T15:57:31Z")

</div>

Hi All, So I'm trying out this AS3 lark for the first time at the moment and one thing is bothering me more than anything else: Let's say I have a FLA whose Document Class is Balls.as On frame 1 of my FLA there is …

---

## [Replacing instances in an animation](https://forum.kirupa.com/t/replacing-instances-in-an-animation/270705)

<div class="topic-metadata">

**Author:** [@Jack\_Cook](https://forum.kirupa.com/u/Jack_Cook)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 3:17pm UTC](https://forum.kirupa.com/t/replacing-instances-in-an-animation/270705 "2008-09-12T15:17:09Z")

</div>

\[FONT=verdana, arial, helvetica\] I've got an interactive anmation that explains how an underwater vehicle works, using png file that I've drawn in Illustrator to show different aspects of the inner workings at differen…

---

## [Extension Manager - creating components](https://forum.kirupa.com/t/extension-manager-creating-components/270703)

<div class="topic-metadata">

**Author:** [@philj1986](https://forum.kirupa.com/u/philj1986)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 3:07pm UTC](https://forum.kirupa.com/t/extension-manager-creating-components/270703 "2008-09-12T15:07:13Z")

</div>

Hello, I have been trying for the last week to package my first component. It is created in CS3 using AS2. However I get constant errors from the Extension Manager when trying to package it. I have made sure my Extensi…

---

## [\[swapDepths\] Beyond frustrated. What is wrong?](https://forum.kirupa.com/t/swapdepths-beyond-frustrated-what-is-wrong/270701)

<div class="topic-metadata">

**Author:** [@AJ861](https://forum.kirupa.com/u/AJ861)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 2:50pm UTC](https://forum.kirupa.com/t/swapdepths-beyond-frustrated-what-is-wrong/270701 "2008-09-12T14:50:40Z")

</div>

Hey everyone, first post, really hoping someone can point out what the hell is going on here. Basically, I am creating this build-your-own snowman game. The problem is the layering of items that stick to the snowman. Aka…

---

## [Using Switch](https://forum.kirupa.com/t/using-switch/270700)

<div class="topic-metadata">

**Author:** [@rodg](https://forum.kirupa.com/u/rodg)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 2:49pm UTC](https://forum.kirupa.com/t/using-switch/270700 "2008-09-12T14:49:39Z")

</div>

I am trying to use switch in a program I'm creating. I want the user to enter a word into an input box then have the used click on a button. Depending on the input the program will go to another frame, i have used the …

---

## [Calling stage function from nested MC](https://forum.kirupa.com/t/calling-stage-function-from-nested-mc/270699)

<div class="topic-metadata">

**Author:** [@jmalko](https://forum.kirupa.com/u/jmalko)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 2:48pm UTC](https://forum.kirupa.com/t/calling-stage-function-from-nested-mc/270699 "2008-09-12T14:48:49Z")

</div>

Hello all, this is my first time posting, but not my first visit to the site. I do have a problem. I'm trying to get a set of dynamically generated MCs that are nested about 4 levels down to use a function defined in …

---

## [Multiple Drop Targets](https://forum.kirupa.com/t/multiple-drop-targets/270698)

<div class="topic-metadata">

**Author:** [@booplasterer](https://forum.kirupa.com/u/booplasterer)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 2:48pm UTC](https://forum.kirupa.com/t/multiple-drop-targets/270698 "2008-09-12T14:48:33Z")

</div>

I'm just starting out in AS3 \[image\] and need some help with a drag and drop word scramble game. Basically I need to be able to match two movieclips in the same target. So in the example below I have the word SANDALS,…

---

## [Loadvars to load external text file åäö is not possible?](https://forum.kirupa.com/t/loadvars-to-load-external-text-file-aao-is-not-possible/270697)

<div class="topic-metadata">

**Author:** [@IzeB](https://forum.kirupa.com/u/IzeB)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 2:23pm UTC](https://forum.kirupa.com/t/loadvars-to-load-external-text-file-aao-is-not-possible/270697 "2008-09-12T14:23:21Z")

</div>

Hi, this is my first post here. The code it concerns is this: (which I found here on kirupa i belive) myData = new LoadVars(); myData.onLoad = function() { myText\_txt.text.embedFonts = true; myText\_txt.text = this.my…

---

## [Get Url Arguments of current page?](https://forum.kirupa.com/t/get-url-arguments-of-current-page/270693)

<div class="topic-metadata">

**Author:** [@cactusphone](https://forum.kirupa.com/u/cactusphone)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 1:51pm UTC](https://forum.kirupa.com/t/get-url-arguments-of-current-page/270693 "2008-09-12T13:51:20Z")

</div>

Hi, is there away to get the URL arguments of the current page, (the page the SWF is residing on)? Thanks.

---

## [Next Frame After FLV Finishes](https://forum.kirupa.com/t/next-frame-after-flv-finishes/270692)

<div class="topic-metadata">

**Author:** [@Matt\_Blank](https://forum.kirupa.com/u/Matt_Blank)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 1:35pm UTC](https://forum.kirupa.com/t/next-frame-after-flv-finishes/270692 "2008-09-12T13:35:26Z")

</div>

Hi guys, I want to play an external FLV and then once the video finishes I want it to jump to a new frame (gotoAndPlay). How can I do this, i.e. how does it know when the FLV has finished? Thanks! Matt

---

## [Accessing instances from a class](https://forum.kirupa.com/t/accessing-instances-from-a-class/270688)

<div class="topic-metadata">

**Author:** [@Rundevo](https://forum.kirupa.com/u/Rundevo)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 12:06pm UTC](https://forum.kirupa.com/t/accessing-instances-from-a-class/270688 "2008-09-12T12:06:05Z")

</div>

Hey guys! Never really worked with class files like this before, and come to think of it, I don´t even know if it´s possible! Or how it´s possible anyways. I´ve always used this.addEventListener and so on. My quest…

---

## [Importing dynamic classes](https://forum.kirupa.com/t/importing-dynamic-classes/270687)

<div class="topic-metadata">

**Author:** [@RebuiltJorge](https://forum.kirupa.com/u/RebuiltJorge)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 11:27am UTC](https://forum.kirupa.com/t/importing-dynamic-classes/270687 "2008-09-12T11:27:49Z")

</div>

ok so i have a package called "gallery", inside i have a couple dynamic classes that help build an xml gallery, outside i have the main class "Porfolio.as". From Porfolio.as, I am trying to call a class inside the packag…

---

## [Flash XMLSocket ASP](https://forum.kirupa.com/t/flash-xmlsocket-asp/270686)

<div class="topic-metadata">

**Author:** [@eliminater](https://forum.kirupa.com/u/eliminater)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 11:23am UTC](https://forum.kirupa.com/t/flash-xmlsocket-asp/270686 "2008-09-12T11:23:46Z")

</div>

Hi, Can any one tell me whats the exact code in ASP to receive and send data sent by another page in POST from clientside. In simple I want to do a chat application, I figured out I have to use XMLSocket but whats th…

---

## [As3 Form help needed!](https://forum.kirupa.com/t/as3-form-help-needed/270685)

<div class="topic-metadata">

**Author:** [@alexandre](https://forum.kirupa.com/u/alexandre)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 11:15am UTC](https://forum.kirupa.com/t/as3-form-help-needed/270685 "2008-09-12T11:15:12Z")

</div>

Hi people! I would like to know if it is possible to make a as3 form starting with a combobox that by selecting an item of this combobox, it would show two simple form textfields. Does anyone have an exemple of this …

---

## [Need some help/advice on this please!](https://forum.kirupa.com/t/need-some-help-advice-on-this-please/270684)

<div class="topic-metadata">

**Author:** [@dottydog](https://forum.kirupa.com/u/dottydog)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 10:49am UTC](https://forum.kirupa.com/t/need-some-help-advice-on-this-please/270684 "2008-09-12T10:49:43Z")

</div>

Hello I am a newbie and I have done my best on this.....but, why is it 'jumpy" and can you tell me what code I need for it to loop twice and then stop. Thank you very much in advance.

---

## [AS2: resizing browser from inside flash](https://forum.kirupa.com/t/as2-resizing-browser-from-inside-flash/270682)

<div class="topic-metadata">

**Author:** [@lilleypants](https://forum.kirupa.com/u/lilleypants)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 10:11am UTC](https://forum.kirupa.com/t/as2-resizing-browser-from-inside-flash/270682 "2008-09-12T10:11:55Z")

</div>

I am building a website and want it so that when the user clicks a hyperlink it opens a new browser window that is 700 x 400 when it is opened. This is what I have so far: getURL("http://www.mywebsite.com/hello.html"…

---

## [str\_replace - should be easy!](https://forum.kirupa.com/t/str-replace-should-be-easy/270678)

<div class="topic-metadata">

**Author:** [@thedaveyb](https://forum.kirupa.com/u/thedaveyb)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 8:30am UTC](https://forum.kirupa.com/t/str-replace-should-be-easy/270678 "2008-09-12T08:30:56Z")

</div>

Yo Kirupians, I am try to split a string that comes from the database - its currently a comma i wish to replace with a break - ('Northwich, Cheshire' becomes 'Northwich\<br\>Cheshire') $row\['Address'\]= str\_replace…

---

## [XML the code for SWF's?](https://forum.kirupa.com/t/xml-the-code-for-swfs/270677)

<div class="topic-metadata">

**Author:** [@Jiruharudo](https://forum.kirupa.com/u/Jiruharudo)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 8:01am UTC](https://forum.kirupa.com/t/xml-the-code-for-swfs/270677 "2008-09-12T08:01:26Z")

</div>

Hi all, I'm making this simple flash banner where you can put all you wish to show in a XML file, and flash will show these one by one. This is the code for the XML: \<?xml version="1.0" encoding="utf-8" standalone…

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

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