RE: [Flashcoders] custom map image geocoding service?

2008-06-18 Thread Haris KRAJINA
Hehe Good one , I was looking little into it and as I see that Mercator projection is easiest to implement (Google , Yahoo , Map24, ... use Mercator Projection) so you can use their tiles. Math is really simple you can find it here: http://en.wikipedia.org/wiki/Mercator_projection Good luck

RE: [Flashcoders] Exclude classes

2008-06-18 Thread Sunil Jolly
Hi Steven, I've joined this conversation half-way through so sorry if this has already been said: If you're wanted to exclude some classes because you want to load them at runtime, then you can create an SWC with the classes in them and put that in your classpath in the Flash IDE. Classes in the

Re: [Flashcoders] protect CSV separator

2008-06-18 Thread Cedric Muller
Can't you switch for another separator ? Instead of comma, try ___ (underscore underscore underscore) ? Cedric Hi, I'm creating a CSV file from an AIR application, the separator is a comma. How can I protect a comma when I create the String? So that it is not using as a separator,

RE: [Flashcoders] protect CSV separator

2008-06-18 Thread Romuald Quantin
I answer myself :P To protect the comma in a CSV string, it is in fact quite simple: myString = '' + myString + ''; Romu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Romuald Quantin Sent: 18 June 2008 13:35 To: Flashcoders@chattyfig.figleaf.com

[Flashcoders] How to avoid fake data being sent to server?

2008-06-18 Thread Abe Pazos
Does anyone know documentation explaining how to secure Flash client / Server communication? Imagine you have a Flash game. When the game is over, the score is stored in the server. The value can be changed from 150 points to 100 points in memory using some game cracking tools, if you use

Re: [Flashcoders] How to avoid fake data being sent to server?

2008-06-18 Thread Ricky Bacon
Abe Pazos wrote: How does it work in online casinos? I guess the result is probably calculated before it happens on server side, so you just see a representation. This is possible in cases where the input are some numbers, and the result is calculated from that input. But this involves no real

Re: [Flashcoders] How to avoid fake data being sent to server?

2008-06-18 Thread [EMAIL PROTECTED]
this might help you: http://cosmincimpoi.blogspot.com/2007/09/loadvariables-security-by-built-in.html#links email me for details On Jun 18, 2008, at 4:19 PM, Abe Pazos wrote: Does anyone know documentation explaining how to secure Flash client / Server communication? Imagine you have a

[Flashcoders] scaleX on TextField

2008-06-18 Thread nospam
Hello, I have a little question that seems obvious but on which I pull my hair off my head: Does anybody know how to deform a TextField instance? I tried the basics: var txt:TextField = new TextField(); txt.text = TEST DE DEFORMATION; txt.scaleX = 20; addChild(txt); And: var

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Fabio Pinatti
On Wed, Jun 18, 2008 at 10:16 AM, [EMAIL PROTECTED] wrote: Hello, I have a little question that seems obvious but on which I pull my hair off my head: Does anybody know how to deform a TextField instance? I tried the basics: var txt:TextField = new TextField(); txt.text = TEST DE

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread nospam
Quoting Fabio Pinatti [EMAIL PROTECTED]: It's one of the solution I tried and it doesn't work... In my original message I copy/paste an exemple with Sprite but the problem still remains with MovieClip. But thanks anyway, Florent JEAN French Flash Developer http://www.nowhen.net

Re: [Flashcoders] Is there any way to get a list of the classescompiled into a SWF?

2008-06-18 Thread Jim McIntyre
The OP mentioned in another post he's on a Mac - so am I. I'd love to use Flash Develop too but it seems it is Windows-only. Is that true? Romuald Quantin wrote: I think Flash develop should show you the content of your SWF. Sothink decompiler will do the job as well, but PC software. I

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Kenneth Kawamoto
var txt:TextField = new TextField(); txt.text = TEST DE DEFORMATION; var bmpdata:BitmapData = new BitmapData(txt.width, txt.height); bmpdata.draw(txt); var bmp:Bitmap = new Bitmap(bmpdata); bmp.scaleX = 4; addChild(bmp); ...although you cannot

Re: [Flashcoders] Is there any way to get a list of the classescompiled into a SWF?

2008-06-18 Thread Rich Shupe
Yes. Other options include FDT and Flex Builder. TextMate is another way to go, but I don't think it can show you the script content of SWCs or SWFs. On 6/18/08 10:41 AM, Jim McIntyre wrote: The OP mentioned in another post he's on a Mac - so am I. I'd love to use Flash Develop too but it

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread nospam
Yes but... In my case I can have scaleX 1000, so I loose too much quality with this method. I'm triing to embbed fonts outlines in my TextTield but the result is not very good (bad antialiasing). I guest that I have no other choice :) Thanks again, __ Florent Quoting Kenneth Kawamoto

Re: [Flashcoders] How to avoid fake data being sent to server?

2008-06-18 Thread Ricky Bacon
[EMAIL PROTECTED] wrote: this might help you: http://cosmincimpoi.blogspot.com/2007/09/loadvariables-security-by-built-in.html#links Security through obscurity is not a very good idea. You also still have the problem of someone decompiling the swf and modifying it to their needs. -Ricky

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Jon Bradley
On Jun 18, 2008, at 11:27 AM, [EMAIL PROTECTED] wrote: Yes but... In my case I can have scaleX 1000, so I loose too much quality with this method. I'm triing to embbed fonts outlines in my TextTield but the result is not very good (bad antialiasing). I guest that I have no other

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Kenneth Kawamoto
The max size for BitmapData is 2880 x 2880 px, so if you want scale something up to x1000 you may run into a problem unless you chop it up first. Kenneth Kawamoto http://www.materiaprima.co.uk/ [EMAIL PROTECTED] wrote: Yes but... In my case I can have scaleX 1000, so I loose too much

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Matt S.
Couldnt you use Fabios method? or scale the container MC and then convert that whole thing to Bitmap? .m On Wed, Jun 18, 2008 at 11:27 AM, [EMAIL PROTECTED] wrote: Yes but... In my case I can have scaleX 1000, so I loose too much quality with this method. I'm triing to embbed fonts

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Matt S.
Is this online somewhere? Sounds interesting :) .m On Wed, Jun 18, 2008 at 12:29 PM, Jon Bradley [EMAIL PROTECTED] wrote: Don't use scaleX or width/height modifications. Use transformation matrices. I have an application that allows the user to scale, rotate, move (unconstrained and

Re: [Flashcoders] How to avoid fake data being sent to server?

2008-06-18 Thread [EMAIL PROTECTED]
yes and no solution comes in 2 parts: 1. use loadvariables loadVariables(.../script.php?foo1=1foo2=2, this, POST) this is something: when u use loadvariables... flash will send all _root variables too... so php will recive foo1, foo2 and all variables that reside in _root ... with

[Flashcoders] Maintain position on rotation

2008-06-18 Thread eric e. dolecki
AS3. I have a MC I am rotating, and inside the MC I have a Sprite (affixed to the bottom of the MC). While rotating, I want to place another MC's x,y (each frame) on that rotating MC. However the x,y never updates. I tried localToGlobal, but that doesn't seem to change either during the rotation.

Re: [Flashcoders] How to avoid fake data being sent to server?

2008-06-18 Thread Ricky Bacon
[EMAIL PROTECTED] wrote: yes and no 2. extra check in php - make sure script is called from swf and not from browser. you can add some ip ban script for those who try. ?php if (!isset($_REQUEST[speed]) || !isset($_REQUEST[stuffurl])) die(); And I can spoof the headers... ;) If you give

Re: [Flashcoders] Maintain position on rotation

2008-06-18 Thread Rob Romanek
Hi Eric, Try out this code, should do the trick and show that localToGlobal does work Run it once as is, then uncomment the rotation and see the results. hth, Rob var sprite1:Sprite = new Sprite(); sprite1.graphics.beginFill(0x00ff00); sprite1.graphics.drawRect(0,0,100,100);

Re: [Flashcoders] Maintain position on rotation

2008-06-18 Thread Rich Shupe
Theoretically, I'm not sure why not. Can you describe how/where they should overlap or post some code? On 6/18/08 1:27 PM, eric e. dolecki wrote: AS3. I have a MC I am rotating, and inside the MC I have a Sprite (affixed to the bottom of the MC). While rotating, I want to place another

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Jon Bradley
On Jun 18, 2008, at 1:05 PM, Matt S. wrote: Is this online somewhere? Sounds interesting :) var m:Matrix = new Matrix(); m.scale(100,1); myDisplayObject.transform.matrix = m; cheers, jon ___ Flashcoders mailing list

Re: [Flashcoders] Maintain position on rotation

2008-06-18 Thread Jon Bradley
On Jun 18, 2008, at 1:27 PM, eric e. dolecki wrote: While rotating, I want to place another MC's x,y (each frame) on that rotating MC. However the x,y never updates. I tried localToGlobal, but that doesn't seem to change either during the rotation. Can this be easily done? Give

Re: [Flashcoders] How to avoid fake data being sent to server?

2008-06-18 Thread Jon Bradley
On Jun 18, 2008, at 12:25 PM, Ricky Bacon wrote: Security through obscurity is not a very good idea. You also still have the problem of someone decompiling the swf and modifying it to their needs. If Flash Media Server 3 is being used, for a very nice level of protection it can hash

Re: [Flashcoders] Maintain position on rotation

2008-06-18 Thread eric e. dolecki
Hey guys, Before I saw these response posts, I took a slightly different angle on things. When I create my limbs, I am actually adding another limb to a joint sprite on the end of the main limb. That way it simply moves with the upper limb, and can still rotate freely on its own, using some

Re: [Flashcoders] How to avoid fake data being sent to server?

2008-06-18 Thread Steven Sacks
This isn't even open for debate. If you don't run your logic on the server, you have zero security. End of story. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] How to avoid fake data being sent to server?

2008-06-18 Thread Dave Watts
if anyone use decompilers/http request.. will see .../script.php? foo1=1foo2=2 but i have a little surprise in php: If you use a recording HTTP proxy or packet sniffer, you will see (and can modify) the entire HTTP request, not just the first line. 2. extra check in php - make sure script is

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Matt S.
Oh I meant your actual app, but thanks for the code. :) .m On Wed, Jun 18, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] wrote: On Jun 18, 2008, at 1:05 PM, Matt S. wrote: Is this online somewhere? Sounds interesting :) var m:Matrix = new Matrix(); m.scale(100,1);