nope On Wed, Sep 3, 2008 at 11:23 AM, Hans Wichman < [EMAIL PROTECTED]> wrote:
> Hi, > you're not using runtime file sharing right? > greetz > JC > > On Wed, Sep 3, 2008 at 11:48 AM, allandt bik-elliott > (thefieldcomic.com) <[EMAIL PROTECTED]> wrote: > > sorry to necro an old thread but i still have a problem > > > > file structure: > > one index swf that preloads the main swf > > main swf that loads in several different section swfs and masks them in a > > frame > > the combobox is in one of the masked sections > > > > the issue is this: > > i have a combo box that uses an array populated by a loaded xml file as a > > dataprovider. It all works just fine apart from that when the combo box > is > > first opened, the first 'page' of entries doesn't render. If the list is > > scrolled or an entry is selected (it's fully populated), the entire list > > renders properly, including the entry that's selected. > > > > This happens when the site is viewed on a server and when the file is > 'test > > movie'd on it's own but it doesn't happen when the index swf is 'test > > movie'd or when the site is viewed locally in a browser > > > > The cb uses fonts used throughout the site and they are embedded (i've > added > > the code for the cb below). It's been suggested that maybe the cb is > loaded > > before the fonts so that it doesn't get a chance to render properly but i > > can't see how that is happeneing - i've tried added a textfield with the > > fonts embedded make sure that that wasn't it (although i haven't added > the > > fonts to a frame loaded before the cb - i'm trying that now) > > > > the cb is placed manually onstage and has the following code added on the > > timeline: > > > > function init():Void { > > xml.ignoreWhite = true; > > xmlFile = (xmldata != undefined) ? xmldata : PATH(); > > xml.load(xmlFile); > > xml.onData = function (src:String) { > > if (src == undefined) { > > this.onLoad(false); > > } else { > > this.parseXML(src); > > this.loaded = true; > > this.onLoad(true); > > parse(); // creates the arrays > > } > > } > > > > var cBox:Object = {}; > > cBox.change = function(o:Object):Void > > { > > //Selection.setFocus(c); // didn't work > > //o.target.onKillFocus=undefined; // didn't work > > getGeoEvents( > > > arrayOfUniversitiesNames[mc_university.cb_listOfUniversities.selectedIndex] > > ); // sends user to correct tab > > lock(); > > } > > > > // this is the script for the cb > > var c:MovieClip = mc_university.cb_listOfUniversities; > > c.setStyle("fontFamily", "VAG Rounded Light"); > > c.setStyle("embedFonts", true); > > c.addEventListener("change", cBox); > > c.dataProvider = arrayOfUniversitiesNames; > > c.text = "Select"; > > //Selection.setFocus(c); // didn't work > > changeTab(bt_tab); > > } > > _______________________________________________ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders