Phase of life

How does it feel when you have:

  • not written a single line of code in last twenty days
  • not been online for last five days
  • been very sick last few days
  • been thinking to relocate to another city within next one week
  • missed barcamp-bangalore talk and fun, for which you were so excited about and got involved in planning initially
  • started feeling that everything and everyone around you are changing?
  • not followed a single thread in any of mailing lists you have subscribed to
  • not imagined things which are happening with you now
  • feelings of uncertainty but full of hopes for future
  • started avoiding too much talking to avoid others making you feel bad about your decisions
  • started believing strongly actions speak louder than words

That’s my state now. I don’t exactly know how does it feel? I surely feel weaker, disconnected, lost, alone, lazy and what-not.
Is it because I have been ignoring my food and been on coffee and sandwich for almost last two months? Is it because I really need a break? But then reading a part of an email from a friend confuses me more, these words specially: Confucius said, “everyday is a holiday if you love what you do.”
Anyways, I believe it’s a phase of life. There is always learning so am I doing in this phase of life.

The journey begins

I am moving ahead in life to start a new journey. Where I want to do things I like. Probably, taking break for some months from work after that might start freelance development or join some startup. I would keep posting what I am doing, yeah you gotta bear me this time because posts might be totally non-techncial.
In simple words, today was my last day in Yahoo! I am moving out of Bangalore to stay with my parents or closer to them.

Legendary Kannada actor Rajkumar passed away

Legendary Kannada actor Rajkumar passed away due to cardiac arrest. It is, Indeed, a big loss to Indian film industry/community. May his soul rest in peace and I share my condolence to his family, friends and fans.

Onfolio is free now

Microsoft acquired Onfolio and now it comes free with Microsoft Windows Live Toolbar. I got an email from Onfolio that I can request refund since I bought Onfolio last year. Cool!

But I think, FireFox extension is not installed anymore. I guess, you can still use old extension as long as you don’t uninstall it while removing old Onfolio version.

Macromedia(Adobe) online store sucks

I know it is harsh statement but I am so upset with Macromedia(Adobe)’s online store. I have been trying to buy FlashLite 2.0 from online store but no success. I sent an email to support guys, no reply in last two days. I tried calling toll-free Indian number, it’s always busy, are they busy talking to their girlfriends all the time? I tried calling San Francisco number, no body picks-up.

WTF?

Following points upset me:-

  • India is not listed in Asia Pacific(APAC) store of macromedia.com
  • I can not buy things from other region-stores because they check for billing address of credit-card then why they are asking for CVV(three-digit-number). I can buy things from Amazon why not here?
  • There is no Paypal integration
  • Support sucks

Importantly, Why the hell, India is not listed in APAC store? How can they ignore India?

I mean, hundreds of developers, like me, would want to buy FlashLite but they can’t for these reasons. I remember, many of my friends (FlashLite developers) kept asking me the ways to download FlashLite, when I was in macromedia. But I could never understand their problem, but today I can really understand how frustrated they must have been.

I just ask, why India is not listed in APAC store?

I spent three nights writing some cool application, bought the expensive Nokia N90 so that I can enjoy seeing my application working on it. But when I try to download the player nothing happens, I am really pissed off. I never said such harsh words in my life(to anyone) but I have to say here because of above reasons.

Hope, you guys understand how I am feeling now..\

Update: I want to say more. We (flash)developers do evangelism(unofficially) about Flash/Flashlite in local lists, among non-macromedia developers. But what would be the impression or experience, if a J2ME guy wants to give a try to FlashLite and he is not able to download the player? He would probably drop the idea and might not raise the issue but would surely spread the bad word.
Also wanted to say that I loved Macromedia, love it and it would always be alive in my heart.

BarCamp Bangalore

BarCamp Bangalore is going to happen very soon in Bangalore. Dates are yet to be finalized but we are working on plans. I hope, very soon date, venue etc would be finalized.

We are infact meeting on this saturday(March 18th) in Barista (near Koshys), Near M.G Road, Bangalore at 4PM
You can check out the BarCampBangalore WIKI. Manish has created a Yahoo! groups mailing-list for discussion.

BarCamp in Chennai and Hyderabad is also happening next month. I am impressed the way, Chennai guys are planning for ideas and budgets etc.

I am planning to participate in BarCampChennai but once again not sure due to work schedule. But I would try my best.…

How To Get Url Query String Variables Within Flex Application


--- layout: post status: publish published: true title: How to get URL query-string variables within Flex application author: display_name: Abdul Qabiz login: admin email: [email protected] url: http://www.abdulqabiz.com author_login: admin author_email: [email protected] author_url: http://www.abdulqabiz.com wordpress_id: 170 wordpress_url: http://www.abdulqabiz.com/wordpress/?p=170 date: ‘2006-03-06 13:15:00 +0530’ date_gmt: ‘2006-03-06 07:45:00 +0530’ categories: - Flash and Actionscript - Macromedia Flex - Flex tags: - flash - Flex - flashplatform - runtime - Actionscript - querystring - query - string - url comments: - id: 543 author: Lawrence Lai author_email: [email protected] author_url: http://lozza.sendu.to date: ‘2006-03-27 09:16:29 +0530’ date_gmt: ‘2006-03-27 03:46:29 +0530’ content: ‘I like your site Mr. Abdul Qabiz. Thank you for your site, its quite the enjoyable read. Jolly good now. ‘ - id: 544 author: Kenny Lim author_email: [email protected] author_url: http://kenny.azn.nu date: ‘2006-03-27 09:19:44 +0530’ date_gmt: ‘2006-03-27 03:49:44 +0530’ content: ‘Jolly well done with the input strings, quite the systemic anomoly. Jolly good. ‘ - id: 545 author: Arul Prasad author_email: [email protected] author_url: http://arulprasad.blogspot.com/ date: ‘2006-04-24 19:56:58 +0530’ date_gmt: ‘2006-04-24 14:26:58 +0530’ content: | and in Flash(AS1 & AS2), you could do this by using the _url property. Guess many would’ve known that? - id: 546 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com date: ‘2006-04-25 00:45:43 +0530’ date_gmt: ‘2006-04-24 19:15:43 +0530’ content: | Arul, _url property returns the URL of the SWF. Which is the first case on above post. What I talked about is getting query-string which is passed to the wrapper page. f.ex: http://foo.com/page.htm?foo=var You can get the foo=var name-value pair using above solution. -abdul - id: 547 author: Bret Stevens author_email: [email protected] author_url: ‘’ date: ‘2006-05-01 21:57:41 +0530’ date_gmt: ‘2006-05-01 16:27:41 +0530’ content: ‘So is the javascript required, or does your AS do all the work internally (if so, nice!) ‘ - id: 548 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com date: ‘2006-05-02 18:08:22 +0530’ date_gmt: ‘2006-05-02 12:38:22 +0530’ content: | You don’t need any javascript code. AS takes care of everything. -abdul - id: 549 author: Jason author_email: [email protected] author_url: ‘’ date: ‘2006-05-03 10:05:23 +0530’ date_gmt: ‘2006-05-03 04:35:23 +0530’ content: | This is less of a comment and more of an offer. You have no listed email address, so I thought that this would be the best way to get a hold of you. Your actionscript was exactly what I’ve been looking for. My friend and I have had this idea for his local record label for quite some time: if he could put a flash movie on the root of his site (his homepage), as visitors come to to the root from other pages for his bands, the flash movie could read the bandID url parameter and write it to a text file. The movie could then use that text file to show a list of the most recent bands visited by displaying the picture associated with that bandID (i.e. http://www.recordlabel.org/bandID01.jpg). Do you think this is possible using flash? If so, would you like to earn some money to develop it? I have no doubt he would pay for your services, and I’d pitch in too cause I’d like to mod it out and use it for some other things. We’re just a couple of kids, but if you’re interested, we could pay you via paypal before the work is started. If not, thanks for your time anyways. - id: 550 author: Chanel Rachel author_email: [email protected] author_url: http://chanel.alkablog.com date: ‘2006-05-29 20:25:37 +0530’ date_gmt: ‘2006-05-29 14:55:37 +0530’ content: ‘if it were PHP it would be much easier (there’’s a special function for it). But we have what we have (thanks for the post nonetheless) ‘ - id: 551 author: Chris author_email: [email protected] author_url: ‘’ date: ‘2006-06-02 05:05:59 +0530’ date_gmt: ‘2006-06-01 23:35:59 +0530’ content: | Can this work in Mx 2004? thxs - id: 552 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com/blog date: ‘2006-06-02 18:54:43 +0530’ date_gmt: ‘2006-06-02 13:24:43 +0530’ content: | Yeah, you can make it work in Flash Player 7. Using Flash JavaScript gateway or my JSCommunicator Library insted of using ExternalInterface. You can use similar technique. -abdul - id: 553 author: Keld author_email: [email protected] author_url: http://Http://ControllingTheInter.Net date: ‘2006-06-11 10:23:53 +0530’ date_gmt: ‘2006-06-11 04:53:53 +0530’ content: ‘So is there any way to get the Variables from the Present URL with nothing else execpt for flash. You think that it would have it implamented but it dosent. Or does it? Is there a way to retrive it without any Java or anything more like for instants MYSPACE filters out Java :-\ ‘ - id: 554 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com date: ‘2006-06-14 21:22:46 +0530’ date_gmt: ‘2006-06-14 15:52:46 +0530’ content: | hmm, if you are using Flash Player 9, then you should be able to do that. If you are using JavaScript (SWFObject) to embed Flash application in your html page, then you should be able to do that and pass things via FlashVars. -abdul - id: 555 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com date: ‘2006-06-15 09:36:24 +0530’ date_gmt: ‘2006-06-15 04:06:24 +0530’ content: | hmm, if you are using Flash Player 9, then you should be able to do that. If you are using JavaScript (SWFObject) to embed Flash application in your html page, then you should be able to do that and pass things via FlashVars. -abdul - id: 556 author: katoey author_email: [email protected] author_url: http://www.katoey-blog.com date: ‘2006-06-20 05:20:31 +0530’ date_gmt: ‘2006-06-19 23:50:31 +0530’ content: | But Ive only got flash player 8, what can I do ? Katoey - id: 557 author: jon author_email: [email protected] author_url: ‘’ date: ‘2006-07-13 05:59:15 +0530’ date_gmt: ‘2006-07-13 00:29:15 +0530’ content: | I was able to simplify the conversion method (still compatible with ActionScript 2.0) by using String.fromCharCode():

public function convert
(src:String):String {
while(true) {
var i:Number = src.indexOf(“%”);
if (i==-1)
break;
var n:Number = parseInt(“0x”+src.substr(i+1,2));
src = src.substr(0,i) + String.fromCharCode(n) + src.substr(i+3);
}
return src;
}\

- id: 558 author: jon author_email: [email protected] author_url: ‘’ date: ‘2006-07-13 06:18:38 +0530’ date_gmt: ‘2006-07-13 00:48:38 +0530’ content: | Ah, fixed a minor bug: if there was a “%25” on the querystring, that would cause problem. Try “tester.html?text1=abc%25def” with the previous version and you would get the character represented by “%de”!.

My quickie fix is below:


private function convert(src:String):String {
var i:Number = src.indexOf(“%25”); // look for %25, which is the percent-sign
if (-1 != i) {
// if we convert a percent-sign in-line, that will confuse
// our simple parser. Let’s replace it with a sentinel.
src = src.substr(0,i) + “[Yz” + src.substr(i+3);
}

while(true) {
i = src.indexOf(“%”);
if (i==-1)
break;
var n:Number = parseInt(“0x”+src.substr(i+1,2));
src = src.substr(0,i) + String.fromCharCode(n) + src.substr(i+3);
}

i = src.indexOf(“[Yz”); // look for sentinel
if (-1 != i) {
src = src.substr(0,i) + “%” + src.substr(i+3);
}

return src;
}\

- id: 559 author: wendelmaques author_email: [email protected] author_url: http://www.wendelmaques.com.br date: ‘2006-10-04 03:29:17 +0530’ date_gmt: ‘2006-10-03 21:59:17 +0530’ content: ‘Thank’’s for you function. ‘ - id: 560 author: Anz author_email: [email protected] author_url: http://www.digitalmesh.com date: ‘2007-01-02 16:39:26 +0530’ date_gmt: ‘2007-01-02 11:09:26 +0530’ content: ‘Thanks my friend.. :) ‘ - id: 561 author: Tesla author_email: [email protected] author_url: ‘’ date: ‘2007-01-11 12:38:09 +0530’ date_gmt: ‘2007-01-11 07:08:09 +0530’ content: | Hi, is the flashboject.js file required? If yes, then this statement isn’t entirely correct: “You don’t need any extra JavaScript code in HTML.” Embedding a JS file is equivalent to having extra JS code in your HTML. - id: 562 author: Tesla author_email: [email protected] author_url: ‘’ date: ‘2007-01-11 13:02:43 +0530’ date_gmt: ‘2007-01-11 07:32:43 +0530’ content: ‘I just downloaded and tested out your demo. It looks like the JS file is not required, which put a big smile to my face. Thanks, it’’s a very useful class and if I ever use it you will be given credit. Good job. ‘ - id: 563 author: mico author_email: [email protected] author_url: ‘’ date: ‘2007-01-24 16:51:54 +0530’ date_gmt: ‘2007-01-24 11:21:54 +0530’ content: ‘ANZ, flashobject.js is needed only for including flash object. ‘ - id: 564 author: Xplane author_email: [email protected] author_url: ‘’ date: ‘2007-02-01 23:28:02 +0530’ date_gmt: ‘2007-02-01 17:58:02 +0530’ content: ‘Thank’’s very useful. ‘ - id: 565 author: Jason Hanson author_email: [email protected] author_url: ‘’ date: ‘2007-02-23 09:53:56 +0530’ date_gmt: ‘2007-02-23 04:23:56 +0530’ content: | Has anyone found a way to get the URL when allowScriptAccess=”never” (like on MySpace.com). ExternalInterface.call() throws a SecurityError: Error #2060 The code below always throws an error when embeded on MySpace.com, or a similar site that sets allowScriptAccess to never. CODE /CODE - id: 566 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com/blog/ date: ‘2007-02-23 13:11:39 +0530’ date_gmt: ‘2007-02-23 07:41:39 +0530’ content: | > ExternalInterface.call() throws a SecurityError: > Error #2060 That is intentional to have more security. Myspace (or alike sites) have faced serious security threats in past...Cross-site-scripting stuff... I am not sure, if there is a way... -abdul - id: 567 author: Jason Hanson author_email: [email protected] author_url: ‘’ date: ‘2007-02-23 21:12:01 +0530’ date_gmt: ‘2007-02-23 15:42:01 +0530’ content: | Thanks for the reply Abdul. I have been trying to find a work around to this for a few days straight now. The interesting thing is that the Flash player knows what page it is on. When you attempt to run any ExternalInterface.call() inside a try / catch the error that is thrown contains a message similar to: “Sandbox security error: The swf at domain http://jason.com cannot access the page at http://www.myspace.com. When I found this I was happy and just parsed through the error message with RegEx to pull out the URL. (I only need the URL for tracking purposes - I want to know what sites my SWF ends up on). However, and this is a big however, the error message ONLY contains the stack trace with the URLS of the error when in the Debugger Player. This does not work in the retail consumer version of the player. Flash player knows the URL of the page it is on even when allowScriptAccess=”never”. I just want to find a way to capture that error message or some other way to get the page it is on - or even just the domain it is in. Thanks for any ideas you have! Also, I have been looking for the source of ExternalInterface.as so get a better idea of how to intercept the error it throws. Do you know where I could get that - it is in the playerglobal.swc. thanks a ton! --jason - id: 568 author: Andrew Paul Simmons author_email: [email protected] author_url: http://blog.andrewpaulsimmons.com date: ‘2007-06-25 03:02:50 +0530’ date_gmt: ‘2007-06-24 21:32:50 +0530’ content: ‘I just need to get the domain name. I will have user embedded content so I can’‘t use any JavaScript. ‘ - id: 569 author: rob capilli author_email: [email protected] author_url: ‘’ date: ‘2007-08-08 20:25:03 +0530’ date_gmt: ‘2007-08-08 14:55:03 +0530’ content: ‘Thank you so very much for posting this and giving us the ability to download your code. It has helped me very much. I will be visiting your site much more. ‘ - id: 570 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com/blog date: ‘2007-08-20 23:22:38 +0530’ date_gmt: ‘2007-08-20 17:52:38 +0530’ content: | \@jon: Thanks for code changes and suggestions. \@jason, Andrew: I am not able to think total client-side (actionscript/flash) find the domain/page name that embeds SWF, if allowScriptAccess is not allowed. However, I can tell you other way that requires a server-side script...

Where, getSWF.php might return something like this:- yourapp.swf?referer= If you serve your SWF through a PHP file, you can capture HTTP_REFERRER on server-side and pass it via query-param of SWF (if it has to go to SWF) or store in DB to track who is referring your APPS. Does it make sense? -abdul - id: 571 author: Darren author_email: [email protected] author_url: ‘’ date: ‘2007-08-22 18:35:56 +0530’ date_gmt: ‘2007-08-22 13:05:56 +0530’ content: ‘Can you contact me if you are your compnay is doing Flex development? I am a developer and I need assistance getting some things in Flex to work even though they are things that should just work. ‘ - id: 572 author: Mahesh author_email: [email protected] author_url: ‘’ date: ‘2007-08-24 04:55:43 +0530’ date_gmt: ‘2007-08-23 23:25:43 +0530’ content: | Hi Abdul, I’m new to flex so please bear with me. I have a static HTML page that embeds Flex swf file and I pass one parameter to it. like:

Test.swf?id=567

both in embed src and movie value. I tried your example but it does not seem to work for me. Any help is highly appreciated. Thanks, Mahe - id: 573 author: Abdul Qabiz author_email: [email protected] author_url: http://abdulqabiz.com/blog/ date: ‘2007-08-24 13:48:27 +0530’ date_gmt: ‘2007-08-24 08:18:27 +0530’ content: | \@Mahesh: QueryString class is not for getting there parameters passed to SWF via FlashVars or as query-string (as you mentioned). There is built-in support for your use-case. If you are using Flex, you can look at Application.application.parameters object for such properties, if you are using Flash, you can get the query-string passed as properties in stage - AS3 and _level0 - AS2.… Does it make sense? -abdul - id: 574 author: Subrat author_email: [email protected] author_url: ‘’ date: ‘2007-10-04 12:11:53 +0530’ date_gmt: ‘2007-10-04 06:41:53 +0530’ content: | Hi abdul, i am new to flex. in my application i am just passing the url inside navigateToURL ie var urlRequest:URLRequest = new URLRequest(“http://localhost:8080/MyApp.swf?securityId=7”); navigateToURL(urlRequest,”_self”); .and when MyApp.swf loads in the creationComplete i am trying to access the securityId by mx.core.Application.application.parameters.securityId. but this shows the result as “undefined”. please help. - id: 575 author: DaDDeL author_email: [email protected] author_url: ‘’ date: ‘2007-10-19 01:44:35 +0530’ date_gmt: ‘2007-10-18 20:14:35 +0530’ content: | Wow. Never thought of doing it with ExternalInterface. Simple, yet effective. Thanks a ton! - id: 576 author: Kinsley author_email: [email protected] author_url: ‘’ date: ‘2007-10-25 01:51:22 +0530’ date_gmt: ‘2007-10-24 20:21:22 +0530’ content: | For all of you that can’t get it to work, make sure that you param “allowScriptAccess” in your html embbeding flash is set to “always” if testing from your computer. it should work with “sameDomain” if tested from your server.

And just a thought to eliminate all string parsing, you could just use URLVariables to decode the querystring. so this code:\

;
try
}
}
}catch(e:Error) { trace(“Some error occured. ExternalInterface doesn’t work in Standalone player.”); }
}

would look like this:

