I am a web & mobile app developer based in Lahore. I have been developing creative, interactive, usable & successful web apps, web portals, php and Flash action scripting, REST apis, WordPress plugins & themes. In recent years, I have worked on Ionic, Angular and TypeScript for hybrid mobile apps, Flutter & Dart, React & React Native, and Swift native iOS mobile app development.
Unfortunately and surprisingly, Flash AS3 does not have a TitleCase function a la ucwords() in PHP todate. Following ActionScript 3.0 function will let you do just that: Hope that helps. Cheers!
On this Christmas, I designed a new Christmas Flash Greeting Card, I have put it on Flash-Greetings.com home page. May your holiday be bright, and may all your wishes come true. Wishing you & your family Good Health, Happiness & Prosperity Whole Year Through! Merry Christmas!! [SWF]http://www.flash-greetings.com/swf/xmas-greetings.swf,510,340[/SWF]
In a recent Flash project, while working with the FLV video, there was requirement to change the playback of flv video to different speeds on user selection. I achieved this by changing the stage frame rate of the Flash movie. Following steps will explain how can you replicate that: Create a MovieClip symbol and place…
While working in Adobe Flash, there are times when you want to know the current frame number of the play head. To display current frame of the movie, draw a TectField on stage, and give it a instance name “frameTxt” using Properties Panel. Put following code in the Actions Panel on frame 1 in ActionScript…
While creating an interactive training application, I had to play video in a box after video image thumbnail click and all the background UI need to be disabled so that user could only go back to main interface after hitting the close button attached to the video player container box. I used FLVPlayback 2.5 component…
Adding preloader in your Flash file is necessary if your swf file size is large, and in my opinnion, anything bigger than 100 kb is large enough to have a preloader. In this age of high speed net, it usually does not take long to load even bigger swf files, but you still don’t want…
While updating few files in a game on Nokia N900 using X-Terminal, files did not copy when I used cp command, it gave ‘omitting directory’ error. FIrst of all gain root access by typing following command: ~$ sudo gainroot ~$ cd MyDocs ~/MyDocs $ cp directory-name /opt/application-name/ cp omitting directory ‘directory-name’ You can fix it…
Google sent an email today to mark AdWords’ 10th birthday by thanking advertisers for advertising with Google with a personal ‘Thank you’ video to each Adwords advertiser. Seeing my domain show up in the story was completely unexpected and amazing. You can check here what I’m talking about. My Personalized Thank You Movie I think…
In AS3, styling the text content dynamically is done using TextFormat class. Create a new Flash AS3 file, In the ActionPanelCreate a TextFormat object with the specified properties. You can then change the properties of the TextFormat object to change the formatting of text fields. For making TextField Bold Setting format of TextField back to…
There are number of cool filters available in Flash CS[X] such as Drop Shadow, Blur, Glow, Bevel etc. These can be applied very easily to any MovieClip dynamically using ActionScript. Follow these steps before adding the AS3 code for applying Drop Shadow filter: Draw a rectangle on stage and convert it into a new MovieClip…
While working on a project, I needed to highlight the selected thumbnail of an image, and this is how I added border dynamically to that MovieClip. Follow these steps before adding the AS3 code: Draw a rectangle on stage and convert it into a new MovieClip by selecting it and pressing F8. Name it a…
Using FlashVars is a very useful way to load dynamic data from the URL or HTML page containing Flash swf file. This approach is mainly used to pass on some id or resource path such as xml file which contains further data. Passing resources paths using FlashVars really makes life easier for a developer switching…
While working on a Flash AS3 application, I needed to manipulate a string and found out that old AS1 and AS2 str.replace() would not work in the same way in the AS3. Instead I ended up using split and join functions for a simple string replacement. Hope that helps. Cheers!
In Flash, ScrollPane component allows every kind of content to be easily added and shown in the scrollpane. Here’s how you can create MovieClips dynamically and add them to the scrollpane on the stage. First of all, this is what will it look like: [SWF]https://www.parorrey.com/wp-content/uploads/2010/12/scrollPane.swf, 500, 300[/SWF] Following are the steps that will create a…
If you see extra spacing between lines in the text content after loading and parsing XML document using AS3 in Flash, you have landed to the right blog post. These extra line spcaes are caused due to \n newline characters and other whoite spaces present in the xml document. Good news is that you can…