# programming

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

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

**Page:** 621

---

## [Exported videos = 100 Mb, help!](https://forum.kirupa.com/t/exported-videos-100-mb-help/301027)

<div class="topic-metadata">

**Author:** [@Pattt](https://forum.kirupa.com/u/Pattt)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 4:42pm UTC](https://forum.kirupa.com/t/exported-videos-100-mb-help/301027 "2009-12-02T16:42:55Z")

</div>

I have an swf which is 5 minutes. When I export it as a video, the mov/avi-file becomes nearly 100 Mb large. How can I compress it and keep the quality of the movie? The movie = black background, with some text that fa…

---

## [Gallery Zoom to fit browser?](https://forum.kirupa.com/t/gallery-zoom-to-fit-browser/301026)

<div class="topic-metadata">

**Author:** [@helious](https://forum.kirupa.com/u/helious)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 4:42pm UTC](https://forum.kirupa.com/t/gallery-zoom-to-fit-browser/301026 "2009-12-02T16:42:35Z")

</div>

Hi Kirupa \[smile\] I am about to make a Flash Gallery of my own. It is made this way. 12 small pictures, in 3 rows. Each picture is a movieclip. Inside each movieclip, the small picture is a button, and when that butt…

---

## [AS3: Creating a Pause function](https://forum.kirupa.com/t/as3-creating-a-pause-function/301024)

<div class="topic-metadata">

**Author:** [@trowley](https://forum.kirupa.com/u/trowley)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 4:35pm UTC](https://forum.kirupa.com/t/as3-creating-a-pause-function/301024 "2009-12-02T16:35:01Z")

</div>

Hey: I am trying to add a pause function to my game. I am using Tweenlite to animate the objects and utilizing the paused:Boolean method to pause() or resume() the animation. However, it seems that when i click the p…

---

## [Interactive Storyline](https://forum.kirupa.com/t/interactive-storyline/301023)

<div class="topic-metadata">

**Author:** [@Mister\_Bob](https://forum.kirupa.com/u/Mister_Bob)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 4:08pm UTC](https://forum.kirupa.com/t/interactive-storyline/301023 "2009-12-02T16:08:28Z")

</div>

I am trying to develop an interactive story. 1 question = 3 options each option loads a new question specific to that option with 3 new options it will be staggered so that there can be main plot lines with minigames …

---

## [Mac, Windows streaming/port problem?](https://forum.kirupa.com/t/mac-windows-streaming-port-problem/301022)

<div class="topic-metadata">

**Author:** [@activa](https://forum.kirupa.com/u/activa)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 4:07pm UTC](https://forum.kirupa.com/t/mac-windows-streaming-port-problem/301022 "2009-12-02T16:07:31Z")

</div>

I've got a flash mp3 player that takes a data stream from a specific port on a server. It's working correctly on PCs, but not on Macs--AND, it's also not working in virtual Windows on a Mac. Could this have something to …

---

## [Multiplayer](https://forum.kirupa.com/t/multiplayer/301020)

<div class="topic-metadata">

**Author:** [@wonsong82](https://forum.kirupa.com/u/wonsong82)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 3:17pm UTC](https://forum.kirupa.com/t/multiplayer/301020 "2009-12-02T15:17:06Z")

</div>

hi im trying to make a very simple multiplayer enviornment. i figured that i need a dedicated Socket server for this. while i was trying to figure out how to set up a socket server, i found out it will be difficult …

---

## [Cannot assign variable. Please help!](https://forum.kirupa.com/t/cannot-assign-variable-please-help/301019)

<div class="topic-metadata">

**Author:** [@nkthen](https://forum.kirupa.com/u/nkthen)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 2:53pm UTC](https://forum.kirupa.com/t/cannot-assign-variable-please-help/301019 "2009-12-02T14:53:29Z")

</div>

This is frustrating. Here's what happens... I define my instance as msg1. It is a text box with Dynamic Text. Then, I wrote the ActionScript as this: var var1:String; msg1.text = var1; My code included this: \<p…

---

## [UP and DOWN arrow keys in on-screen keyboard](https://forum.kirupa.com/t/up-and-down-arrow-keys-in-on-screen-keyboard/301018)

<div class="topic-metadata">

**Author:** [@AnupamB](https://forum.kirupa.com/u/AnupamB)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 2:38pm UTC](https://forum.kirupa.com/t/up-and-down-arrow-keys-in-on-screen-keyboard/301018 "2009-12-02T14:38:42Z")

</div>

Hii all, i am working on Flash player 8. i am designing on screen keyboard. I am not getting any clue what code shud i write 4 UP & DOWN arrow keys. What logic shud i apply for both. I am done with left & right arrow key…

---

## [Preloader - When should I use one, how and why?](https://forum.kirupa.com/t/preloader-when-should-i-use-one-how-and-why/301016)

<div class="topic-metadata">

**Author:** [@sluimers\_](https://forum.kirupa.com/u/sluimers_)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 2:35pm UTC](https://forum.kirupa.com/t/preloader-when-should-i-use-one-how-and-why/301016 "2009-12-02T14:35:16Z")

</div>

I think I might need a preloader as I load in tilesets. My problem is that I have no idea how to do this. The examples I have seen so far preload swf files. I don't think that that is what I need as I don't see how that…

---

## [Simple Image Editor](https://forum.kirupa.com/t/simple-image-editor/301015)

<div class="topic-metadata">

**Author:** [@icleric](https://forum.kirupa.com/u/icleric)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 2:20pm UTC](https://forum.kirupa.com/t/simple-image-editor/301015 "2009-12-02T14:20:55Z")

</div>

I've been searching for a good image editing flash app but i cant find any decent ones... I want something free or cheap, very simple with the main functions; Resize, Rotate, Crop (via select and drag) then saving... …

---

## [Vision of field, overlapping alpha](https://forum.kirupa.com/t/vision-of-field-overlapping-alpha/301014)

<div class="topic-metadata">

**Author:** [@ShaneHeres](https://forum.kirupa.com/u/ShaneHeres)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 2:03pm UTC](https://forum.kirupa.com/t/vision-of-field-overlapping-alpha/301014 "2009-12-02T14:03:19Z")

</div>

Hey Kirupa, Edit: A picture says a thousand words \[image\] i can do the top two by drawing circles. but i want to do the bottom one. any known method would be great to know. thank you \[image\]

---

## [ActionScripts from MovieClip Timeline](https://forum.kirupa.com/t/actionscripts-from-movieclip-timeline/301012)

<div class="topic-metadata">

**Author:** [@TYancy](https://forum.kirupa.com/u/TYancy)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 1:31pm UTC](https://forum.kirupa.com/t/actionscripts-from-movieclip-timeline/301012 "2009-12-02T13:31:55Z")

</div>

I need to create a script that will jump to a certain frame in the scene when a movie cilp reaches its last frame. Putting a goto... within the MC itself doesn't work. I assume that I need to create a listener of some so…

---

## [seekBar disable help](https://forum.kirupa.com/t/seekbar-disable-help/301010)

<div class="topic-metadata">

**Author:** [@sybot](https://forum.kirupa.com/u/sybot)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 1:22pm UTC](https://forum.kirupa.com/t/seekbar-disable-help/301010 "2009-12-02T13:22:38Z")

</div>

hi guys, I'm hoping somebody can help me out with this... using an FLV, with SeekBar component... works fantastic, but the scrubber clashes with my cuepoints when dragging along the timeline. So i want the scrubber t…

---

## [Learning ActionScript 3](https://forum.kirupa.com/t/learning-actionscript-3/301008)

<div class="topic-metadata">

**Author:** [@knorrad](https://forum.kirupa.com/u/knorrad)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 11:05am UTC](https://forum.kirupa.com/t/learning-actionscript-3/301008 "2009-12-02T11:05:48Z")

</div>

Hi all developers, fans, designers, and kirupa members. I am currently doing my practical work experience at North Development (unibet internal development company). I have worked as freelance designer, and webdevelope…

---

## [Dialogue less printing](https://forum.kirupa.com/t/dialogue-less-printing/301007)

<div class="topic-metadata">

**Author:** [@dail](https://forum.kirupa.com/u/dail)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 10:37am UTC](https://forum.kirupa.com/t/dialogue-less-printing/301007 "2009-12-02T10:37:45Z")

</div>

Hi, I've got a job creating a kiosk that requires printing. Currently the app runs fullscreen, but with a print job it loses focus as the OS print dialogue pops up and takes focus. Does anyone know of any backgroun…

---

## [Dynamic creation of a homemade class](https://forum.kirupa.com/t/dynamic-creation-of-a-homemade-class/301006)

<div class="topic-metadata">

**Author:** [@Eagle1](https://forum.kirupa.com/u/Eagle1)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 10:24am UTC](https://forum.kirupa.com/t/dynamic-creation-of-a-homemade-class/301006 "2009-12-02T10:24:47Z")

</div>

Hello everyone ! Explanation: I have a xmlfile with some node. I need to create an object of my class for each node. I knoz how to parse xml and get value, no problem here, but I can' create dynamic object with dynam…

---

## [Partially loading an external SWF (frame by frame?)](https://forum.kirupa.com/t/partially-loading-an-external-swf-frame-by-frame/301005)

<div class="topic-metadata">

**Author:** [@StanMan](https://forum.kirupa.com/u/StanMan)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 10:13am UTC](https://forum.kirupa.com/t/partially-loading-an-external-swf-frame-by-frame/301005 "2009-12-02T10:13:15Z")

</div>

I have an application swf that loads a big external swf with all GUI components/assets (skin) in it. I want to display a progress bar during loading of the external asset swf file but the images for the progress bar ar…

---

## [Setting Flash to demand type on variables](https://forum.kirupa.com/t/setting-flash-to-demand-type-on-variables/301003)

<div class="topic-metadata">

**Author:** [@haagel](https://forum.kirupa.com/u/haagel)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 9:43am UTC](https://forum.kirupa.com/t/setting-flash-to-demand-type-on-variables/301003 "2009-12-02T09:43:56Z")

</div>

Being a code purist, I always set Flash to demand that I declare all variables/functions with a type. Like this: var myVar1:int = 14; //Ok var myVar2 = 18; //Compiler ERROR My problem is that I just reinsta…

---

## [How to define events?](https://forum.kirupa.com/t/how-to-define-events/300998)

<div class="topic-metadata">

**Author:** [@Tahereh](https://forum.kirupa.com/u/Tahereh)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 7:48am UTC](https://forum.kirupa.com/t/how-to-define-events/300998 "2009-12-02T07:48:29Z")

</div>

Hi all Adobe's documentation says : \[INDENT\]"Events in ActionScript aren’t defined using a specific syntax. Instead, you define events in your class by using the functionality of the EventDispatcher class to keep trac…

---

## [Stylesheet Problem in my project](https://forum.kirupa.com/t/stylesheet-problem-in-my-project/300995)

<div class="topic-metadata">

**Author:** [@vjn\_23](https://forum.kirupa.com/u/vjn_23)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 6:17am UTC](https://forum.kirupa.com/t/stylesheet-problem-in-my-project/300995 "2009-12-02T06:17:13Z")

</div>

Hi Friends, i have problem in my flash styleSheet. i add this script, import TextField.StyleSheet; var myStylesheet:TextField.StyleSheet = new TextField.StyleSheet(); myStylesheet.setStyle("a:link",{color:"#990000", fo…

---

## [Need help getting scroller scrollable by keyboard](https://forum.kirupa.com/t/need-help-getting-scroller-scrollable-by-keyboard/300993)

<div class="topic-metadata">

**Author:** [@jumpsuit1](https://forum.kirupa.com/u/jumpsuit1)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 5:19am UTC](https://forum.kirupa.com/t/need-help-getting-scroller-scrollable-by-keyboard/300993 "2009-12-02T05:19:15Z")

</div>

I'm trying to make the scroller to scroll by pressing the 'r' and 'l' buttons. Right and left subsequently. Anyway, it doesn't work. I've used a setInterval function but I'm having trouble getting it activated with the l…

---

## [Splitting multiline strings \[as2\]](https://forum.kirupa.com/t/splitting-multiline-strings-as2/300987)

<div class="topic-metadata">

**Author:** [@Amzipotatosheep](https://forum.kirupa.com/u/Amzipotatosheep)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 12:53am UTC](https://forum.kirupa.com/t/splitting-multiline-strings-as2/300987 "2009-12-02T00:53:36Z")

</div>

Alright, so what I've got is a gigantic string that looks pretty much like this: Data1 Data2 Data3 Data4 Data5 Data6 Et cetera....What I'm looking to do is split it based on where line breaks are, so that it retu…

---

## [BitmapData Draw](https://forum.kirupa.com/t/bitmapdata-draw/300986)

<div class="topic-metadata">

**Author:** [@pardoner](https://forum.kirupa.com/u/pardoner)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 12:21am UTC](https://forum.kirupa.com/t/bitmapdata-draw/300986 "2009-12-02T00:21:36Z")

</div>

I'm making a copy of a Sprite via the BitmapData Draw method. It kind of works other than the top portion of the bitmap gets cut off (replaced with transparent pixels). It looks like it's about the same height as the Spr…

---

## [AS3 removeChild() issues](https://forum.kirupa.com/t/as3-removechild-issues/300985)

<div class="topic-metadata">

**Author:** [@Danzastrike](https://forum.kirupa.com/u/Danzastrike)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 12:17am UTC](https://forum.kirupa.com/t/as3-removechild-issues/300985 "2009-12-02T00:17:48Z")

</div>

hey so im attemping to make a castle Defense type of game in which you fire arrows at on-coming enemies and kill them. The issue i am running into is removing the Enemy and the Arrow that have collided. So far i have a …

---

## [Loading Sound Problems](https://forum.kirupa.com/t/loading-sound-problems/300984)

<div class="topic-metadata">

**Author:** [@amschwend](https://forum.kirupa.com/u/amschwend)\
**Replies:** 0\
**Last updated:** [December 1, 2009, 11:50pm UTC](https://forum.kirupa.com/t/loading-sound-problems/300984 "2009-12-01T23:50:17Z")

</div>

I am creating an info movie for a client and running into some issues with the sound. The intro movie is about 10 seconds and needs background music. I've used Audacity to compress the MP3 file to 44100 Hz and 16-bit sam…

---

## [Vector - yet another frustration :(](https://forum.kirupa.com/t/vector-yet-another-frustration/300983)

<div class="topic-metadata">

**Author:** [@wvxvw](https://forum.kirupa.com/u/wvxvw)\
**Replies:** 0\
**Last updated:** [December 1, 2009, 10:09pm UTC](https://forum.kirupa.com/t/vector-yet-another-frustration/300983 "2009-12-01T22:09:21Z")

</div>

It's not serializable... after all other things... var v:Vector.\<Boolean\> = new Vector.\<Boolean\>(100, true); var ba:ByteArray = new ByteArray(); registerClassAlias("\_\_AS3\_\_.vec.Vector.\<Boolean\>", Vector.\<Boolean\> as C…

---

## [mp3 drag and drop](https://forum.kirupa.com/t/mp3-drag-and-drop/300982)

<div class="topic-metadata">

**Author:** [@lope](https://forum.kirupa.com/u/lope)\
**Replies:** 0\
**Last updated:** [December 1, 2009, 8:22pm UTC](https://forum.kirupa.com/t/mp3-drag-and-drop/300982 "2009-12-01T20:22:47Z")

</div>

how to make a mp3 player functionality, like for example winamp has, that you grab the mp3 and drag in into the playlist/player and it automatically plays?

---

## [AS2 forward and back buttons action for photo gallery](https://forum.kirupa.com/t/as2-forward-and-back-buttons-action-for-photo-gallery/300978)

<div class="topic-metadata">

**Author:** [@Ana81](https://forum.kirupa.com/u/Ana81)\
**Replies:** 0\
**Last updated:** [December 1, 2009, 7:12pm UTC](https://forum.kirupa.com/t/as2-forward-and-back-buttons-action-for-photo-gallery/300978 "2009-12-01T19:12:35Z")

</div>

Hey, Sorry for the basic question but I am looking for a code to make a forward and a back button on a photo gallery. I have my images one per frame on layer one, my forward button on layer 2 and my back button on la…

---

## [Re: Bit of code help please](https://forum.kirupa.com/t/re-bit-of-code-help-please/300977)

<div class="topic-metadata">

**Author:** [@g27](https://forum.kirupa.com/u/g27)\
**Replies:** 0\
**Last updated:** [December 1, 2009, 6:47pm UTC](https://forum.kirupa.com/t/re-bit-of-code-help-please/300977 "2009-12-01T18:47:28Z")

</div>

Hey everyone, I am trying to finish off a previously built site but am having a tricky time with actionscript 3. Basically the buttons go down one by one (screenshot attached). However I want the buttons to go across…

---

## [Maths in AS2](https://forum.kirupa.com/t/maths-in-as2/300975)

<div class="topic-metadata">

**Author:** [@jbitkill](https://forum.kirupa.com/u/jbitkill)\
**Replies:** 0\
**Last updated:** [December 1, 2009, 6:05pm UTC](https://forum.kirupa.com/t/maths-in-as2/300975 "2009-12-01T18:05:02Z")

</div>

Hi! How to do math calculations in AS2? I only need + and -. Aswell, how to choose a random number inbetween 2 and 6 and put in a variable form. After this, I need to do a calculation like: "currenthealth" - "rand…

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

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