Re: [Flashcoders] Inheritance and abstract classes

2010-09-23 Thread Juan Pablo Califano
>>> Despite what the naming conventions are, since the only thing, IMHO, that interfaces are useful for, is determining if the object being passed to a method complies and has methods/properties that can be used, without having to write code to check if the object being passed actually has all the

Re: [Flashcoders] Inheritance and abstract classes

2010-09-23 Thread Anthony Pace
On 9/23/2010 3:51 PM, Henrik Andersson wrote: you say Picture IS-A IDrawable. Despite what the naming conventions are, since the only thing, IMHO, that interfaces are useful for, is determining if the object being passed to a method complies and has methods/properties that can be used, withou

Re: [Flashcoders] Downloading a .swc library

2010-09-23 Thread Glen Pike
Hi. I would think about using the [Embed] directive in pure AS3 code to create font swf files. You can have one or more fonts in a swf which does not matter and you can load them in a runtime dynamically. Here is an example of a Font file - you can setup a project in FlashDevelop that will

Re: [Flashcoders] Inheritance and abstract classes

2010-09-23 Thread Henrik Andersson
Glen Pike skriver: "has a" (interfaces) than "is a" (subclass), That's wrong. HAS-A is not used for interfaces, it is used for reference properties and other forms of containment. Both interfaces and classes use the IS-A relation. You don't say Picture HAS-A IDrawable, you say Picture IS-A

Re: [Flashcoders] Downloading a .swc library

2010-09-23 Thread Kerry Thompson
Henrik Andersson wrote: > SWC files are zip files with swf files inside them (and some other misc > stuff). The flash player does not know how to deal with them. > > Or you could just load a swf like everyone else... Fair enough. Here's the issue with loading the .swf. It's all code and no asset

Re: [Flashcoders] Inheritance and abstract classes

2010-09-23 Thread Glen Pike
Hi, If you "type" as a superclass you are generally programming to an interface, so you can just as easily type to an interface. Using interfaces is generally more flexible - it's easier to work with "has a" (interfaces) than "is a" (subclass), but sometimes you need a default imple

Re: [Flashcoders] Downloading a .swc library

2010-09-23 Thread Henrik Andersson
SWC files are zip files with swf files inside them (and some other misc stuff). The flash player does not know how to deal with them. You would have to unpack the zip, read the metadata and feed the stored swf to Loader.loadBytes. Or you could just load a swf like everyone else... __

Re: [Flashcoders] Apple changes their guidelines

2010-09-23 Thread Kevin Newman
I'm not quite sure what the best way to send the app around is. Also the app performs significantly better on iPhone than the swf does on Android (the swf even performs better on iPhone with Frash) so looking at the swf in the browser will not get you 60FPS. Here it is though: http://www.unfo

[Flashcoders] Downloading a .swc library

2010-09-23 Thread Kerry Thompson
I posted this to another list a couple hours ago, and didn't get any takers, so I'll try here. My client wants something a little different. His specs call for a Flex program that, in code, embeds fonts from an external folder. He then wants to download that and use the fonts in another .swf. I'm

[Flashcoders] Inheritance and abstract classes

2010-09-23 Thread Doug Lambert
Inheritance and abstract classes The examples I've seen are set up this way: Super class (abstract class) contains all methods Subclass overrides methods in super class Class instances are typed as super class and instantiated as subclass. I'm wondering why the examples show instances typed as a

[Flashcoders] AS3 to Java

2010-09-23 Thread Tom Gooding
Anyone know of any tools to convert AS3 code into Java? There seems to be several stabs at the other way around (j2as3 for example). Cheers Tom ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinf