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
___
Flashcoders mailing
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
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 installed
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:
CODE
package com.receptacle.drawingtest
{
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
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 class,
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's
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
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
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:
CODE COR
package
{
import flash.display.*;
import flash.text.TextField;
import
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
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
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
-
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:
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:
CODE
package com.receptacle.drawingtest
{
import
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
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
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
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'
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).
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 -
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 understand
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
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
24 matches
Mail list logo