RE: [Flashcoders] Delegate scope - superclass issue?

2005-11-29 Thread Nikolaj Selvik
Yes, turns out an older version of the superclass was compiled into a different 
loaded swf. Sorry bout that.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: den 28 november 2005 18:07
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Delegate scope - superclass issue?

I've never had that problem.

Try removing the this from this.myFunction. Shouldn't make any
difference - but I don't use it, and, as I said, I don't have the problem.
:-)

HTH,
  Ian

On 11/28/05, Nikolaj Selvik [EMAIL PROTECTED] wrote:

 Hi,

 Thanks for welcoming me to your list!

 I´ve run into a problem using MM's delegate class, couldn't find any info
 on this particular issue so here goes:

 Example:

 mySubClass inherits from mySuperClass

 In mySubClass I have:

 myObject.addEventListener(click,Delegate.create(this, this.myFunction));

 works fine if myFunction is defined in mySubclass, just as it should,
 but not if Its defined in mySuperClass. Why?


 Best Regards,

 Nick
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] SOAP HTTP 500 header

2005-11-29 Thread Nikolaj Selvik
Hi all,

Having a bit of a problem using SOAP and Flash - The SOAP 1.1 specifications 
say the SOAP HTTP server MUST issue an HTTP 500 Internal Server Error response 
in case of a SOAP error, but Flash´s XML (and loadVars) Objects won't parse 
the data when a 500 header is returned. This way there is no way I can access 
the error data on the client, which happens to be exacly what I need to do... 
Did anyone here run into this issue? Is there a way to force the player to read 
the data, regardless of header?

Thanks,

Nick

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] How to get colour of text formatted with CSS

2005-11-29 Thread Nikolaj Selvik
var yourStyle:Object = yourStyleSheet.getStyle(yourStyleName);

then get

yourStyle.[color];


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim
Stickland
Sent: den 29 november 2005 14:14
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] How to get colour of text formatted with CSS

Hi

Does anyone know if it's possible to read the text colour specified in
an
externally loaded CSS style?

Cheers
Tim
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Import in superclass

2005-12-07 Thread Nikolaj Selvik
Hi all,

I've been aware of the fact that i can't use import statements in a
superclass and then use the imported class in the subclass, however, I
always thought of it as being an issue with the compiler not knowing it
should import the class when an instance of the imported class was not
defined in the superclass.

Now, when encountering this problem again I thought I could solve it by
simply defining a dummy instance in the superclass, but with no
success. The compiler still cant find the class... Is this really the
way it should work? Shouldn't you be able to use import statements in
superclasses this way?

Short example:


///

class a.as:


///

class package.a
{
var somevar:Number = 11;
}


///

class b.as:


///

import package.a;

class b
{
var myA:a;

function b()
{
myA = new a();
trace(myA.somevar); //OK (ofcourse)
}
}


///

class c.as:


///

class c extends b
{

var myA:a;

function c()
{
myA = new a();
trace(myA.somevar); //NOT OK (why?)
}

}

Thanks,

Nick


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] CSS styles vs. TextFormat

2005-12-08 Thread Nikolaj Selvik
You cant use CSS styles when working with input textfields, so, in an
application where you use CSS for text styling you would have to convert
the styles to textformats when styling input textfields. That is one
situation where you would have to use TextFormat.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of GregoryN
Sent: den 8 december 2005 09:37
To: Flashcoders mailing list
Subject: [Flashcoders] CSS styles vs. TextFormat

Hello Flashcoders,

It is possible to replace CSS with  TextFormat object using
styleSheet.transform() .

I'd like to know, what are advantages (if any) of using  TextFormat
instead of CSS ?

I'm creating multiple text fields and want to apply tweening to them,
so the question above is especially interesting in coordination with
embedded fonts.

Thanks in advance.

-- 
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Object path to string

2006-04-10 Thread Nikolaj Selvik
Hi all,

I need to convert an Object path, for example 

data.item[3].description.short

To a string:

data.item[3].description.short


Something like the targetpath() MovieClip method, but for a basic
Object.
I reckon you'd need to loop through the object backwards but was hoping
to find a function written for this purpose already. No luck yet though.
Anyone?

BR,

Nick

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] RGB circles animation needed

2006-05-10 Thread Nikolaj Selvik
In Flash 8 you could use the Add blending mode. Of course, the
background would have to be black to get the desired blending.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Boyd (MMCR)
Sent: den 10 maj 2006 12:56
To: 'Flashcoders mailing list'
Subject: [Flashcoders] RGB circles animation needed

Need to produce an animation of the 3 RGB colour circles merging to
produce
yellow, cyan and magenta then white in the middle. Any idea how to do
this
or know of any examples showing this.
 
Thx
 
Kevin Boyd
Multimedia Creations Ltd.
www.mmcr.co.uk http://www.mmcr.co.uk/ 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] JPEG compression for PNG details

2006-07-05 Thread Nikolaj Selvik
Hi all,

Wondering if someone here could provide or point me in the direction of
details on the inner workings of jpeg compression for png images in the
swf format? I am particularly interested in how the alpha channel in the
PNG is translated and stored. 

Thanks!

Nick
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] JPEG compression for PNG details

2006-07-05 Thread Nikolaj Selvik
Thank you!

Exactly the verification I needed. Perhaps I could ask for a
recommendation when it comes to a PNG to SWF batch converter as well?
Seems to be quite a few out there.

