BTA Flexing

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

Posts Tagged ‘ActionScript’

Adding a device simulator(emulator) to Flash Builder 4.6

Posted by Shardul Singh Bartwal on March 4, 2012

If you are having one such device for which you are planing to make the mobile application and you are not having it by default in the list of emulators in Flash builder 4.6.At that point you can just add your desired mobile to the list of emulators.It can be just achieve by the couples of mouse clicks.Simply go to the Window>Preferences>Flash Builder>Device Configurations
And click on the “Add” button. Then fill the detail of the your preferred mobile set.Attaching the screen shot.

add device emulator to Flash builder 4.6

After applying the settings you will be see this on the list of the emulators and you can use this.

Hope this will help someone……………………….


Posted in ActionScript 3.0, Adobe AIR 3.0, AIR, Flash Builder 4.6, Mobile Applications with Adobe AIR | Tagged: , , , , , | 3 Comments »

Zoom Any container with children In Flex 3.0

Posted by Shardul Singh Bartwal on September 15, 2009

Zooming in Flex

I saw many people searching for the finding solution for zooming functionality. They are normally trying it with the zoom effect or scaling which is very true. But the case is bit sensitive when you have to zoom all the components inside a component and so on. So surly this will be achieved through a recursive function which will zoom each and every control inside a container unto the nth level where a container will not have any more child. Below is the demo application for achieving this. Hope this will be useful for all those who are having such requirement.

For code click on the link below.
ZoomDemo Source Code

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="" 
import mx.core.Container;
import mx.core.UIComponent;
private function doZoom(component:UIComponent,val:Number):void
component.scaleX = val;
component.scaleY = val; 
if(component is Container)
var children:Array = Container(component).getChildren();
for(var i:int = 0; i < children.length; i++)
doZoom(children&#91;i&#93;, val);
public function applyZoom():void
if(pnl == null)
<mx:HBox horizontalAlign="right">
<mx:VBox width="700" height="100%">
<mx:Panel id="pnl" width="400" height="400" title="Panel">
<mx:HBox width="100%" height="100%">
<mx:Button label="B1"/>
<mx:Button label="B2"/> 
<mx:Button label="B3"/>
<mx:HBox width="100%" height="100%">
<mx:Button label="B11"/>
<mx:Button label="B21"/> 
<mx:Button label="B31"/>
<mx:HSlider id="zoomSlider" minimum=".1" value="1"
maximum="2" change="applyZoom()" width="180"/>
<mx:Label text="Apply Zoom"/>

Hope you will like this………Enjoy Flexing…

Posted in ActionScript 3.0, Flex 3.0 | Tagged: , , , | 5 Comments »