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.

flash - I copied and paste sample code from adobe help and it doesn't work -


i create document class main , use adobe sample code from

http://help.adobe.com/en_us/as3/components/ws5b3ccc516d4fbf351e63e3d118a9c65b32-7f9f.html

and got error:

1046: type not found or not compile-time constant: textinput. 

i don't understand why:

package {

    import flash.display.movieclip;     import fl.controls.label;      import fl.controls.textinput;       public class main extends movieclip     {            public function main()         {                var namelabel:label = new label();              var nameti:textinput = new textinput();              var tf:textformat = new textformat();               addchild(namelabel);              addchild(nameti);               nameti.restrict = "a-z .a-z";               tf.font = "georgia";              tf.color = 0x0000cc;              tf.size = 16;               namelabel.text = "name: " ;              namelabel.setsize(50, 25);              namelabel.move(100,100);              namelabel.setstyle("textformat", tf);              nameti.move(160, 100);              nameti.setsize(200, 25);              nameti.setstyle("textformat", tf);           }      } } 

you need include referenced components. fl.control.textinput not part of core library.
check out tutorial.


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 -