Re: [Flashcoders] Partially drawing a graphic?

2009-01-12 Thread Todd Kerpelman
Hmmm... well, for the record, my art is currently just stored as a plain ol'
Graphic in my Flash IDE library (after tracing it from a bitmap) although I
can convert it to other formats if need be. I was hoping Flash had some way
of getting at the vector data, given that it's storing it internally
already.

In any case, I'm not working in Flex at the moment, so Defraga doesn't seem
like it would help this current project, but you're right; it definitely
looks cool...


--T


On Mon, Jan 12, 2009 at 4:57 PM, Nate Beck  wrote:

> A big issue here is that you need a format that can be parsed at runtime.
>  Which I'm quickly finding out is not all that easy to do with the new
> Adobe
> Format... FXG. :(
> I'm writing a tile based game right now, and I want to store my tile
> library
> in a runtime-loadable format, like FXG or degrafa... It's not working so
> well. :/
>
>
>
> On Mon, Jan 12, 2009 at 4:38 PM, Joel Stransky  >wrote:
>
> > something I've always wanted to try is write a script for Illustrator
> that
> > would output all of the path info including bezier handles to a text file
> > for use in flash.
> >
> > Maybe there's something in the api that will help.
> >
> >
> http://partners.adobe.com/public/developer/en/illustrator/sdk/AIJavaScriptReference.pdf
> >
> > On Mon, Jan 12, 2009 at 7:04 PM, Nate Beck  wrote:
> >
> > > How are you storing the vector art?
> > > You need a way to parse out the data so that you can choose which lines
> > to
> > > draw. Degrafa is an excellent way to go. http://www.degrafa.org/
> > >
> > > I don't know Degrafa well enough to tell you if there is something
> > already
> > > in there that will make what you're trying to accomplish easier.
> > >
> > > Also, something that comes to my mind to watch out for... would be to
> > move
> > > the graphics "drawing head" to the correct place before drawing the
> next
> > > curve.  Think if it like an Etch-a-sketch, you need to pick up the head
> > and
> > > move it somewhere else before you continue to draw, or else it's going
> to
> > > continue drawing from where you left off.
> > > HTH,
> > > Nate
> > >
> > >
> > >
> > > On Mon, Jan 12, 2009 at 3:53 PM, Todd Kerpelman  wrote:
> > >
> > > > Hey, Flash Coders! Wondering if you can help me out with a little
> > problem
> > > > I'm working on...
> > > >
> > > > - I have a complicated piece of vector art in my Flash file.
> > > >
> > > > - I'm basically trying to find a way to "partially" draw it. That is,
> > out
> > > > of
> > > > the 2000 curves that are in my piece of art, I'd like to randomly
> draw
> > > 50%
> > > > of them, and then people can guess what the original piece of art
> was.
> > > >
> > > > - Speed and elegant coding aren't a primary concern here. It's just a
> > > > prototype.
> > > >
> > > > Any ideas of how to do this?
> > > >
> > > > I was hoping I could find some sort of function that would let me
> > iterate
> > > > through each curve in my original piece of art, and then I could
> > randomly
> > > > decide whether or not to draw each curve into a new graphic, but I
> > can't
> > > > seem to find anything like that. If anybody has any clever
> suggestions,
> > > I'd
> > > > love to hear 'em...
> > > >
> > > > --T
> > > > ___
> > > > Flashcoders mailing list
> > > > Flashcoders@chattyfig.figleaf.com
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Cheers,
> > > Nate
> > > 
> > > http://blog.natebeck.net
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> >
> >
> >
> > --
> > --Joel Stransky
> > stranskydesign.com
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
>
> Cheers,
> Nate
> 
> http://blog.natebeck.net
> ___
> 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] Partially drawing a graphic?

2009-01-12 Thread Nate Beck
A big issue here is that you need a format that can be parsed at runtime.
 Which I'm quickly finding out is not all that easy to do with the new Adobe
