Re: [Flashcoders] Drawing an arc with curveTo

2008-08-04 Thread Ivan Dembicki
Hello Alias,

http://bezier.googlecode.com
you need Bezier.setPoint method
http://bezier.ru/wp-content/uploads/2008/06/bezier.swf?demo=3
You can approximate circle arc using quadratic bezier - minimal
number of curves for one circle is 8.

Advanced drawing methods in Macromedia Flash MX:
http://www.adobe.com/devnet/flash/articles/adv_draw_methods.html

Also you can look at AS1 library at layer51, for example:
http://proto.layer51.com/d.aspx?f=388

Also I can add usage examples to Bezier package
just I need to know what exactly you need.

-- 
iv
http://www.bezier.ru
http://bezier.googlecode.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Interfaces and private methods ...

2008-08-04 Thread S0 F1
How can you force a set of classes to define a private method if Interface
members cannot be declared public, private, protected, or internal?

Create an abstract class with private method(s) that throw an error, unless
overwritten by subclasses? Is this the only way?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Interfaces and private methods ...

2008-08-04 Thread Cédric Tabin
Hello,

You cannot force a class to implement a private method. And that would be
totally useless... The target of an interface is to define a set of methods
that are accessible by any classes = private, internal and protected
methods are too restricted. What do you want to do ?

Regards,
Cedric

On Mon, Aug 4, 2008 at 10:13 AM, S0 F1 [EMAIL PROTECTED] wrote:

 How can you force a set of classes to define a private method if Interface
 members cannot be declared public, private, protected, or internal?

 Create an abstract class with private method(s) that throw an error, unless
 overwritten by subclasses? Is this the only way?
 ___
 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


Re: [Flashcoders] Drawing an arc with curveTo

2008-08-04 Thread Hans Wichman
Hi,

here is a simple one usig curveTo's to create a fluid line:
http://objectpainters.com/blog/2007/07/18/drawing-using-controlpoints/

greetz
JC

On Mon, Aug 4, 2008 at 10:03 AM, Ivan Dembicki [EMAIL PROTECTED]
wrote:

 Hello Alias,

 http://bezier.googlecode.com
 you need Bezier.setPoint method
 http://bezier.ru/wp-content/uploads/2008/06/bezier.swf?demo=3
 You can approximate circle arc using quadratic bezier - minimal
 number of curves for one circle is 8.

 Advanced drawing methods in Macromedia Flash MX:
 http://www.adobe.com/devnet/flash/articles/adv_draw_methods.html

 Also you can look at AS1 library at layer51, for example:
 http://proto.layer51.com/d.aspx?f=388

 Also I can add usage examples to Bezier package
 just I need to know what exactly you need.

 --
 iv
 http://www.bezier.ru
 http://bezier.googlecode.com
  ___
 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


Re: [Flashcoders] Interfaces and private methods ...

2008-08-04 Thread Ian Thomas
On Mon, Aug 4, 2008 at 9:37 AM, Ian Thomas [EMAIL PROTECTED] wrote:
 Why would you want to force implementation of a private class?

Private method. Sorry!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Interfaces and private methods ...

2008-08-04 Thread Ian Thomas
Why would you want to force implementation of a private class?

Or are you actually trying to create an abstract class - and are
trying to ensure that a subclass provides an implementation of an
internal method? (Labelled as 'private' in AS2 or 'protected' in AS3.)

In which case, neither AS2 nor AS3 have built-in support for abstract
classes, which is a little annoying! The easiest way to achieve a
similar result is to write a default implementation in the parent
class (which the child class is supposed to override) and throw an
error inside it.

e.g. (in AS3)

protected function doSomething():void
{
  throw new Error(You should have overridden this!);
}

If that's not your problem/what you're trying to achieve, what _are_
you trying to achieve?

Ian

On Mon, Aug 4, 2008 at 9:13 AM, S0 F1 [EMAIL PROTECTED] wrote:
 How can you force a set of classes to define a private method if Interface
 members cannot be declared public, private, protected, or internal?

 Create an abstract class with private method(s) that throw an error, unless
 overwritten by subclasses? Is this the only way?
 ___
 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


Re: [Flashcoders] Drawing an arc with curveTo

2008-08-04 Thread Hans Wichman
ok ignore that, i misread the question:)

On Mon, Aug 4, 2008 at 11:22 AM, Hans Wichman 
[EMAIL PROTECTED] wrote:

  Hi,

 here is a simple one usig curveTo's to create a fluid line:
 http://objectpainters.com/blog/2007/07/18/drawing-using-controlpoints/

 greetz
 JC

   On Mon, Aug 4, 2008 at 10:03 AM, Ivan Dembicki [EMAIL PROTECTED]
 wrote:

 Hello Alias,

 http://bezier.googlecode.com
 you need Bezier.setPoint method
 http://bezier.ru/wp-content/uploads/2008/06/bezier.swf?demo=3
 You can approximate circle arc using quadratic bezier - minimal
 number of curves for one circle is 8.

 Advanced drawing methods in Macromedia Flash MX:
 http://www.adobe.com/devnet/flash/articles/adv_draw_methods.html

 Also you can look at AS1 library at layer51, for example:
 http://proto.layer51.com/d.aspx?f=388

 Also I can add usage examples to Bezier package
 just I need to know what exactly you need.

 --
 iv
 http://www.bezier.ru
 http://bezier.googlecode.com
  ___
 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] Re: Interfaces and private methods ...

