[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?

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.

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

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 w...@innerfuse.biz 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

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.

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 anthony.p...@utoronto.ca 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

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 :)

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 w...@innerfuse.biz wrote: Absolutely. I was merely correcting this line: HaXe will still have the same limitations in the Flash Player/AIR: no server

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 omarfouad@gmail.com wrote:

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 omarfouad@gmail.com 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 w...@innerfuse.biz wrote: Absolutely. I was merely

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

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 manish.jeth...@gmail.comwrote: On Tue, Jan 13, 2009 at 1:51 AM, Eric E. Dolecki edole...@gmail.com wrote: I have forgotten how to do this... I'd like to set some variables

Re: [Flashcoders] accessing variables - AS3

2009-01-12 Thread Manish Jethani
On Tue, Jan 13, 2009 at 1:51 AM, Eric E. Dolecki edole...@gmail.com 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:

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

[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

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

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

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

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,

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 n...@tldstudio.com 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

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.

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

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.

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);

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

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

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

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

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

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

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

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

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.1http://web.2point1.com/2008/04/13/scale-rotate-around-an-arbitrary-centre/ first result on google. 2009/1/13 Anthony Pace anthony.p...@utoronto.ca Oh yeah this definitely works. I was having trouble because I needed to delete ASO files(thought

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

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()

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

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,

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

[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

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.

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...

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