Format... FXG. :(
I'm writing a tile based game right now, and I want to store my tile library
in a runtime-loadable format, like FXG or degrafa... It's not working so
well. :/



On Mon, Jan 12, 2009 at 4:38 PM, Joel Stransky wrote:

> something I've always wanted to try is write a script for Illustrator that
> would output all of the path info including bezier handles to a text file
> for use in flash.
>
> Maybe there's something in the api that will help.
>
> http://partners.adobe.com/public/developer/en/illustrator/sdk/AIJavaScriptReference.pdf
>
> On Mon, Jan 12, 2009 at 7:04 PM, Nate Beck  wrote:
>
> > How are you storing the vector art?
> > You need a way to parse out the data so that you can choose which lines
> to
> > draw. Degrafa is an excellent way to go. http://www.degrafa.org/
> >
> > I don't know Degrafa well enough to tell you if there is something
> already
> > in there that will make what you're trying to accomplish easier.
> >
> > Also, something that comes to my mind to watch out for... would be to
> move
> > the graphics "drawing head" to the correct place before drawing the next
> > curve.  Think if it like an Etch-a-sketch, you need to pick up the head
> and
> > move it somewhere else before you continue to draw, or else it's going to
> > continue drawing from where you left off.
> > HTH,
> > Nate
> >
> >
> >
> > On Mon, Jan 12, 2009 at 3:53 PM, Todd Kerpelman  wrote:
> >
> > > Hey, Flash Coders! Wondering if you can help me out with a little
> problem
> > > I'm working on...
> > >
> > > - I have a complicated piece of vector art in my Flash file.
> > >
> > > - I'm basically trying to find a way to "partially" draw it. That is,
> out
> > > of
> > > the 2000 curves that are in my piece of art, I'd like to randomly draw
> > 50%
> > > of them, and then people can guess what the original piece of art was.
> > >
> > > - Speed and elegant coding aren't a primary concern here. It's just a
> > > prototype.
> > >
> > > Any ideas of how to do this?
> > >
> > > I was hoping I could find some sort of function that would let me
> iterate
> > > through each curve in my original piece of art, and then I could
> randomly
> > > decide whether or not to draw each curve into a new graphic, but I
> can't
> > > seem to find anything like that. If anybody has any clever suggestions,
> > I'd
> > > love to hear 'em...
> > >
> > > --T
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> >
> >
> >
> > --
> >
> > Cheers,
> > Nate
> > 
> > http://blog.natebeck.net
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> --Joel Stransky
> stranskydesign.com
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 

Cheers,
Nate

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


Re: [Flashcoders] Partially drawing a graphic?

2009-01-12 Thread Joel Stransky
something I've always wanted to try is write a script for Illustrator that
would output all of the path info including bezier handles to a text file
for use in flash.

Maybe there's something in the api that will help.
http://partners.adobe.com/public/developer/en/illustrator/sdk/AIJavaScriptReference.pdf

On Mon, Jan 12, 2009 at 7:04 PM, Nate Beck  wrote:

> How are you storing the vector art?
> You need a way to parse out the data so that you can choose which lines to
> draw. Degrafa is an excellent way to go. http://www.degrafa.org/
>
> I don't know Degrafa well enough to tell you if there is something already
> in there that will make what you're trying to accomplish easier.
>
> Also, something that comes to my mind to watch out for... would be to move
> the graphics "drawing head" to the correct place before drawing the next
> curve.  Think if it like an Etch-a-sketch, you need to pick up the head and
> move it somewhere else before you continue to draw, or else it's going to
> continue drawing from where you left off.
> HTH,
> Nate
>
>
>
> On Mon, Jan 12, 2009 at 3:53 PM, Todd Kerpelman  wrote:
>
> > Hey, Flash Coders! Wondering if you can help me out with a little problem
> > I'm working on...
> >
> > - I have a complicated piece of vector art in my Flash file.
> >
> > - I'm basically trying to find a way to "partially" draw it. That is, out
> > of
> > the 2000 curves that are in my piece of art, I'd like to randomly draw
> 50%
> > of them, and then people can guess what the original piece of art was.
> >
> > - Speed and elegant coding aren't a primary concern here. It's just a
> > prototype.
> >
> > Any ideas of how to do this?
> >
> > I was hoping I could find some sort of function that would let me iterate
> > through each curve in my original piece of art, and then I could randomly
> > decide whether or not to draw each curve into a new graphic, but I can't
> > seem to find anything like that. If anybody has any clever suggestions,
> I'd
> > love to hear 'em...
> >
> > --T
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
>
> Cheers,
> Nate
> 
> http://blog.natebeck.net
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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


[Flashcoders] Partially drawing a graphic?

2009-01-12 Thread Todd Kerpelman
Hey, Flash Coders! Wondering if you can help me out with a little problem
I'm working on...

- I have a complicated piece of vector art in my Flash file.

- I'm basically trying to find a way to "partially" draw it. That is, out of
the 2000 curves that are in my piece of art, I'd like to randomly draw 50%
of them, and then people can guess what the original piece of art was.

- Speed and elegant coding aren't a primary concern here. It's just a
prototype.

Any ideas of how to do this?

I was hoping I could find some sort of function that would let me iterate
through each curve in my original piece of art, and then I could randomly
decide whether or not to draw each curve into a new graphic, but I can't
seem to find anything like that. If anybody has any clever suggestions, I'd
love to hear 'em...

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


Re: [Flashcoders] Partially drawing a graphic?

2009-01-12 Thread Nate Beck
How are you storing the vector art?
You need a way to parse out the data so that you can choose which lines to
draw. Degrafa is an excellent way to go. http://www.degrafa.org/

I don't know Degrafa well enough to tell you if there is something already
in there that will make what you're trying to accomplish easier.

Also, something that comes to my mind to watch out for... would be to move
the graphics "drawing head" to the correct place before drawing the next
curve.  Think if it like an Etch-a-sketch, you need to pick up the head and
move it somewhere else before you continue to draw, or else it's going to
continue drawing from where you left off.
HTH,
Nate



On Mon, Jan 12, 2009 at 3:53 PM, Todd Kerpelman  wrote:

> Hey, Flash Coders! Wondering if you can help me out with a little problem
> I'm working on...
>
> - I have a complicated piece of vector art in my Flash file.
>
> - I'm basically trying to find a way to "partially" draw it. That is, out
> of
> the 2000 curves that are in my piece of art, I'd like to randomly draw 50%
> of them, and then people can guess what the original piece of art was.
>
> - Speed and elegant coding aren't a primary concern here. It's just a
> prototype.
>
> Any ideas of how to do this?
>
> I was hoping I could find some sort of function that would let me iterate
> through each curve in my original piece of art, and then I could randomly
> decide whether or not to draw each curve into a new graphic, but I can't
> seem to find anything like that. If anybody has any clever suggestions, I'd
> love to hear 'em...
>
> --T
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 

Cheers,
Nate

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


Re: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-12 Thread Anthony Pace
I took a look at the demo and I instantly knew what he was doing, 
because the origin marker kept moving... easy enough to correct.


I figured out something similar too by changing the x and y rotation 
values to match the point on the outer circles locus, based on the 
amount of steps wanted, although useful, is still not good enough for me.



Ashim D'Silva wrote:

Scale & rotate around an arbitrary centre | Web
2.1
first result on google.

2009/1/13 Anthony Pace 

  

Oh yeah this definitely works.  I was having trouble because I needed to
delete ASO files(thought things had changed in the fp10 upgrade and I was
going nuts until I figured it out); yet, I am still looking for a better
way.

I am looking into the matrix transformer class right now.


Ian Thomas wrote:



That shouldn't be the case.

You will have to offset the original mc's x and y by half the width
and height of the original; but the rotation of the wrapping mc should
always take place around that mc's origin.

e.g.

var wrapper:Sprite=new Sprite();
wrapper.addChild(original);
original.x=-original.width/2;
original.y=-original.height/2;

addChild(wrapper);

wrapper.rotation=45;

... or whatever.

If you're really getting erroneous results from that sort of setup,
I'd love to see the source code.

Ian

On Sun, Jan 11, 2009 at 2:00 AM, Anthony Pace 
wrote:


  

I have actually tried that yet, it seems that when I move the mc in the
wrapper, the origin of the wrapper changes to be that of mc upper left
most
point.

Leandro Ferreira wrote:




The easiest way is to wrap it arount another object, move its position
and
rotate the wraper.

Leandro Ferreira


On Sat, Jan 10, 2009 at 10:11 PM, Anthony Pace
wrote:




  

How do you change the origin of rotation dynamically? can it be done?
 or
will it always be 0,0

I was hoping that with the new features of as3 that this I would be
able
to
indicate where I wanted the origin; yet, I am starting to think that I
was
hoping for too much.


___
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



  

___
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] change the origin of rotation for a movieclip?

2009-01-12 Thread -whispers-
For what its worth Jack.. I dig the classes you offer...

maybe they were looking for a solution they didn't have to pay for..  (being a 
code sharing 'forum/group')  so to speak...


  - Original Message - 
  From: Jack Doyle 
  To: 'Flash Coders List' 
  Sent: Monday, January 12, 2009 4:59 PM
  Subject: RE: [Flashcoders] change the origin of rotation for a movieclip?


  Wow. Sorry. I thought that might be helpful. Obviously it wasn't. I should
  have given a more thorough answer - after all, this list is for more
  advanced developers who don't need things simplified. There are 3 ways I
  know of to do something like that (some have already been covered):

  1) Wrap it in another DisplayObject/MovieClip, offset it however much you
  need so that the new parent's registration point is where you need it on
  your object. Then rotate the parent. Upside: it's easy. Down side: You're
  screwing with the display list which fires off events like ADDED_TO_STAGE.
  It feels like a hack.

  2) Use matrix transformations like MatrixTransformer class's
  rotateAroundInternalPoint() method. Cleaner in some ways, but in my
  experience, it doesn't always give accurate results over time.

  3) Determine where the point is internally around which you want to rotate
  (according to your DisplayObject's local coordinates). Rotate and then use
  localToGlobal() and globalToLocal() to figure out how much it was offset and
  move the x/y coordinates to compensate.

  Hope that was more helpful.

  Jack

  -Original Message-
  From: Anthony Pace [mailto:anthony.p...@utoronto.ca] 
  Sent: Monday, January 12, 2009 2:24 PM
  To: Flash Coders List
  Subject: Re: [Flashcoders] change the origin of rotation for a movieclip?

  How about a real answer?

  Jack Doyle wrote:
  > There's a new plugin for TweenLite/Max that'll cause transformation
  > (rotation/scale) tweens to occur around any point, so it'll be as easy as:
  >
  > TweenLite.to(mc, 2, {transformAroundPoint:{point:new Point(100, 100),
  > rotation:85}});
  >
  > Or if you want to use the center of the object as its origin, you could
  > simply do:
  >
  > TweenLite.to(mc, 2, {transformAroundCenter:{rotation:80}});
  >
  > It works for the scale too, like:
  >
  > TweenLite.to(mc, 2, {transformAroundCenter:{scaleX:1.5, scaleY:2,
  > rotation:-70}});
  >
  > NOTE: The plugin is a membership benefit of Club GreenSock.
  >
  > You can see an interactive demo at http://blog.greensock.com/sneak-peek/
  > (scroll all the way down in the list of plugins - they're at the bottom -
  > click "example"). For those of you who are wondering "what's this 'plugin'
  > talk with TweenLite - I didn't know there were any plugins!", it's a new
  > feature that's part of a big update I'm rolling out soon. It adds lots of
  > flexibility. Read more at the site.
  >
  > Jack
  >
  > PS There's also TransformMatrixProxy which has been around for a while and
  > it'll do something similar and also let you skew things.
  > http://blog.greensock.com/transformmatrixproxy/ It's not quite as
  convenient
  > as a plugin for TweenLite/Max, though.
  >
  >
  > -Original Message-
  > From: Anthony Pace [mailto:anthony.p...@utoronto.ca] 
  > Sent: Saturday, January 10, 2009 6:12 PM
  > To: Flash Coders List
  > Subject: [Flashcoders] change the origin of rotation for a movieclip?
  >
  > How do you change the origin of rotation dynamically? can it be done?  
  > or will it always be 0,0
  >
  > I was hoping that with the new features of as3 that this I would be able 
  > to indicate where I wanted the origin; yet, I am starting to think that 
  > I was hoping for too much.



  ___
  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] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread -whispers-
Nope, it is not...

the images that seems to break the application is 1500x1500.. while other 
(smaller) images around 550x450 seem to work fine
quick overview:

A.) contentContainer
B.) |-faceContainer
C.) |--lineContainer (where I drawmy 
lineTo() shape to be used as the base of my invertedMask function)
D.) |--maskContainer (where the actual 
invertedMask is created with the function I provided/am using)
E.) |--centeredContainer (where the image 
is loaded into)

faceContainer X/Y is centered is the absolute middle of the display area
all child clips of faceContainer (clips C-E above) are then off set by height & 
width /2..  so that when I scale or rotate faceContainer.. all child clips 
scale from the 'center'..

when I load in ANY image.. I check its height..and if bigger than my display 
area.. I scale it down...

again this works fine is I load in a smaller image...
the only code is 1 (one) function.. (13 lines only) that breaks 
when the image loaded is over a certain size (I believe sets the X/Y to a 
negative number, beyond zero)

this is the function in question:

INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
 
//- [reverse mask code] - //
function inverseMask(mc:MovieClip) {
 contentContainer.faceContainer.centeredContainer.cacheAsBitmap = true;
 var _BMP:BitmapData = new 
BitmapData(contentContainer.faceContainer.centeredContainer._width, 
contentContainer.faceContainer.centeredContainer._height, true, 0x);
 var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
 var matrix:Matrix = new Matrix(); 
 matrix.translate(0, 0);

 //matrix.translate(mc._x, mc._y);  //doesnt work
 //matrix.translate(contentContainer.faceContainer.centeredContainer._x, 
contentContainer.faceContainer.centeredContainer._y); //doesnt work
 //matrix.identity(); 
//matrix.scale(contentContainer.faceContainer.centeredContainer._xscale, 
contentContainer.faceContainer.centeredContainer._yscale);

 _BMP.draw(mc, matrix, invert);
 _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height), new 
Point(0, 0), "<", 0x, 0x00FF);
 var BMP:BitmapData = _BMP.clone();
 var maskMC:MovieClip = 
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedMask",
 contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.attachBitmap(BMP, 
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.cacheAsBitmap = true;
 mc._visible = false;
 return maskMC;
}


thanks to anyone that even point me in the right direction on debugging...

  - Original Message - 
  From: Jason Van Pelt 
  To: Flash Coders List 
  Sent: Monday, January 12, 2009 4:20 PM
  Subject: RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2


  I can't go through all of your info, but just off the top of my head what
  is the size of the image you are trying to load? Is it larger than the 2880
  x 2880 pixel limit?


  JASON VAN PELT  •  SENIOR INTERACTIVE DEVELOPER

  PETER A MAYER ADVERTISING
  324 CAMP ST  •  NEW ORLEANS, LA 70130
  TEL 504-210-1232  •  FAX 504-529-4431

  vanpe...@peteramayer.com  •  WWW.PETERAMAYER.COM


  - 
 
  PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: 
  Confidentially, we loathe confidentiality notices. Still, our lawyers tell us 
they are essential in today's world. That said, please consider yourself 
confidentially notified that this email and any attachments may contain 
confidential and privileged information. If you are not the intended recipient, 
please notify the sender with a reply email-confidentially, of course-and 
destroy all copies. And, just between you and us, any dissemination by a person 
other than the intended recipient is unauthorized and may be illegal.  
  -


--


  ___
  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] change the origin of rotation for a movieclip?

2009-01-12 Thread Jack Doyle
Wow. Sorry. I thought that might be helpful. Obviously it wasn't. I should
have given a more thorough answer - after all, this list is for more
advanced developers who don't need things simplified. There are 3 ways I
know of to do something like that (some have already been covered):

1) Wrap it in another DisplayObject/MovieClip, offset it however much you
need so that the new parent's registration point is where you need it on
your object. Then rotate the parent. Upside: it's easy. Down side: You're
screwing with the display list which fires off events like ADDED_TO_STAGE.
It feels like a hack.

2) Use matrix transformations like MatrixTransformer class's
rotateAroundInternalPoint() method. Cleaner in some ways, but in my
experience, it doesn't always give accurate results over time.

3) Determine where the point is internally around which you want to rotate
(according to your DisplayObject's local coordinates). Rotate and then use
localToGlobal() and globalToLocal() to figure out how much it was offset and
move the x/y coordinates to compensate.

Hope that was more helpful.

Jack

-Original Message-
From: Anthony Pace [mailto:anthony.p...@utoronto.ca] 
Sent: Monday, January 12, 2009 2:24 PM
To: Flash Coders List
Subject: Re: [Flashcoders] change the origin of rotation for a movieclip?

How about a real answer?

Jack Doyle wrote:
> There's a new plugin for TweenLite/Max that'll cause transformation
> (rotation/scale) tweens to occur around any point, so it'll be as easy as:
>
> TweenLite.to(mc, 2, {transformAroundPoint:{point:new Point(100, 100),
> rotation:85}});
>
> Or if you want to use the center of the object as its origin, you could
> simply do:
>
> TweenLite.to(mc, 2, {transformAroundCenter:{rotation:80}});
>
> It works for the scale too, like:
>
> TweenLite.to(mc, 2, {transformAroundCenter:{scaleX:1.5, scaleY:2,
> rotation:-70}});
>
> NOTE: The plugin is a membership benefit of Club GreenSock.
>
> You can see an interactive demo at http://blog.greensock.com/sneak-peek/
> (scroll all the way down in the list of plugins - they're at the bottom -
> click "example"). For those of you who are wondering "what's this 'plugin'
> talk with TweenLite - I didn't know there were any plugins!", it's a new
> feature that's part of a big update I'm rolling out soon. It adds lots of
> flexibility. Read more at the site.
>
> Jack
>
> PS There's also TransformMatrixProxy which has been around for a while and
> it'll do something similar and also let you skew things.
> http://blog.greensock.com/transformmatrixproxy/ It's not quite as
convenient
> as a plugin for TweenLite/Max, though.
>
>
> -Original Message-
> From: Anthony Pace [mailto:anthony.p...@utoronto.ca] 
> Sent: Saturday, January 10, 2009 6:12 PM
> To: Flash Coders List
> Subject: [Flashcoders] change the origin of rotation for a movieclip?
>
> How do you change the origin of rotation dynamically? can it be done?  
> or will it always be 0,0
>
> I was hoping that with the new features of as3 that this I would be able 
> to indicate where I wanted the origin; yet, I am starting to think that 
> I was hoping for too much.



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


Re: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-12 Thread Ashim D'Silva
Scale & rotate around an arbitrary centre | Web
2.1
first result on google.

2009/1/13 Anthony Pace 

> Oh yeah this definitely works.  I was having trouble because I needed to
> delete ASO files(thought things had changed in the fp10 upgrade and I was
> going nuts until I figured it out); yet, I am still looking for a better
> way.
>
> I am looking into the matrix transformer class right now.
>
>
> Ian Thomas wrote:
>
>> That shouldn't be the case.
>>
>> You will have to offset the original mc's x and y by half the width
>> and height of the original; but the rotation of the wrapping mc should
>> always take place around that mc's origin.
>>
>> e.g.
>>
>> var wrapper:Sprite=new Sprite();
>> wrapper.addChild(original);
>> original.x=-original.width/2;
>> original.y=-original.height/2;
>>
>> addChild(wrapper);
>>
>> wrapper.rotation=45;
>>
>> ... or whatever.
>>
>> If you're really getting erroneous results from that sort of setup,
>> I'd love to see the source code.
>>
>> Ian
>>
>> On Sun, Jan 11, 2009 at 2:00 AM, Anthony Pace 
>> wrote:
>>
>>
>>> I have actually tried that yet, it seems that when I move the mc in the
>>> wrapper, the origin of the wrapper changes to be that of mc upper left
>>> most
>>> point.
>>>
>>> Leandro Ferreira wrote:
>>>
>>>
 The easiest way is to wrap it arount another object, move its position
 and
 rotate the wraper.

 Leandro Ferreira


 On Sat, Jan 10, 2009 at 10:11 PM, Anthony Pace
 wrote:




> How do you change the origin of rotation dynamically? can it be done?
>  or
> will it always be 0,0
>
> I was hoping that with the new features of as3 that this I would be
> able
> to
> indicate where I wanted the origin; yet, I am starting to think that I
> was
> hoping for too much.
>
>
> ___
> 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
>>
>>
>>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
The Random Lines
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] multiple fonts in TextField?

2009-01-12 Thread Ashim D'Silva
It depends on the compiler, but in the Flash IDE go into your library, and
click New Font, then embed the font you want. Bold and Italic have to be
embedded separately if required. Remember to turn on Export for Actionscript
as well.
You also might want to look into style sheets. It keeps things more
organised and will let you do hovers.

2009/1/13 Mendelsohn, Michael 

> Thanks for replying Rob.  I did this in the document class, but nothing
> happened.
> Import flash.text.Font;
>
> In the constructor:
> Font.registerFont(XYZBold);
>
> Then I tried:
> Font.registerFont(new XYZBold().fontName);
>
> But that didn't work either.  Where do you make it available?
>
> - MM
>
> > If your second font is not embedded in any text field but only
> available via linkage then while it is embedded in your file it is not
> available for usage. To make it available you need to use the
> registerFont function with your linked font. After that it should show
> up in any text field with embedFonts set to true.
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
The Random Lines
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread Jason Van Pelt
I can't go through all of your info, but just off the top of my head what
is the size of the image you are trying to load? Is it larger than the 2880
x 2880 pixel limit?


JASON VAN PELT  •  SENIOR INTERACTIVE DEVELOPER

PETER A MAYER ADVERTISING
324 CAMP ST  •  NEW ORLEANS, LA 70130
TEL 504-210-1232  •  FAX 504-529-4431

vanpe...@peteramayer.com  •  WWW.PETERAMAYER.COM


-  
PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: 
Confidentially, we loathe confidentiality notices. Still, our lawyers tell us 
they are essential in today's world. That said, please consider yourself 
confidentially notified that this email and any attachments may contain 
confidential and privileged information. If you are not the intended recipient, 
please notify the sender with a reply email-confidentially, of course-and 
destroy all copies. And, just between you and us, any dissemination by a person 
other than the intended recipient is unauthorized and may be illegal.  
-  ___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread whispers
Thanks for the advice & reply..

Unfortunately.. I dont think it 'can' be broken down into smaller parts..

Most of the 'babble' was just to put the project into perspective..


The only problem is 'tweaking' that inversedmask() function...

If the intially loaded image is a failry big in dimensions Is seems the
inversed mask function is 'offset' and only shows in the upper left
corner... 

"I" believe it has something to do with the images initial X & Y values
being a negative... So the matrix or threshold portion of the code is
'breaking'

(even though I re-size the images being loaded on the onLoadInit() callback
event to be smaller.. I believe, or is my understanding its either taking
the original clips data or is off-setting it somehow)..

If there is any other information that would help anyone trouble shoot it
with me.. I'd be glad to give it..

Thanks

 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: Monday, January 12, 2009 3:38 PM
To: Flash Coders List
Subject: RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

>> Anyone?  Tons of emails about the same topic over and over? But not 
>>one reply to some AS2 coding help??
>>Surely it cant be too difficult for most of you 'coders' here, on this 
>>mailing list?

Sorry - with all those objectives and all that code you posted (when I'm
busy and someone posts a ton of code, I usually gloss over or ignore since I
don't have time to step through it all), you gave us a lot to chew on.  You
might want to make your question more succinct.  Or at least break your
problem down into separate posts and have us help you tackle a little at a
time rather than one big overall goal.  


Jason Merrill
Bank of America Instructional Technology & Media   ·   GCIB & Staff
Support L&LD

Interested in Flash Platform technologies?  Join the Bank of America Flash
Platform Developer Community Interested in innovative ideas in Learning? 
Check out the Innovative Learning Blog and subscribe.




___
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] change the origin of rotation for a movieclip?

2009-01-12 Thread Anthony Pace
Oh yeah this definitely works.  I was having trouble because I needed to 
delete ASO files(thought things had changed in the fp10 upgrade and I 
was going nuts until I figured it out); yet, I am still looking for a 
better way.


I am looking into the matrix transformer class right now.

Ian Thomas wrote:

That shouldn't be the case.

You will have to offset the original mc's x and y by half the width
and height of the original; but the rotation of the wrapping mc should
always take place around that mc's origin.

e.g.

var wrapper:Sprite=new Sprite();
wrapper.addChild(original);
original.x=-original.width/2;
original.y=-original.height/2;

addChild(wrapper);

wrapper.rotation=45;

... or whatever.

If you're really getting erroneous results from that sort of setup,
I'd love to see the source code.

Ian

On Sun, Jan 11, 2009 at 2:00 AM, Anthony Pace  wrote:
  

I have actually tried that yet, it seems that when I move the mc in the
wrapper, the origin of the wrapper changes to be that of mc upper left most
point.

Leandro Ferreira wrote:


The easiest way is to wrap it arount another object, move its position and
rotate the wraper.

Leandro Ferreira


On Sat, Jan 10, 2009 at 10:11 PM, Anthony Pace
wrote:


  

How do you change the origin of rotation dynamically? can it be done?  or
will it always be 0,0

I was hoping that with the new features of as3 that this I would be able
to
indicate where I wanted the origin; yet, I am starting to think that I
was
hoping for too much.


___
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

  


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


RE: [Flashcoders] multiple fonts in TextField?

2009-01-12 Thread Mendelsohn, Michael
Thanks for replying Rob.  I did this in the document class, but nothing
happened.
Import flash.text.Font;

In the constructor:
Font.registerFont(XYZBold);

Then I tried:
Font.registerFont(new XYZBold().fontName);

But that didn't work either.  Where do you make it available?

- MM

