BTA Flexing

My passion RIAs…………..Shardul Singh Bartwal

Archive for the ‘Uncategorized’ Category

Is The Web Over Browser Dying? Best Days of Web Browser are Gone ?

Posted by Shardul Singh Bartwal on September 12, 2015

The way currently many sites are behaving poorly with the day by day’s latest update and having issues, at least in first look it seems true that web browser over the internet is dying. Recent terminology of ‘mobile only strategy’ is also favoring this.
Current web browser is fine for:-
1) Static web sites (On mobile and desktop browsers both)
2) Very Small size dynamic web sites/web apps (On mobile and desktop browsers both)
3) Very Large Enterprise based applications (Desktop browsers only)

Main issue is for mid-size web-sites/web application’s owner who are getting most confuse about the direction of current web. The reason for this can be seen in some doubts below:-

1) Should go to web application or Mobile application?
2) If one have existing desktop web application then where to go?
3) If Web browser, then common for mobile and desktop or separate?
4) With advancement and daily changing java-script based frameworks/and their different behavior on different browsers what should be good technology?
5) Suffering from daily updates of browsers.
6) Establishing on all platforms is too much expensive.
7) Web browser based application’s performance on mobile devices is sluggish and a different appearance is required on mobile and tablets.
8) Web applications which are updated for supporting mobile browser are now getting bad even on the desktop browsers.
9) Will web application created even investing good amount of money will run of a long enough period?
10) User Experience is varying person to person.
11) Richness of web over mobile is incomplete due to lack of flash player.
12) Number of adds on mobile browsers are too much.

Until the answer of these questions will not satisfactory to one he will be agree that best day’s of web brewers are gone.

Posted in Uncategorized | Leave a Comment »

Flash,Flex Vs HTML 5

Posted by Shardul Singh Bartwal on February 25, 2012

I was checking the HTML 5 with Java script,CSS 3 and Jquery around since last 4 months.Also was keeping my eyes on this since 2008,but never get inspired to do anything.Now also I found that HTML 5 is still in the state where Flash was 7 to 8 years back.HTML 5 can replace maximum of simple banners and animated advertisements which were created using the flash.For that also the development cost is going to increase and quality will be not up to that extent as the Flash has provided long earlier.

But for the Audio/Video Streaming,Image manipulation,Gaming and Enterprise applications HTML5 needs to take still around 10 years.Also currently I don’t found any thing as impressive as AMF for the Client Server communication over the internet.The reason for this is simply that HTML 5 is also a markup language.You can check the link below,you will realize where the HTML 5 is in reality:-

http://www.w3.org/TR/html5-diff/

So the only thing which I will like to say is that Flash and HTML 5 will be needed in the same way
as earlier they were used together on the web.If you will try to replace Flash by HTML 5 for the small
purpose then you have to pay lot more then flash.And if you will be trying to create the Enterprise Application with HTML 5 then I think you will come back to Flex one day.Flash player is ruling since last 15 plus years,its not so simple to replace that.

Keep Rocking………..

Posted in ActionScript 3.0, Flex, Flex 3.0, Uncategorized | 3 Comments »

Flash Player releases after 11.2 on the Linux

Posted by Shardul Singh Bartwal on February 24, 2012

Flash Player releases after 11.2 will not be available as a direct download from adobe on the Linux,it will work only with the Google Chrome on Linux.

There is a statement as below from adobe :-

For Flash Player releases after 11.2, the Flash Player browser plugin for Linux will only be available via the “Pepper” API as part of the Google Chrome browser distribution and will no longer be available as a direct download from Adobe. Adobe will continue to provide security updates to non-Pepper distributions of Flash Player 11.2 on Linux for five years from its release.

For detail information please have a look on the
http://blogs.adobe.com/flashplayer/2012/02/adobe-and-google-partnering-for-flash-player-on-linux.html

Posted in Uncategorized | Leave a Comment »

Thinking(Planning) of a Cross Platform Website/Application

Posted by Shardul Singh Bartwal on November 24, 2011