Thanks again.

Nick


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh
Fernando
Sent: den 5 juli 2006 15:14
To: Flashcoders mailing list
Subject: Re: [Flashcoders] JPEG compression for PNG details

 Wondering if someone here could provide or point me in the direction
of
 details on the inner workings of jpeg compression for png images in
the
 swf format? I am particularly interested in how the alpha channel in
the
 PNG is translated and stored.

When you import a PNG image with an alpha channel and select it to use
JPEG 
compression when exporting, the RGB data is saved as a JPEG, but the
alpha 
channel is still stored as a lossless, lzw data. That means that if your

image's transparency is too complex, it will still be too big, no matter

what the JPEG quality you select.

The only workaround possible is simplifying the transparency -
basically, 
it's the same kind of workaround you'd apply to a grayscale GIF image...

using less levels of colors, avoiding dithering, etc.


- Zeh 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


SV: [Flashcoders] UML Diagram generator

2006-12-20 Thread Nikolaj Selvik
If you want it for free, you can use doxygen in combination with graphviz, 
needs a little tweaking to work flawlessly with AS2 but I´ve had great use of 
it.



Från: [EMAIL PROTECTED] genom Jeroen Beckers
Skickat: on 2006-12-20 14:43
Till: Flashcoders mailing list
Ämne: Re: [Flashcoders] UML Diagram generator



Take a look at Enterprise Architect :).

Ned Perry wrote:
 Hi

 Does anyone know of any software that can autogenerate UML style diagrams 
 describing AS2 classes/relationships?

 Cheers

 ned



 

 This e-mail (and any attachments) is confidential and may contain
 personal views which are not the views of Cimex Media Ltd and
 any affiliated companies, unless specifically stated. It is intended
 for the use of the individual or group to whom it is addressed. If
 you have received it in error, please delete it from your system,
 do not use, copy or disclose the information in any way nor act in
 reliance on it and please notify [EMAIL PROTECTED]
 This email was scanned by Postini, the leading provider in Managed Email 
 Security. http://www.postini.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

  
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

RE: [Flashcoders] swf/html and swf/swf communication

2007-02-27 Thread Nikolaj Selvik
Hej Martin,

There are undocumented issues and restrictions when using
getURL(Javascript:) in content published for FP8 or higher.

Instead, use ExternalInterface where you also should be able to
implement good swf-to-swf communication

A nice, short tutorial can be found at:

http://previous.emllabs.com/article.php?articleId=122


BR,

Nick


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Klasson
Sent: den 26 februari 2007 09:33
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] swf/html and swf/swf communication



Hi Flashcoders,

I have been searching around, but not found it to be that easy to get
answers. I know that you people here tends to know everything, so I will
ask you.

first question:
Is LocalConnection the only way to talk between two swf's in a browser
(when NOT using javascript), and are there a list of browsers/os that
supports this? In my case it I will have two swf's on the same
html-page. -or is there a list of browsers/os that LocalConnection does
NOT work on?


second question:
Inline javascript in flash, are there any problems with that? I mean
using javascript in a getURL to make it for example write out another
swf in a div. I have used javascript to open popups directly from a
getURL -but is there any known limitations of writing javascript in the
getURL? Maybe the 99 character-bugg still is there in Flash as well?


Thanks mates!

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] swf/html and swf/swf communication

2007-02-27 Thread Nikolaj Selvik
Hej Martin,

There are largely undocumented issues and restrictions when using
getURL(Javascript:) in content published for FP8 or higher. Some
discussions on the subject can be found at:

http://weblogs.macromedia.com/mesh/archives/2005/08/new_flash_8_pla.html

Instead, use ExternalInterface where you also should be able to
implement good swf-to-swf communication

A nice, short tutorial can be found at:

http://previous.emllabs.com/article.php?articleId=122


BR,

Nick 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Klasson
Sent: den 26 februari 2007 09:33
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] swf/html and swf/swf communication



Hi Flashcoders,

I have been searching around, but not found it to be that easy to get
answers. I know that you people here tends to know everything, so I will
ask you.

first question:
Is LocalConnection the only way to talk between two swf's in a browser
(when NOT using javascript), and are there a list of browsers/os that
supports this? In my case it I will have two swf's on the same
html-page. -or is there a list of browsers/os that LocalConnection does
NOT work on?


second question:
Inline javascript in flash, are there any problems with that? I mean
using javascript in a getURL to make it for example write out another
swf in a div. I have used javascript to open popups directly from a
getURL -but is there any known limitations of writing javascript in the
getURL? Maybe the 99 character-bugg still is there in Flash as well?


Thanks mates!

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] wmode, cacheasbitmap and scrollrect issues

2008-03-28 Thread Nikolaj Selvik
Hi all,

So it seemed like Adobe had solved the artifact issues when using scrollrect
on a bitmap cached object, but not quite... I am in a current application
using scrollrect and get artifacts when vertically scrolling large
bitmapcached sprites, see example here:
http://www.membla.net/scrollrectartifacts.jpg
Has anyone tackled this problem?

Using 9.0.115, this problem occurs in IE but not in FF and only when using
wmode opaque, which leads me to my next question - Since when did wmode
opaque become about 50% faster than wmode window? I remember noticing this
some while ago and as it always had been said that wmode window was to be
used whenever you didn't need to think about z order stacking I tried to
find some info on the subject but found none. Anyone with more info on this?

Nick
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders