[Flashcoders] import documents into flash
Hi! A client asked me to create a application that imports different data documents into flash. Html pages, word documents and pdf's. It's about the text only and the layout doesn't matter. Is flash the right choice for this? Regards, Tom ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] import documents into flash
My gut says that this is not the greatest idea, however, I had to do something like this for a course once and ended up creating what is basically a FlashPaper loader. Here's a link to some code for resolving the issues with loading FlashPaper documents in Flex that'll likely be useful. http://www.darronschall.com/weblog/2006/11/how-to-load-flashpaper-documents-in-flex-2.cfm And, of course, flash paper itself http://www.adobe.com/products/flashpaper/ Not sure how accessible this will be, if that's a concern. Jer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Matrix Transformation Problem
Hello; I'm trying to get a matrix transformation to work. The thing about my code is that it prints to screen just fine without any exceptions...but it doesn't skew the text as I'd like it to. Here's my function. All variables defined earlier in code (again, everything works except the transform): function companyName():void { var coName:TextField = new TextField(); coName.text = 'Company Name'; coName.textColor = 0xFF; coName.autoSize = TextFieldAutoSize.LEFT; coName.x = 550; coName.y = 55; var format:TextFormat = new TextFormat(); format.font = myFont.fontName; format.size = 40; coName.setTextFormat(format); var dropShadow:DropShadowFilter = new DropShadowFilter(); dropShadow.color = 0x00; dropShadow.blurX = 10; dropShadow.blurY = 10; dropShadow.angle = 0; dropShadow.alpha = 0.5; dropShadow.distance = 10; var filtersArray:Array = new Array(dropShadow); coName.filters = filtersArray; target.addChild(fontContainer); fontContainer.addChild(coName); addChild(fontContainer); var degX:Number = 15; var degY:Number = 15; var m:Matrix = transform.matrix; m.b = Math.tan(degY *(Math.PI/180)); m.c = Math.tan(degX *(Math.PI/180)); var t:Transform = new Transform(target); t.matrix = m; target.transform = t; } TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] import documents into flash
On 15/02/10 15:02, Tom Huynen wrote: Hi! A client asked me to create a application that imports different data documents into flash. Html pages, word documents and pdf's. It's about the text only and the layout doesn't matter. Is flash the right choice for this? Regards, Tom ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Can you please clarify: It's about the text only and the layout doesn't matter. -- Flash is an excellent choice for this. I am currently developing a full document delivery system for a client. You can approach your task from different perspectives: 1. Use a conversion Web service if the client is happy with that. You can use the scribd API to convert and display the documents. http://www.scribd.com/developers 2. If there are any privacy issues (my case) and your client would rather have the system in house then you need to create the following: 1. A tool that convert the various document formats into pdf 2. Convert the pdf document into a swf file and display it. To get you started, here are a few open source projects that may be of interest: 1. SwfTools: http://www.swftools.org/ pdf2swf will convert your pdf into a swf file - it is a great tool 2. Flex paper for your viewer http://www.devaldi.com/?page_id=260 3. If you need the text in the pdf file, you can use the pdftotext utility that comes with the Xpdf library. I hope this helps. Thanks, Joseph ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Loading content from and sending comments to Wordpress from Flash
hi list. does anyone see a big problem querying a wordpress database with php and loading the result into flash? i did some testing and everything worked as expected - so far. now to the funny part. if i want to post comments to a post in wordpress from flash there is one thing I'm curious about. i used the firefox plugin tamper data and had a look at the post data which is send if i post a comment on a regular html wordpress site. there is a cookie send along that wordpress surely needs. if i delete the cookie and proceed with the server request a wordpress error occurs. How can I read in that cookie and how can I push it into the header of the post request? Does anyone have experience with posting comments in wordpress from flash? Thanks for any answers. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Matrix Transformation Problem
Remove the line 'addChild(fontContainer);' Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Susan Day Sent: Monday, February 15, 2010 10:45 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Matrix Transformation Problem Hello; I'm trying to get a matrix transformation to work. The thing about my code is that it prints to screen just fine without any exceptions...but it doesn't skew the text as I'd like it to. Here's my function. All variables defined earlier in code (again, everything works except the transform): function companyName():void { var coName:TextField = new TextField(); coName.text = 'Company Name'; coName.textColor = 0xFF; coName.autoSize = TextFieldAutoSize.LEFT; coName.x = 550; coName.y = 55; var format:TextFormat = new TextFormat(); format.font = myFont.fontName; format.size = 40; coName.setTextFormat(format); var dropShadow:DropShadowFilter = new DropShadowFilter(); dropShadow.color = 0x00; dropShadow.blurX = 10; dropShadow.blurY = 10; dropShadow.angle = 0; dropShadow.alpha = 0.5; dropShadow.distance = 10; var filtersArray:Array = new Array(dropShadow); coName.filters = filtersArray; target.addChild(fontContainer); fontContainer.addChild(coName); addChild(fontContainer); var degX:Number = 15; var degY:Number = 15; var m:Matrix = transform.matrix; m.b = Math.tan(degY *(Math.PI/180)); m.c = Math.tan(degX *(Math.PI/180)); var t:Transform = new Transform(target); t.matrix = m; target.transform = t; } TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2685 - Release Date: 02/15/10 01:35:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Matrix Transformation Problem
Sorry, you will also need 'coName.embedFonts = true;' Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Keith Reinfeld Sent: Monday, February 15, 2010 12:22 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] Matrix Transformation Problem Remove the line 'addChild(fontContainer);' Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Loading content from and sending comments to Wordpress from Flash
Not sure if it's too late for you to start this but, you might look into using xmlrpc to manage your WordPress instance. There's quite a bit of existing code out there for doing this, and you could start here http://osflash.org/xmlrpcflash with a working xmlrpc flash client. I mention this because it bypasses all the odd inner workings of WordPress (like your cookie issue) and offers a simple wp.newComment method for you to use. Open the xmlrpc.php file in the root of your WordPress install for a full list of methods (they start on line 128). As for the cookie, I almost remember some oddness about that that led me to use xmlrpc. If you've come to far to switch gears now, crack open wp-comments-post.php wp-includes/comment.php. That should give you an order of operation for the validation/cookie/insert-comment, and lead you in the right direction. Jer On Mon, Feb 15, 2010 at 12:11 PM, dr.ache dr.a...@gmx.net wrote: hi list. does anyone see a big problem querying a wordpress database with php and loading the result into flash? i did some testing and everything worked as expected - so far. now to the funny part. if i want to post comments to a post in wordpress from flash there is one thing I'm curious about. i used the firefox plugin tamper data and had a look at the post data which is send if i post a comment on a regular html wordpress site. there is a cookie send along that wordpress surely needs. if i delete the cookie and proceed with the server request a wordpress error occurs. How can I read in that cookie and how can I push it into the header of the post request? Does anyone have experience with posting comments in wordpress from flash? Thanks for any answers. ___ 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] import documents into flash
Tom Huynen wrote: Hi! A client asked me to create a application that imports different data documents into flash. Html pages, word documents and pdf's. It's about the text only and the layout doesn't matter. Is flash the right choice for this? if your are talking about a standalone app (projector), I think the answer is: no parsing word docs and PDF files to extract the text data isn't trivial, in my opinion the best solution is to use existing open source commandline tools for this, like e.g. pdftotext (part of xpdf) and antiword or wvText (part of wv library). since there is no easy way to call commandline tools from flash projectors, I'd recommend to either use a flash wrapper (like zinc or ScreenweaverHX/HaXe) that can do this, or another RAD solution like e.g. director, RuntimeRev or REALbasic. if you are talking about an online app, the frontend doesn't really matter, it could be either flash or plain HTML, the actual parsing would be done on the (*nix) server, again using open source solutions like xpdf or antiword/wvText. cheers, valentin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: AS2: blank input text field when clicked
Thanks to Glen Pike. The solution ended up being very simple. I blanked the text in the input field using enterPage.onSetFocus as below, then added Selection.setFocus(null); to all other controls on that screen so the text field always gets its focus set when clicked. enterPage.onSetFocus = function() { enterPage.text = ; go_btn._visible=true; }; go_btn.onRelease = function() { Selection.setFocus(null); if (enterPage.text != ) { if (enterPage.text=19) { whichPage = int(enterPage.text); holder_uh.myPageFlipperuh.gotoPage(whichPage); go_btn._visible=false; } } }; Alan Neilsen This message is for the named persons use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or; lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity. # This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal # ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: AS2: blank input text field when clicked
Yay! Glad to have helped :) Alan Neilsen wrote: Thanks to Glen Pike. The solution ended up being very simple ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] import documents into flash
Html pages, word documents and pdf's. It's about the text only and the layout doesn't matter. Is flash the right choice for this? if your are talking about a standalone app (projector), I think the answer is: no parsing word docs and PDF files to extract the text data isn't trivial, in my opinion the best solution is to use existing open source commandline tools for this, like e.g. pdftotext (part of xpdf) and antiword or wvText (part of wv library). since there is no easy way to call commandline tools from flash projectors, I'd recommend to either use a flash wrapper (like zinc or ScreenweaverHX/HaXe) that can do this, or another RAD solution like e.g. director, RuntimeRev or REALbasic. just to show what a great tool director used to be :-), here a little standalone windows app that can extract the text contents of both PDF and MS Word files (using xpdf and antiword under the hood): http://dasdeck.com/staff/valentin/tmp/textExtract.zip it took me about 10 minutes to write it, and it would maybe take another 5 minutes to add basic HTML support, and another 5 minutes to port it to Mac. cheers, valentin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] import documents into flash
just to show what a great tool director used to be... Still is! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: AS2: blank input text field when clicked
if you're still in the AS2 universe, look up mx.utils.Delegate. - Original Message - From: Alan Neilsen aneil...@gotafe.vic.edu.au To: flashcoders@chattyfig.figleaf.com Sent: Monday, February 15, 2010 11:00 PM Subject: [Flashcoders] Re: AS2: blank input text field when clicked Thanks to Glen Pike. The solution ended up being very simple. I blanked the text in the input field using enterPage.onSetFocus as below, then added Selection.setFocus(null); to all other controls on that screen so the text field always gets its focus set when clicked. enterPage.onSetFocus = function() { enterPage.text = ; go_btn._visible=true; }; go_btn.onRelease = function() { Selection.setFocus(null); if (enterPage.text != ) { if (enterPage.text=19) { whichPage = int(enterPage.text); holder_uh.myPageFlipperuh.gotoPage(whichPage); go_btn._visible=false; } } }; Alan Neilsen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders