Re: [Flashcoders] Socket connection between two air applications on the same Network Area
That is exactly what I have been saying... except I also wanted to point out that, considering he uses a similar app for session controller in an internet cafe, that it was also an insecure method. Reliability and security is nil. Dave Watts wrote: I apologize if I've missed something that anyone has posted in this thread. Insecurity? A SQLite database is ment to be written by clients... of course it is not like a server database, with users, privileges and so on. But it still does the job. I don't think security is the main problem here, but rather the lack of concurrency control. SQLite is meant to be a single-user database, and has no multi-user concurrent capability. Since AIR can talk to remote web services, why not just set up an application server somewhere and let your AIR apps talk to that? Let your app server (and/or its backend database) handle concurrency control for you. 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 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
Exactly. Nate Beck wrote: Dave, I was thinking the same thing. After reading through this thread again, I realized that this client to client thing can be handled using a simple server. And there are already many open-source solutions out there that will accomplish this behavior. Red5, WebORB and BlazeDS all support concurrent connections and passing data from client to client. If you're already depending on the network for SQLite access, why not just host some server solution on said network? Cheers, Nate On Sat, Jan 10, 2009 at 9:44 PM, Dave Watts dwa...@figleaf.com wrote: I apologize if I've missed something that anyone has posted in this thread. Insecurity? A SQLite database is ment to be written by clients... of course it is not like a server database, with users, privileges and so on. But it still does the job. I don't think security is the main problem here, but rather the lack of concurrency control. SQLite is meant to be a single-user database, and has no multi-user concurrent capability. Since AIR can talk to remote web services, why not just set up an application server somewhere and let your AIR apps talk to that? Let your app server (and/or its backend database) handle concurrency control for you. 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 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
Thanks Guys for the Replies... OK I agree with all this, but do you believe I hadn't thought about using an online server and save the headache? As I said before, it is an option that will let the users of an AIR POS application (that also stores and read data in a database shared on the network and it works for 6 months now like a charm) communicate to each other. The real challenge here is the ability to do this offline. I don't want an Internet connection to do this. Plus I don't see the security a big issue in this case. I don't need security. I clean the tables every 24 hours (and compact). There are no plenty of users. I don't think there will be more than 5 computers running it at the same time. I've been thinking about using a PC running Apache and MYSQL locally and let all the computers connect to it (not sure if this is gonna work) but come on, SQLite is amazing in my opinion. I've been testing it since AIR was released and It IS reliable. Of course It is dangerous when accessed by many clients but, as long as the client amount is resoanable, and the code is well written, nothing is impossible. Cheers. On Sun, Jan 11, 2009 at 10:24 AM, Anthony Pace anthony.p...@utoronto.cawrote: Exactly. Nate Beck wrote: Dave, I was thinking the same thing. After reading through this thread again, I realized that this client to client thing can be handled using a simple server. And there are already many open-source solutions out there that will accomplish this behavior. Red5, WebORB and BlazeDS all support concurrent connections and passing data from client to client. If you're already depending on the network for SQLite access, why not just host some server solution on said network? Cheers, Nate On Sat, Jan 10, 2009 at 9:44 PM, Dave Watts dwa...@figleaf.com wrote: I apologize if I've missed something that anyone has posted in this thread. Insecurity? A SQLite database is ment to be written by clients... of course it is not like a server database, with users, privileges and so on. But it still does the job. I don't think security is the main problem here, but rather the lack of concurrency control. SQLite is meant to be a single-user database, and has no multi-user concurrent capability. Since AIR can talk to remote web services, why not just set up an application server somewhere and let your AIR apps talk to that? Let your app server (and/or its backend database) handle concurrency control for you. 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 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] Height and Width of a loaded SWF before itvisuallyrenders?
Hi again. :) It's not a load-time problem that I'm dealing with. It's after they've loaded and been displayed to the user. The animation occours when the user is interacting with them. 1) user clicks on one of the loaded swf files 2) swf file begins animating, changing it's height and width 3) in response to the changing height/width the swf files get moved to new positions The problem I'm having is that the swf file has to render first, before I can access it's new height and width in order to calculate where to move it to. Which is causing juddering as the swf initially renders in the wrong position, gets moved, and then renders in the wrong position again, etc. until the animation is completed. You might be onto something there with calling invalidate. Perhaps I can use that to get the new height and width before it renders. I'll give it a whirl... Ta. ^_^ -[a]- -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Manish Jethani Sent: January 11, 2009 07:21 To: Flash Coders List Subject: Re: [Flashcoders] Height and Width of a loaded SWF before itvisuallyrenders? On 1/11/09, Andrew Murphy amur...@delvinia.com wrote: I need an event that fires after the swf does an enterframe, resizing as the graphics animate, but before the Flash redraws itself. The render event is supposed to get dispatched only if you've called stage.invalidate. Are you doing that from the loading application? ...I'm thinking what I want to do just isn't do-able. That the new frame of the swf has to be drawn before the height and width properties update. One of the way to handle this may be to hide the loaded applications at first, let them load and render off screen, and then lay them out based on their final size. I guess you lose the animation though ... but something along those lines. Manish -- http://manishjethani.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Height and Width of a loaded SWF before itvisuallyrenders?
YES!!! It works! Doing a stage.invalidate() in the loaded .swf file, then listening for it's RENDER event before running the script to position the loaded .swf files. The height and width properties in the loaded .swf are updated to the new ones and accessable to the loading .swf Sweet. Thank you. ^_^ -[a]- -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Manish Jethani Sent: January 11, 2009 07:21 To: Flash Coders List Subject: Re: [Flashcoders] Height and Width of a loaded SWF before itvisuallyrenders? On 1/11/09, Andrew Murphy amur...@delvinia.com wrote: I need an event that fires after the swf does an enterframe, resizing as the graphics animate, but before the Flash redraws itself. The render event is supposed to get dispatched only if you've called stage.invalidate. Are you doing that from the loading application? ...I'm thinking what I want to do just isn't do-able. That the new frame of the swf has to be drawn before the height and width properties update. One of the way to handle this may be to hide the loaded applications at first, let them load and render off screen, and then lay them out based on their final size. I guess you lose the animation though ... but something along those lines. Manish -- http://manishjethani.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3.0 QName class bug?
The AS3.0 documentation states that when a QName instance does not have a URI (it only has a local name), it will match any namespace. However, when I create a new QName instance like this var myQName:QName = new QName(null, images); and use that QName instance like this var results:XMLList = myXMLInstance.elements(myQName); my variable named results should contain an XMLList instance with every XML child element whose local name is images and whose namespace can be anything because my QName instance has a URI set to null. However, this doesn't work as expected. My QName instance does not match any XML element with a local name images that has a namespace. Any ideas? ___ 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
Since you need the session control to be centralized by one administrative computer in the internet Cafe, I would suggest the AIR to AMP(apache mysql php...cause it's free) server method; yet, that is my opinion and we are all free to differ in opinion. If you want to use your method, you are giving yourself more work, to get it working properly, than it is worth; yet, again, this is only my opinion. Sever less message switching using shared files has been around for years. In fact I remember back in 2000 with flash 5 when I was still in my teens trying out a method just like this and getting it to work with XML; yet, realizing there were better ways I moved on. Omar Fouad wrote: Thanks Guys for the Replies... OK I agree with all this, but do you believe I hadn't thought about using an online server and save the headache? As I said before, it is an option that will let the users of an AIR POS application (that also stores and read data in a database shared on the network and it works for 6 months now like a charm) communicate to each other. The real challenge here is the ability to do this offline. I don't want an Internet connection to do this. Plus I don't see the security a big issue in this case. I don't need security. I clean the tables every 24 hours (and compact). There are no plenty of users. I don't think there will be more than 5 computers running it at the same time. I've been thinking about using a PC running Apache and MYSQL locally and let all the computers connect to it (not sure if this is gonna work) but come on, SQLite is amazing in my opinion. I've been testing it since AIR was released and It IS reliable. Of course It is dangerous when accessed by many clients but, as long as the client amount is resoanable, and the code is well written, nothing is impossible. Cheers. On Sun, Jan 11, 2009 at 10:24 AM, Anthony Pace anthony.p...@utoronto.cawrote: Exactly. Nate Beck wrote: Dave, I was thinking the same thing. After reading through this thread again, I realized that this client to client thing can be handled using a simple server. And there are already many open-source solutions out there that will accomplish this behavior. Red5, WebORB and BlazeDS all support concurrent connections and passing data from client to client. If you're already depending on the network for SQLite access, why not just host some server solution on said network? Cheers, Nate On Sat, Jan 10, 2009 at 9:44 PM, Dave Watts dwa...@figleaf.com wrote: I apologize if I've missed something that anyone has posted in this thread. Insecurity? A SQLite database is ment to be written by clients... of course it is not like a server database, with users, privileges and so on. But it still does the job. I don't think security is the main problem here, but rather the lack of concurrency control. SQLite is meant to be a single-user database, and has no multi-user concurrent capability. Since AIR can talk to remote web services, why not just set up an application server somewhere and let your AIR apps talk to that? Let your app server (and/or its backend database) handle concurrency control for you. 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 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?
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] Socket connection between two air applications on the same Network Area
I was about to do this at the very beginning. But my boss is not OK with it... So now I got two alternatives. Or I do it with SQLite, or I get fired :) By the way I am working on it with SQLIte and it works better than I expected.. At the end of the day, It's just a job for the company I work at. Thanks for the advices guys :D On Sun, Jan 11, 2009 at 10:48 PM, Anthony Pace anthony.p...@utoronto.cawrote: Since you need the session control to be centralized by one administrative computer in the internet Cafe, I would suggest the AIR to AMP(apache mysql php...cause it's free) server method; yet, that is my opinion and we are all free to differ in opinion. If you want to use your method, you are giving yourself more work, to get it working properly, than it is worth; yet, again, this is only my opinion. Sever less message switching using shared files has been around for years. In fact I remember back in 2000 with flash 5 when I was still in my teens trying out a method just like this and getting it to work with XML; yet, realizing there were better ways I moved on. Omar Fouad wrote: Thanks Guys for the Replies... OK I agree with all this, but do you believe I hadn't thought about using an online server and save the headache? As I said before, it is an option that will let the users of an AIR POS application (that also stores and read data in a database shared on the network and it works for 6 months now like a charm) communicate to each other. The real challenge here is the ability to do this offline. I don't want an Internet connection to do this. Plus I don't see the security a big issue in this case. I don't need security. I clean the tables every 24 hours (and compact). There are no plenty of users. I don't think there will be more than 5 computers running it at the same time. I've been thinking about using a PC running Apache and MYSQL locally and let all the computers connect to it (not sure if this is gonna work) but come on, SQLite is amazing in my opinion. I've been testing it since AIR was released and It IS reliable. Of course It is dangerous when accessed by many clients but, as long as the client amount is resoanable, and the code is well written, nothing is impossible. Cheers. On Sun, Jan 11, 2009 at 10:24 AM, Anthony Pace anthony.p...@utoronto.ca wrote: Exactly. Nate Beck wrote: Dave, I was thinking the same thing. After reading through this thread again, I realized that this client to client thing can be handled using a simple server. And there are already many open-source solutions out there that will accomplish this behavior. Red5, WebORB and BlazeDS all support concurrent connections and passing data from client to client. If you're already depending on the network for SQLite access, why not just host some server solution on said network? Cheers, Nate On Sat, Jan 10, 2009 at 9:44 PM, Dave Watts dwa...@figleaf.com wrote: I apologize if I've missed something that anyone has posted in this thread. Insecurity? A SQLite database is ment to be written by clients... of course it is not like a server database, with users, privileges and so on. But it still does the job. I don't think security is the main problem here, but rather the lack of concurrency control. SQLite is meant to be a single-user database, and has no multi-user concurrent capability. Since AIR can talk to remote web services, why not just set up an application server somewhere and let your AIR apps talk to that? Let your app server (and/or its backend database) handle concurrency control for you. 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 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
Re: [Flashcoders] AS3.0 QName class bug?
Here is another way of doing the same thing: myXMLInstance..*::images; Steve On Sun, Jan 11, 2009 at 10:34 AM, David Bellerive david_beller...@yahoo.com wrote: The AS3.0 documentation states that when a QName instance does not have a URI (it only has a local name), it will match any namespace. However, when I create a new QName instance like this var myQName:QName = new QName(null, images); and use that QName instance like this var results:XMLList = myXMLInstance.elements(myQName); my variable named results should contain an XMLList instance with every XML child element whose local name is images and whose namespace can be anything because my QName instance has a URI set to null. However, this doesn't work as expected. My QName instance does not match any XML element with a local name images that has a namespace. Any ideas? ___ 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