Re: [Flashcoders] monitor outgoing http requests
Charles nice... If it not crashes and then leaves you with altered (non cleaned up) LAN / IE proxy settings so you can't connect to the net anymore... figure that. Wireshark all the way. It even decrypts AMF0 data. For the peolple whom never use wireshark... choose an interface from the capture / interface menu and clck start. When the packets start streaming, do your communication thingie and grap one of the packets out of the list. You can filter a communication line by rightclicking one of the target packets and choose "filter TCP stream". That gives you a log of the whiole communication and at hthe same time creates a filter example you can learn from. Cheers, Latcho John McCormack wrote: I like Charles too. It's easy to use, it saved me time and it's worth every penny. John Chris Foster wrote: I like using 'Charles' - an HTTP sniffer from http://xk72.com/ C: -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew Sinning Sent: Friday, 9 October 2009 8:28 AM To: Flash Coders Subject: [Flashcoders] monitor outgoing http requests I'm trying to track down an issue with a cross-domain policy violation. Something in one of my movies is making requests to an outside server, but I can't seem to track it down. I get a "request for resource at www.domain.com was denied" message, but I need to figure out what exactly was being requested so I can track down the origin. Is there a utility or a FF extension that I can install that will log all of my outgoing http requests, preferable with a filter? I searched for port-sniffers, but everything I found was either not-free or way to complicated to figure out on my limited timeline. Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. ___ 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] Calculate stringWidth() for a TextField.text
Thank you Glen, both of your replies have been helpful ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] as3 to iphone app
I wonder if Flash local connection in iPhone's environment could be faked similarly like in this example (using Win32 API): http://osflash.org/localconnection Allowing bidirectional messages between Flash and a native iPhone application could be (a tricky and still limited) overcome to the limited access of iPhone native controls from Flash (I'm guessing). Best, Greg Friday, October 09, 2009 (2:20:37 PM): > On Thu, Oct 8, 2009 at 3:09 PM, Merrill, Jason > wrote: >> The following native device APIs and >> functionality are supported: >> >> MultiTouch >> Screen Orientation >> Saving images to Photo Library >> Accelerometer >> Geo-location >> Cut / Copy / Paste >> >> More info here: >> http://labs.adobe.com/wiki/index.php/Applications_for_iPhone >> > I wonder if video streaming to FMS/Red5 will be supported too? > Or vice versa if anyone knows a native iPhone library supporting this? > I'd like to port a Flash app to iPhone and I need this functionality > Regards > Alex > ___ > 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] Calculate stringWidth() for a TextField.text
You need to use a "fixed" width for the text field rather than autosize and you can also use the textWidth / textHeight on TextField. Maybe if you set the width to a maximum first, add your text, then if the text is too long, "square" your text field off a little. I am sorry, text metrics may have been a bit of a red-herring. In AS2, you could ask for the size of a string of text using TextFormat.getTextExtent which returned the same type of TextMetrics object. It's a little different in AS3, so I think you have to fix the width first, then adjust after you read the other values back. Sorry & Hope this is a bit more helpful. Glen Alexander Farber wrote: Hello Glen, On Fri, Oct 9, 2009 at 2:51 PM, Glen Pike wrote: You can get the text metrics - |flash.text.TextField.getLineMetrics()| Have a look in the docs about this class it's quite useful. Watch out for the obligatory 2px gutter around your text.. Alexander Farber wrote: (my code available at http://pastebin.com/m6d9f4087 ) thank you, I've changed my code to: public function set text(str:String):void { _tf.x = PADDING + Util.randRange(10, 40); _tf.y = PADDING + Util.randRange(10, 40); _tf.width = W; _tf.text = str; if (1 == _tf.numLines) { var metrics:TextLineMetrics = _tf.getLineMetrics(0); // add TextField gutter on both side _tf.width = metrics.width + 2 * 2; } .. } But that 2 * 2 seems to be not enough, because the TextField breaks my line in two after I set its width to metrics.width + 2 * 2. There are probably additional margins at left and right sides? Regards Alex ___ 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] Calculate stringWidth() for a TextField.text
Hello Glen, On Fri, Oct 9, 2009 at 2:51 PM, Glen Pike wrote: > You can get the text metrics - |flash.text.TextField.getLineMetrics()| > > Have a look in the docs about this class it's quite useful. Watch out for > the obligatory 2px gutter around your text.. > Alexander Farber wrote: >> (my code available at http://pastebin.com/m6d9f4087 ) thank you, I've changed my code to: public function set text(str:String):void { _tf.x = PADDING + Util.randRange(10, 40); _tf.y = PADDING + Util.randRange(10, 40); _tf.width = W; _tf.text = str; if (1 == _tf.numLines) { var metrics:TextLineMetrics = _tf.getLineMetrics(0); // add TextField gutter on both side _tf.width = metrics.width + 2 * 2; } .. } But that 2 * 2 seems to be not enough, because the TextField breaks my line in two after I set its width to metrics.width + 2 * 2. There are probably additional margins at left and right sides? Regards Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Printing HTML in AIR HTML control?
I have an HTML component in an AIR app. I load a page into it, but how can I print the contents of that page? I've tried this which works, but my page is cropped strangely (I get the top left corner of the page - clipping contents to the right and I don't come close to getting the whole page): function doPrintAir():void { var pjob:PrintJob = new PrintJob(); if ( pjob.start() ){ var poptions:PrintJobOptions = new PrintJobOptions(); poptions.printAsBitmap = true; pjob.addPage(browser.htmlLoader, null, poptions); pjob.send(); } } -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] monitor outgoing http requests
I use WireShark ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Calculate stringWidth() for a TextField.text
Hi, You can get the text metrics - |flash.text.TextField.getLineMetrics()| Have a look in the docs about this class it's quite useful. Watch out for the obligatory 2px gutter around your text.. Glen Alexander Farber wrote: Hello, how do you please find out the width of a string in a TextField? I have a Sprite representing a comic bubble (my code available at http://pastebin.com/m6d9f4087 ) and use a TextField with TextFieldAutoSize.LEFT there to accomodate the text. I would like to shrink the TextField's width though when the text is short. How can I find text's width? Also another thing I'd like to do: when the text is long, I'd like to find its total width too and set the width of the TextField so that the resulting TextField will have a (approximately) square form. Thank you Alex ___ 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] as3 to iphone app
On Thu, Oct 8, 2009 at 3:09 PM, Merrill, Jason wrote: > The following native device APIs and > functionality are supported: > > MultiTouch > Screen Orientation > Saving images to Photo Library > Accelerometer > Geo-location > Cut / Copy / Paste > > More info here: > http://labs.adobe.com/wiki/index.php/Applications_for_iPhone > I wonder if video streaming to FMS/Red5 will be supported too? Or vice versa if anyone knows a native iPhone library supporting this? I'd like to port a Flash app to iPhone and I need this functionality Regards Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Calculate stringWidth() for a TextField.text
Hello, how do you please find out the width of a string in a TextField? I have a Sprite representing a comic bubble (my code available at http://pastebin.com/m6d9f4087 ) and use a TextField with TextFieldAutoSize.LEFT there to accomodate the text. I would like to shrink the TextField's width though when the text is short. How can I find text's width? Also another thing I'd like to do: when the text is long, I'd like to find its total width too and set the width of the TextField so that the resulting TextField will have a (approximately) square form. Thank you Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] monitor outgoing http requests
I like Charles too. It's easy to use, it saved me time and it's worth every penny. John Chris Foster wrote: I like using 'Charles' - an HTTP sniffer from http://xk72.com/ C: -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew Sinning Sent: Friday, 9 October 2009 8:28 AM To: Flash Coders Subject: [Flashcoders] monitor outgoing http requests I'm trying to track down an issue with a cross-domain policy violation. Something in one of my movies is making requests to an outside server, but I can't seem to track it down. I get a "request for resource at www.domain.com was denied" message, but I need to figure out what exactly was being requested so I can track down the origin. Is there a utility or a FF extension that I can install that will log all of my outgoing http requests, preferable with a filter? I searched for port-sniffers, but everything I found was either not-free or way to complicated to figure out on my limited timeline. Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. ___ 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] monitor outgoing http requests
Hi, I have managed to use "Policy File Logging" for flash on Linux - you can set up your local "mm.cfg" file to enable this and pipe out stuff to a log file - this might help you see what is being requested and denied. There are some useful instructions here: http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_05.html#_Using_Logging Glen Andrew Sinning wrote: I'm trying to track down an issue with a cross-domain policy violation. Something in one of my movies is making requests to an outside server, but I can't seem to track it down. I get a "request for resource at www.domain.com was denied" message, but I need to figure out what exactly was being requested so I can track down the origin. Is there a utility or a FF extension that I can install that will log all of my outgoing http requests, preferable with a filter? I searched for port-sniffers, but everything I found was either not-free or way to complicated to figure out on my limited timeline. 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