First of all the word platform needs to be defined here in which respect I am using this word. Here the word is being used for the desktop /laptops and mobile/tablets.
Now at multiple times it is wrongly understood that if things are being developed for web-browser then those should automatically work perfect for the mobile too, but in reality it is not the case.
This understanding is not good for anyone.
This will Ok if you are simply having some simple html based website with some static pages that’s all. But what for the web applications which are playing with a lot of data, if one is assuming that he is going to offer the same page layout, or look and feel as he is having for the desktop based browser with only costing for the browser based desktop application then again he is going to cut the pocket of the mobile end users of that application due to the bandwidth prizing and limitations over the mobile browsers. Again over the mobiles/tablets there are different platform like iOS, Android, Windows Phone, Symbian, BlackBerry. So for which version the web application is being targeted again this is major question especially from the point of view of the money of the person who is planning to develop such application. So how one is going to manage this much of assets for accomplishing the above mentioned scenarios. What should be the best strategy to found such goals?
Also please not that no one even including the person who is planning such application doesn’t know how much success his application will be? 😦
So what should be the best idea of thinking of such kind of web application, I will like to suggest that one should move step by step:-

Step 1:- First create you desktop browser based application selecting the capable techonology,which can offer you easy integration with mobile based applications. Please keep in mind that your service layer and business layer is going to be used later on by mobile based clients also, so the pc based version should have these things layers isolated.

Step2:- If your pc based application is going well then check the market scenarios for the mobile and find which one platform is capturing the maximum market or depending upon your end-user’s geographical reason figure out the largest market capturing mobile platform. Start developing the application mobile application which will be using the same service and business layer in Step 1.

Step3:- Repeat step 2 for the second mobile market capturing platform.
And so on………..

Hope the information can help someone to save money and give a good vision for his requirement.

Shardul

Posted in Flash Builder 4.6, Mobile Applications with Adobe AIR, Uncategorized | Tagged: , | Leave a Comment »

Doubts about Flex and Flash

Posted by Shardul Singh Bartwal on November 15, 2011

Since Last 5-6 days every one who belongs to Flex is having his own doubts and thoughts.The reason was the news that adobe discontinues development of Flash player on the Mobile Devices.

http://blogs.adobe.com/flashplayer/2011/11/focusing.html

My personal thinking is that the Flex and AIR both are not going to be effected due to this.As AIR is going to work continuously with the mobile devices.And Flex will be keeping to
rock on browser on the Desktop.Also flash players cutting edge technology will be carry on to
desktop browsers.

And the thing to mentioned here is that adopting HTML 5 will make at-least the clients vision clear.

Below is the official link which can make the things clear:-

http://blogs.adobe.com/flex/2011/11/your-questions-about-flex.html

Enjoy flexing………….
Shardul

Posted in Mobile Applications with Flex, Uncategorized | Leave a Comment »

TypeError: Error #2007: Parameter blendMode must be non-null.

Posted by Shardul Singh Bartwal on November 17, 2010

This is the error which make wasted lot of mine time.Finally I get to know that this will appear if we will using
any swc which is created in the advance versions of flex sdk main in 3.3 or 3.4 and we are created the project in the lower version of sdk e.g. 3.2. If you want to come out from this then either go for the higher or equal to the swc version of sdk for the entire application or rebuild your swc with the higher version.Hope this will help you if you will facing this non meaning title error 🙂

Keep rocking……..Enjoy Flexing……

Posted in Flex 3.0, Uncategorized | Leave a Comment »

Byte Array to BitmapData and BitmapData to Byte array in Flex 3.

Posted by Shardul Singh Bartwal on October 14, 2010

In the code below I am initially getting the byte array of my canvas with the increased size. Converting it into Bitmap data.And again converting that Bitmap data into ByteArray. So that you can use the particular step which one you require.

</pre>
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

<mx:Script>
<![CDATA[
import mx.controls.Alert;

import mx.graphics.ImageSnapshot;
import mx.graphics.codec.JPEGEncoder;

private var imageSnapshot:ImageSnapshot
private function inLargeImage():void
{
var jPEGEncoder:JPEGEncoder = new JPEGEncoder(90);
imageSnapshot = ImageSnapshot.captureImage(imgCanvas,500, jPEGEncoder,true);

//imageSnapshot.data is ByteArray.
byteArrayToBitmapData(imageSnapshot.data);
}

private var loader : Loader = new Loader();
private function byteArrayToBitmapData(byteArray : ByteArray):void
{
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, getBitmapData);
loader.loadBytes(byteArray);
}
private var bitmapData:BitmapData
private function getBitmapData(e:Event):void {
var content:* = loader.content;
bitmapData = new BitmapData(content.width,content.height,true,0x00000000);

var matrix:Matrix = new Matrix();
bitmapData.draw(content, matrix,null,null,null,true);
targetImage.source = new Bitmap( bitmapData );

}

private function saveInLargeImage() : void
{
if(bitmapData == null)
{
Alert.show("InLarge Image first,and then try again.")
return;
}

var encoder:JPEGEncoder = new JPEGEncoder(90);
var byteArray:ByteArray = encoder.encode(bitmapData);
var fr : FileReference= new FileReference();
fr.save(byteArray,'abcd.jpg');
}

]]>
</mx:Script>

<mx:VBox horizontalAlign="center" verticalAlign="middle" width="100%" height="100%">
<mx:VBox id="imgCanvas" width="600" height="450" horizontalAlign="center"
verticalAlign="middle" backgroundColor="0x0000FF">
<mx:Image source="image1.jpg"/>
</mx:VBox>

<mx:Image id="targetImage"/>

<mx:Button click="inLargeImage()" label="Inlarge Image"/>
<mx:Button label="Save To Your Computer" click="saveInLargeImage()"/>
</mx:VBox>

</mx:Application>
<pre>

Hope you will enjoy this……..

Posted in ActionScript 3.0, AIR, Flash Builder 4.6, Flex, Flex 3.0, Flex 4, Uncategorized | Tagged: , , , , , , , , , , , , , , , , , , , , | 2 Comments »

Spelling checking feature in flex by Using ‘squiggly.

Posted by Shardul Singh Bartwal on September 23, 2009

Spelling checking feature in flex by Using ‘squiggly.

Today I explore the spell checking feature in flex using ‘squiggly’.Now we can easily get the spell checking feature in our Application which are more concerned about Text Entries. Its really really nice. Its an spelling checking engine for flash Player and Adobe AIR.

Please explore the link below for details about ‘squiggly’.
http://labs.adobe.com/technologies/squiggly/

You can download ‘squiggly’ from here.
http://labs.adobe.com/downloads/squiggly.html

You can easily use it in your flex application. And live demo is here at adobe’s site.
http://labs.adobe.com/technologies/squiggly/demo/

Enjoy Flexing………….

Shardul Singh Bartwal

Posted in Uncategorized | Leave a Comment »

Play and Stop Swf in Flex

Posted by Shardul Singh Bartwal on September 21, 2009

Play and Stop Swf in Flex
Many of times I have seen people to looking for requirement when they want to stop and play the swf out side the swf. This becomes more important when you  want  to  play or stop the swf’s which are not created by you.Below is the code  for  the  same  requirement.  In  this  demo  Application ,  I   am  using a Loader for playing the swf. Hope it will be helpful for you if you require.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
layout="absolute" creationComplete="OnCreationComplete()">
<mx:Script>
<![CDATA[
		import mx.core.UIComponent;
		private var loader:Loader; 
		
		private function OnCreationComplete():void
		{
			var url : String ="assets/MyanimatedSwf.swf";
			loader = new Loader();
			var request:URLRequest = new URLRequest(url);
			loader.load(request);
			loaderHolder.rawChildren.addChild(loader as DisplayObject);
		}

		private function onStop():void
		{
		var mc : MovieClip = loader.content as MovieClip;
		mc.stop();
		}
		
		private function onPlay():void
		{
		var mc : MovieClip = loader.content as MovieClip;
		mc.play();
		}
]]>
</mx:Script>
<mx:VBox width="100%" height="100%" horizontalAlign="center"
	verticalAlign="middle">
		<mx:Canvas id="loaderHolder" width="500" height="500"/>
		<mx:Button label="Stop" click="onStop()"/>
		<mx:Button label="Play" click="onPlay()"/>
</mx:VBox>
</mx:Application>

Enjoy Flexing………….

Posted in Uncategorized | 4 Comments »

Using Multiple Local Languages in Flex

Posted by Shardul Singh Bartwal on August 29, 2009

If you want to support a large number of the languages,then you will require to embed the ‘arial unicode ms’ font,but the embedding of this font is something different. If you will try to embed this font normally then it will give you compile time error. For embedding this font you will require to pass the compiler argument. Just go to the your compiler setting and add there
‘-managers=flash.fonts.AFEFontManager’ it will resolved your compile time error,and now you can use the wide range of the fonts from the different languages.

Posted in Uncategorized | 1 Comment »