2008-08-04 Thread S0 F1
Thanks Cedric. I'm using 3 methods - initialize(), reset() and destroy() for
all classes in my application.

This is to get around the processor overhead associated with Constructors
(among other reasons).

Anyway, initialize() needs to be private, so all I can think of is to use an
abstract base class (as per last message) containing these methods - then
throw an error in abstact implementations of these methods (obviously
because compiler doesn't error like it does with an interface during
compilation).

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


[Flashcoders] Hiring

2008-08-04 Thread Romuald Quantin
Hi everyone,

 

Sorry I'm asking before doing it, I'm looking for an AS3 Senior Developer
for a permanent contract. Will it be welcomed to post the ad here or not at
all? I understand if you don't want this list flooded with job ads.

 

Thanks.

 

Romu

 

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


[Flashcoders] Re: AS3 Destructors and Garbage Collection ...

2008-08-04 Thread S0 F1
Thanks Paul / Steven.

When referring to as3 destuctors, I just meant a destory or clear method you
can call before removing references to an object.

Good to hear you can force the GC in flash player 10 / AIR. I'll take a look
for future reference.

I ask this questions because I'm building a purely flash app in Flex 3.
While using the profiler, and interacting with my app for a few moments,
there are over 300 instances of an object in memory (it's just a basic shape
object). There should only be 2 dozen or so of these at any one moment, so
will adjust the classes (parent objects) using these shapes to dispose of
them. The parent objects are dealt with, but their shapes stay in memory?
there are no other references to these shapes anywhere, and I can't get the
GC to run while profiling my app so I can see the memory clear a little.

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


Re: [Flashcoders] Drawing an arc with curveTo

2008-08-04 Thread Alias Cummins
Thanks Ivan,

What I needed was the maths to calculate the positions of the control points -

found it here:


 Advanced drawing methods in Macromedia Flash MX:
 http://www.adobe.com/devnet/flash/articles/adv_draw_methods.html


Thanks,
Alias


2008/8/4 Ivan Dembicki [EMAIL PROTECTED]:
 Hello Alias,

 http://bezier.googlecode.com
  need Bezier.setPoint method
 http://bezier.ru/wp-content/uploads/2008/06/bezier.swf?demo=3
 You can approximate circle arc using quadratic bezier - minimal
 number of curves for one circle is 8.

 Also you can look at AS1 library at layer51, for example:
 http://proto.layer51.com/d.aspx?f=388

 Also I can add usage examples to Bezier package
 just I need to know what exactly you need.

 --
 iv
 http://www.bezier.ru
 http://bezier.googlecode.com
 ___
 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


RE: [Flashcoders] Can Flash read a pdf's metadata?

2008-08-04 Thread Mendelsohn, Michael
Thanks everyone for the great informative answers!

- MM


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


[Flashcoders] swfObject or not ? 5px more

2008-08-04 Thread laurent


Hi,

When I use swfObject I have around 5px more at the bottom of my html page.

You can see the difference from a page using swfObject and a normal one:
http://dev.logiquefloue.org/fd/index_normal.php
http://dev.logiquefloue.org/fd/index_swfo.php

the last one got a scroll bar + few milimeter of html in white, the 
normal one is just fitting the browser.


Anyone know about this issue ?

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


Re: [Flashcoders] swfObject or not ? 5px more

2008-08-04 Thread Glen Pike

Your SWFObject height is 101%

laurent wrote:


Hi,

When I use swfObject I have around 5px more at the bottom of my html 
page.


You can see the difference from a page using swfObject and a normal one:
http://dev.logiquefloue.org/fd/index_normal.php
http://dev.logiquefloue.org/fd/index_swfo.php

the last one got a scroll bar + few milimeter of html in white, the 
normal one is just fitting the browser.


Anyone know about this issue ?

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




--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


Re: [Flashcoders] swfObject or not ? 5px more

2008-08-04 Thread laurent


hm yes, because I did lots of tests, forget to turn it back to 100%. 
Even with 100% I got the white stripe:

http://localhost/akrolab/frenchdandy/deploy/index_swfo.php

L

Glen Pike a écrit :

Your SWFObject height is 101%

laurent wrote:


Hi,

When I use swfObject I have around 5px more at the bottom of my html 
page.


You can see the difference from a page using swfObject and a normal one:
http://dev.logiquefloue.org/fd/index_normal.php
http://dev.logiquefloue.org/fd/index_swfo.php

the last one got a scroll bar + few milimeter of html in white, the 
normal one is just fitting the browser.


Anyone know about this issue ?

thx
L
___
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


Re: [Flashcoders] swfObject or not ? 5px more

2008-08-04 Thread laurent


oops..the right link is:
http://dev.logiquefloue.org/fd/index_swfo.php

thx
L

laurent a écrit :


hm yes, because I did lots of tests, forget to turn it back to 100%. 
Even with 100% I got the white stripe:

http://localhost/akrolab/frenchdandy/deploy/index_swfo.php

L

Glen Pike a écrit :

Your SWFObject height is 101%

laurent wrote:


Hi,

When I use swfObject I have around 5px more at the bottom of my html 
page.


You can see the difference from a page using swfObject and a normal 
one:

http://dev.logiquefloue.org/fd/index_normal.php
http://dev.logiquefloue.org/fd/index_swfo.php

the last one got a scroll bar + few milimeter of html in white, the 
normal one is just fitting the browser.


Anyone know about this issue ?

thx
L
___
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


Re: [Flashcoders] swfObject or not ? 5px more

2008-08-04 Thread Jer Brand
Adding overflow:hidden ; to your body style clears it right up in
FF* and IE6/7. Not near a mac to test, so YMMV.

On Mon, Aug 4, 2008 at 2:19 PM, laurent [EMAIL PROTECTED] wrote:

 oops..the right link is:
 http://dev.logiquefloue.org/fd/index_swfo.php

 thx
 L

 laurent a écrit :

 hm yes, because I did lots of tests, forget to turn it back to 100%. Even
 with 100% I got the white stripe:
 http://localhost/akrolab/frenchdandy/deploy/index_swfo.php

 L

 Glen Pike a écrit :

 Your SWFObject height is 101%

 laurent wrote:

 Hi,

 When I use swfObject I have around 5px more at the bottom of my html
 page.

 You can see the difference from a page using swfObject and a normal one:
 http://dev.logiquefloue.org/fd/index_normal.php
 http://dev.logiquefloue.org/fd/index_swfo.php

 the last one got a scroll bar + few milimeter of html in white, the
 normal one is just fitting the browser.

 Anyone know about this issue ?

 thx
 L
 ___
 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




-- 
Jer

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


Re: [Flashcoders] swfObject or not ? 5px more

2008-08-04 Thread Glen Pike

Hi,

   Try this in your CSS (overflow: hidden - not overflow:none):

   /* hide from ie on mac \*/
   html { height: 100%;  overflow: hidden; }
   /* end hide */
   body {
   height: 100%;
   width: 100%;
   margin: 0;
   margin-bottom: 0;
   padding: 0;
   background-color: #ff;
   }
   #flashcontent {
   width: 100%;
   height: 100%;
   backgroundColor:#ff
   }

laurent wrote:


oops..the right link is:
http://dev.logiquefloue.org/fd/index_swfo.php

thx
L

laurent a écrit :


hm yes, because I did lots of tests, forget to turn it back to 100%. 
Even with 100% I got the white stripe:

http://localhost/akrolab/frenchdandy/deploy/index_swfo.php

L

Glen Pike a écrit :

Your SWFObject height is 101%

laurent wrote:


Hi,

When I use swfObject I have around 5px more at the bottom of my 
html page.


You can see the difference from a page using swfObject and a normal 
one:

http://dev.logiquefloue.org/fd/index_normal.php
http://dev.logiquefloue.org/fd/index_swfo.php

the last one got a scroll bar + few milimeter of html in white, the 
normal one is just fitting the browser.


Anyone know about this issue ?

thx
L
___
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




--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


Re: [Flashcoders] swfObject or not ? 5px more

2008-08-04 Thread laurent

Yes the hidden do it good!
Thanks !!
L

Glen Pike a écrit :

Hi,

   Try this in your CSS (overflow: hidden - not overflow:none):

   /* hide from ie on mac \*/
   html { height: 100%;  overflow: hidden; }
   /* end hide */
   body {
   height: 100%;
   width: 100%;
   margin: 0;
   margin-bottom: 0;
   padding: 0;
   background-color: #ff;
   }
   #flashcontent {
   width: 100%;
   height: 100%;
   backgroundColor:#ff
   }

laurent wrote:


oops..the right link is:
http://dev.logiquefloue.org/fd/index_swfo.php

thx
L

laurent a écrit :


hm yes, because I did lots of tests, forget to turn it back to 100%. 
Even with 100% I got the white stripe:

http://localhost/akrolab/frenchdandy/deploy/index_swfo.php

L

Glen Pike a écrit :

Your SWFObject height is 101%

laurent wrote:


Hi,

When I use swfObject I have around 5px more at the bottom of my 
html page.


You can see the difference from a page using swfObject and a 
normal one:

http://dev.logiquefloue.org/fd/index_normal.php
http://dev.logiquefloue.org/fd/index_swfo.php

the last one got a scroll bar + few milimeter of html in white, 
the normal one is just fitting the browser.


Anyone know about this issue ?

thx
L
___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders