June 21, 2007
Trigonometry in Flash - Using sin & asin to find angles and radians
Basic trigonometry functions.
sine of angle = opposite / hypotenuse
cosine of angle = adjacent / hypotenuse
tangent of angle = opposite / adjacent
Conversion between radians and degrees
radians = degrees * Math.PI / 180
degrees = radians * 180 / Math.PI
Pythagorean Theorem
Ab squared + BC squared = CA squared
CA = Math.sqrt(Ab squared + BC squared)
CA = Math.sqrt((Ab*AB)+ (BC*BC))
Sine, Cosine and Tangent
You feed in a angle and it would result in a ratio
Arcsine, Arccosine and Arctangent
You feed in a ratio and it would result in a angle
Additional Notes:
Math.PI = 3.1416 = 180 Deg.
Circle = 2*Math.PI = 6.2832 Radians
Posted by Varun Shetty at 01:45 PM | Comments (0)
June 16, 2007
FullScreen Demo in Flash 9
Was testing the fullscreen feature in Flash 9 and above. It is pretty impressive feature and we can use it at a lot of places.
I have used SWF Object 1.5 by Geoff Stearns (deconcept.com) to publish the flash. All you require to add is so.addParam("allowFullScreen", "true"). It would also work for SWF Object 1.4 version but you wouldn't see any transition between the normal to fullscreen in firefox.
If you are not familiar with SWF Object, you can also use the Active Content HTML Template provided by Tracy Stampfli.
Read this tutorial by Tracy Stampfli below to learn more about the fullscreen functionality http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
Full Screen Mode Demos
http://labs.adobe.com/wiki/index.php/Flash_Player:9:Update:Full-Screen_Mode:Demos
Full Screen Mode with Hardware Scaling http://labs.adobe.com/wiki/index.php/Flash_Player:9:Update:Full-Screen_Mode_HW#Full-Screen_mode_with_hardware_scaling
Posted by Varun Shetty at 07:00 PM | Comments (0)
May 24, 2007
Paranoid.Draw [Drawing and Saving Using Flash, PHP and MySQL]
Draw and submit your design .. :)
This is something I always wanted to try out. It took me 2 weeks of book reading to learn PHP and MySQL and bang..!! this is the first experiment I wanted to work on using Flash, PHP and SQL.
This involves.
Designing the Interface
AS 2.0 Development
Flash Remoting - AMFPHP
PHP Development
MySQL Setup
Posted by Varun Shetty at 05:16 PM | Comments (0)
January 26, 2007
Flash Rotation - Radiants - degree - atan2
You Would need Flash 8 Player to View this.
Rotation using atan2
click and drag the yellow balls
I was jus replyin to a online query and I figured a lot of people don't try this out.
Radian = Math.atan2(ac, bc);
degree of object = ((Radian*180)/Math.PI);
this is just for some people to remmember it .. including me.. :P
Posted by Varun Shetty at 05:42 AM | Comments (2)
October 30, 2006
I am now Certified Macromedia Flash MX 2004 Developer
I cleared the Macromedia Flash MX 2004 Developer certification today. Coincidently I also received the Designer certification through courier. I imagined a badge or an Adobe card as a certification identity, but only received a certification. I will post the developer certificate pictures as soon as I receive it.
The certification can be verified from the following link.
Pearson VUE
Registration Number: 217743385
Verification Number: 192095656
Posted by Varun Shetty at 07:09 PM | Comments (0)
October 09, 2006
I am Certified Macromedia Flash MX 2004 Designer
Today I cleared the Flash MX 2004 Designer exam. I gave the exam just to build up my confidence for the Developer exam, which I think would be a bit difficult. I realized later that the passing percentage for the designer exam is 75% and not 60% that really scared me as I had directly been for the exam without any preparation. Well 5+ Yrs of experience definitely gives me enough confidence to give the exam. I cleared the exam with 90%, which is a decent mark without any preparation ;) I have planned to give the developer exam within a month's time.
The certification can be verified from the following link.
Pearson VUE
Registration Number: 217483891
Verification Number: 233430147
Posted by Varun Shetty at 11:29 AM | Comments (0)
October 02, 2006
Flash Player Detection
There are innumberable flash detection script available online.
These are the ones I usually refer to.
SWF Object
Comes along with JS detection, Express Install, Searchable, Accessibility Compliant..etc.
Adobe Flash Detection Script
The usuall script with an latest update for IE ActiveX changes
Other related news or update can be found here
Flash Player Detection Developer Center
Posted by Varun Shetty at 12:11 AM | Comments (0)
September 18, 2006
Flash Filter Lab
http://www.flashfilterlab.com/index.php
interesting filters out here..
Posted by Varun Shetty at 01:05 AM | Comments (0)
Open Source Flash
Some Open Source Flash Sites
http://www.osflash.org/
Open Source Flash Organisation
http://www.ifbin.com/
IFBIN, started by Ted Patrick.
it needs a small installation and the you can surf through flash and flex codes and reuse them where ever you want.
Flash maintained by members of the Flash community.
Posted by Varun Shetty at 12:52 AM | Comments (0)
September 29, 2005
Flash Player 8 Microbenchmark Tests
Macromedia Performance Improvements in Flash Player 8
Some astonishing improvement figures on the flash player. This is certainly the best release for the Flash.
There is no doubt that you should get Flash Player 8 Installed/Updated for your web browser
Posted by Varun Shetty at 11:43 PM | Comments (0)
Spark Flash 8 Sample's Gallery
The Spark Conference Flash 8 Gallery
Check this link out for some really cool Flash 8 Examples. Almost most of the Flash 8 Sample examples I have seen so far resides within the links on this site.
Posted by Varun Shetty at 03:37 AM | Comments (1)
September 23, 2005
ColorMatrixFilter in Flash 8
Another Experiment using Flash 8 ColorMatrixFilter
You Would need Flash 8 Player to View this.
Click 'ColorMatrix' on the flash for color tweaking options.
The ColorMatrix Class is one hell of a thing, I can just imagine its potential in segregating color channels, desaturation, replacing colors, color selection... etc.
The picture is of a 'Sadu'(Saint) from Karla Caves which is around 20 KM away from Pune, these Buddhist caves dating back to 160 BC, have a Chaitya (chapel), the largest in the country and some viharas (dwelling caves). The awesome chaitya hall that makes this journey worth it. The architecture and the carvings of this hall are something else! A must see!
The picture is taken from a Nikon F80 SLR Camera, I hope to upload all the pictures someday. Will share the link once its done.
Posted by Varun Shetty at 04:04 AM | Comments (0)
September 19, 2005
Flash 8 - blur on mousetrail
You need Flash 8 Player to View this.
just some experiment I was working on... The blur filter is really kewl and the code is just nothing..
post me a comment if you need the source.
Posted by Varun Shetty at 12:51 AM | Comments (3)
September 13, 2005
Shipping Macromedia Studio 8
Finally the much awaited Macromedia Studio 8.0 is available for trial/purchase download the evaluation version today
it is price tagged at US $999 and with a Introductory pricing for the upgrade option is of US $399 (So this might possibly increase in the future)...
along with studio 8.0 you recieve the following macromedia products
* Dreamweaver 8.0 (US $399)
* Flash Professional 8.0 (US $699)
* Fireworks 8.0 (US $299)
* Contribute 3 (incl. FlashPaper 2) (US $149)
* ColdFusion MX 7 Developer Edition
Posted by Varun Shetty at 10:08 PM | Comments (0)
August 23, 2005
Moveable Type is finally up and running....
Moveable Type is finally up and running after 4 hours of uploading, fiddeling and reading the documents. I am sure i've missed a hell lotta options on the spamming, archiving, commenting etc. But I should be able to pick them up gradually and work more towards a complete and regular updating blog... best of luck to myself... gee, that sounds lame...
Posted by Varun Shetty at 11:40 PM | Comments (0)
March 20, 2005
Back From Bangalore Macromedia MAX 2005
BANGALORE
Date: March 17th & 18th 2005(8.30 am to 6.00 pm)
Venue: Hotel Le Meridien, 28, Sankey Road, P.B. No. 174,
Bangalore - 560 052
This is the first time I have ever travelled for a seminar in my life, And it has definitely been worthwhile I spent. Although my company didn't sponser me for this trip I was determined to be there. Couldn't dare to miss the sneak speak preview of the Flash 8 - codename '8 Ball'.
I met a lot of flash enthusiasts, had a ball of a time speaking to them. My camera went beserk clicking pictures all the time. I ended up finishing nearly 4 films on a 4 day trip to Bangalore.
Day One Agenda
- ActionScript for Designers (Greg Rewis)
- Deconstructing Flash Video (Greg Rewis)
- Sneak Peek(Greg Rewis) - my jaw got dislocated
- Building Flash Applications with Dynamic Data (Chak Ming Fai)
- Cold Fusion MX 7 (Chak Ming Fai) - slept during this one
- Migrating to RIA from traditional web and client server applications (James Talbot) - zzzz
- Creating Your First Flex Application (James Talbot) - this got me up... eyes wide open
- Using ActionScript2 in Flex and Flash Applications (James Talbot) - neat
Day Two Agenda
- Using CSS for Page Layout (Greg Rewis) - busy writing notes very interesting
- Building Dynamic Applications with Dreamweaver (Greg Rewis) - never knew that dreamweaver made complicated things so easy.
- Using Templates with Dreamweaver and Contribute (Greg Rewis)
- Deploying Contribute 3 and Web Publishing System (Chak Ming Fai)
- Breeze Session(Chak Ming Fai)
- Macromedia Mobile Solutions (Chak Ming Fai)
- Mobile Developer Program (Bill Perry) -
- Creating Dynamic Applications with Macromedia Flash Lite 1.1 (Bill Perry) - This was a great help for giving a fresh lead to mobile development.
- Flash Opportunities in the Asian mobile market (Arron Fang)
- Content Developer Testimonial (Cyril Ferry)
About the Presenters...
- Greg Rewis - he was just great, very funny and kept everyone on the move.
- Chak Ming Fai - something was wrong with him, he looked and sounded lost. I have attended his sessions earlier and I really looked upon for this one. Somehow this time it was lost.
- Bill Perry - He knew what he was speaking and I really liked the way he explained things.
Spoof -
- I heard that Greg would always remembers his mom during a seminar and he sure did.
- While Bill Perry was displaying a beta version of the Flash Lite CDK and the application crashed and froze still. You should have seen Bill's puzzled blank face.
Posted by Varun Shetty at 12:11 PM | Comments (0)
March 18, 2005
Flash Communication Server Books
I went through couple of chapters in Flash communication server MX by Kevin Towes. The book starts off in a very basic level. Anyone starting with flash communcation server could understand the book a pretty simple manner. But the content isn't that attractive. The topic seems to be extended worthlessly to fill up the pages for the book. The examples were decent, but I would need to check the code as I see many of them are not written appropriately. In any case since this is the only Flash Comm book I can lay my hands, I cannot do much about it. well the worst down side is also that it is for Flash Communication Server MX 1.0, while MX 1.5 version is the latest in the market.
I wish if the Programming Flash MX 1.5 book by Brian Lesser is published soon in India. The book looks really good and the Flash Comm. mailing list has been very positive with it's review.
Posted by Varun Shetty at 10:03 AM | Comments (0)
March 09, 2005
Privacy Box Size
I have been working on Flash Communication Server lately, and there was this flash camera feed that were to be broadcasted.
The layout was something like the left side of the html window was suppose to have a web cam window which is made in flash and the right side had html text which would change on runtime.
A single flash is been divided into a presenter/viewer mode. The person who logs in as an admin would have rights to present flash web feed and the others would have the ability to view it only.
The flash movie size was set to 160x120. Since its a web cam only. The web cam worked perfectly on a bigger stage size and on any size in a flash IDE. But it never worked on IE window with a 160x120 flash stage size.
It didn't work because whenver the SWF tries to access the camera. Flash Player displays a Privacy dialog box that lets the user choose whether to allow or deny access to the camera. The privacy dialog box needs a stage size around 215x138 to display, if the stage size is below that the settings and the privacy dialogue box would never appear.

So Make sure your Stage size is at least 215 x 138 pixels; this is the minimum size Flash requires to display the dialog box.
Posted by Varun Shetty at 01:57 AM | Comments (0)
February 28, 2005
Macromedia Flash Players For Testing.
Older Versions of Flash Player - December 13, 2002
for specific flash 5 & flash 6 players check the below link
Older Minor Versions of Flash Player - October 13, 2003
These are available specifically for Macromedia Flash developers who are examining their sites from the perspective of users with older Flash Players. For normal use, please download the most current version of the Flash Player, available from the Flash Player Download Center.
Before installing a different Flash Player, I would recommend uninstalling the current installed Flash Player and restarting the system. For more information on removing and installing the Flash Player, see How to uninstall the Flash plug-in and ActiveX Control
Posted by Varun Shetty at 09:20 PM | Comments (0)
