xmiinc
October 22nd, 2003, 01:52 AM
Is there any known issue with combo boxes that are dynamically created and styled, where they work and style fine when testing in the authoring environment, but just display what appears to be a blank background with no menu text when its an swf loaded into a main movie?
eyeinfinitude
October 24th, 2003, 11:41 AM
You're probably having a global targeting problem. What's the code you're using to create the combo boxes?
xmiinc
October 24th, 2003, 12:04 PM
here's how its created:this.attachMovie("FComboBoxSymbol","sortBy_cb",15,{_x:203,_y:40});
// populate cbox
arrSort=new_Array("Name","Length","Commercials");
sortBy_cb.setDataProvider(arrSort);
// style cbox
componentStyle_=_new_FStyleFormat({textColor:0x666 666,textFont:"Helvetica",textSize:10,face:0x666600,shadow:0x006600,backgro und:0x99cc66,highlight:0x996600,highlight3D:0x99cc 00,darkshadow:0x000000});
componentStyle.applyChanges();
function_addComponentStyle()_{
componentStyle.addListener(sortBy_cb)
}
// initialize cbox style
this.onEnterFrame=function(){
addComponentStyle();// combo-box's
delete_onEnterFrame;
}
There are 2 other combo boxes included in the actual listener code (edited out) that are contained in a MC and accessed via standard dot notation, but all exhibit the same problem behavior. Any thoughts on 'global targeting' or any other shortcomings in my code are *much* appreciated!
xmiinc
October 26th, 2003, 03:33 PM
this is DEFINITELY going in the Gotcha! file...
http://www.flashkit.com/board/showthread.php?postid=2646325#post2646325
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.