BTA Flexing

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

Archive for the ‘Flash CS5’ Category

Update Flash CS5 to Resolve Screen resolution issue with Flash application for ipad and iphone

Posted by Shardul Singh Bartwal on February 13, 2011

Previously Flash CS5 was only supporting the iphone, at that time if you have to create the ipad application then the flash application was just scratiching on the ipad.But its enough time since the Flash CS5 is providing the support to publish the .ipa file for both iphone as well as ipad.One has to simply upgrade Flash CS5 from:-
http://www.adobe.com/support/flash/downloads.html
After downloading and installing the update when you will create a iPhone OS project then go to the File >> iPhone OS Settings. In default tab i.e. General you will see there a new Combo Box with label ‘Device’, select from here whether you are looking for iPhone,iPad or both.Rest Flash will manage. 🙂

Enjoy…………

Posted in Flash CS5, iPhone iPad | 5 Comments »

Applying Filter in actionscript 3.0 and Flash CS5

Posted by Shardul Singh Bartwal on October 12, 2010

Applying this is very simple and straight forward.I am having two things on my flash stage.

One is a slider namely ‘hs’ and another one is a movie clip with name ‘rect’.Below is the code for achieving

this.As you will made the change in slider there will be a change in the filter for movie clip.Below is the code.

Please note that I am doing the frame coding so there is stop() at initial.And as I have taken the maximum value for

my Slider hs to ‘100’ and as we know alpha can have maximum value of 1,so i am dividing it by 100.

import fl.controls.Slider;
import fl.events.SliderEvent;
import flash.filters.GlowFilter;

stop();

hs.visible = true;
hs.addEventListener(SliderEvent.CHANGE,onSliderChange);
function onSliderChange(event : SliderEvent) : void
{
var s : Slider = event.currentTarget as Slider;
var glowArray:Array = [new GlowFilter(0xff0000,s.value/100,4,4,2,1,false,false)];
rect.filters = glowArray;
}

Enjoy……….Action scripting..

Posted in ActionScript 3.0, Flash CS5 | 1 Comment »