Re: [Flashcoders] How to smooth bitmap?
Thanks, Latcho! Inside discussions over BitmapData.draw() on Flash-help site I've found this script ?php $file = $_GET[file]; header(Content-Type: image/jpg); readfile($file); ? But it looks very insecure. Do you know a proper one with correct input checking? I'm a new to PHP and it's hard for me to make this script secure. Yes, there is the crossdomain.xml on Facebook, but it opens Facebook for a small set of domains, mostly of them are Facebook servers. Have a look facebook.com/crossdomain.xml Of course there are several Facebook APIs, but the ones I've seen do nothing special about image download. Though they help to easily access image url. And, as far as I know, there are no official Facebook Flash API. On Sat, Apr 11, 2009 at 7:29 PM, Latcho spamtha...@gmail.com wrote: I'm afraid that you need to implement a proxy script on your own server that loads the image from facebook. But isn't there a crossdomain.xml to load from FB ? Or isn't there an API (yet) ? Latcho Pavel Repkin wrote: Hey! I have a bitmap image loaded from external site (Facebook user avatar). Its size is 50x50 pixels and it looks very pixelated when the Flash Stage size changes. The image would look much better if it was smoothed. But, smoothing does not work for images loaded from external domains. MovieClip.forceSmoothing = true just does not work. However if the image resides on the same server as the script, smoothing works like a charm. Do you know how can I smooth the bitmap? Is it possible? AS 2.0, FP 9.0 Pasha. ___ 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] Math: Is this correct?
On Sat, Apr 11, 2009 at 5:57 PM, Jer Brand thejhe...@gmail.com wrote: Thanks Mark, Gonna go read with the faq's. And you hit the nail on the head. It looked right, but the behavior wasn't quite right There's a picture on the Wikipedia page, just look at where the axis' go and replace x, y and z with where they go in your coordinate system. Time to learn some vector math I suppose. Thanks again everyone. I hafta wonder if it'd be easier if I just made the day job pay for a few math courses, I work on campus, so it's not like it'd cost em.shrug I'm not going to argue that a formal math course is a bad idea, it certainly would be valuable and be a better foundation than a random web tutorial. However... formal math courses are very, well, formal. :) The way I see it, to simply go through an online tutorial would be more pragmatic. All you need are two or three dimensions, not a general definition. Frankly, it's usually enough to have heard something before so you know it's there and can look it up when you need it. Then again, if the course would be during work hours, then why not follow up with one after you've got a basic understanding. Of course, those on the list with a formal math background will disagree. :) Mark ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] rotationX not working In Flex actionscript Projects
Hi all, Since I switched to Mac now, I am using Flex Builder for my ActionScript Projects, I've got the latest Flex SDK 3.2 (I think that is the latest) and edited the flex_config xml file. I've added the playerglobal swc file to the build path of Flex for Auto Completion and all. Here is the problem: it seems that the specific FP 10 new properties as .z, .rotationX, .rotationY and .rotationZ are not recognized by the compiler. mc.rotationX = 45; // this is not working as it is ignored. Using Tweener: Tweener.addTween(mc, { rotationX:45, time:1}); // throws Property rotationX not found on [object name ] and there is no default value Is there anything wrong I am doing in flex? Thanks for the support. Cordially. -- Omar M. Fouad - Adobe Flash™ Platform 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] How to smooth bitmap?
Here's a facebook API. http://code.google.com/p/facebook-actionscript-api/ From: Pavel Repkin pavel.rep...@gmail.com Reply-To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Sat, 11 Apr 2009 20:28:14 +0400 To: spamtha...@gmail.com, Flash Coders List flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] How to smooth bitmap? Thanks, Latcho! Inside discussions over BitmapData.draw() on Flash-help site I've found this script ?php $file = $_GET[file]; header(Content-Type: image/jpg); readfile($file); ? But it looks very insecure. Do you know a proper one with correct input checking? I'm a new to PHP and it's hard for me to make this script secure. Yes, there is the crossdomain.xml on Facebook, but it opens Facebook for a small set of domains, mostly of them are Facebook servers. Have a look facebook.com/crossdomain.xml Of course there are several Facebook APIs, but the ones I've seen do nothing special about image download. Though they help to easily access image url. And, as far as I know, there are no official Facebook Flash API. On Sat, Apr 11, 2009 at 7:29 PM, Latcho spamtha...@gmail.com wrote: I'm afraid that you need to implement a proxy script on your own server that loads the image from facebook. But isn't there a crossdomain.xml to load from FB ? Or isn't there an API (yet) ? Latcho Pavel Repkin wrote: Hey! I have a bitmap image loaded from external site (Facebook user avatar). Its size is 50x50 pixels and it looks very pixelated when the Flash Stage size changes. The image would look much better if it was smoothed. But, smoothing does not work for images loaded from external domains. MovieClip.forceSmoothing = true just does not work. However if the image resides on the same server as the script, smoothing works like a charm. Do you know how can I smooth the bitmap? Is it possible? AS 2.0, FP 9.0 Pasha. ___ 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 This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] rotationX not working In Flex actionscript Projects
In FlexBuilder, in the Project properties (right click the project select properties), set the required Flash Player to 10 in the Flex Compiler tab. By default FlexBuilder compiles to Flash 9, which doesn't have the new 3D stuff. regards, Muzak - Original Message - From: Omar Fouad omarfouad@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Saturday, April 11, 2009 10:51 PM Subject: [Flashcoders] rotationX not working In Flex actionscript Projects Hi all, Since I switched to Mac now, I am using Flex Builder for my ActionScript Projects, I've got the latest Flex SDK 3.2 (I think that is the latest) and edited the flex_config xml file. I've added the playerglobal swc file to the build path of Flex for Auto Completion and all. Here is the problem: it seems that the specific FP 10 new properties as .z, .rotationX, .rotationY and .rotationZ are not recognized by the compiler. mc.rotationX = 45; // this is not working as it is ignored. Using Tweener: Tweener.addTween(mc, { rotationX:45, time:1}); // throws Property rotationX not found on [object name ] and there is no default value Is there anything wrong I am doing in flex? Thanks for the support. Cordially. -- Omar M. Fouad - Adobe Flashâ„¢ Platform Developer www.omar-fouad.net Cellular: (+20) 1011.88.534 Mail: m...@omar-fouad.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders