[Flashcoders] Datagrid Sorting
I have a datagrid populated with a dataprovider. I add items to the dataprovider with the following type of statement: dataprovider.addItem({u:{label:clearUser, role:clearRole}, uState:clearState, sel:false, data:l}); I can sort according to uState no problem with the following: dataprovider.sortItemsBy(uState, Array.CASEINSENSITIVE); I'm having trouble sorting according to u. dataprovider.sortItemsBy(u.role,u.label, Array.CASEINSENSITIVE); This doesn't seem to work. Should I access the u object differently? Thanks, Brandon ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Resize External .Swf File Based on Stage?
I'm having an issue resizing externally loaded .swf files. It's no problem if the content of the external .swf is contained within the movie's stage, but if not, how can I resize it based on it's width or height? Especially if the content is animated and the height/width is constantly changing? It doesn't seem like you can get the stage size of an externally loaded .swf. Thanks, Brandon ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Resize External .Swf File Based on Stage?
Thanks. Yeah, I figured that's what I'd have to do. Thanks, Brandon Éric Thibault [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 06/26/2006 03:51 PM Please respond to Flashcoders mailing list flashcoders@chattyfig.figleaf.com To Flashcoders mailing list flashcoders@chattyfig.figleaf.com cc Subject Re: [Flashcoders] Resize External .Swf File Based on Stage? There is no way to know the stage size of an imported SWF. The loading parent only knows the size of the loaded SWF from the elements present on frame 1. You could however place an invisible element the size of it's stage inside the loaded SWF... (I've used that trick before!) Or use variables with the height and width on the first frame of your loaded SWF A+ Brandon Krakowsky/MTC a écrit : I'm having an issue resizing externally loaded .swf files. It's no problem if the content of the external .swf is contained within the movie's stage, but if not, how can I resize it based on it's width or height? Especially if the content is animated and the height/width is constantly changing? It doesn't seem like you can get the stage size of an externally loaded .swf. Thanks, Brandon ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] setRGB for Several Instances of MovieClip
Yeah, that's what I figured. I was hoping it was more of a Tint type effect, as if I manually added a tint on MovieClipB. Thanks! Zeh Fernando [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 05/23/2006 02:16 PM Please respond to Flashcoders mailing list flashcoders@chattyfig.figleaf.com To Flashcoders mailing list flashcoders@chattyfig.figleaf.com cc Subject Re: [Flashcoders] setRGB for Several Instances of MovieClip of MovieClipB inside of it? In theory, I should be able to set the color of MovieClipB, and thereby change the appearance of all instances of MovieClipA? Doesn't work though -- it only changes the appearance of the instance of MovieClipA in which I changed the color of MovieClipB. It doesn't work because it isn't supposed to work like that (your theory isn't correct). All instances are that - instances. Whatever you change on one instance isn't reflected on the other. They're completely different objects now, even if they have been created from the same original symbol. Is there any way to do this? You have to change the color of all instances you want the color to be changed. IE, var myMovies = [this.movieclipa, this.movieclipb, this.movieclipc]; for (var i in myMovies) new Color(myMovies[i]).setRGB(0xwhatevercolor); Or any longer version of that. - Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Passing TextField Instance Name to Function
Hello all. This is probably very simple. I'm trying to pass the instance name of a textfield to a setTextColor function which applies a TextFormat. The function takes 4 parameters, the new format name, the textfield instance name, the textfield color, and the textfield alignment. Everything is passed correctly except for the textfield instance name. The absolute path is passed, which means _level0. is appended to the beginning of the full path. So for instance, I pass leftInfoClip.topLeftTabs.leftTab.tabTitle, where tabTitle is the actual textfield. when I pass it to the setTextColor function and trace it, _level0.leftInfoClip.topLeftTabs.leftTab.tabTitle is returned. This would be fine except for when I try and evaluate the variable inside the function with _root[var], it fails. See below: setTextColor(topLeftTab,leftInfoClip.topLeftTabs.leftTab.tabTitle,0x00,left); function setTextColor(formatName, fieldClip, col, align) { _root[formatName] = new TextFormat(); _root[formatName].color = col; _root[formatName].align = align; //this is the problem here. I can't remove _root, because that is bad syntax. this also doesn't work. so I'm left with _root. + _level0.leftInfoClip.topLeftTabs.leftTab.tabTitle. _root[fieldClip].setTextFormat(_root[formatName]); } Thanks, Brandon Lee ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Passing TextField Instance Name to Function
Wacky! That works with no brackets at all and fieldClip.setTextFormat is evaluated as leftInfoClip.topLeftTabs.leftTab.tabTitle.setTextFormat. You got it! Thank you very much, Brandon Gerry Creighton [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 05/22/2006 12:07 PM Please respond to Flashcoders mailing list flashcoders@chattyfig.figleaf.com To Flashcoders mailing list flashcoders@chattyfig.figleaf.com cc Subject Re: [Flashcoders] Passing TextField Instance Name to Function Here's another... Using your movieclip path I have this working... code function setTextColor(formatName, fieldClip, col, align) { formatName = new TextFormat(); formatName.color = col; formatName.align = align; fieldClip.setTextFormat(formatName); } leftInfoClip.topLeftTabs.leftTab.tabTitle.text = testing color; _root.onLoad = function(){ //just to test that the function is called setTextColor(myColor,leftInfoClip.topLeftTabs.leftTab.tabTitle, 0x99,left); } /code Gerry ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer ... On May 22, 2006, at 11:04 AM, Brandon Krakowsky/MTC wrote: Hello all. This is probably very simple. I'm trying to pass the instance name of a textfield to a setTextColor function which applies a TextFormat. The function takes 4 parameters, the new format name, the textfield instance name, the textfield color, and the textfield alignment. Everything is passed correctly except for the textfield instance name. The absolute path is passed, which means _level0. is appended to the beginning of the full path. So for instance, I pass leftInfoClip.topLeftTabs.leftTab.tabTitle, where tabTitle is the actual textfield. when I pass it to the setTextColor function and trace it, _level0.leftInfoClip.topLeftTabs.leftTab.tabTitle is returned. This would be fine except for when I try and evaluate the variable inside the function with _root[var], it fails. See below: setTextColor(topLeftTab,leftInfoClip.topLeftTabs.leftTab.tabTitle, 0x00,left); function setTextColor(formatName, fieldClip, col, align) { _root[formatName] = new TextFormat(); _root[formatName].color = col; _root[formatName].align = align; //this is the problem here. I can't remove _root, because that is bad syntax. this also doesn't work. so I'm left with _root. + _level0.leftInfoClip.topLeftTabs.leftTab.tabTitle. _root[fieldClip].setTextFormat(_root[formatName]); } Thanks, Brandon Lee ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com