Made a post at Flex India Community !

March 31, 2008

Few days ago i made a post at the group Flex India Community and the Topic was
Effect on Flex and Flex Oppurtunities as IT industry is BAD“, just wanted to know some info regarding this, And to mention there is only one reply to
the post and it was from “Anish kumar” [member of the community]and he educated me on that.

I would like to share the reply he made, with you people and i guess there are some people wanting to know.

The reply is
The IT industry in general is slowing down because of recession, but I
dont see the opportunities for Flex slowing down. I can only see it
growing with each day. Flex (along with AIR) has opened a new world of
possibility and it will be very hard to slow down atleast for now. The
current recession will not have a adverse impact on Flex opportunities
in India as long as you are strong in that technology.

Good one though !.


Error Messages are Tracable From Flash Error Window !

March 28, 2008

The Errors in the Flex Page,[mxml] are Tracable, this means that the errors occurring  in the  flex page  can be found easily, the error message in the Flash Error Window contains the Line number with it, so the error at particular line can be traced out and with this the error’s are easily solvable.

This is know to many flex developers around the Globe but why writing this Post, the reason is that the people i am working with doesn’t know this thing and they are wasting their time with imaginary errors, the errors [runtime] are not coming from outer space or they are not UFOs around the monito, they are caused by misunderstanding of the definitions in the Language , everyone does it but correcting them and preventing them happening again is IMP.

The below Image contains the line numbers of the Flex page errors marked with RED.

Flash Error Window.

Enjoy Flexing .


How to Create a Lib(.swc) File ?

March 27, 2008

The .swc file is the component compilation of the components.With this file included in the other projects of the lib folder [using Flex Builder IDE] we can use those compiled components.After include it in the lib foler of the project ,the components are added to the Custom folder in the Components view.
To do this we need to create a Library Project in Flex Builder, and create components there with our properties and functionality and the relating .swc file is created in the bin folder in that project which is the compilation of the components we define in the Library Project,we can define and create as many components in the Lib Project and the corresponding .swc file is updated i.e the compilation of the components are written in it.

So, when your are done with defining the components in Lib Project add the .swc file in the lib folder of the required Flex Project where you would like to use this custom components.

Now drag the CustomComponents from the Custom folder in the components view on the design view and the required functionality is written in them and we can add other funtionality.

This is with the Flex Builder, if not using the Builder then define the components in a folder and compile the components in that folder it will generate the .swc file.

For compilation use the command promt with the commands like

mxmlc filename.mxml

Happy Flexing..


Path of the SharedObject File at the client System.

March 21, 2008

The ApplicationData Folder in the “c:/doc and sett/username/” location is hidden, so remove that option to view that file and the complete file location is here.

C:Documents and SettingskumarApplication DataMacromediaFlash Player#SharedObjectsNLUAAU2Z#localhostflex3projectsExamples1bin-debugBlogAggregator.swf

In this location the files are present with .sol type.

comments are welcome.


Cookies and Sessions in Flex.

March 20, 2008

My previous post tells about creating SharedObjects for simple cookies using the method getLocal(), but for something similar to that sessions we have to use the getRemote() method.
The syntax is similar to that of getLocal() method, for creating file,and adding name and values for it.

They are passed in between the client and server for access.Similar functionality as that of
the Sessions as normal.

But there is one limitaton in using this method getRemote(),that they can only be interacted
with Adobe Flash Media Server.


Using SharedObjects for Cookies in Flex.

March 17, 2008

I can say that SharedObjects are the Full extension for normal Browser cookies, because it has features that are not in normal browser cookies.
The Basic meaning is same “They are used for storing client data on the client Harddisk”.And access them through out the site when live or access them on next visit.

As the Syntax differs:

public var mySO:SharedObject;
mySO = SharedObject.getLocal(“mydata”);

here mydata is the file used to store the user data on the client machine and they reside at
a particular path that is hidden.[ see Flex help file for Path]

The SharedObject class has some methods in it for storing user data.

getLocal() -> creates the file or copies the reference of the file if created.

and to store data.
mySO.data.visitDate=”TodayDate”;

As i said its “Full extension for normal Browser cookies”,its meaning is it can store data
of Three DataTypes– Date,String,Array.

mySO.flush();

flush() —> its used for writing the values in to the file.And the SharedObject files are
Stored in the .sol format.

mySO.clear();

clear() –> delete the file.[.sol]

Explore the Class.


NativeWindow Class in AIR.

March 13, 2008

AS i started learning AIR i will make posts in it and guess what found a class in AIR to minimize ,maximize and closing your Windows.

code example:

private var appWindow:NativeWindow;

appWindow=this.stage.nativeWindow;
appWindow.visible=true;
appWindow.maximize();

similarly there are other methods in it “explore”  them. and iam doing that.

Enjoy the code.


Follow

Get every new post delivered to your Inbox.