private function readQueryString():void ;
try catch(e:Error) { trace(“Some error occured. ExternalInterface doesn’t work in Standalone player.”); }
}

and dont forget to import flash.net.URLVariables and to change the Object to URLVariables for _params.

Really neat class though. very useful. - id: 577 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com/blog/ date: ‘2007-10-25 09:56:20 +0530’ date_gmt: ‘2007-10-25 04:26:20 +0530’ content: | \@Kinsley: Thanks, when I wrote this code I am not sure URLVariable class was there, I wrote it for first public beta of Flex 2. I would update the code to avoid loop, though URLVariables would be doing the same internally. -abdul - id: 578 author: guru author_email: [email protected] author_url: ‘’ date: ‘2007-10-26 14:23:44 +0530’ date_gmt: ‘2007-10-26 08:53:44 +0530’ content: ‘Hi any one help me. How i fetch current URL of the HTML page in flash widget. ‘ - id: 579 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com/blog/ date: ‘2007-10-26 15:25:37 +0530’ date_gmt: ‘2007-10-26 09:55:37 +0530’ content: | \@guru: Since html page is in different domain, this code might not work because it requires html and swf in same domain or allowScriptAccess=always|sameDomain. However, you can find about the html page using HTTP referer. Serve your flash-widgets through a server-side script, capture the header and pass it to SWF using flashvars or query string.. http://yourserver.com/getWidget.php?id=foo Above URL can do a HTTP 30x redirection to http://yourserver.som/widget.swf?referer=http://otherserver.com/somepage.html http://otherserver.com/somepage.html is embedding the SWF.. Does that make sense? -abdul - id: 580 author: Anz author_email: [email protected] author_url: http://www.flickrmailer.com date: ‘2007-11-01 17:05:56 +0530’ date_gmt: ‘2007-11-01 11:35:56 +0530’ content: | Hi Abdul, I think the URLVariables solution given by DaDDeL is more good because it will automatically take care of url decoding. Thanks for the structured and uselful class.. Best Regards Anz - id: 581 author: gena author_email: [email protected] author_url: ‘’ date: ‘2007-11-08 03:53:32 +0530’ date_gmt: ‘2007-11-07 22:23:32 +0530’ content: | how do i do the exact opposite of what you did. i need to send a url-encoded string to a server. i can’t get the variable to be a string...it deciphers my “&” and “=” into %3d etc. i use URLVariables, URLRequest, and a URLLoader?? i don’t need to load anything...just POST some info in a URLencoded string. THANKS! - id: 582 author: tom author_email: [email protected] author_url: http://tom,kulturlounge.de date: ‘2007-11-13 02:32:12 +0530’ date_gmt: ‘2007-11-12 21:02:12 +0530’ content: | Oooh Abdul! Do you remember the axe advertising??? Of course you do. Like it ;) - id: 583 author: Fahad author_email: [email protected] author_url: ‘’ date: ‘2007-11-28 13:28:15 +0530’ date_gmt: ‘2007-11-28 07:58:15 +0530’ content: | dude this site rox ! found asnwers here that that cudnt anywhere Good job , keep the site running :D - id: 584 author: Jason author_email: [email protected] author_url: ‘’ date: ‘2007-12-07 13:48:35 +0530’ date_gmt: ‘2007-12-07 08:18:35 +0530’ content: ‘Did anyone ever get around the flash allowScriptAccess problem? ‘ - id: 585 author: Anoop Sharma author_email: [email protected] author_url: ‘’ date: ‘2007-12-12 20:27:12 +0530’ date_gmt: ‘2007-12-12 14:57:12 +0530’ content: “Hello.\nNeed a bit help, I am setting a variable in flex application. and pasing a xml file name from flashvars from HTML. If I direct give the file name it shows the data in gridtable but while passing it is not taking. here is the code::\nCode for MXML file ::\n----\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n----\ncode for HTML ::\n-\n-\n-\n-\n-\n-\n-\n-\n-\t----\n” - id: 586 author: Justin author_email: [email protected] author_url: ‘’ date: ‘2007-12-20 10:22:28 +0530’ date_gmt: ‘2007-12-20 04:52:28 +0530’ content: ‘link to adobe live is broken ‘ - id: 587 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com/blog date: ‘2007-12-20 21:08:11 +0530’ date_gmt: ‘2007-12-20 15:38:11 +0530’ content: | \@Justin: Thanks, this article was posted during Flex 2 Beta time.. Link is down, I would correct it. -abdul - id: 588 author: Anoop author_email: [email protected] author_url: ‘’ date: ‘2007-12-31 11:27:53 +0530’ date_gmt: ‘2007-12-31 05:57:53 +0530’ content: | Hello Abdul. I read your comments and got several solutions from here. I stuck again, the problem is: when I give a XML file name with path (ie: xml/tableGrid.xml) in MXML it works fine with HTTPService method. But when I am passing the XML file name through Flashvars it is giving error “UseProxy set to flase” which I alerady did. Alert shows the name of teh file correctly, SO passing name from flashvars is not a problem but why I am not getting the data in dataGrid from that XML?? Also if I put direct xml data in a variable and pass it through flashvars it is showing fine in DtatGrid without even HTTPService method. But I have to pass data from external XML File. Where I am doing mistake , can You plese give some comment on this. Thx Anoop - id: 589 author: jason author_email: [email protected] author_url: ‘’ date: ‘2008-01-18 04:31:47 +0530’ date_gmt: ‘2008-01-17 23:01:47 +0530’ content: “You can’t get URLs from Myspace/Facebook because of allowscriptaccess never. Please vote to fix the bug below so we have this information everywhere.\nThe browser URL information is actually available in the Error Code returned from a call to ExternalInterface (when Javascript is not allowed). This information is not available in the standard player (but is in the debug), ARGHâ\x80¦. We all want to track our Flash widgets so please vote to fix this bug. You would then be able to get the browser URL from the Error code returned on the API call from Myspace page (a bit of a hack but the information would be available).\nhttp://bugs.adobe.com/jira/browse/ASC-3095\n” - id: 590 author: Steve author_email: [email protected] author_url: ‘’ date: ‘2008-03-15 22:12:18 +0530’ date_gmt: ‘2008-03-15 16:42:18 +0530’ content: ‘This site also provides a way to get the url parameters in actionscript: http://www.flexpasta.com/index.php/2008/03/15/getting-url-parameters-host-name-port-in-flex-actionscript/ ‘ - id: 591 author: Jigar Oza author_email: [email protected] author_url: ‘’ date: ‘2008-03-17 12:18:45 +0530’ date_gmt: ‘2008-03-17 06:48:45 +0530’ content: | Hi, I have downloaded your code. But whenever i try to give parameters in url like this : “C:\Documents and Settings\jigaro\Desktop\ParamTesting\bin\ParamTesting.html?myName=Jigar&myHomeTown=Ahmedabad” I am getting following error : Windows cannot find ‘C:\Documents and Settings\jigaro\Desktop\ParamTesting\bin\ParamTesting.html?myName=Jigar&myHomeTown=Ahmedabad’. Check the spelling and try again, or try searching for the item by clicking the Start button and then clicking Search. What should i do now? - id: 592 author: Evan Mullins author_email: [email protected] author_url: http://blog.circlecube.com date: ‘2008-03-21 04:42:59 +0530’ date_gmt: ‘2008-03-20 23:12:59 +0530’ content: | Hey Adbul, Great Blog, I’ve learned a lot already! I really love this QueryString class you’ve written. Would you mind if I used some of it in a similar how to post for flash but rewriting it for as2? I’ll send you a link soon... Thanks again and keep it up! - id: 593 author: Evan Mullins author_email: [email protected] author_url: http://blog.circlecube.com date: ‘2008-03-21 11:07:14 +0530’ date_gmt: ‘2008-03-21 05:37:14 +0530’ content: | Abdul, Thanks this is a great site, I’ve learned a lot already. I thought your QueryString class was very intuitive and easy to use. I wanted to let you know I actually liked it so much I ported it back to as2. And I figured I’d share that as well, so it’s at my blog post here, Get Current URL and Query String Parameters to Flash. Just to let you know! Thanks again for the class, Evan @ Circlecube.com - id: 594 author: baji author_email: [email protected] author_url: ‘’ date: ‘2008-03-21 21:42:22 +0530’ date_gmt: ‘2008-03-21 16:12:22 +0530’ content: | Hi..i am trying to do fileuplaod from flex to java servlet..problem is request is not coming to servlet..If I use jsp instead of servlet then request is coming to jsp..am not sure what’s wrong with srvlet approach..any help woudl be appreciated here is my code: here is my servlet ................… package com.boa.flex.servlet; import java.io.File; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.HashMap; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileItemFactory; import org.apache.commons.fileupload.FileUploadException; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * \@author nbkzk5e * / public class UploadFileServlet extends HttpServlet { / (non-Javadoc) * \@see javax.servlet.http.HttpServlet#service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) / private static final Log log = LogFactory.getLog(UploadFileServlet.class); //@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // TODO Auto-generated method stub super.doGet(req, resp); doPost(req,resp); } //@Override protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { log.info(“am in servlet”); log.info(“author”+req); File disk = null; FileItem item = null; FileItemFactory factory = new DiskFileItemFactory(); Iterator iter = null; List items = null; ServletFileUpload upload = new ServletFileUpload( factory ); ServletOutputStream out = null; try { // Parse the incoming HTTP request // Commons takes over incoming request at this point // Get an iterator for all the data that was sent // TODO: Leverage generics log.info(“am in servlet”); items = upload.parseRequest( req ); iter = items.iterator(); // Set a response content type res.setContentType( “text/xml” ); // Setup the output stream for the return XML data out = res.getOutputStream(); out.println( “” ); // Iterate through the incoming request data while( iter.hasNext() ) { // Get the current item in the iteration item = ( FileItem )iter.next(); // If the current item is an HTML form field if( item.isFormField() ) { // Return an XML node with the field name and value out.println( “” ); // If the current item is file data } else { // Specify where on disk to write the file // Using a servlet init param to specify location on disk // Write the file data to disk // TODO: Place restrictions on upload data disk = new File( “C:\\“+item.getName() ); log.info(“am after disk”); item.write( disk ); // Return an XML node with the file name and size (in bytes) out.println( “” ); } } // Close off the response XML data and stream out.println( “” ); out.close(); // Rudimentary handling of any exceptions // TODO: Something useful if an error occurs } catch( FileUploadException fue ) { fue.printStackTrace(); } catch( IOException ioe ) { log.info(“io error”); ioe.printStackTrace(); } catch( Exception e ) { e.printStackTrace(); } } } here is web.xml .............…. XFireServlet org.codehaus.xfire.transport.http.XFireConfigurableServlet XFireServlet /servlet/XFireServlet/ XFireServlet /services/* FileServlet com.boa.flex.servlet.UploadFileServlet FileServlet /action/* - id: 595 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com/blog date: ‘2008-03-22 03:52:38 +0530’ date_gmt: ‘2008-03-21 22:22:38 +0530’ content: | \@Evans: Thanks. Please feel free to use this code in whatever way you want to. \@Baji: I can’t see flex code, please post it again enclosed by

