How to remove an opaque background behind textfield and movieclip in ActionScript 2 -
i have problem need help. i'm using as2 create ui setup box. when overlap textfield on movieclip, there opaque background behind textfield. how remove it?
here link image error: http://i.stack.imgur.com/rzzbu.png
please me! in advance
my source code:
private function createmain(inidata:object):void { //create album picture /*----- ducldm add 130820 -----*/ g_background = g_mc.attachmovie( "mcbackground", "serviceview_mcbackground" + g_mc.getnexthighestdepth(), g_mc.getnexthighestdepth() -1 ); /*----- ducldm end -----*/ g_mcmain = g_mc.createemptymovieclip("g_mcmain" + g_mc.getnexthighestdepth(), g_mc.getnexthighestdepth()); g_mcmain.blendmode = "layer"; var x_pos:number = (stage.width - 802) / 2; var y_pos:number = stage.height - 200; var arr:array = new array(); g_mcborderinfo = g_mcmain.attachmovie("mcborderbutton_vip"/*"mcborderbutton_vip"*/, "videosubplayerview_g_mcborderinfo" + g_mcmain.getnexthighestdepth(), g_mcmain.getnexthighestdepth(), { _x:0 , _y:0 } ); g_mcborderinfo._x = (stage.width - g_mcborderinfo._width) / 2; g_mcborderinfo._y = stage.height - 200; g_iconslidebar = new icon(g_mcborderinfo, 125, 29, { url :"mcslidebarmusic_vip", nolabel : true } ); g_iconslidebar._width = 552; g_iconslidebarplay = new icon(g_mcborderinfo, g_iconslidebar._x + 3, g_iconslidebar._y + 2, { url :"mcslidebarplaymusic_vip", nolabel : true } ); g_iconslidebarplay._width = 1; g_iconslidebarplay._height= 7 g_tbplaytime = new textbox( g_mcborderinfo, 47, 23, { color : 0x040505, fontsize : 17, _width : 70, _height : 20, align :"right", text : "00:00:00" } ); g_tbtotaltime = new textbox(g_mcborderinfo, 685, 23, { color : 0x040505, fontsize : 17, _width : 70, _height : 20, align :"left", text : covertimetostring(g_ntotaltime)}); g_tblabelinfo = new textbox(g_mcborderinfo,(g_mcborderinfo._width/2)-55 ,0, { color : 0x00ffff, fontsize : 17, _width : 110, _height : 22, align :"center", text : ""} ); g_tbrepeatshuffle = new textbox(g_mcborderinfo,450 , 115, { color : 0x00ffff, align :"center", fontsize : 20, _width : 300, _height : 30, align :"center", text : "" } ); g_tbrepeat = new textbox(g_mcborderinfo, 0 , 0); g_tbshuffle = new textbox(g_mcborderinfo, 0 , 0); g_tbrepeat._visible = false; g_tbshuffle._visible = false; g_tbrepeatshuffle._visible = false; showcontrolbuttons(); } private function showcontrolbuttons():void { g_aiconinfo = new array(); // shuffle g_aiconinfo[0] = new icon(g_mcborderinfo, 160, 67, { url :g_asurlinfo[0], nolabel : true } ); g_aiconinfo[0].onpress(this, controlhandler, { device:"mouse", event: "onpress", group:"info", pos:0 } ); g_aiconinfo[0].gotoandstop(1); // repeat g_aiconinfo[1] = new icon(g_mcborderinfo, g_aiconinfo[0]._x + g_aiconinfo[0]._width + 15 , g_aiconinfo[0]._y + 1, { url :g_asurlinfo[1], nolabel : true } ); g_aiconinfo[1].onpress(this, controlhandler, { device:"mouse", event: "onpress", group:"info", pos:1 } ); g_aiconinfo[1].gotoandstop(1); // stop g_aiconinfo[2] = new icon(g_mcborderinfo, g_aiconinfo[1]._x + g_aiconinfo[1]._width + 15 , g_aiconinfo[0]._y , { url :g_asurlinfo[2], nolabel : true } ); g_aiconinfo[2].onpress(this, controlhandler, { device:"mouse", event: "onpress", group:"info", pos:2 } ); g_aiconinfo[2].gotoandstop(1); // rev g_aiconinfo[3] = new icon(g_mcborderinfo, 303, 61.5, { url :g_asurlinfo[3], nolabel : true } ); g_aiconinfo[3].onpress(this, controlhandler, { device:"mouse", event: "onpress", group:"info", pos:3 } ); g_aiconinfo[3].gotoandstop(1); // prev g_aiconinfo[4] = new icon(g_mcborderinfo, g_aiconinfo[3]._x + g_aiconinfo[3]._width -3 , 61.5, { url :g_asurlinfo[4], nolabel : true } ); g_aiconinfo[4].onpress(this, controlhandler, { device:"mouse", event: "onpress", group:"info", pos:4 } ); g_aiconinfo[4].gotoandstop(1); //next g_aiconinfo[6] = new icon(g_mcborderinfo, 418 , 61.5, { url :g_asurlinfo[6], nolabel : true } ); g_aiconinfo[6].onpress(this, controlhandler, { device:"mouse", event: "onpress", group:"info", pos:6 } ); g_aiconinfo[6].gotoandstop(1); // fwd*/ g_aiconinfo[7] = new icon(g_mcborderinfo, g_aiconinfo[6]._x + g_aiconinfo[6]._width -4, 61.5, { url :g_asurlinfo[7], nolabel : true } ); g_aiconinfo[7].onpress(this, controlhandler, { device:"mouse", event: "onpress", group:"info", pos:7 } ); g_aiconinfo[7].gotoandstop(1); // play-pause g_aiconinfo[5] = new icon(g_mcborderinfo, 375.5, 49, { url :g_asurlinfo[5], nolabel : true } ); g_aiconinfo[5].onpress(this, controlhandler, { device:"mouse", event: "onpress", group:"info", pos:5 } ); g_aiconinfo[5].gotoandstop(1); // volume g_iconvolume = new icon(g_mcborderinfo, 510, 67, { url :"mcvolume_vip", nolabel : true } ); g_iconvolume.gotoandstop(1); g_iconvolumeslidebg = new icon(g_mcborderinfo, g_iconvolume._x + g_iconvolume._width + 5, 73, { url :"mcvolumebg_vip", nolabel :true } ); g_iconvolumeslidecontent = new icon(g_mcborderinfo, g_iconvolumeslidebg._x +1, g_iconvolumeslidebg._y + 1, { url :"mcvolumecontent_vip", nolabel :true } ); g_iconvolumeslidecontent._width = 1; g_iconvolumepoint = new icon(g_mcborderinfo, g_iconvolumeslidebg._x, g_iconvolumeslidebg._y -3 , { url :"mcvolumepoint_vip", nolabel :true } ); g_volumeunit = (g_iconvolumeslidebg._width - g_iconvolumepoint._width) / 32; g_tbvolume = new textbox( g_mcborderinfo, g_iconvolumeslidebg._x + g_iconvolumeslidebg._width +2 , 65, { color : 0xffffff, fontsize : 16, _width : 30, _height : 30, align :"left", text : data.volume} ); setvolume({event:"not-mute", value:data.volume}); }
try
!my_txt.background
where my_txt name of item (ex. g_tbtotaltime) make sure leave ! mark
Comments
Post a Comment