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.
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…
Using AS3 in Flash, loading dynamic text in the TextField is a common task and usually this text is large enough and requires scrollbars to show it properly. Unfortunately, TextField in Flash, even in the latest CS5 version, available via AS3 does not have built-in support of Scrollbars. I recently had to do the same…
In Flash AS3, while using TextArea Component in the following way: But despite importing fl.controls.TextArea, you might still get the following error: It’s solution is quite simple, whenever using Components inside Flash from Components Panel, always drag them once onto the stage, you can delete the dragged instance afterwards. This way, they are automatically added…
Displaying images by loading dynamically using Flash CS5 “UILoader” component is very straight forward. Flash CS5 offer three categories of Components, Flex, User Interface and Video. There are number of components for each User Interface and Video categories. We are going to use the UILoader component from User Interface category in this tutorial, using this…