Re: [Flashcoders] adding value of radiobutton to number in resultTxt.text field.. help please

2008-05-20 Thread Hans Wichman
Hi, read a programming or flash manual, or subscribe to the newbie list. This is not meant harshly but these questions are so basic that you are doing yourself (and us) a favor by sharpening your axe before you set off in the woods. You do: resultTxt.text = parseInt(resultTxt.text) +

[Flashcoders] firefox, upload, ssl, fl8... bug ?

2008-05-20 Thread Guillaume Bedleem
Hi coders, it appears that the subject is not a new one, but I'm stuck with this, so may be someone know the answer and can post it here ? The problem : When trying to upload a file, under fl8, with firefox and https protocol the upload doesn't work. The stucking element is firefox since it

[Flashcoders] AS3 - Upload image problem

2008-05-20 Thread SJM - Flash
Hi guys im having problems with uploading an image, i cant seam to get it to work! Most of the code is from the help files but still no joy! Any ideas... public function uploadImage( ev:MouseEvent ):void { uploadURL = new URLRequest(); uploadURL.url = _mainClass._imgUploadURL;

Re: [Flashcoders] AS3 - Upload image problem

2008-05-20 Thread Glen Pike
http://www.tink.ws/blog/a-round-trip-with-filereference/ SJM - Flash wrote: Hi guys im having problems with uploading an image, i cant seam to get it to work! Most of the code is from the help files but still no joy! Any ideas... public function uploadImage( ev:MouseEvent ):void {

Re: [Flashcoders] AS3 - Upload image problem

2008-05-20 Thread SJM - Flash
Glen is that not for AS2? - Original Message - From: Glen Pike To: Flash Coders List Sent: Tuesday, May 20, 2008 12:30 PM Subject: Re: [Flashcoders] AS3 - Upload image problem http://www.tink.ws/blog/a-round-trip-with-filereference/ SJM - Flash wrote: Hi guys im

Re: [Flashcoders] AS3 - Upload image problem

2008-05-20 Thread Glen Pike
Apologies, it is. You need to add listeners for all the events that FileReference dispatches. At a minimum you need to listen for the select event to begin uploading: file.addEventListener(Event.SELECT, selectHandler); Here is a link to the Flex 2 langref with an example that adds all the

Re: [Flashcoders] AS3 - Upload image problem

2008-05-20 Thread Jimbo
Here's one if you don't want to roll your own- it's really easy to customize: http://www.flepstudio.org/english/utilities/free-utilities/flash-cs3-uploader-_-free-utility-2007073189.html jimbo *** REPLY SEPARATOR *** On 5/20/2008 at 12:44 PM SJM - Flash wrote: Glen is that not

[Flashcoders] AS2: attaching movieclips in custom classes

2008-05-20 Thread Allandt
hi Is it possible to attach a movieclip in a custom class in actionscript 2? here is an example class com.BannerApp extends MovieClip { //Constructor public function BannerApp() { // clip structure for movies var mcBackground:MovieClip = this.attachMovie(mcBackground,

[Flashcoders] stack overflow in IE ?

2008-05-20 Thread Andrei Thomaz
dear list, I made two little (experimental) games in AS3. Both uses a maze generation algorithm. To avoid a small freezing and messages like script running too slowly, I broke the algorithm in small steps. So, in each frame, it generates a room of the maze. You can see it at:

[Flashcoders] Anyone have Alducente's AS3 gofr 1.5?

2008-05-20 Thread eric e. dolecki
Anyone have Alducente's gofr 1.5 AS3 Web Service stuff? I went to download it and the main site is down. Was hoping someone here has it. - Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] Fullscreen Flash Video

2008-05-20 Thread Sander Schuurman
Hi people, On some sites I do see some really smooth fullscreen video action... What's the best way of doing this. What are the points to look out for... - encodingwise? - Using netstream? - Using bitmap(data) objects? Like for example

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread jonathan howe
Andrei, It also crashed in Firefox 2.0.0.14 Vista PC with FP 9,0,124,0. -jonathan On Tue, May 20, 2008 at 8:58 AM, Andrei Thomaz [EMAIL PROTECTED] wrote: dear list, I made two little (experimental) games in AS3. Both uses a maze generation algorithm. To avoid a small freezing and messages

[Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread eric e. dolecki
I am looking to take a DO (movieclip), and stretch just the side edges, leaving the middle unstretched... so take an image, cut in 4 vertical pieces, and stretch the outside pieces out horizontally by like 15%. I could use DisplayObjects above the main one and just stretch those horizontally, but

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread Andrei Thomaz
dear Jonathan, in my computer, with the same versions of Firefox and FP, also under Vista, it runs fine. What worries me is that it doesn't use recursion, just some nested loops, used when the algorithm ends. thank you, andrei On Tue, May 20, 2008 at 10:28 AM, jonathan howe [EMAIL PROTECTED]

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread EECOLOR
Are you using LocalConnection by any chance? Greetz Erik On 5/20/08, Andrei Thomaz [EMAIL PROTECTED] wrote: dear Jonathan, in my computer, with the same versions of Firefox and FP, also under Vista, it runs fine. What worries me is that it doesn't use recursion, just some nested loops,

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread Rob Romanek
FYI Also crashes under OSX 10.5.2, Safari 3.1, FP 9,0,115,0 On 20-May-08, at 10:13 AM, Andrei Thomaz wrote: dear Jonathan, in my computer, with the same versions of Firefox and FP, also under Vista, it runs fine. What worries me is that it doesn't use recursion, just some nested loops,

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread Andrei Thomaz
no, I'm not using LocalConnection. I will translate the code (it uses portuguese names for variables and functions), and will post it soon. thank you, andrei On Tue, May 20, 2008 at 11:45 AM, EECOLOR [EMAIL PROTECTED] wrote: Are you using LocalConnection by any chance? Greetz Erik On

Re: [Flashcoders] AS3 - Upload image problem

2008-05-20 Thread SJM - Flash
Thanks Glen ive added listener and seams to be ok! Need to test a live version now tho! - Original Message - From: Glen Pike To: Flash Coders List Sent: Tuesday, May 20, 2008 12:53 PM Subject: Re: [Flashcoders] AS3 - Upload image problem Apologies, it is. You need to

Re: [Flashcoders] AS3 - Upload image problem

2008-05-20 Thread SJM - Flash
Cheers Jimbo, i downloaded this file to see what i was missing from mine, added the listenor Glen was taling about and alls well! :o) - Original Message - From: Jimbo To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 20, 2008 1:02 PM Subject: Re: [Flashcoders] AS3 -

Re: [Flashcoders] AS3 - Upload image problem

2008-05-20 Thread Glen Pike
Hi, If you are using PHP, remember to use the getimagesize() function to add a bit of security to your upload script - if someone is trying to spoof the image, it can add an extra level of security - possibly not foolproof, but pretty good. It's something like

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread Kenneth Kawamoto
Not sure if it's related to the crash but your movie generates null object reference error. Kenneth Kawamoto http://www.materiaprima.co.uk/ Andrei Thomaz wrote: dear list, I made two little (experimental) games in AS3. Both uses a maze generation algorithm. To avoid a small freezing and

Re: [Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread Rich Shupe
Eric, if you're saying you want to manipulate the first and last 15% of a display object without creating anything else, I don't think that's possible. The closest I can think of that will accomplish that is using a displacement map filter in conjunction with resizing. That might get you what you

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread Andrei Thomaz
dear Kenneth, I would like to ask you to send me the output of flash palyer. I can't reproduce the null object reference error here. I tried using test movie in flash cs3 and also with flash player debug + firefox. thank you, andrei On Tue, May 20, 2008 at 1:09 PM, Kenneth Kawamoto [EMAIL

Re: [Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread eric e. dolecki
While I don't seem to be able to do this easily, I am applying scale9grid to sorta do what I want. I was hoping for incremental stretching on the sides... maybe that is something I'll be able to do using a hydra filter or something in FP10. On Tue, May 20, 2008 at 12:47 PM, Rich Shupe [EMAIL

Re: [Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread Steven Sacks
Maybe this will work? Make two copies of the original MovieClip (if you're loading an image, load it once into the first clip, then when it's done loading, load it into the two others) for a total of three. Mask the left and right pieces to the width you want to show. Mask the middle

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread Kenneth Kawamoto
TypeError: Error #1009: Cannot access a property or method of a null object reference. at labirintos_invisiveis::VitoriaMc/inicializaInterface() at labirintos_invisiveis::VitoriaMc/frame15() FP 9.0.115.0 on FF 2.0.0.14 on Mac OS 10.5.2 (I like the game, by the way :) Kenneth

Re: [Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread eric e. dolecki
That was going to be an approach... and I would apply the stretch to the sides loaded in on top by hand in Photoshop (cementing the effect -- bad voodoo there). Then I thought it might be cool to do it using the BitmapData class somehow instead so I didn't need to worry about any cleanup, etc. as

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread Meinte van't Kruis
The last time I had a flash version crashing problem, I simply installed the version it crashed on and simply commented/uncommented untill I had the problem. It sounds like a lot of work, but actually, it's not so bad. Maybe you can solve it this way. On Tue, May 20, 2008 at 7:06 PM, Andrei

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread Meinte van't Kruis
im on 9.0.115, works like a charm. one thing I forgot to mention; WIth my problem the problem was indeed the flash player, I doubt if it's the browser doing the messup. On Tue, May 20, 2008 at 8:08 PM, Meinte van't Kruis [EMAIL PROTECTED] wrote: The last time I had a flash version crashing

Re: [Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread Rich Shupe
You can almost certainly write a Hydra filter for this. You can do it AS-native with BitmapData. 9-slice scaling can't do what you're hoping for, as I understand it. It will only scale the top and bottom centers when scaling left and right, the left and right centers when scaling up and down, the

Re: [Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread eric e. dolecki
crud. anyone remember how to load a filter? ;) On Tue, May 20, 2008 at 2:27 PM, Rich Shupe [EMAIL PROTECTED] wrote: You can almost certainly write a Hydra filter for this. You can do it AS-native with BitmapData. 9-slice scaling can't do what you're hoping for, as I understand it. It will

[Flashcoders] very easy question

2008-05-20 Thread Gustavo Duenas
Hi I'm trying to so some thing on as3, this one is very simple. I'm trying to read an external file but it seems that I'm doing something wrong. this is my code: var loader:URLLoader = new URLLoader(new URLRequest(http:// leftandrightsolutions.com/txt/whoweare.txt)); loaderText.text=

[Flashcoders] Retrieving URL params gets truncate in ActionScript2

2008-05-20 Thread ACE Flash
Hey there, I was trying to figure out how to handle this in Action Script 2, the url link string gets truncate and stops at test=1. It's weird, is there any limitation for handle this in AS2? Thanks === action script in test.swf == // reads url links from FlashVars in

[Flashcoders] Re: Retrieving URL params gets truncate in ActionScript2

2008-05-20 Thread ACE Flash
humm I have tried to put the string in [ ] 'flashvars':'link=[http://www.google.com?test=1test2=2test3=3test4=4]http://www.google.com/?test=1test2=2test3=3test4=4 ' it still search from link= and stop on the frist params which is test=1 in this case. Is there any way to handle this in AS2?

Re: [Flashcoders] very easy question

2008-05-20 Thread jonathan howe
Gustavo, You can't assume that the file is loaded at the moment you ask for it (the code does not stop and wait). You must add an event listener and wait for it to be triggered. See the Actionscript 3.0 View examples section:

Re: [Flashcoders] very easy question

2008-05-20 Thread Eduardo Omine
Try this: var loader:URLLoader = new URLLoader(); loader.load(new URLRequest(http://leftandrightsolutions.com/txt/whoweare.txt;)); -- Eduardo Omine http://blog.omine.net/ http://www.omine.net/ ___ Flashcoders mailing list

Re: [Flashcoders] Re: Retrieving URL params gets truncate in ActionScript2

2008-05-20 Thread jonathan howe
Hi, Ditch the brackets and escape your ampersands. I think it's %26. Since you can pass multiple variables to flash vars, you're actually getting variables in your root named test2, test3 etc. -jonathan On Tue, May 20, 2008 at 3:33 PM, ACE Flash [EMAIL PROTECTED] wrote: humm I have tried to

Re: [Flashcoders] Retrieving URL params gets truncate in ActionScript2

2008-05-20 Thread Juan Pablo Califano
The problem seems to be in what Javascript is sending to the swf. Try url encoding the link with the escape function in JS. Something like: 'flashvars':escape('link= http://www.google.com?test=1test2=2test3=3test4=4') Cheers Juan Pablo Califano 2008/5/20, ACE Flash [EMAIL PROTECTED]: Hey

[Flashcoders] bitmapdata animation resources

2008-05-20 Thread Jason Van Pelt
Can anyone recommendt good resources (websites and/or books) for animating with bitmapdata? Thanks, Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com ___ Flashcoders mailing

Re: [Flashcoders] very easy question

2008-05-20 Thread Gustavo Duenas
ok, when I trace this instead of the text it shows [target.object] it is a html xml formatted page, it is supposed to show in other way right? regards, guatvo On May 20, 2008, at 3:48 PM, Eduardo Omine wrote: Try this: var loader:URLLoader = new URLLoader(); loader.load(new

Re: [Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread Rich Shupe
Eric, I know this isn't the root of what you were asking, but here's a class by Thibault Imbert that brings 9-slice scaling to bitmaps. Not on point, but related: http://www.bytearray.org/?p=118 And if anyone is interested, donate to his book. And if there are any fluent French speakers willing