# programming

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

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

**Page:** 1331

---

## [Weird compression when importing jpgs?](https://forum.kirupa.com/t/weird-compression-when-importing-jpgs/253917)

<div class="topic-metadata">

**Author:** [@pk2007](https://forum.kirupa.com/u/pk2007)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 2:25pm UTC](https://forum.kirupa.com/t/weird-compression-when-importing-jpgs/253917 "2008-03-06T14:25:09Z")

</div>

Hi all, Fairly new to Flash but I was wondering something. When I look at a jpg in Photoshop, the quality is fantastic and the white border is sharp. When I import that same jpg into flash and convert it to a button,…

---

## [Avoiding Error #1009 when loading external swf](https://forum.kirupa.com/t/avoiding-error-1009-when-loading-external-swf/253915)

<div class="topic-metadata">

**Author:** [@spasticfantastic](https://forum.kirupa.com/u/spasticfantastic)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 2:21pm UTC](https://forum.kirupa.com/t/avoiding-error-1009-when-loading-external-swf/253915 "2008-03-06T14:21:41Z")

</div>

Hello, I've often encountered this error when loading one swf into another, especially when loading papervision pv3d examples, and finally figured out why: when the loaded swf refers to stage anywhere in its startup se…

---

## [How can I detect my screen size...?](https://forum.kirupa.com/t/how-can-i-detect-my-screen-size/253913)

<div class="topic-metadata">

**Author:** [@chethan](https://forum.kirupa.com/u/chethan)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 1:04pm UTC](https://forum.kirupa.com/t/how-can-i-detect-my-screen-size/253913 "2008-03-06T13:04:24Z")

</div>

Hi All, Actaully I am running a cards game. While running the game in between if I change the style portrait to landscape... then how can I detect the screen size and run the game according the screen style (Portrait …

---

## [AS2:: Can actionscript close a browser window?](https://forum.kirupa.com/t/as2-can-actionscript-close-a-browser-window/253912)

<div class="topic-metadata">

**Author:** [@lilleypants](https://forum.kirupa.com/u/lilleypants)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 12:31pm UTC](https://forum.kirupa.com/t/as2-can-actionscript-close-a-browser-window/253912 "2008-03-06T12:31:37Z")

</div>

Quick question is it possible for perhaps actionscipt and javascript to work together to close a browser window? So when they click exit within flash it unloads the move and closes the browser window it is in? I've alr…

---

## [Button & movieclip problem](https://forum.kirupa.com/t/button-movieclip-problem/253910)

<div class="topic-metadata">

**Author:** [@goeiste](https://forum.kirupa.com/u/goeiste)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 12:15pm UTC](https://forum.kirupa.com/t/button-movieclip-problem/253910 "2008-03-06T12:15:57Z")

</div>

Hella all, I have a prblem with a movieclip that i would like to function as a button. If I just use the movieclip as a button, nothing happens. If I transform this movieclip in a button also nothing happens. But when …

---

## [How to record a mp3 sound in flash](https://forum.kirupa.com/t/how-to-record-a-mp3-sound-in-flash/253909)

<div class="topic-metadata">

**Author:** [@rajiv\_2109](https://forum.kirupa.com/u/rajiv_2109)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 12:02pm UTC](https://forum.kirupa.com/t/how-to-record-a-mp3-sound-in-flash/253909 "2008-03-06T12:02:11Z")

</div>

Hello ther, I'm using Flash 8 and Flash media Server to save an audio from a mic to the server. Actually the actionscript code is saving the recorded audio in flv format but i want it to be in mp3 format. Can s…

---

## [Calling a function with a button](https://forum.kirupa.com/t/calling-a-function-with-a-button/253907)

<div class="topic-metadata">

**Author:** [@Alber\_Kidd](https://forum.kirupa.com/u/Alber_Kidd)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 11:06am UTC](https://forum.kirupa.com/t/calling-a-function-with-a-button/253907 "2008-03-06T11:06:59Z")

</div>

Join Date: Sep 2007 Posts: 2 \[IMG\]http://www.actionscript.org/forums/images/icons/icon1.gif\[/IMG\] \*\*Calling a function within a class\*\* …

---

## [Downloading .mp4 format (not streaming!)](https://forum.kirupa.com/t/downloading-mp4-format-not-streaming/253905)

<div class="topic-metadata">

**Author:** [@Kotti](https://forum.kirupa.com/u/Kotti)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 10:14am UTC](https://forum.kirupa.com/t/downloading-mp4-format-not-streaming/253905 "2008-03-06T10:14:45Z")

</div>

Hi all, is it possible to download an .mp4 straight to the computer without it automatically opening a piece of software to stream it? Are there any scripts available that do this? Thanks \[smile\]

---

## [PHP redirect problem in IE7](https://forum.kirupa.com/t/php-redirect-problem-in-ie7/253904)

<div class="topic-metadata">

**Author:** [@onemhunki](https://forum.kirupa.com/u/onemhunki)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 10:12am UTC](https://forum.kirupa.com/t/php-redirect-problem-in-ie7/253904 "2008-03-06T10:12:06Z")

</div>

Hi folks, have a simple bit of code that when complete redirect the user to another page using php redirect. However the redirect in IE7 doesn't take the user to the other page, but the index page! I'm wracking my brai…

---

## [\[CS3\] Game Inventory Problems](https://forum.kirupa.com/t/cs3-game-inventory-problems/253902)

<div class="topic-metadata">

**Author:** [@gndagnor](https://forum.kirupa.com/u/gndagnor)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 9:12am UTC](https://forum.kirupa.com/t/cs3-game-inventory-problems/253902 "2008-03-06T09:12:46Z")

</div>

Hello, I've wanted to try making an inventory for a game I'm planning. Kinda got stuck a little. I'm trying to make the items get attached to some containers, following which items you clicked first. Here's a flash mov…

---

## [Flash AS3 and ASP.NET Controls](https://forum.kirupa.com/t/flash-as3-and-asp-net-controls/253900)

<div class="topic-metadata">

**Author:** [@gxm7](https://forum.kirupa.com/u/gxm7)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 7:13am UTC](https://forum.kirupa.com/t/flash-as3-and-asp-net-controls/253900 "2008-03-06T07:13:25Z")

</div>

\[FONT=Times New Roman\]Hi Folks,\[/FONT\] \[FONT=Times New Roman\] I have a fundamental question about how Flash movies with ActionScript 3 handle file and folder paths and about the AS3 execution process. I have a Flash …

---

## [Links inside loaded MC](https://forum.kirupa.com/t/links-inside-loaded-mc/253896)

<div class="topic-metadata">

**Author:** [@h8tobl8](https://forum.kirupa.com/u/h8tobl8)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 5:25am UTC](https://forum.kirupa.com/t/links-inside-loaded-mc/253896 "2008-03-06T05:25:07Z")

</div>

Hi, I am using flash8 and I am building a flash site that calls it's pages by using the loadMovie function. Inside those loaded movies are some links that I am trying to get to work. For some reason they work on the main…

---

## [SlideShow queastion](https://forum.kirupa.com/t/slideshow-queastion/253890)

<div class="topic-metadata">

**Author:** [@Daimz](https://forum.kirupa.com/u/Daimz)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 3:30am UTC](https://forum.kirupa.com/t/slideshow-queastion/253890 "2008-03-06T03:30:19Z")

</div>

I am wanting to build a website with a flash headed that has some(3-4) pieces of my art in it rotating like a slideshow. But I would also like it to have a forwards and backwards button as well as some method of showing …

---

## [Adding PHP Login to Admin Page](https://forum.kirupa.com/t/adding-php-login-to-admin-page/253889)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 3:03am UTC](https://forum.kirupa.com/t/adding-php-login-to-admin-page/253889 "2008-03-06T03:03:39Z")

</div>

I made some modifications to the following script: http://www.php-editors.com/articles/php\_textfile.php Now when a user is added to the textfile, the password is encrypted. Now I want to create a login page that acce…

---

## [Kirupa Scroll needs an anchor (code by Kirupa Chinnathambi)](https://forum.kirupa.com/t/kirupa-scroll-needs-an-anchor-code-by-kirupa-chinnathambi/253886)

<div class="topic-metadata">

**Author:** [@photoslocos](https://forum.kirupa.com/u/photoslocos)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 1:37am UTC](https://forum.kirupa.com/t/kirupa-scroll-needs-an-anchor-code-by-kirupa-chinnathambi/253886 "2008-03-06T01:37:57Z")

</div>

Hi all, I am actually using a scrollBar from here and it is working very well (there is a tutorial by Kirupa Chinnathambi about it on here - thanks!). However I need to modify it to go to a certain y position in certai…

---

## [attachMovie variables](https://forum.kirupa.com/t/attachmovie-variables/253884)

<div class="topic-metadata">

**Author:** [@doak](https://forum.kirupa.com/u/doak)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 1:30am UTC](https://forum.kirupa.com/t/attachmovie-variables/253884 "2008-03-06T01:30:41Z")

</div>

When I click on a button, I want to attach a movie from the library to (x,y) coordinates set up in the movie I'm attaching. To clear that up a bit: I have a movie clip in the library with a linkage name my\_mc. my\_mc …

---

## [Very Simple Question, Please Help!](https://forum.kirupa.com/t/very-simple-question-please-help/253881)

<div class="topic-metadata">

**Author:** [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 1:12am UTC](https://forum.kirupa.com/t/very-simple-question-please-help/253881 "2008-03-06T01:12:11Z")

</div>

Okay, I am new to Flash, and for some reason or another I cannot seem to get this simple function to work. I made this button, and set the function stop(); so that the video doesn’t play. Now I want it so that when you…

---

## [Can XML Hyperlink work in Flash](https://forum.kirupa.com/t/can-xml-hyperlink-work-in-flash/253879)

<div class="topic-metadata">

**Author:** [@showerx](https://forum.kirupa.com/u/showerx)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 12:32am UTC](https://forum.kirupa.com/t/can-xml-hyperlink-work-in-flash/253879 "2008-03-06T00:32:15Z")

</div>

I have a photo gallery that uses a XML file to hold captions for each photo. The captions are displayed in the slide show under each photo. I want to go into the XML file and edit the tag that holds the captions and pu…

---

## [\[AS 3.0\] Testing for even and uneven values](https://forum.kirupa.com/t/as-3-0-testing-for-even-and-uneven-values/253876)

<div class="topic-metadata">

**Author:** [@Ariff](https://forum.kirupa.com/u/Ariff)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 11:28pm UTC](https://forum.kirupa.com/t/as-3-0-testing-for-even-and-uneven-values/253876 "2008-03-05T23:28:01Z")

</div>

Hi, this has probably got a very simple solution, but i cant seem to find it... var i:int = 10; for ( var z:int = 0; z \<= i; z++) { if ( z = uneven ) { do this } if ( z = even ) { do this } } anyone got a quick…

---

## [Help: stuttering sound in FLV player](https://forum.kirupa.com/t/help-stuttering-sound-in-flv-player/253874)

<div class="topic-metadata">

**Author:** [@bassmo](https://forum.kirupa.com/u/bassmo)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 11:22pm UTC](https://forum.kirupa.com/t/help-stuttering-sound-in-flv-player/253874 "2008-03-05T23:22:36Z")

</div>

Hi, I have built a custom flv player for use in web pages and it works fine and dandy on some PC including min but on some PCs the sound stutters (mainly on IE, FF seems fine). This happens even when the vid is fully bu…

---

## [AJAX like search (based on senocular's Searching XML)](https://forum.kirupa.com/t/ajax-like-search-based-on-senoculars-searching-xml/253869)

<div class="topic-metadata">

**Author:** [@kantsanova](https://forum.kirupa.com/u/kantsanova)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 10:50pm UTC](https://forum.kirupa.com/t/ajax-like-search-based-on-senoculars-searching-xml/253869 "2008-03-05T22:50:33Z")

</div>

I am new to the forum although I have been visiting Kirupa for some time now. I used to be a fan, now I'm hoping I can contribute back a little. I recently began to work on an AJAX like search using Flash, sort of a se…

---

## [Deleting entry from text file](https://forum.kirupa.com/t/deleting-entry-from-text-file/253868)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 10:49pm UTC](https://forum.kirupa.com/t/deleting-entry-from-text-file/253868 "2008-03-05T22:49:03Z")

</div>

This relates to another post I have going - here's some PHP script that adds a user/password combination to a text file (encrypting the password): \<?php if (isset ($\_POST\['submit'\])) { $problem = FALSE; } if (empty …

---

## [Passable Variables : ActionScript 3.0](https://forum.kirupa.com/t/passable-variables-actionscript-3-0/253867)

<div class="topic-metadata">

**Author:** [@birdbrain24](https://forum.kirupa.com/u/birdbrain24)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 10:41pm UTC](https://forum.kirupa.com/t/passable-variables-actionscript-3-0/253867 "2008-03-05T22:41:54Z")

</div>

How can i create variables that exist in more then the frame it is created on in actionscript 3.0! I don't know if anyone has any PHP experience but in php you must use a Global "$\_SESSION" variable! I hope someone can h…

---

## [Dynamic Button Control Problem](https://forum.kirupa.com/t/dynamic-button-control-problem/253862)

<div class="topic-metadata">

**Author:** [@Lukus](https://forum.kirupa.com/u/Lukus)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 10:22pm UTC](https://forum.kirupa.com/t/dynamic-button-control-problem/253862 "2008-03-05T22:22:25Z")

</div>

Hey people I have the following code: // start eAR = new Array(); eAR\[0\] = new Array(-2.7, -127.8); eAR\[1\] = new Array(19.3, -121.4); eAR\[2\] = new Array(14.2, -103.3); eAR\[3\] = new Array(4.5, -105.1); eAR\[4\] = new A…

---

## [Adobe Air, AS3 and trace();](https://forum.kirupa.com/t/adobe-air-as3-and-trace/253861)

<div class="topic-metadata">

**Author:** [@Ricardinho](https://forum.kirupa.com/u/Ricardinho)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 10:17pm UTC](https://forum.kirupa.com/t/adobe-air-as3-and-trace/253861 "2008-03-05T22:17:14Z")

</div>

So ive just really got to grips with AS2 then AS3 kicks me right in the balls!! Im trying out a Air app where you simply drag and drop a jpg onto the app and it loads the jpg.. its from a flv tut from gotoandlearn.com. …

---

## [Vector Striped Background](https://forum.kirupa.com/t/vector-striped-background/253860)

<div class="topic-metadata">

**Author:** [@dColumbus](https://forum.kirupa.com/u/dColumbus)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 10:10pm UTC](https://forum.kirupa.com/t/vector-striped-background/253860 "2008-03-05T22:10:20Z")

</div>

Hey, Does anyone know how to create a background .swf like this: http://weblogs.macromedia.com/mc/archives/backgrounds/bluestripe.swf The Tile tutorial background doesn't adjust if the size of the swf is changed...

---

## [Detecting html tags](https://forum.kirupa.com/t/detecting-html-tags/253856)

<div class="topic-metadata">

**Author:** [@richjamison](https://forum.kirupa.com/u/richjamison)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 9:30pm UTC](https://forum.kirupa.com/t/detecting-html-tags/253856 "2008-03-05T21:30:53Z")

</div>

Does anyone know if there is a way to detect html tags that a swf is embedded inside of. The thinking here is that I could create a single swf file and depending on which page is being displayed the content within the sw…

---

## [Datagrid row selected](https://forum.kirupa.com/t/datagrid-row-selected/253855)

<div class="topic-metadata">

**Author:** [@simplesoul](https://forum.kirupa.com/u/simplesoul)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 9:24pm UTC](https://forum.kirupa.com/t/datagrid-row-selected/253855 "2008-03-05T21:24:27Z")

</div>

Hi I'm sure I'm just not seeing the wood for the trees here, but if you can help I'd be very grateful. I have a cs3(AS3) datagrid component and I'm tracking which row the user has selected by using ListEvent.ITEM\_CLI…

---

## [Using a USB Dance Mat as input for Flash 8](https://forum.kirupa.com/t/using-a-usb-dance-mat-as-input-for-flash-8/253851)

<div class="topic-metadata">

**Author:** [@cxth](https://forum.kirupa.com/u/cxth)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 8:38pm UTC](https://forum.kirupa.com/t/using-a-usb-dance-mat-as-input-for-flash-8/253851 "2008-03-05T20:38:47Z")

</div>

I am trying to use a dance mat as input for a university project. Does anyone have any idea how to do this? Thanks :ponder:

---

## [NativeWindow fine in ADL, non existant in release build](https://forum.kirupa.com/t/nativewindow-fine-in-adl-non-existant-in-release-build/253849)

<div class="topic-metadata">

**Author:** [@duncanhall](https://forum.kirupa.com/u/duncanhall)\
**Replies:** 0\
**Last updated:** [March 5, 2008, 8:20pm UTC](https://forum.kirupa.com/t/nativewindow-fine-in-adl-non-existant-in-release-build/253849 "2008-03-05T20:20:22Z")

</div>

I've been developing my first AIR application for the last week, and all was going well until the very last hurdle. I'm using FDT3 and ANT, along with the Flex SDK to develop and test my application. When running in ADL,…

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

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