Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

actionscript - change color of flash component? -


sorry if question kind of newbie i'm new flash i'm using dice on site http://www.flashvalley.com/fv_components/dice/ , managed chage color wondering if possible change dots color white well?

thanks in advance!

you need target movieclips/sprites , color transform on them

lets have called each of movieclips want transform "dot_mc"

var c:colortransform = new colortransform(); // instantiate color transform c.color = 0xffffff; // set color of transform white dot_mc.transform.colortransform = c; //apply color transform 

so if had many of these dots put them in array , loop through array , apply whatever color these dots

var arr:array = new array(); arr.push(dot1_mc); arr.push(dot2_mc); arr.push(dot3_mc); // var c:colortransform = new colortransform(); c.color = 0xffffff;   // (var i:int=0; i<arr.length;i++){      var mc:movieclip = arr[i];     mc.transform.colortransform = c; } 

you put above in function , call whenever want, passing whichever color , transforming dots when necessary.

function changedotcolor($color_num:number):void {     ...     var c:colortransform = new colortransform();     c.color = $color_num;     ... } 

you know or pass array of movieclips associated color. , change other movieclips/sprites rather dot movieclip.

i.e

function changedotcolor($color_num:number,$mc_arr:array):void{ 

hope helps


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -