Re: [Flashcoders] Either an incredibly easy or incredibly difficult problem

2009-02-16 Thread mike cann
Correct, its not possible unless you create a symbol for each point im
afraid

2009/2/9 Anthony Pace anthony.p...@utoronto.ca

 That is exactly what I was going to say, and I have been trying to find
 something online; yet, I have found nothing, so I just assume its not
 possible to do it programatically, outside of the flash ide using jsfl.

 Now that I think of it, this could be somewhat useful.



 Merrill, Jason wrote:

 Might be possible, but I don't know of a way - Sprite.graphics is for
 drawing graphics with code - not accessing manually created graphic
 properties.


 Jason Merrill

  Bank of  America   Learning Performance Solutions Instructional
 Technology  Media
 Learn about the Adobe Flash platform for rich media experiences - join
 the Bank of America Flash Platform Community

 ___
 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




-- 
Mike Cann
http://www.mikecann.co.uk/
http://www.artificialgames.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Either an incredibly easy or incredibly difficult problem

2009-02-09 Thread Todd Kerpelman
Hey, coders!

I have a Sprite that consists of a polygon that I drew in Flash (using the
line tool) and saved into my Library.

Using ActionScript, is there any way to easily find the points of said
polygon? It seems like I oughta be able to dig up those line coordinates out
of my Sprite.graphics object, but I can't seem to find a way of doing it...

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


RE: [Flashcoders] Either an incredibly easy or incredibly difficult problem

2009-02-09 Thread Merrill, Jason
Might be possible, but I don't know of a way - Sprite.graphics is for
drawing graphics with code - not accessing manually created graphic
properties.


Jason Merrill

 Bank of  America   
Learning Performance Solutions Instructional Technology  Media   

Learn about the Adobe Flash platform for rich media experiences - join
the Bank of America Flash Platform Community 


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


Re: [Flashcoders] Either an incredibly easy or incredibly difficult problem

2009-02-09 Thread Mark Winterhalder
On Mon, Feb 9, 2009 at 7:47 PM, Todd Kerpelman t...@kerp.net wrote:
 Hey, coders!

 I have a Sprite that consists of a polygon that I drew in Flash (using the
 line tool) and saved into my Library.

 Using ActionScript, is there any way to easily find the points of said
 polygon? It seems like I oughta be able to dig up those line coordinates out
 of my Sprite.graphics object, but I can't seem to find a way of doing it...

You'll end up reading the coordinates from inside the Flash IDE or by
using a tool like Swfmill, but just for sports, and with the
limitation that it needs to be convex, this is the easiest way I can
think of:

Rotate it slowly. Use getRect to find out how far it extends towards,
say, the right, at a given rotation. When that distance decreases,
it's a point, and you can calculate its coordinate via the distance
and rotation. Repeat until you've made a full turn.

If it's not convex, I guess you'd need to trace it...

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


Re: [Flashcoders] Either an incredibly easy or incredibly difficult problem

2009-02-09 Thread Taka Kojima
I'd probably just determine the points ahead of time and recreate it using
AS...

Most likely, that would be less time consuming. That's my answer if this is
a practical question, if it's theoretical and you just want to know if it
can be done, I'm sure it can, but I'm not totally sure which method to use
to achieve the desired result.

- Taka

On Mon, Feb 9, 2009 at 11:56 AM, Mark Winterhalder mar...@gmail.com wrote:

 On Mon, Feb 9, 2009 at 7:47 PM, Todd Kerpelman t...@kerp.net wrote:
  Hey, coders!
 
  I have a Sprite that consists of a polygon that I drew in Flash (using
 the
  line tool) and saved into my Library.
 
  Using ActionScript, is there any way to easily find the points of said
  polygon? It seems like I oughta be able to dig up those line coordinates
 out
  of my Sprite.graphics object, but I can't seem to find a way of doing
 it...

 You'll end up reading the coordinates from inside the Flash IDE or by
 using a tool like Swfmill, but just for sports, and with the
 limitation that it needs to be convex, this is the easiest way I can
 think of:

 Rotate it slowly. Use getRect to find out how far it extends towards,
 say, the right, at a given rotation. When that distance decreases,
 it's a point, and you can calculate its coordinate via the distance
 and rotation. Repeat until you've made a full turn.

 If it's not convex, I guess you'd need to trace it...

 Mark
 ___
 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] Either an incredibly easy or incredibly difficult problem

2009-02-09 Thread Anthony Pace
That is exactly what I was going to say, and I have been trying to find 
something online; yet, I have found nothing, so I just assume its not 
possible to do it programatically, outside of the flash ide using jsfl.


Now that I think of it, this could be somewhat useful.


Merrill, Jason wrote:

Might be possible, but I don't know of a way - Sprite.graphics is for
drawing graphics with code - not accessing manually created graphic
properties.


Jason Merrill

 Bank of  America   
Learning Performance Solutions Instructional Technology  Media   


Learn about the Adobe Flash platform for rich media experiences - join
the Bank of America Flash Platform Community 



___
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