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.
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…
Setting up Gmail POP email account in Nokia N900 requires some work because it requires enabling POP in Gmail an then setting up ‘outgoing email server requires authentication’ information, secure authentication and specifying ports for both pop and smtp servers on POP client Nokia N900. These options need to be defined correctly before you can…
Although setting up email account in Nokia N900 is quite straight forward, but if your outgoing email server requires authentication, there are few options which need to be defined correctly before you can start sending emails. If you see ‘Failed’ message for attempting to send email, following are the steps which will resolve this problem,…
If insanity is doing the same thing over and over again and expecting a different result, for once, I’ll with-hold all that I had to say and give today and act differently. But then Somethings never change! In a world that keeps turnin’ and movin’ so fast When you can’t hold on to nothin’ and…
While setting up Westpac – Payway Net osCommerce module on a new online store, I encountered following error while testing it: Notice: Error getting token: java.lang.SecurityException: Invalid IP address in /home/user/public_html/includes/functions/payway_utility.php on line 271 Warning: Cannot modify header information – headers already sent by (output started at /home/user/public_html/includes/functions/payway_utility.php:271) in /home/user/public_html/includes/functions/general.php on line 33 First of…
Although we use RSS feeds or XML feeds for content syndication or better yet a Web Service, there will be times when you will be required to syndicate or read simple text blocks for your own consumption on another website or for your friend’s. You do want to cache the contents locally to avoid fetching…