yourcode

- id: 596 author: glenn author_email: [email protected] author_url: ‘’ date: ‘2008-03-28 04:36:07 +0530’ date_gmt: ‘2008-03-27 23:06:07 +0530’ content: “@Steve: I think you aren’t running the code inside a webserver. Try running it on localhost, or place it on your webserver (or install LAMP/WAMP/MAMP for a quick Apache/Mysql environment on you local machine)\n” - id: 597 author: Nemanja author_email: [email protected] author_url: http://www.nemke.net date: ‘2008-05-09 18:30:29 +0530’ date_gmt: ‘2008-05-09 13:00:29 +0530’ content: ‘Great job Abdul! ‘ - id: 598 author: Jad author_email: [email protected] author_url: ‘’ date: ‘2008-06-20 18:05:44 +0530’ date_gmt: ‘2008-06-20 12:35:44 +0530’ content: | Hi, With all those comments I still can’t get it running... Here’s my situation: Dynamically generated page by Typo3 CMS. On this page I have a little Flex application. And this application should detect the language parameter from the URL, wich is L. The url looks like this : http://www.domain.com/index.php?id=1125&L=1 I’ve tried all your solutions... nothing! When I launch the flex app from Flexbuilder, I can see that qs.url contains the url. Good. But queryString remains desperatly empty... And when I deploy the flex app to the website, then qs.url also remains empty...?? What did I forgot?? I’m really desperate... - id: 599 author: Jad author_email: [email protected] author_url: ‘’ date: ‘2008-06-20 18:06:45 +0530’ date_gmt: ‘2008-06-20 12:36:45 +0530’ content: | Hi, With all those comments I still can’t get it running... Here’s my situation: Dynamically generated page by Typo3 CMS. On this page I have a little Flex application. And this application should detect the language parameter from the URL, wich is L. The url looks like this : http://www.domain.com/index.php?id=1125&L=1 I’ve tried all your solutions... nothing! When I launch the flex app from Flexbuilder, I can see that qs.url contains the url. Good. But queryString remains desperatly empty... And when I deploy the flex app to the website, then qs.url also remains empty...?? What did I forgot?? I’m really desperate... - id: 600 author: Fernando author_email: [email protected] author_url: ‘’ date: ‘2008-07-23 08:33:48 +0530’ date_gmt: ‘2008-07-23 03:03:48 +0530’ content: ‘Nice joob ;D ‘ - id: 601 author: Dinesh author_email: [email protected] author_url: http://ndinesh.wordpress.com date: ‘2008-08-12 01:43:36 +0530’ date_gmt: ‘2008-08-11 20:13:36 +0530’ content: ‘Hi, now what is the equivalent of Application.application.url in flash as3 ?? how to get the url in as3?? pls help.. ‘ - id: 602 author: dvtin author_email: [email protected] author_url: ‘’ date: ‘2008-09-11 16:56:11 +0530’ date_gmt: ‘2008-09-11 11:26:11 +0530’ content: ‘Thanks, this article very good, I try successfull, one more thanks. ‘ - id: 603 author: MIke author_email: [email protected] author_url: http://www.miketec.org date: ‘2008-09-30 02:06:48 +0530’ date_gmt: ‘2008-09-29 20:36:48 +0530’ content: ‘I doubt anybody will read this far, but it is much easier to use URLUtil.stringToObject to decode the query string. And it can handle decoding the parameters. ‘ - id: 604 author: Varun author_email: [email protected] author_url: ‘’ date: ‘2008-11-04 17:18:52 +0530’ date_gmt: ‘2008-11-04 11:48:52 +0530’ content: | Hi Abdul, I have been a web application developer using JSP and servlets etc. Now i am entering into flex development. Can you point me to some resource that can help me make the transition (Specfically aimed at Java web developers). Thanks in advance, Varun - id: 605 author: Lin author_email: [email protected] author_url: http://www.reina.com.my date: ‘2009-01-15 20:16:24 +0530’ date_gmt: ‘2009-01-15 14:46:24 +0530’ content: | Hi Mr. Abdul Qabiz Can you advice me, what is the Variable or AS set for in the SWF? for both the Name & Hometown according to your SOURCE FILE. Can you show me the FLA? - id: 606 author: Faisal Rehman author_email: [email protected] author_url: ‘’ date: ‘2009-01-16 20:41:57 +0530’ date_gmt: ‘2009-01-16 15:11:57 +0530’ content: | hi Abdul, I have used your class it is awesome and realy greate work. But still i have found some problem with this class :) when i am passing values to html it is working fine for both mozila and Internet Explorer. and when i am passing values directly to swf like http://localhost/myswf.swf?myname=faisal in mozila it is working perfect but not working for internet explorer. is it possible to pass values to swf in internet explorer or this is limitation of class or am i missing something ? Please Help ! Hope you will reply. Thanks - id: 607 author: Kb author_email: [email protected] author_url: ‘’ date: ‘2009-04-17 23:01:22 +0530’ date_gmt: ‘2009-04-17 17:31:22 +0530’ content: ‘This helped me, thank you soo much ‘ - id: 608 author: SL author_email: [email protected] author_url: http://www.highcamp.ca date: ‘2009-05-14 03:38:14 +0530’ date_gmt: ‘2009-05-13 22:08:14 +0530’ content: | I can’t believe how long I had to search for this, it’s exactly what I needed yet no body on any of the forums could help me. I knew the solution was there but it’s a matter of knowing how to access the variable name. Thanks so much, - id: 3156 author: Vajahat Ali author_email: [email protected] author_url: http://vajahatalee.blogspot.com date: ‘2009-06-17 19:21:12 +0530’ date_gmt: ‘2009-06-17 13:51:12 +0530’ content: Nice Article Adul - id: 3210 author: Olga S. author_email: [email protected] author_url: ‘’ date: ‘2009-06-18 22:08:31 +0530’ date_gmt: ‘2009-06-18 16:38:31 +0530’ content: Thank you very much, I started to use your class right away. - id: 3605 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com date: ‘2009-06-25 09:19:22 +0530’ date_gmt: ‘2009-06-25 04:19:22 +0530’ content: |- \@olga: Glad to know, it helped you. -abdul - id: 3606 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com date: ‘2009-06-25 09:20:28 +0530’ date_gmt: ‘2009-06-25 04:20:28 +0530’ content: “@vajahat: Glad to know, you found it useful. It’s very old one and I believe, it can updated to use better technique.” - id: 4082 author: Simon author_email: [email protected] author_url: ‘’ date: ‘2009-07-02 08:37:05 +0530’ date_gmt: ‘2009-07-02 03:37:05 +0530’ content: “Hi Abdul, \r\n\r\nThat’s great !\r\n\r\nHere is a very interesting use of your code: \r\n\r\nI have two Applications. MyAppWidget is a small swf used to navigate to different main applications on different servers.\r\n\r\nIn MyAppWidget:\r\n\r\nvar url:String = \”\”\r\nurl += navigateEvent.applicationBaseURL;\r\nvar request:URLRequest = new URLRequest(url);\r\nvar variables:URLVariables = new URLVariables();\r\nvariables.email = _modelLocator.loginAttempt.username;\r\nvariables.pwd = _modelLocator.loginAttempt.password;\r\nrequest.data = variables;\r\n\r\nrequest.method = URLRequestMethod.GET;\r\n\r\ntry {\r\n\tnavigateToURL(request);\r\n...\r\n\r\n\r\nIm MyMainApp: \r\nI use your wrapper and it work great ! However, as you can see my parameters are email and encrypted pwd over https, so I would like to use the URLRequestMethod.POST (not GET) to hide it (it’s best practice too) and in this case the script doesn’t work anymore...\r\n\r\nAny suggestion ?\r\n\r\nBy the way, I have a recommendation: It will be great to create a js that can simply be include in the standard flex wrapper (html) and \“push\” flashvar on demand. I’m so disappointed that it’s not out of the Flex 3 box ! maybe in Flex 4 ? My understanding is that BrowserManager can only read fragment (everything after # character by using browserManager.fragment) and not parameters (from GET or POST function in HTML)\r\n\r\nSimon” - id: 4945 author: Paul Sijpkes author_email: [email protected] author_url: http://sijpkes.net date: ‘2009-07-20 00:07:29 +0530’ date_gmt: ‘2009-07-19 19:07:29 +0530’ content: Thanks Abdul! I could not get the flashvars to work with my custom app but this has solved it for me. No need to pass any variables to the EMBED tag via PHP! So easy! Thanks. - id: 5720 author: nicoweb.contact author_email: [email protected] author_url: http://www.nicoweb.fr/ date: ‘2009-08-06 14:50:38 +0530’ date_gmt: ‘2009-08-06 09:50:38 +0530’ content: “Hi, \r\n\r\nthanks abdul for this great article, i knew about flashvars, how to get them, etc, but it seems this process is faster and easier ;) thks for the details :)\r\n\r\n@+++” - id: 6901 author: ‘ActionScript3 : QueryString | Erko Bridee’ author_email: ‘’ author_url: http://blog.erkobridee.com/2010/03/27/actionscript3-querystring/ date: ‘2010-03-27 08:57:44 +0530’ date_gmt: ‘2010-03-27 03:57:44 +0530’ content: “[...] solução foi publicada neste [post] onde também foi disponibilizado uma versão web para testar essa solução [aplicação de teste] [...]” - id: 6916 author: WASI AIR Logging Console & Logging Util Tools | Web App Solution Blog author_email: ‘’ author_url: http://www.webappsolution.com/wordpress/2010/04/13/wasi-logging-console-air-application-logging-util-tools/ date: ‘2010-04-14 17:31:16 +0530’ date_gmt: ‘2010-04-14 12:31:16 +0530’ content: “[...] Abdul Qabiz -- I used your com.abdulqabiz.utils.QueryString class to nab the parameters out of the query string. [...]” - id: 7187 author: Flex - How to get URL query-string variables | Prait my Blog author_email: ‘’ author_url: http://www.prait.ch/wordpress/?p=408 date: ‘2011-09-23 14:36:31 +0530’ date_gmt: ‘2011-09-23 09:06:31 +0530’ content: “[...] text is from the excellent post of Abdul Qabiz: how-to-get-url-query-string-variables-within-flex-application/ Tweet Uncategorized ← iPhone - SQLite Tutorial Saving image in the database [...]” - id: 7191 author: ‘Obtener parametros de la URL en Adobe Flex (HTML Wrapper) :: Héctor Fuente Pérez’ author_email: ‘’ author_url: http://fuenteperez.es/blog/obtener-parametros-de-la-url-en-adobe-flex-html-wrapper date: ‘2011-10-13 17:38:48 +0530’ date_gmt: ‘2011-10-13 12:08:48 +0530’ content: “[...] primera solución y la que yo utilizo, es la propuesta por Abdul Qabiz. Es una clase ActionScript la cual echa mano de la clase ExternalInterface para obtener la URL [...]” - id: 7241 author: Rajnish author_email: ‘’ author_url: http://twitter.com/rajranjan12 date: ‘2009-09-07 23:46:00 +0530’ date_gmt: ‘2009-09-07 18:16:00 +0530’ content: yuytuytuytu - id: 7279 author: Thomas author_email: [email protected] author_url: http://www.mmdguru.com/ date: ‘2009-10-20 18:52:00 +0530’ date_gmt: ‘2009-10-20 13:22:00 +0530’ content: |- How do I use this class? Like this: var qs:QueryString = new QueryString(); var id:int = qs.parameters.id; Will this give me the id number in this url: http://www.domain.com/index.html?id=5 Nice if it’s so easy=) - id: 7290 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com/blog/ date: ‘2009-11-11 04:54:00 +0530’ date_gmt: ‘2009-11-10 23:24:00 +0530’ content: |- That’s right, it should work that way. I wrote this class long time back and have not tested it against latest browsers, flash player and flex framework. Please let me know, if you confirm it still works. - id: 7296 author: Thomas author_email: [email protected] author_url: ‘’ date: ‘2009-11-11 13:46:00 +0530’ date_gmt: ‘2009-11-11 08:16:00 +0530’ content: |- It worked like a charm in Firefox 3 and up + explorer 8 and up=) Good job man! - id: 7329 author: Sachin Dev Tripathi author_email: [email protected] author_url: ‘’ date: ‘2009-12-16 18:04:00 +0530’ date_gmt: ‘2009-12-16 12:34:00 +0530’ content: “Hi abdul,\r\nI have passed the ImgId in UrlRequest and then i used navigateToUrl to open new window. i opened application i am using Application.application.parameters.ImgId but it is not working although ?ImgId=1 is displaying in url. i have not used your QueryString.as class. It is must to use?\r\n\r\nPlease let me know what i am doing wrong?\r\n\r\nThanks\r\nSachin\r\n” - id: 7330 author: Sachin Dev Tripathi author_email: [email protected] author_url: ‘’ date: ‘2009-12-17 17:56:00 +0530’ date_gmt: ‘2009-12-17 12:26:00 +0530’ content: “Its excellent...works perfectly..i am exactly looking for this..Thanks you very much..\r\n\r\nThanks again\r\n\r\nWarm regards\r\nSachin dev tripathi” - id: 7334 author: Sachin Dev Tripathi author_email: [email protected] author_url: ‘’ date: ‘2010-01-11 12:48:00 +0530’ date_gmt: ‘2010-01-11 07:18:00 +0530’ content: “Could you please advise to Adobe Flex team to make a class ‘URLParser’ or ‘QueryString’ like this? It must be added with the SDK. If your solution is not much complecated so why they had not think about it to already implement with SDK? :x \r\n\r\nThanks\r\nSachin\r\[email protected]” - id: 7339 author: arthipesa author_email: [email protected] author_url: ‘’ date: ‘2010-01-30 04:50:00 +0530’ date_gmt: ‘2010-01-29 23:20:00 +0530’ content: Thank you abdul, this code is what I was needed to know. - id: 7348 author: devPrez author_email: [email protected] author_url: http://devprez.com/ date: ‘2010-02-18 03:16:00 +0530’ date_gmt: ‘2010-02-17 21:46:00 +0530’ content: You are a champ, thanks!! - id: 7438 author: jaguilar author_email: [email protected] author_url: ‘’ date: ‘2010-07-23 17:38:00 +0530’ date_gmt: ‘2010-07-23 12:08:00 +0530’ content: Thank you for writing this post! - id: 7492 author: Gideon author_email: [email protected] author_url: ‘’ date: ‘2010-11-20 21:20:00 +0530’ date_gmt: ‘2010-11-20 15:50:00 +0530’ content: Thx for the example. Was very helpful! - id: 7496 author: Flex development india author_email: [email protected] author_url: http://www.expertsfromindia.com/flex-development-india.htm date: ‘2010-12-06 13:15:00 +0530’ date_gmt: ‘2010-12-06 07:45:00 +0530’ content: “Its a great site, I’ve learned a lot already. I thought your QueryString class was very intuitive and easy to use. I wanted to let you know I actually liked it so much I ported it back to as2. And I figured I’d share that as well, and it also done well in with the input strings and its quite the systemic anomoly.\nExcellent work, “ - id: 7508 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com/blog/ date: ‘2011-01-10 21:43:00 +0530’ date_gmt: ‘2011-01-10 16:13:00 +0530’ content: |- That’s great. I am glad you liked it. You can drop the AS2 version’s link here, so some people might find it useful. - id: 7513 author: Dave Hopkins88 author_email: [email protected] author_url: ‘’ date: ‘2011-01-24 05:33:00 +0530’ date_gmt: ‘2011-01-24 00:03:00 +0530’ content: |- Hi ! Firstly thanks for this great post, works a treat. I have it working fine in my application. However when i try to iFrame my application into another website i cant get it to work. ANy idea on how i can do this ? - id: 7514 author: Abdul Qabiz author_email: [email protected] author_url: http://www.abdulqabiz.com/blog/ date: ‘2011-01-26 16:42:00 +0530’ date_gmt: ‘2011-01-26 11:12:00 +0530’ content: |- Hi Dave Thanks for your comment and feedback, I need to figure out why it’s not working. Please share details, if you happen to find out the problem and solution. Thanks -abdul - id: 7531 author: Azmat author_email: [email protected] author_url: ‘’ date: ‘2011-04-08 14:45:00 +0530’ date_gmt: ‘2011-04-08 09:15:00 +0530’ content: Very useful info, Thanks - id: 7608 author: kgntech author_email: [email protected] author_url: ‘’ date: ‘2012-11-29 14:20:00 +0530’ date_gmt: ‘2012-11-29 08:50:00 +0530’ content: |- Excellent information i got here,thanks its very helpful to me,keep up blogging. - id: 7786 author: julialedger17 author_email: [email protected] author_url: ‘’ date: ‘2016-06-20 08:53:00 +0530’ date_gmt: ‘2016-06-20 03:23:00 +0530’ content: Great article discussion . I was enlightened by the specifics . Does anyone know if my business could get ahold of a fillable a form document to edit ? - id: 7787 author: colemanspike73 author_email: [email protected] author_url: ‘’ date: ‘2016-06-20 13:57:00 +0530’ date_gmt: ‘2016-06-20 08:27:00 +0530’ content: Greetings Julia Ledger17! I obtained a fillable form with this link http://goo.gl/Nj73QZ

  • id: 7816 author: anybunny.mobi/latest/ author_email: ‘’ author_url: http://anybunny.mobi/latest/ date: ‘2017-08-05 22:52:29 +0530’ date_gmt: ‘2017-08-05 17:22:29 +0530’ content: |- anybunny.mobi/latest/ anybunny.mobi/latest/ - id: 7845 author: writeessay author_email: ‘’ author_url: http://sertyumnt.com/ date: ‘2018-04-04 22:15:24 +0530’ date_gmt: ‘2018-04-04 16:45:24 +0530’ content: |- write a paper for me http://sertyumnt.com/ What’s up, everything is going sound here and ofcourse every one is sharing information, that�s in fact good, keep up writing. - id: 7846 author: essayforme author_email: ‘’ author_url: http://dekrtyuijg.com/ date: ‘2018-04-11 20:39:14 +0530’ date_gmt: ‘2018-04-11 15:09:14 +0530’ content: |- write an essay for me http://dekrtyuijg.com/ Wow tons of fantastic knowledge! - id: 7847 author: www.datingnzcougar.info author_email: ‘’ author_url: http://www.datingnzcougar.info/ date: ‘2018-04-15 10:01:57 +0530’ date_gmt: ‘2018-04-15 04:31:57 +0530’ content: |- www.datingnzcougar.info free private live sex cam2cam no register ---

On flexcoders, someone asked, how to get the URL parameters in a Flex 2.0 application? By URL parameter, I mean the query-string variables, as shown below:

http://yourserver/yourapp.swf?name=Joe&age=22 or http://yourserver/yourapp.mxml?name=Joe&age=22

Note: To get the variables in flex via mxml file, you need server-side compilation of mxml files.

You can get the values of the params using from ` `

mx.core.Application.application.parameters

object, which contains the name-value pairs (hash-map).

For example, ` `

mx.core.Application.application.parameters.name

would return “Joe”, considering above example URL. You can find more information about this in livedocs: http://livedocs.macromedia.com/flex/20beta1/docs/00001300.html

Then someone asked, what if your swf is embedded in custom html wrapper, how to get the query-string params inside swf?

Most of us use ExternalInterface class in Macromedia Flash Player 8(onwards) to invoke some JavaScript functions and extract the value in ActionScript.

I wrote a quick-and-dirty class in ActionScript 3, which would get the values of params from URL query-string for you. You don’t need any extra JavaScript code in HTML. The same logic can be used for any an ActionScript 2.0 running Macromedia Flash Player 8.
QueryString class has following properties:-

- parameters

  • an Object which contains the name-value pairs from query-string

    queryString

  • String, this contains the entire query-string (url-encoded) name-value pairs.

    url- String, this returns the complete URL of the wrapper page with query-string.

See demo
Download source files

HTTP Authentication for HTTP/GET requests using ActionScript 3

I am working on ActionScript3 API for Bloglines services, which requires HTTP Authentication for its two of the services. I was not able to set the header of a HTTP/GET request. Macromedia Flash Player allows you set the header only for POST requests. I discussed this issues with Ted Patrick and he told me how I can us Socket to achieve the desired and he was very kind to give a me code-snippet, which got me started. Thanks Ted.

Finally, I could implement a class(HTTPURLLoader) which allows me to:

  • Add request-headers
  • Do HTTP Authentication for GET URLs
  • Handle HTTP status messages
  • Read the complete response header

It basically connects to a HTTP server on port 80(hardcoded for now) and sends an HTTP/1.0 request so that server closes the connection immediately after response. I could use HTTP/1.1 to keep connection alive and do things. But then closing connection would require some more logic, either a timeout logic if there is no activity on socket then close the connection, or find the end delimiter of response and then close. So I chose the easiest approach :)

I am still working on it and there is a lot(bugs-fixing, optimization, code-commenting, removing hardcoded stuff etc) to be done. I just wanted to share whatever I have done so far. I think, idea is more important than the implementation.
Anyways, I also implemented Base64 in AS3 and also OPML parser for Bloglines. I would soon upload the entire Bloglines AS3 API source.

Download the code:

View HTTPURLLoader Source and Example:

Yahoo! India launches a job search website

Yahoo! India has launched a job-search website. You can search jobs in India as well as international locations. It looks quite neat, clean and usable site. It allows you to see jobs available in different categories(finance, information-technology etc) as well as locations (cities, countries etc).
Link: http://web.careers.in.yahoo.com/index.html

Why things get hyped too much?

Things like AJAX, Web 2.0 etc get so much hyped? Aren’t these better way of solving some existing issues. The way different sorting algorithms, network algorithms did. They way GUI(graphical user interface) replaced CLI(command line interface) years ago. The way bandwidth increase/Internet connectivity solved some existing problems (slow videos, less rich websites, slow access to information) etc..
Is it because now we have better Internet, information spreads faster than ever? I think, It’s good but sometimes it’s not so good.
Just some thoughts, an era of information overloading has started. Most of time, we are just reading same information over and over without much value added, just locations of content keep changing from one blog(site) to another.