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.
Playing Flash video (flv) files inside flash is a part of every other Flash project these days, but one of the issues I routinely face is the frame rates of the flv file and Flash movie. Flv are usually exported at 25 or 30 fps whereas Flash movies are done at faster rates, so question…
If you ever have developed a website which has tasted a bit of success and has reached to serious volume of traffic, welcome to the Big boys club and new headaches! More traffic means high server load which forces you to take number of steps, some of the most important are listed here (in no…
In Flash UILoader component allows to load external images dynamically. External images help to keep the content and logic separate and initial flash load very quickly. The only issue is the timely loading of images. To make sure that images load before the next part of flash movie plays or any function is called, you…
Coming from PHP background, or from any other language, one really misses the basic functions which are not available yet in AS3. Flash AS3 has dearth of functions and Array functions are no exception. This Flash AS3 function will search the provided array and, if found, returns the index of matching item, otherwise returns 0…
In almost every Flash project, there are thumbnails or icons that need to be created and which then will either load video or image on click event. In a recent project, I had to create thumbnails dynamcially and center align them on stage, based on XML elements, but you can also load them from an…
Before any details, here is the snippet that should remove the MovieClip from stage: clipToRemove.parent.removeChild(clipToRemove); //provided clipToRemove has no parent otherwise that path will also include //but you get the logic here anyway In AS2, removeMovieClip(this) would do the job for removing any clip from stage, but AS3 has changed the things and have made…
In Flash, to add ComboBox Component and populate its labels and values from an external XML document, follow these steps. In the following example, we will load countries list and access country name using its attribute. Create a new Flash (ActionScript 3.0) document. Drag a ComboBox to the Stage and give it an instance name…
New Year’s Eve is a time for looking back and reflect upon last year’s accomplishments and failures. It’s time to take stock and see in which direction one is heading. Personally, 2010 (being a tiger year) has been a very good year for me, I did learn lot of new things such as Facebook apps…
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: function titleCase(txt:String):String{ txt = txt.split(" ").map(function(myElement:String, myIndex:int, myArr:Array):String{ return myElement.substr(0, 1).toLocaleUpperCase() + myElement.substr(1); }).join(" "); return txt; } // you’ll use this function like this var heading:String =…
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…