> If your second font is not embedded in any text field but only  
available via linkage then while it is embedded in your file it is not  
available for usage. To make it available you need to use the  
registerFont function with your linked font. After that it should show  
up in any text field with embedFonts set to true.

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


RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread Merrill, Jason
>> Anyone?  Tons of emails about the same topic over and over? But not one
>>reply to some AS2 coding help??
>>Surely it cant be too difficult for most of you 'coders' here, on this
>>mailing list?

Sorry - with all those objectives and all that code you posted (when I'm busy 
and someone posts a ton of code, I usually gloss over or ignore since I don't 
have time to step through it all), you gave us a lot to chew on.  You might 
want to make your question more succinct.  Or at least break your problem down 
into separate posts and have us help you tackle a little at a time rather than 
one big overall goal.  


Jason Merrill
Bank of America Instructional Technology & Media   ·   GCIB & Staff Support 
L&LD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.




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


RE: [Flashcoders] accessing variables - AS3

2009-01-12 Thread Mendelsohn, Michael
Well, it's a method of the Object class, so I'd hazard to guess it will work 
with everything you create.

- MM


> Isn't that for an XML object?


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


RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread whispers
Anyone?  Tons of emails about the same topic over and over? But not one
reply to some AS2 coding help??


Surely it cant be too difficult for most of you 'coders' here, on this
mailing list?


 
// Original email/post: -//


ok..maybe you gents can help me on a problem I've had off and on..
 
project summary:
 

*   load in a dynamic image 

*   trace/create a lineTo object/fill on a layer above this loaded image


*   click a button to create an inversed mask of this above created
lineTo object 

*   effect is the part you drew/colored is not 'cropped' out of the
loaded image (revealing whatever content below)

laymen's terms:
 
load in a image, using the mouse you draw an shape/object 'on' the loaded
image clip, click a button.. it crops it out (thats the effect).. so if you
load an image of a face..you draw a shape/object around the teeth/eye
(whatever) it will 'knock it out'..revealing whatever objects/clips are
underneath the loaded image clip..
 
project layout:
 
contentConainer: 
 
a clips called faceContainer..  inside faceContainer is a clip called
centeredContainer 
 
I load the image into faceContainer.centeredContainer (an offset/center the
centeredContainer inside faceContainer) so that if/when I scale/rotate
faceContainer clip..is scales/rotates form the center point..  (make sense?)
 
so:
 
parent.parent clip (contentContainer)
---parent clip (faceContainer)--
--lineContainer (holds the shape/object I'm using for my source of the
inverse mask --maskContainer (empty clip to hold the dynamically created
clip from the inverse mask method above) --centeredContainer (the place
where the dynamically loaded image gets loaded into, and is 'masked' by the
inversedMask method)

everything actually works FINE until I load in a BIG image.. if I load
an image that DOES not (originally) go -0 (before resize) or is smaller that
the display area..it works fine.. if I load in a HUGE image, something has
an _x value of less than 0 (zero).. it doesnt work..  (FYI: on the
movieClipLoader.onLoadInit() I do resize/scale the movieClip...but
again..for images that are originally very BIG before re-size..the
inversedmask effect does NOT work)
 
I'm fairly certain it has to do with the matrix.translate or maybe I need to
add to it?  but no matter what I've tried.. I cant seem to get it to
work..or possible the threshold portion??
 
ok..onto the problem/question...
 
code snippets..
 
here is the resize code/check I do once the movieClip initializes
 
RE-SIZE:
 
// if height is too big then resize to fit height  if
(target_mc._parent._height > max_height) {
  target_mc._parent._height = max_height;
  target_mc._parent._xscale = target_mc._parent._yscale;  // if height
is too small then resize to fit height  }else if(target_mc._parent._height <
max_height) {
  target_mc._parent._height = max_height;
  target_mc._parent._xscale = target_mc._parent._yscale;  } 
 
 
INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
 
//- [reverse mask code] - //
function inverseMask(mc:MovieClip) {
 contentContainer.faceContainer.centeredContainer.cacheAsBitmap = true;
 var _BMP:BitmapData = new
BitmapData(contentContainer.faceContainer.centeredContainer._width,
contentContainer.faceContainer.centeredContainer._height, true, 0x);
 var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
 var matrix:Matrix = new Matrix(); 
 matrix.translate(0, 0);
 //matrix.translate(mc._x, mc._y);  //doesnt work
 //matrix.translate(contentContainer.faceContainer.centeredContainer._x,
contentContainer.faceContainer.centeredContainer._y); //doesnt work
 //matrix.identity();
 
//matrix.scale(contentContainer.faceContainer.centeredContainer._xscale,
contentContainer.faceContainer.centeredContainer._yscale);
 _BMP.draw(mc, matrix, invert);
 _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height),
new Point(0, 0), "<", 0x, 0x00FF);
 var BMP:BitmapData = _BMP.clone();
 var maskMC:MovieClip =
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedM
ask", contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.attachBitmap(BMP,
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.cacheAsBitmap = true;
 mc._visible = false;
 return maskMC;
}

 
anybody good with matrix stiff and bitmap class??
 
I've tried doing/changing everything I can  but it hasn't seemed to
work..
 
again to re-cap.. everything works..  if the image I load is 'around' the
470x410 dimension..(or smaller) it works fine..
 
I've tested it on a 550c462 image..and it works..however when I load in
an image 1500x1500 for example.. the inversed mask DOES NOT work..
 
it ONLY seems to work in the upper, left hand most corner
 
I guess my 'thoughts' on this are:
 
since the image is centered, and being that it

Re: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-12 Thread Ian Thomas
That shouldn't be the case.

You will have to offset the original mc's x and y by half the width
and height of the original; but the rotation of the wrapping mc should
always take place around that mc's origin.

e.g.

var wrapper:Sprite=new Sprite();
wrapper.addChild(original);
original.x=-original.width/2;
original.y=-original.height/2;

addChild(wrapper);

wrapper.rotation=45;

... or whatever.

If you're really getting erroneous results from that sort of setup,
I'd love to see the source code.

Ian

On Sun, Jan 11, 2009 at 2:00 AM, Anthony Pace  wrote:
> I have actually tried that yet, it seems that when I move the mc in the
> wrapper, the origin of the wrapper changes to be that of mc upper left most
> point.
>
> Leandro Ferreira wrote:
>>
>> The easiest way is to wrap it arount another object, move its position and
>> rotate the wraper.
>>
>> Leandro Ferreira
>>
>>
>> On Sat, Jan 10, 2009 at 10:11 PM, Anthony Pace
>> wrote:
>>
>>
>>>
>>> How do you change the origin of rotation dynamically? can it be done?  or
>>> will it always be 0,0
>>>
>>> I was hoping that with the new features of as3 that this I would be able
>>> to
>>> indicate where I wanted the origin; yet, I am starting to think that I
>>> was
>>> hoping for too much.
>>>
>>>
>>> ___
>>> 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


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Ian Thomas
Screenweaver is Neko. :-) It just happens to host an instance of the
Flash Player, and so can run AS3/SWFs inside itself.

You can't write a socket server in the Screenweaver AS3 API - however,
you can write one in the host (neko) app, and talk to it via the AS3
API you've pointed out, Anthony.

And yes - as I already said, I'm not advocating this as a solution to
Omar's problem per se - I was simply clarifying haXe's capabilities.

Cheers,
   Ian

(Who has a fair few Screenweaver apps kicking around...)

On Mon, Jan 12, 2009 at 6:09 PM, Anthony Pace  wrote:
> You can also do it if it is written in as3 using the screenweaver api.
>
> http://screenweaver.org/doku.php?id=docs:as_api
>
> I would suggest learning more about screenweaver and how it works with the
> neko vm; however, in this case, I think it is a bit of bloat when all he
> needed was a socket server.
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] multiple fonts in TextField?

2009-01-12 Thread Rob Romanek

Hi Michael,

If your second font is not embedded in any text field but only  
available via linkage then while it is embedded in your file it is not  
available for usage. To make it available you need to use the  
registerFont function with your linked font. After that it should show  
up in any text field with embedFonts set to true.


hth,

Rob

On 12-Jan-09, at 3:45 PM, Mendelsohn, Michael wrote:


Hi list...

I am trying to set a TextField (embedFonts = true) to some htmlText.  
It
has a defaultTextFormat of a particular font embedded with linkage  
name

"XYZ".
I have two fonts in my project, the other one being linkage "XYZBold".

I want the htmlText to be something like:
"XYZ Bold stuffXYZ regular stuff";

"XYZ regular stuff" shows up, but "XYZ Bold stuff" doesn't show up.
Can't you embed two fonts in one TextField?



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


Re: [Flashcoders] accessing variables - AS3

2009-01-12 Thread Eric E. Dolecki
Isn't that for an XML object?

On Mon, Jan 12, 2009 at 3:47 PM, Mendelsohn, Michael <
michael.mendels...@fmglobal.com> wrote:

> You might also want to look into using this.hasOwnProperty(stringValue +
> "Amt") to make certain what you're looking for actually exists in the
> object in the first place.
>
> - MM
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] accessing variables - AS3

2009-01-12 Thread Eric E. Dolecki
I apologize, I forgot all about "this" and remembered it right after sending
the email to the list.
Thanks all :)

On Mon, Jan 12, 2009 at 3:36 PM, Nate Beck  wrote:

> this[stringValue + "Amt"] if you're trying to do it within the same class.
> On Mon, Jan 12, 2009 at 12:28 PM, Manish Jethani
> wrote:
>
> > On Tue, Jan 13, 2009 at 1:51 AM, Eric E. Dolecki 
> > wrote:
> > > I have forgotten how to do this... I'd like to set some variables like
> > this
> > > a var exists...
> > > zAmt
> > >
> > > now I'd like to set the value in a method...
> > > [ stringValue + "Amt"] = someValue;
> > >
> > > How do I compose that?
> >
> > That would be:
> >
> >  obj[stringValue + "Amt"] = someValue;
> >
> > where obj is the object that holds the property.
> >
> > Manish
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
>
> Cheers,
> Nate
> 
> http://blog.natebeck.net
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-12 Thread Rob Romanek
Hey Anthony have you checked out the MatrixTransformer class its got a  
handy function, rotateAroundInternalPoint(), which will serve you well.


Rob

On 12-Jan-09, at 3:24 PM, Anthony Pace wrote:


-Original Message-
From: Anthony Pace [mailto:anthony.p...@utoronto.ca] Sent:  
Saturday, January 10, 2009 6:12 PM

To: Flash Coders List
Subject: [Flashcoders] change the origin of rotation for a movieclip?

How do you change the origin of rotation dynamically? can it be  
done?  or will it always be 0,0


I was hoping that with the new features of as3 that this I would be  
able to indicate where I wanted the origin; yet, I am starting to  
think that I was hoping for too much.

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


RE: [Flashcoders] accessing variables - AS3

2009-01-12 Thread Mendelsohn, Michael
You might also want to look into using this.hasOwnProperty(stringValue +
"Amt") to make certain what you're looking for actually exists in the
object in the first place.

- MM

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


Re: [Flashcoders] accessing variables - AS3

2009-01-12 Thread Dave Watts
> I have forgotten how to do this... I'd like to set some variables like this
> a var exists...
> zAmt
>
> now I'd like to set the value in a method...
> [ stringValue + "Amt"] = someValue;
>
> How do I compose that?

I think you can do this directly using getChildByName, or you can
directly reference the parent object as Manish mentioned.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] multiple fonts in TextField?

2009-01-12 Thread Mendelsohn, Michael
Hi list...

I am trying to set a TextField (embedFonts = true) to some htmlText. It
has a defaultTextFormat of a particular font embedded with linkage name
"XYZ".
I have two fonts in my project, the other one being linkage "XYZBold".

I want the htmlText to be something like:
"XYZ Bold stuffXYZ regular stuff";

"XYZ regular stuff" shows up, but "XYZ Bold stuff" doesn't show up.
Can't you embed two fonts in one TextField?

Thanks!
- Michael M.


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


RE: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-12 Thread Merrill, Jason
>> How about a real answer?

I wonder if you could deconstruct the way it was done in AS2 and make an AS3 
version out of this:

http://www.darronschall.com/weblog/2003/09/dynamic-movieclip-registration-with-as2.cfm

Just a thought.


Jason Merrill
Bank of America Instructional Technology & Media   ·   GCIB & Staff Support 
L&LD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
Sent: Monday, January 12, 2009 3:24 PM
To: Flash Coders List
Subject: Re: [Flashcoders] change the origin of rotation for a movieclip?

How about a real answer?

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


[Flashcoders] accessing variables - AS3

2009-01-12 Thread Eric E. Dolecki
I have forgotten how to do this... I'd like to set some variables like this
a var exists...
zAmt

now I'd like to set the value in a method...
[ stringValue + "Amt"] = someValue;

How do I compose that?

-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-12 Thread Anthony Pace

How about a real answer?

Jack Doyle wrote:

There's a new plugin for TweenLite/Max that'll cause transformation
(rotation/scale) tweens to occur around any point, so it'll be as easy as:

TweenLite.to(mc, 2, {transformAroundPoint:{point:new Point(100, 100),
rotation:85}});

Or if you want to use the center of the object as its origin, you could
simply do:

TweenLite.to(mc, 2, {transformAroundCenter:{rotation:80}});

It works for the scale too, like:

TweenLite.to(mc, 2, {transformAroundCenter:{scaleX:1.5, scaleY:2,
rotation:-70}});

NOTE: The plugin is a membership benefit of Club GreenSock.

You can see an interactive demo at http://blog.greensock.com/sneak-peek/
(scroll all the way down in the list of plugins - they're at the bottom -
click "example"). For those of you who are wondering "what's this 'plugin'
talk with TweenLite - I didn't know there were any plugins!", it's a new
feature that's part of a big update I'm rolling out soon. It adds lots of
flexibility. Read more at the site.

Jack

PS There's also TransformMatrixProxy which has been around for a while and
it'll do something similar and also let you skew things.
http://blog.greensock.com/transformmatrixproxy/ It's not quite as convenient
as a plugin for TweenLite/Max, though.


-Original Message-
From: Anthony Pace [mailto:anthony.p...@utoronto.ca] 
Sent: Saturday, January 10, 2009 6:12 PM

To: Flash Coders List
Subject: [Flashcoders] change the origin of rotation for a movieclip?

How do you change the origin of rotation dynamically? can it be done?  
or will it always be 0,0


I was hoping that with the new features of as3 that this I would be able 
to indicate where I wanted the origin; yet, I am starting to think that 
I was hoping for too much.






___
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] accessing variables - AS3

2009-01-12 Thread Manish Jethani
On Tue, Jan 13, 2009 at 1:51 AM, Eric E. Dolecki  wrote:
> I have forgotten how to do this... I'd like to set some variables like this
> a var exists...
> zAmt
>
> now I'd like to set the value in a method...
> [ stringValue + "Amt"] = someValue;
>
> How do I compose that?

That would be:

  obj[stringValue + "Amt"] = someValue;

where obj is the object that holds the property.

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


Re: [Flashcoders] accessing variables - AS3

