BTA Flexing

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

Archive for October, 2008

Deep Linking In Flex 3.0

Posted by Shardul Singh Bartwal on October 23, 2008

Deep Linking In Flex 3.0

Deep linking is one of the cool feature of the Flex 3.0.This is mainly for playing with the browser. As all of us know that if we are running any flex application then the url in the browser don’t get effected normally. This is the feature via which we are able to find the current position of the components in the url of the application. Also the changes in the url will effect the changes in the application. For example if you have selected the third item of any viewstack then it will be reflected in the url of your application. Now if you will change it from the url to 0 then the the first element of the viewstack will get selected in the application .This feature will be same as any webpage based application.

This feature is by default disable in any application. For enabling this feature just go the the properties of your application.Here select ‘Flex Compiler’.Here you will find a checkbox with label ‘Enable integration with browser navigation’ just check it to select,and click on ‘Apply’ and then on ‘OK’.Your deeplinking feature is enable now. Now at the end of your url in browser you will find ‘#’. Up to ‘#’ this will be your default setting of the application. And after this the selected container etc will be shown in the url of your application.

 

Pls don’t forget to explore

http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Deep_Linking

for more information.

 

Hope you will like this feature.

 

Enjoy Flexing………………..

 

Advertisements

Posted in Flex 3.0 | 2 Comments »

Encounter with services-config.xml in Adobe Flex

Posted by Shardul Singh Bartwal on October 8, 2008

 services-config file is used by us for connection to the server side code.One important thing which should be noticed here is that this file is used at compile time (as we also includes {-services “services-config.xml”} under compiler settings). If you are using this file then there will be a block like below.

 <channels>

     <channel-definition id=”my-amfphp” class=”mx.messaging.channels.AMFChannel”>

           <endpoint uri=”http://IP of ur backend server/Project Name/amfphp/gateway.php”

           class=”flex.messaging.endpoints.AMFEndpoint”/>

     </channel-definition>

</channels>

The important thing here is ‘endpoint’ tag,Which have a uri field.This uri field is used to give

the path of backend server.But I will suggest not to put the this uri field here.As you know why?

Because if u will give this ip related information here then you can never change it because it will

be included in the build.So what we require to do when using this file,we should simply remove ‘uri’

from here and write it with your each and every remote object.And there you can get it from some

external xml,or by any other medium.

 

So the above block in services-config.xml should look like this only.

 

<channels>

<channel-definition id=”my-amfphp” class=”mx.messaging.channels.AMFChannel”>

<endpoint class=”flex.messaging.endpoints.AMFEndpoint”/>

</channel-definition>

</channels>

 

 

 

Hope you will enjoy it…………………..

 

Posted in Flex 3.0 | 4 Comments »