[Flashcoders] Access Amazons Simple storage S3

2008-03-07 Thread Barry Duggan
Hi Has anyone got experience with using flash and Amazons S3? What I have to do is send this key to amazon http://webdeploy/r/mixes/mixreq.aspx?username=+username+mixname=+mixname, _parent; Amazon then returns a unique key to me. I've been trying to use getURL method but all that does is open

[Flashcoders] pixelizing a bitmap

2008-03-07 Thread Andrei Thomaz
hello list, I am making some tests to discover if it is possibile to pixelize a bitmap with AS3, with a reasonable speed. I wrote the code below, but it works only with images until 50x50 (in a quadcore). You can see the effect http://www.andreithomaz.com/labs/files/pixel/teste1.html. I would

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Glen Pike
Hi, Would it not be quicker to shrink the source bitmap to a size that is proportional to the pixelized square size, copy the pixels into a destination bitmap, then scale the destination back to the original size? Not sure if that works, but just a suggestion. Glen Andrei Thomaz

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Zeh Fernando
You want to create a mosaic-like effect? Forget getPixel/setPixel/drawrect.. it'll be too slow. Instead, you should let Flash handle it by creating new Bitmaps, shrinking the image inside it, drawing that to a new bitmapdata, and then using that new bitmapdata on the original size. Zeh

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Andrei Thomaz
hello glen, it worked fine, thank you. Scaling the bitmaps produces a more discrete animations (i.e., it is not so continuous; the pixel size is incremented in such a way that there is no small pixels at the corners), but, for what I have to do, that is not a problem:

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Andrei Thomaz
I need to create an animation, increasing the pixel size. The Glen's suggestion (the same you game) worked fine. Thank you. andrei On Fri, Mar 7, 2008 at 11:17 AM, Zeh Fernando [EMAIL PROTECTED] wrote: You want to create a mosaic-like effect? Forget getPixel/setPixel/drawrect.. it'll be

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Muzak
Does this help? http://www.flash-db.com/Tutorials/transitions/transition.php regards, Muzak - Original Message - From: Andrei Thomaz [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, March 07, 2008 2:31 PM Subject: [Flashcoders] pixelizing a

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Muzak
Also have a look at some of these: http://www.zeropointnine.com/blog/actionscript-halftone-effect http://www.zeropointnine.com/blog/bitmap-pixel-dissolve regards, Muzak - Original Message - From: Andrei Thomaz [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] LoaderContext question

2008-03-07 Thread Dave Segal
I am getting a type Coercion error. TypeError: Error #1034: Type Coercion failed Really the whole goal here is to be able to load swfs (from a different server) that implement some public api. Then have the loading swf cast the loaded swf to that api, so code hints and type checking are

[Flashcoders] visible area of content in V2 ScrollPane

2008-03-07 Thread Mendelsohn, Michael
Hi list... Within a V2 ScrollPane, I'm trying to figure out what the top edge and bottom edge of the content's visible area are. Anyone have an idea? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] visible area of content in V2 ScrollPane

2008-03-07 Thread Piers Cowburn
Hi Michael, The top value is ScrollPane.vPosition, the bottom will be ScrollPane.vPosition + ScrollPane.height HTH, Piers On 7 Mar 2008, at 20:29, Mendelsohn, Michael wrote: Hi list... Within a V2 ScrollPane, I'm trying to figure out what the top edge and bottom edge of the content's

[Flashcoders] Using States, MXML, Events, O' My

2008-03-07 Thread Anthony Cintron
I have a question about MXML and ActionScript and how they communicate with each other. I'm working with the State tage to change views. I have a Class called SpacePorter; it has 4 buttons that dispatchEvents( MyButton.BUTTON_CLICKED). Space Porter is instantiated into my Home Class. Home class

RE: [Flashcoders] Using States, MXML, Events, O' My

2008-03-07 Thread Merrill, Jason
If your button in the custom class is broadcasting an event, say for an example, and event called changed, you can add an event listener in a script tag in the main MXML. A snippet would be: private function addListeners():void {

RE: [Flashcoders] Using States, MXML, Events, O' My

2008-03-07 Thread Merrill, Jason
In addition, your custom class can take a reference to the main Flex MXML class and use that to change the state right within the class (though this is not good encapsulation practice!) To do that, (and I don't know why I'm recommending it bad idea architecturally...but oh well) you would

[Flashcoders] Debugging as3

2008-03-07 Thread Helmut Granda
Would there be any reason why some code would work on one server and the same code would not work on another server? I have an application that is working properly in flash IDE, testing local html and testing server. but once it goes live to a different server some things do not function properly.

Re: [Flashcoders] Debugging as3

2008-03-07 Thread Steven Sacks
Helmut Granda wrote: some things do not function properly. Can you be more specific? What things? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Debugging as3

2008-03-07 Thread Merrill, Jason
Elaborate on what the code looks like that has the problem. Without seeing what you're trying to do, the only reasons I can think of are all external to the Flash player - Actionscript that calls external stuff and therefore you can have problems with case (Unix for example, is very

Re: [Flashcoders] Debugging as3

2008-03-07 Thread Helmut Granda
thanks guys this is the code in question: -- private function alignBases ( ) : void { for ( var i : uint = 0 ; i numButtons ; i ++ ) { var btn: Object ; var optionBtn: String ;

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Andrei Thomaz
hello Muzak, thanks for the links. They made me think that what makes the pixelize effect so slow are the division need to get the middle value of r, g and b components of the color. I guess I will stay with the scaling bitmaps solution. best regards, andrei On Fri, Mar 7, 2008 at 12:23 PM,

Re: [Flashcoders] Using States, MXML, Events, O' My

2008-03-07 Thread Anthony Cintron
The custom class that has the button event is a composite class inside another class (we'll call that MainInterActive class). MainInterActive is than instantiated in a main mxml application inside a state node. I could try what you mentioned but the composite classes' buttons are not really

Re: [Flashcoders] Access Amazons Simple storage S3

2008-03-07 Thread Jason Van Cleave
you probably have to use a LoadVars.sendAndLoad On Fri, Mar 7, 2008 at 4:28 AM, Barry Duggan [EMAIL PROTECTED] wrote: Hi Has anyone got experience with using flash and Amazons S3? What I have to do is send this key to amazon http://webdeploy/r/mixes/mixreq.aspx?username=

Re: [Flashcoders] Debugging as3

2008-03-07 Thread Helmut Granda
Well after hours and hours and hours the problem was the server, so it is all fixed now and the code works properly. Thanks again. On 3/7/08, Helmut Granda [EMAIL PROTECTED] wrote: thanks guys this is the code in question: -- private function alignBases ( ) : void