2009-01-12 Thread Nate Beck
this[stringValue + "Amt"] if you're trying to do it within the same class.
On Mon, Jan 12, 2009 at 12:28 PM, Manish Jethani
wrote:

> On Tue, Jan 13, 2009 at 1:51 AM, Eric E. Dolecki 
> wrote:
> > I have forgotten how to do this... I'd like to set some variables like
> this
> > a var exists...
> > zAmt
> >
> > now I'd like to set the value in a method...
> > [ stringValue + "Amt"] = someValue;
> >
> > How do I compose that?
>
> That would be:
>
>  obj[stringValue + "Amt"] = someValue;
>
> where obj is the object that holds the property.
>
> Manish
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 

Cheers,
Nate

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


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Anthony Pace

You can also do it if it is written in as3 using the screenweaver api.

http://screenweaver.org/doku.php?id=docs:as_api

I would suggest learning more about screenweaver and how it works with 
the neko vm; however, in this case, I think it is a bit of bloat when 
all he needed was a socket server.



Anthony Pace wrote:

http://screenweaver.org/doku.php?id=docs:as_api

If you are going to go this route for later applications, I would use 
screenweaver.  It allows flash to talk to the neko VM.


Omar Fouad wrote:

HaXe and neko I mean

On Mon, Jan 12, 2009 at 7:24 PM, Omar Fouad  
wrote:


 

Wait a minute I don't get you. It is possible to open the Application's
sockets with HaXe?


On Mon, Jan 12, 2009 at 6:52 PM, Weyert de Boer  
wrote:


   

 Absolutely. I was merely correcting this line:
 
   
HaXe will still have the same limitations in the Flash 
Player/AIR: no

server sockets.


  

Yes, I wasn't aware of that bit :-)


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

  


--
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be 
copied,

disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.






  


___
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] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Ian Thomas
If you mean 'can a neko app written in haXe run as a socket server?'
then yes, it can.

Ian

On Mon, Jan 12, 2009 at 5:24 PM, Omar Fouad  wrote:
> Wait a minute I don't get you. It is possible to open the Application's
> sockets with HaXe?
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Omar Fouad
HaXe and neko I mean

On Mon, Jan 12, 2009 at 7:24 PM, Omar Fouad  wrote:

> Wait a minute I don't get you. It is possible to open the Application's
> sockets with HaXe?
>
>
> On Mon, Jan 12, 2009 at 6:52 PM, Weyert de Boer  wrote:
>
>>
>>  Absolutely. I was merely correcting this line:
>>>
>>>
 HaXe will still have the same limitations in the Flash Player/AIR: no
 server sockets.


>>> Yes, I wasn't aware of that bit :-)
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
>
>
> --
> Omar M. Fouad - ActionScript Developer
> www.omar-fouad.net
> Cellular: (+20) 1011.88.534
> Mail: m...@omar-fouad.net
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender. Thank you.
>



-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Anthony Pace

http://screenweaver.org/doku.php?id=docs:as_api

If you are going to go this route for later applications, I would use 
screenweaver.  It allows flash to talk to the neko VM.


Omar Fouad wrote:

HaXe and neko I mean

On Mon, Jan 12, 2009 at 7:24 PM, Omar Fouad  wrote:

  

Wait a minute I don't get you. It is possible to open the Application's
sockets with HaXe?


On Mon, Jan 12, 2009 at 6:52 PM, Weyert de Boer  wrote:



 Absolutely. I was merely correcting this line:
  


HaXe will still have the same limitations in the Flash Player/AIR: no
server sockets.


  

Yes, I wasn't aware of that bit :-)


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

  


--
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.






  


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


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Omar Fouad
Wait a minute I don't get you. It is possible to open the Application's
sockets with HaXe?

On Mon, Jan 12, 2009 at 6:52 PM, Weyert de Boer  wrote:

>
>  Absolutely. I was merely correcting this line:
>>
>>
>>> HaXe will still have the same limitations in the Flash Player/AIR: no
>>> server sockets.
>>>
>>>
>> Yes, I wasn't aware of that bit :-)
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread whispers
ok..maybe you gents can help me on a problem I've had off and on..
 
project summary:
 

*   load in a dynamic image 

*   trace/create a lineTo object/fill on a layer above this loaded image


*   click a button to create an inversed mask of this above created
lineTo object 

*   effect is the part you drew/colored is not 'cropped' out of the
loaded image (revealing whatever content below)

laymen's terms:
 
load in a image, using the mouse you draw an shape/object 'on' the loaded
image clip, click a button.. it crops it out (thats the effect).. so if you
load an image of a face..you draw a shape/object around the teeth/eye
(whatever) it will 'knock it out'..revealing whatever objects/clips are
underneath the loaded image clip..
 
project layout:
 
contentConainer: 
 
a clips called faceContainer..  inside faceContainer is a clip called
centeredContainer 
 
I load the image into faceContainer.centeredContainer (an offset/center the
centeredContainer inside faceContainer) so that if/when I scale/rotate
faceContainer clip..is scales/rotates form the center point..  (make sense?)
 
so:
 
parent.parent clip (contentContainer)
---parent clip (faceContainer)--
--lineContainer (holds the shape/object I'm using for my source of the
inverse mask
--maskContainer (empty clip to hold the dynamically created clip from
the inverse mask method above)
--centeredContainer (the place where the dynamically loaded image gets
loaded into, and is 'masked' by the inversedMask method)

everything actually works FINE until I load in a BIG image.. if I load
an image that DOES not (originally) go -0 (before resize) or is smaller that
the display area..it works fine.. if I load in a HUGE image, something has
an _x value of less than 0 (zero).. it doesnt work..  (FYI: on the
movieClipLoader.onLoadInit() I do resize/scale the movieClip...but
again..for images that are originally very BIG before re-size..the
inversedmask effect does NOT work)
 
I'm fairly certain it has to do with the matrix.translate or maybe I need to
add to it?  but no matter what I've tried.. I cant seem to get it to
work..or possible the threshold portion??
 
ok..onto the problem/question...
 
code snippets..
 
here is the resize code/check I do once the movieClip initializes
 
RE-SIZE:
 
// if height is too big then resize to fit height
 if (target_mc._parent._height > max_height) {
  target_mc._parent._height = max_height;
  target_mc._parent._xscale = target_mc._parent._yscale;
 // if height is too small then resize to fit height
 }else if(target_mc._parent._height < max_height) {
  target_mc._parent._height = max_height;
  target_mc._parent._xscale = target_mc._parent._yscale;
 } 
 
 
INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
 
//- [reverse mask code] - //
function inverseMask(mc:MovieClip) {
 contentContainer.faceContainer.centeredContainer.cacheAsBitmap = true;
 var _BMP:BitmapData = new
BitmapData(contentContainer.faceContainer.centeredContainer._width,
contentContainer.faceContainer.centeredContainer._height, true, 0x);
 var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
 var matrix:Matrix = new Matrix(); 
 matrix.translate(0, 0);
 //matrix.translate(mc._x, mc._y);  //doesnt work
 //matrix.translate(contentContainer.faceContainer.centeredContainer._x,
contentContainer.faceContainer.centeredContainer._y); //doesnt work
 //matrix.identity();
 
//matrix.scale(contentContainer.faceContainer.centeredContainer._xscale,
contentContainer.faceContainer.centeredContainer._yscale);
 _BMP.draw(mc, matrix, invert);
 _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height),
new Point(0, 0), "<", 0x, 0x00FF);
 var BMP:BitmapData = _BMP.clone();
 var maskMC:MovieClip =
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedM
ask", contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.attachBitmap(BMP,
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.cacheAsBitmap = true;
 mc._visible = false;
 return maskMC;
}

 
anybody good with matrix stiff and bitmap class??
 
I've tried doing/changing everything I can  but it hasn't seemed to
work..
 
again to re-cap.. everything works..  if the image I load is 'around' the
470x410 dimension..(or smaller) it works fine..
 
I've tested it on a 550c462 image..and it works..however when I load in
an image 1500x1500 for example.. the inversed mask DOES NOT work..
 
it ONLY seems to work in the upper, left hand most corner
 
I guess my 'thoughts' on this are:
 
since the image is centered, and being that it is 1500x1500.. the _x of the
'faceContainer' is less than zero (0)...and somehow this is affecting where
inversedMask function is applied?.. which is why I think it could be the
Matrix...OR, possible even the threshold portion of the code?

Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Weyert de Boer



Absolutely. I was merely correcting this line:
  

HaXe will still have the same limitations in the Flash Player/AIR: no server 
sockets.


Yes, I wasn't aware of that bit :-)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Omar Fouad
Ian I think it is too late, but I would like to know details about the
HaXe/neko approach.

By the way ppl, I've finished an AIR chat application, that uses the SQLite
"way". I've posted it on my blog minutes ago here
http://omar-fouad.net/blog/?p=99

Thanks for the support and replies everyone :)

On Mon, Jan 12, 2009 at 5:20 PM, Ian Thomas  wrote:

> You could write a socket server in haXe/neko rather than haXe/SWF.
>
> Ian
>
> On Mon, Jan 12, 2009 at 12:58 PM, Weyert de Boer 
> wrote:
> > How do you mean? HaXe will still have the same limitations in the Flash
> > Player/AIR: no server sockets. Of course, you could write the helper
> > applications in any language of your choice. I only would prefer some
> > language which can convert to native executables for OSX, Windows and
> maybe
> > even Linux...
> >>
> >> Couldn't HaXe a good candidate for a solution?
> >>
> >> Omar Fouad wrote:
> >>>
> >>> Hi all,
> >>>
> >>> I wanted to ask if there is a way to let two AIR applications connect
> to
> >>> each other through a home network (the same AIR application running on
> >>> different computers) by using sockets or any other method.
> >>>
> >>> Thanks.
> >>>
> >> ___
> >> 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
>



-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Ian Thomas
On Mon, Jan 12, 2009 at 4:31 PM, Anthony Pace  wrote:

> I believe he is absolutely right wanting to be able to do it entirely with
> air, and there should be a way to do so.  We shouldn't have to come up with
> work-arounds for something so basic.

Absolutely. I was merely correcting this line:
> HaXe will still have the same limitations in the Flash Player/AIR: no server 
> sockets.

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


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Anthony Pace
There are a lot of ways to accomplish a socket connection; yet, I doubt 
this guy knows how to publish for haxe/neko, or would want to learn 
another language; as similar as it may be.


I believe he is absolutely right wanting to be able to do it entirely 
with air, and there should be a way to do so.  We shouldn't have to come 
up with work-arounds for something so basic.


I shouldn't have to use another language if I want to capture from a 
local microphone either.


Ian Thomas wrote:

You could write a socket server in haXe/neko rather than haXe/SWF.

Ian

On Mon, Jan 12, 2009 at 12:58 PM, Weyert de Boer  wrote:
  

How do you mean? HaXe will still have the same limitations in the Flash
Player/AIR: no server sockets. Of course, you could write the helper
applications in any language of your choice. I only would prefer some
language which can convert to native executables for OSX, Windows and maybe
even Linux...


Couldn't HaXe a good candidate for a solution?

Omar Fouad wrote:
  

Hi all,

I wanted to ask if there is a way to let two AIR applications connect to
each other through a home network (the same AIR application running on
different computers) by using sockets or any other method.

Thanks.



___
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


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Anthony Pace

Well I guess I was wrong, and he would like to learn about haxe and neko.

Omar Fouad wrote:

Ian I think it is too late, but I would like to know details about the
HaXe/neko approach.

By the way ppl, I've finished an AIR chat application, that uses the SQLite
"way". I've posted it on my blog minutes ago here
http://omar-fouad.net/blog/?p=99

Thanks for the support and replies everyone :)

On Mon, Jan 12, 2009 at 5:20 PM, Ian Thomas  wrote:

  

You could write a socket server in haXe/neko rather than haXe/SWF.

Ian

On Mon, Jan 12, 2009 at 12:58 PM, Weyert de Boer 
wrote:


How do you mean? HaXe will still have the same limitations in the Flash
Player/AIR: no server sockets. Of course, you could write the helper
applications in any language of your choice. I only would prefer some
language which can convert to native executables for OSX, Windows and
  

maybe


even Linux...
  

Couldn't HaXe a good candidate for a solution?

Omar Fouad wrote:


Hi all,

I wanted to ask if there is a way to let two AIR applications connect
  

to


each other through a home network (the same AIR application running on
different computers) by using sockets or any other method.

Thanks.

  

___
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


Re: [Flashcoders] localconnection and loading

2009-01-12 Thread Joel Stransky
I'm pretty sure the first call to LocalConnection creates the file if one
doesn't exist regardless of what else is loaded.

On Mon, Jan 12, 2009 at 6:03 AM, allandt bik-elliott (thefieldcomic.com) <
alla...@gmail.com> wrote:

> hey folks
>
> i have a question that one of the designers has posed to me.
>
> With a local connection syncing banner, if i have one banner talking to
> another, but when the first banner is setting up the local connection, if
> the second banner isn't properly loaded, will it cause the connection to
> fail?
>
> thanks in advance
> a
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Ian Thomas
You could write a socket server in haXe/neko rather than haXe/SWF.

Ian

On Mon, Jan 12, 2009 at 12:58 PM, Weyert de Boer  wrote:
> How do you mean? HaXe will still have the same limitations in the Flash
> Player/AIR: no server sockets. Of course, you could write the helper
> applications in any language of your choice. I only would prefer some
> language which can convert to native executables for OSX, Windows and maybe
> even Linux...
>>
>> Couldn't HaXe a good candidate for a solution?
>>
>> Omar Fouad wrote:
>>>
>>> Hi all,
>>>
>>> I wanted to ask if there is a way to let two AIR applications connect to
>>> each other through a home network (the same AIR application running on
>>> different computers) by using sockets or any other method.
>>>
>>> Thanks.
>>>
>> ___
>> 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] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Weyert de Boer
How do you mean? HaXe will still have the same limitations in the Flash 
Player/AIR: no server sockets. Of course, you could write the helper 
applications in any language of your choice. I only would prefer some 
language which can convert to native executables for OSX, Windows and 
maybe even Linux...

Couldn't HaXe a good candidate for a solution?

Omar Fouad wrote:

Hi all,

I wanted to ask if there is a way to let two AIR applications connect to
each other through a home network (the same AIR application running on
different computers) by using sockets or any other method.

Thanks.


___
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] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Jiri Heitlager

Couldn't HaXe a good candidate for a solution?

Omar Fouad wrote:

Hi all,

I wanted to ask if there is a way to let two AIR applications connect to
each other through a home network (the same AIR application running on
different computers) by using sockets or any other method.

Thanks.


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


[Flashcoders] localconnection and loading

2009-01-12 Thread allandt bik-elliott (thefieldcomic.com)
hey folks

i have a question that one of the designers has posed to me.

With a local connection syncing banner, if i have one banner talking to
another, but when the first banner is setting up the local connection, if
the second banner isn't properly loaded, will it cause the connection to
fail?

thanks in advance
a
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders