Re: [Flashcoders] BitmapData.paletteMap ()

2008-02-27 Thread Elia Morling
Thanks. I guess nobody is using the paletteMethod? It's strange that there exists such a function with no functions for retrieving the original palette for manipulation? I asked earlier on the list if BitmapData is converted to 16 bit. One guy thought I was an idiot and another said no. Seemed

[Flashcoders] Re: Help Needed. UILoader coordinate track problem on MOUSE_UP

2008-02-27 Thread anuj sharma
Never Mind problem has been fixed. I have to pass the correct container. Thanks for ur patience & Help Anuj On Wed, Feb 27, 2008 at 11:14 AM, anuj sharma <[EMAIL PROTECTED]> wrote: > Hi again > I have fixed this problem. Basically I was moving the UIloader but when i > tried to move the container

Re: [Flashcoders] BitmapData.paletteMap ()

2008-02-27 Thread Juan Pablo Califano
Perhaps you could read just the palette info from the image file instead of looping through the bitmapdata to gather that data. That could be more or less challenging depending on the file format of the image. Cheers Juan Pablo Califano 2008/2/27, EECOLOR <[EMAIL PROTECTED]>: > > So if I underst

Re: [Flashcoders] BitmapData.paletteMap ()

2008-02-27 Thread Elia Morling
Thanks Erik for looking into this. I don't understand how anyone can use the paletteMap method without knowing what order the colors in the palette are in? Are the colors always in the order as your loop? In photoshop a palette can be arranged in any way. Elia - Original Message - Fr

Re: [Flashcoders] BitmapData.paletteMap ()

2008-02-27 Thread EECOLOR
So if I understand you correctly, your question actually is: "how do I find out which colors are used in my bitmap data?". I am sorry to disappoint you, but I do not have an answer for you. The only solution I could come up with is looping through the pixels (see the code at the end of the email).

RE: [Flashcoders] Any issues with Safari Mac and mouse movement detection?

2008-02-27 Thread Paul Steven
Sorry I have now realised it is a mac problem in general and not Safari mac specific. Seems like flash runs alot more sluggish on a mac. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven Sent: 27 February 2008 07:23 To: 'Flash Coders List' Sub

[Flashcoders] Re: Help Needed. UILoader coordinate track problem on MOUSE_UP

2008-02-27 Thread anuj sharma
Hi again I have fixed this problem. Basically I was moving the UIloader but when i tried to move the container which contains the UIloader then it is moving wherever i want to. Actually I have the main stage which contains the container of type Sprite and that container contains UILoader which cont

Re: [Flashcoders] quick scoping question

2008-02-27 Thread Allandt Bik-Elliott (Receptacle)
thanks for the advice a On 27 Feb 2008, at 18:18, Muzak wrote: The constructor should be as empty as possible. package com.receptacle.drawingtest{ import flash.display.*; import flash.text.TextField; import flash.events.MouseEvent; public class GreetingApp extends Sprite { public function

Re: [Flashcoders] quick scoping question

2008-02-27 Thread Muzak
The constructor should be as empty as possible. package com.receptacle.drawingtest{ import flash.display.*; import flash.text.TextField; import flash.events.MouseEvent; public class GreetingApp extends Sprite { public function GreetingApp() { draw(); } private function draw() { var r

Re: [Flashcoders] quick scoping question

2008-02-27 Thread Allandt Bik-Elliott (Receptacle)
ah yeh - thanks - i'm still getting used to access-control just out of interest - the GreetingApp is my class constructor method, would you still say that it should not have any functions within it? repurpose of my old code: package com.receptacle.drawingtest { import flash.displa

Re: [Flashcoders] quick scoping question

2008-02-27 Thread Allandt Bik-Elliott (Receptacle)
thankyou :) On 27 Feb 2008, at 16:12, Cor wrote: That was what I basicly meant -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Allandt Bik-Elliott (Receptacle) Verzonden: woensdag 27 februari 2008 17:03 Aan: Flash Coders List Onderwerp: Re: [Flashcode

Re: [Flashcoders] quick scoping question

2008-02-27 Thread Muzak
Casting is not hacky, it's how things are done in AS3. Get rid of the nested function though. public function GreetingApp() { } protected function m(evt:MouseEvent):void{ } not public function GreetingApp() { function m(evt:MouseEvent):void{ } } regards, Muzak - Or

RE: [Flashcoders] quick scoping question

2008-02-27 Thread Cor
That was what I basicly meant -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Allandt Bik-Elliott (Receptacle) Verzonden: woensdag 27 februari 2008 17:03 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] quick scoping question however trying this did w

Re: [Flashcoders] quick scoping question

2008-02-27 Thread Allandt Bik-Elliott (Receptacle)
however trying this did work function m(evt:MouseEvent):void { setChildIndex(evt.target as Sprite, numChildren-1); } On 27 Feb 2008, at 15:25, Cor wrote: I made a minor adjustment because

Re: [Flashcoders] quick scoping question

2008-02-27 Thread Allandt Bik-Elliott (Receptacle)
thanks for the input, Cor... hmmm didn't work for me On 27 Feb 2008, at 15:25, Cor wrote: I made a minor adjustment because you have to typecast these to a Sprite: package { import flash.display.*; import flash.text.TextField; import flash.events.MouseEvent;

RE: [Flashcoders] quick scoping question

2008-02-27 Thread Cor
Yes, I see. Sorry, I misunderstood. -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Allandt Bik-Elliott (Receptacle) Verzonden: woensdag 27 februari 2008 16:53 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] quick scoping question i've amended my func

Re: [Flashcoders] quick scoping question

2008-02-27 Thread Allandt Bik-Elliott (Receptacle)
i've amended my function to be function m(evt:MouseEvent):void { setChildIndex(DisplayObject(evt.target), numChildren-1); } which works but forcing the object type seems a bit hacky to me an

RE: [Flashcoders] quick scoping question

2008-02-27 Thread Cor
I made a minor adjustment because you have to typecast these to a Sprite: package { import flash.display.*; import flash.text.TextField; import flash.events.MouseEvent; public class GreetingApp extends Sprite { public function Gree

RE: [Flashcoders] quick scoping question

2008-02-27 Thread Cor
Yes, you can. But you are referring to THIS and that is the class instance. So use the .target property of the object send by the mouse event. HTH -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Allandt Bik-Elliott (Receptacle) Verzonden: woensdag 27 febru

Re: [Flashcoders] Flex Disables Browser Scrollbars?

2008-02-27 Thread EECOLOR
I think a better answer will be given on the flexcoders mailing list. Greetz Erik On 2/27/08, Elia Morling <[EMAIL PROTECTED]> wrote: > > How do I make it so that the html that flex generates doesn't disable the > browser scrollbards? > I have located the lines of html code that does this, but it

Re: [Flashcoders] Flex only generates errors for my Document Class, but not in any other AS file

2008-02-27 Thread EECOLOR
Make sure your classes are referenced from your document class. Greetz Erik On 2/26/08, Johan Nyberg <[EMAIL PROTECTED]> wrote: > > Hi, I was wondering if anyone has encountered this problem: I use Flex > as an IDE when developing flash. When I code, Flex only displays > errors in my document c

[Flashcoders] quick scoping question

2008-02-27 Thread Allandt Bik-Elliott (Receptacle)
hi guys i'm playing with some as3 to get my head around it and i've come across a little wierdness in the drawing api that i hope you can shed some light on here is my script - it's an amended version of one from Essential Actionscript: package com.receptacle.drawingtest { imp

[Flashcoders] BitmapData.paletteMap ()

2008-02-27 Thread Elia Morling
As indicated in earlier post I need to swap the palettes of a bitmapdata. "public function paletteMap(sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, redArray:Array = null, greenArray:Array = null, blueArray:Array = null, alphaArray:Array = null):void Remaps the color chann

[Flashcoders] Flex Disables Browser Scrollbars?

2008-02-27 Thread Elia Morling
How do I make it so that the html that flex generates doesn't disable the browser scrollbards? I have located the lines of html code that does this, but it's tedious to manually change them. Thanks Elia ___ Flashcoders mailing list Flashcoders@chatt

Re: [Flashcoders] AIR publishing problems

2008-02-27 Thread Charles Parcell
The answer to your question is what this article is all about. http://www.adobe.com/devnet/air/flash/articles/air_flash_developers.html Charles P. On Tue, Feb 26, 2008 at 4:21 PM, dave matthews < [EMAIL PROTECTED]> wrote: > > hi All, > > FlashCS3 with the newly released AIR additions installe

Re: [Flashcoders] Re: RangeError: Error #2006: The supplied index is out of bounds.

2008-02-27 Thread EECOLOR
You can use numChildren to check how many children a DisplayObjectContainer has. Greetz Erik On 2/26/08, anuj sharma <[EMAIL PROTECTED]> wrote: > > I will loop it and see what will happen > Thanks a lot for all your help > > Anuj > > > > ___ Flashcoder